Skip to content

Commit e8e223e

Browse files
committed
Simplify row styles
1 parent 32cafa0 commit e8e223e

File tree

3 files changed

+16
-54
lines changed

3 files changed

+16
-54
lines changed

src/styles/components/CheckList.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010

1111
> li {
1212
break-inside: avoid;
13-
margin-bottom: var(--space-xs);
13+
margin-bottom: var(--space-3xs) !important;
1414

1515
display: flex;
1616
flex-direction: row;
1717

18+
@media (min-width: vars.$mobile) {
19+
margin-bottom: var(--space-2xs) !important;
20+
}
21+
1822
&:hover {
1923
.check_list__marker {
2024
color: var(--apsis_green);
Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
@use "styles/vars";
22

33
.row {
4-
padding: 0 var(--space-m);
5-
margin: 0 calc(-1 * var(--space-m));
64
display: flex;
75
flex-direction: column;
86

7+
padding: 0 var(--space-m);
8+
margin: 0 calc(-1 * var(--space-m));
9+
margin-bottom: var(--space-xl);
10+
911
& > * {
12+
flex: 1;
1013
margin-bottom: var(--space-m);
1114

1215
&:last-child {
@@ -16,20 +19,14 @@
1619

1720
@media (min-width: vars.$tablet) {
1821
flex-direction: row;
19-
justify-content: space-between;
20-
flex-wrap: wrap;
22+
margin-bottom: var(--space-2xl);
2123

2224
& > * {
23-
flex: 0 calc(50% - var(--space-s));
24-
margin-right: var(--space-s);
25-
26-
&:nth-child(2n) {
27-
margin-right: 0;
28-
}
25+
margin-bottom: 0;
26+
}
2927

30-
&:last-child {
31-
margin-bottom: var(--space-m);
32-
}
28+
&--reverse {
29+
flex-direction: row-reverse;
3330
}
3431

3532
&--top {
@@ -44,49 +41,10 @@
4441
align-items: flex-end;
4542
}
4643

47-
&--reverse {
48-
flex-direction: row-reverse;
49-
50-
& > * {
51-
margin-right: 0;
52-
53-
&:nth-child(2n) {
54-
margin-right: var(--space-s);
55-
}
56-
}
57-
}
58-
5944
&--narrow {
6045
max-width: calc(var(--site_width) * 0.75);
6146
margin-left: auto;
6247
margin-right: auto;
6348
}
6449
}
65-
66-
@media (min-width: vars.$desktop) {
67-
& > * {
68-
flex: 1;
69-
margin-bottom: 0;
70-
margin-right: var(--space-l);
71-
72-
&:nth-child(2n) {
73-
margin-right: var(--space-l);
74-
}
75-
76-
&:last-child {
77-
margin-right: 0;
78-
margin-bottom: 0;
79-
}
80-
}
81-
82-
&--reverse {
83-
& > * {
84-
margin-right: 0;
85-
86-
&:nth-child(2n) {
87-
margin-right: var(--space-l);
88-
}
89-
}
90-
}
91-
}
9250
}

src/styles/components/ServiceRow.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $variant_colors: (
3939
}
4040

4141
&__image {
42-
width: 50%;
42+
width: 80%;
4343
max-width: 220px;
4444
}
4545

0 commit comments

Comments
 (0)