Skip to content

Commit fe06a74

Browse files
committed
Fix production styles
1 parent 6265100 commit fe06a74

File tree

9 files changed

+55
-27
lines changed

9 files changed

+55
-27
lines changed

src/routes/form-title.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ const TitleContainer = styled.div`
1818
`;
1919

2020
const Title = styled(Innholdstittel)`
21-
@media ${device.mobileS} {
22-
margin-top: 0;
23-
}
24-
@media ${device.mobileL} {
25-
margin-top: 8px;
21+
&& {
22+
margin-bottom: 0;
23+
24+
@media ${device.mobileL} {
25+
margin-bottom: 8px;
26+
}
2627
}
2728
`;
2829

src/routes/inngang/inngang-innsendingsvalg-post.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ const InngangInnsendingPost = ({ temaKey, title = Tema[temaKey] }: Props) => {
7474
};
7575

7676
const VeilederContainer = styled(Veileder)`
77-
margin-bottom: 32px;
77+
&& {
78+
margin-bottom: 32px;
79+
}
7880
`;
7981

8082
const arePropsEqual = (prevProps: Props, nextProps: Props) =>

src/routes/klageskjema/begrunnelse/autosave-progress.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ interface Props {
1717
}
1818

1919
const AutosaveContainer = styled.div`
20-
color: #78706a;
21-
text-align: right;
2220
display: flex;
2321
justify-content: flex-end;
22+
color: #78706a;
23+
text-align: right;
24+
margin-top: 4px;
2425
`;
2526

2627
const AutosaveContent = styled.div`

src/routes/klageskjema/kvittering/kvittering-loading.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ const BouncingEnvelope = styled(Envelope)`
3838
`;
3939

4040
const PageTitle = styled(Systemtittel)`
41-
margin-top: 0;
42-
margin-bottom: 16px;
43-
text-align: center;
41+
&& {
42+
margin-top: 0;
43+
margin-bottom: 16px;
44+
text-align: center;
45+
}
4446
`;
4547

4648
const Description = styled(Normaltekst)`
47-
text-align: center;
49+
&& {
50+
text-align: center;
51+
}
4852
`;
4953

5054
export default KvitteringLoading;

src/routes/klageskjema/oppsummering.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,25 @@ const Frame = styled.section`
156156
`;
157157

158158
const Text = styled(Undertekst)`
159-
margin-bottom: 16px;
159+
&& {
160+
margin-bottom: 16px;
161+
}
160162
`;
161163

162164
const BlackUndertittel = styled(Undertittel)`
163-
color: #000;
165+
&& {
166+
color: #000;
167+
}
164168
`;
165169

166170
const SummarySection = styled.section`
167171
padding: 1rem;
168172
`;
169173

170174
const RowKnapp = styled(Knapp)`
171-
margin-right: 10px;
175+
&& {
176+
margin-right: 10px;
177+
}
172178
`;
173179

174180
const Icon = styled(Clipboard)`

src/styled-components/login-button.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import styled from 'styled-components/macro';
22
import { Hovedknapp } from 'nav-frontend-knapper';
33

44
export const LoginButton = styled(Hovedknapp)`
5-
margin-top: 16px;
5+
&& {
6+
margin-top: 16px;
7+
}
68
`;

src/styled-components/page-paragraph.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ import styled from 'styled-components/macro';
22
import { Normaltekst } from 'nav-frontend-typografi';
33

44
export const PageParagraph = styled(Normaltekst)`
5-
display: inline-block;
6-
width: 100%;
7-
margin-bottom: 32px;
5+
&& {
6+
display: inline-block;
7+
width: 100%;
8+
margin-bottom: 32px;
9+
}
810
`;
911

1012
export const CenteredPageParagraph = styled(PageParagraph)`
11-
text-align: center;
13+
&& {
14+
text-align: center;
15+
}
1216
`;

src/styled-components/page-title.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ import styled from 'styled-components/macro';
22
import { Sidetittel, Innholdstittel } from 'nav-frontend-typografi';
33

44
export const PageTitle = styled(Sidetittel)`
5-
margin-top: 0;
6-
margin-bottom: 32px;
5+
&& {
6+
margin-top: 0;
7+
margin-bottom: 32px;
8+
}
79
`;
810

911
export const CenteredPageTitle = styled(PageTitle)`
10-
text-align: center;
12+
&& {
13+
text-align: center;
14+
}
1115
`;
1216

1317
export const CenteredPageSubTitle = styled(Innholdstittel)`
14-
margin-bottom: 32px;
15-
text-align: center;
18+
&& {
19+
margin-bottom: 32px;
20+
text-align: center;
21+
}
1622
`;

src/styled-components/section-title.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import styled from 'styled-components/macro';
22
import { Undertittel } from 'nav-frontend-typografi';
33

44
export const SectionTitle = styled(Undertittel)`
5-
margin-top: 0;
6-
margin-bottom: 32px;
5+
&& {
6+
margin-top: 0;
7+
margin-bottom: 32px;
8+
}
79
`;

0 commit comments

Comments
 (0)