Skip to content

Commit

Permalink
[MIM-2140] Mim 2140 bug fontsize statbank (#3058)
Browse files Browse the repository at this point in the history
* MIM-2140:Revert to px

* linting
  • Loading branch information
ssb-cgn authored Dec 9, 2024
1 parent 192ed7d commit 08f9f7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
16 changes: 8 additions & 8 deletions src/main/resources/assets/styles/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ header.ssb-header-wrapper {
align-items: center;
}
@include media-breakpoint-down(md) {
padding: 0 1rem 1rem;
padding: 0 16px 16px;
}
}

Expand All @@ -93,8 +93,8 @@ header.ssb-header-wrapper {
&.showOnMobile {
height: auto;
max-height: 1800px;
padding-left: 1rem !important;
padding-right: 1rem !important;
padding-left: 16px !important;
padding-right: 16px !important;
transition: max-height 0.3s ease-in;
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ header.ssb-header-wrapper {
background: transparent;
height: 24px;
font-family: $font-roboto-plain;
font-size: 1.25rem;
font-size: 20px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
Expand Down Expand Up @@ -348,10 +348,10 @@ header.ssb-header-wrapper {
}

span {
font-size: 1rem;
font-size: 16px;
width: 100%;
@include media-breakpoint-down(lg) {
font-size: 1.25rem;
font-size: 20px;
}
}
}
Expand Down Expand Up @@ -425,7 +425,7 @@ header.ssb-header-wrapper {
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 1.25rem 0;
margin: 20px 0;
max-height: 0;
transition: max-height 0.4s ease-in;

Expand All @@ -435,7 +435,7 @@ header.ssb-header-wrapper {
transition: max-height 0.4s ease-out;
}
.ssb-link {
margin: 0.5rem 0;
margin: 8px 0;
}
}
}
Expand Down
7 changes: 1 addition & 6 deletions src/main/resources/react4xp/_entries/ReleasedStatistics.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import React from 'react'
import { Link } from '@statisticsnorway/ssb-component-library'
import { type ReleasedStatisticsProps } from '/lib/types/partTypes/releasedStatistics'
import {
type MonthReleases,
type DayReleases,
type YearReleases,
type PreparedStatistics,
} from '/lib/types/variants'
import { type MonthReleases, type DayReleases, type YearReleases, type PreparedStatistics } from '/lib/types/variants'

const ReleasedStatistics = (props: ReleasedStatisticsProps) => {
const { language, title, releases } = props
Expand Down

0 comments on commit 08f9f7f

Please sign in to comment.