Skip to content

Commit 64a3ec7

Browse files
committed
Better layout using flexbox instead of grid.
1 parent be92abd commit 64a3ec7

File tree

2 files changed

+11
-40
lines changed

2 files changed

+11
-40
lines changed

FrontEnd/styles/supporters.scss

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,23 @@
2323

2424
section {
2525
ul {
26-
display: grid;
27-
gap: 20px;
28-
row-gap: 40px;
26+
display: flex;
27+
flex-wrap: wrap;
28+
gap: 30px 70px;
29+
justify-content: center;
2930
margin: 60px 0;
3031
padding: 0;
3132

3233
li {
33-
display: flex;
3434
list-style: none;
3535

3636
> a {
3737
display: flex;
3838
align-items: center;
3939
}
4040

41-
&:last-child:nth-child(odd) {
42-
grid-column: span 2;
43-
justify-self: center;
44-
}
45-
4641
@media screen and (max-width: $mobile-breakpoint) {
47-
justify-content: center;
42+
width: 100%;
4843
}
4944
}
5045
}
@@ -60,32 +55,13 @@
6055
}
6156
}
6257

63-
&.corporate,
64-
&.infrastructure {
65-
ul {
66-
grid-template-columns: 1fr 1fr;
67-
68-
li {
69-
justify-content: center;
70-
}
71-
72-
&.solo {
73-
grid-template-columns: 1fr;
74-
}
75-
}
76-
77-
@media screen and (max-width: $mobile-breakpoint) {
78-
ul {
79-
grid-template-columns: 1fr;
80-
}
81-
}
82-
}
83-
8458
&.community {
8559
ul {
86-
grid-template-columns: 1fr 1fr 1fr;
60+
justify-content: flex-start;
61+
62+
> li {
63+
width: calc(100% / 3 - 70px);
8764

88-
li {
8965
a:not(:hover) {
9066
color: var(--page-text);
9167
}
@@ -103,6 +79,8 @@
10379
}
10480

10581
@media screen and (max-width: $mobile-breakpoint) {
82+
width: 50%;
83+
10684
img {
10785
margin: 0;
10886
}
@@ -120,12 +98,6 @@
12098
}
12199
}
122100
}
123-
124-
@media screen and (max-width: $mobile-breakpoint) {
125-
ul {
126-
grid-template-columns: 1fr 1fr;
127-
}
128-
}
129101
}
130102
}
131103

Sources/App/Views/Supporters/SupportersShow+Model.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ enum SupportersShow {
5353
.class("corporate"),
5454
.h3("Corporate Supporters"),
5555
.ul(
56-
.class("solo"),
5756
Supporters.primary.listNode
5857
),
5958
.ul(

0 commit comments

Comments
 (0)