Skip to content

Commit 395363c

Browse files
author
LinuxJava7
committed
switch tiles to flex
1 parent c05d6b6 commit 395363c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

style.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,16 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
155155
grid-column: main;
156156
}
157157

158-
/* Tiles Grid */
158+
/* Tiles */
159159
.tiles {
160-
display: grid;
161-
grid-template-columns: repeat(2, minmax(0, 1fr));
162-
gap: 1.5rem;
163-
margin: 1rem 0 3rem;
164-
width: 100%;
160+
display: flex;
161+
flex-wrap: wrap;
162+
column-gap: 20px;
163+
row-gap: 20px;
164+
padding: 20px;
165+
justify-content: center;
166+
align-content: center;
167+
transition: all 300ms var(--slickease);
165168
}
166169

167170
.tiles:has(> :only-child) {
@@ -187,6 +190,9 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
187190
box-sizing: border-box;
188191
min-width: 0;
189192
overflow: hidden;
193+
194+
flex: 1;
195+
min-width: 350px;
190196
}
191197

192198
.tile * {
@@ -512,7 +518,7 @@ footer {
512518
}
513519

514520
.tile {
515-
grid-template-columns: 1fr;
521+
min-width: 100%;
516522
}
517523

518524
.tile .description {

0 commit comments

Comments
 (0)