Skip to content

Commit 7aef3a4

Browse files
committed
fiks av styling
1 parent 88a7032 commit 7aef3a4

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

packages/nextjs/src/components/_common/illustration/Illustration.module.scss

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
display: flex;
44
justify-content: center;
55
align-items: center;
6+
width: 100%;
7+
height: 100%;
8+
min-width: 4rem;
9+
min-height: 4rem;
610

711
&:empty {
812
display: none;

packages/nextjs/src/components/pages/contact-step-page/ContactStepPage.module.scss

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
1-
@use 'common' as common;
2-
31
.contactStepPage {
42
padding-bottom: 1rem;
5-
display: grid;
6-
row-gap: var(--a-spacing-5);
3+
row-gap: var(--a-spacing-2);
4+
column-gap: var(--a-spacing-2);
75
margin: 1.25rem auto var(--a-spacing-10);
6+
display: grid;
7+
grid-template-columns: 1fr 40rem 1fr;
88
grid-template-areas:
9-
'header'
10-
'content'
11-
'backLink';
9+
'pictogram header .'
10+
'. content .'
11+
'. backLink .';
1212

13-
@media #{common.$mq-screen-tablet-and-desktop} {
14-
grid-template-columns: 1fr 40rem 1fr;
13+
@media only screen and (max-width: 1024px) {
14+
grid-template-columns: none;
1515
grid-template-areas:
16-
'pictogram header .'
16+
'. pictogram .'
17+
'. header .'
1718
'. content .'
1819
'. backLink .';
19-
column-gap: var(--a-spacing-10);
2020
}
2121
.pictogram {
2222
grid-area: pictogram;
23-
display: none;
23+
display: block;
24+
justify-self: end;
25+
width: 4.5rem;
26+
height: auto;
27+
position: relative;
28+
display: block;
29+
align-self: flex-start;
2430

25-
@media #{common.$mq-screen-tablet-and-desktop} {
26-
display: block;
27-
width: 7rem;
28-
justify-self: end;
31+
@media only screen and (max-width: 1024px) {
32+
width: 4rem;
33+
justify-self: start;
2934
}
3035
}
3136
.header {
@@ -34,11 +39,6 @@
3439

3540
.content {
3641
grid-area: content;
37-
max-width: 40rem;
38-
39-
& > * {
40-
border-radius: common.$border-radius-large;
41-
}
4242

4343
.linkPanels {
4444
display: flex;
@@ -48,7 +48,7 @@
4848
padding: 0;
4949

5050
.linkPanel {
51-
border-radius: common.$border-radius-large;
51+
border-radius: 6px;
5252
border: 1px solid var(--a-border-subtle);
5353

5454
& :global {
@@ -60,6 +60,7 @@
6060
}
6161
}
6262
}
63+
6364
.backLink {
6465
grid-area: backLink;
6566
}

0 commit comments

Comments
 (0)