Skip to content

Commit 94520e7

Browse files
committed
style: improve feature grid space utilization
It should now use space more effectively rather than leaving a bunch of empty space on larger screens.
1 parent badf29d commit 94520e7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/pages/index.astro

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -585,22 +585,22 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
585585
margin-top: 0px;
586586
}
587587
.grid {
588+
--cell-width: calc(5rem + 18vw);
588589
display: grid;
589-
grid-template-columns: repeat(auto-fill, minmax(23em, 1fr));
590+
grid-template-columns: repeat(auto-fill, minmax(var(--cell-width), 1fr));
591+
gap: 2vw;
590592
width: 100%;
593+
height: 100%;
591594
margin: 0.5rem;
592-
justify-items: stretch;
595+
padding: 0px 0px 3rem 0px;
593596
overflow-y: auto;
594597
max-height: 100%;
595598

596599
& > div {
600+
width: var(--cell-width);
601+
margin: auto;
602+
font-size: calc(0.7rem + 0.4vw);
597603
text-align: center;
598-
padding: 0.5em 0.5em;
599-
border-radius: 1em;
600-
box-shadow:
601-
var(--glow-color) 0px 0px 0.3em 0.1em,
602-
var(--glow-color) 0px 0px 0.3em 0.1em inset;
603-
box-sizing: border-box;
604604

605605
:global(i) {
606606
margin: auto;
@@ -615,7 +615,7 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
615615
margin: 0.2em auto;
616616
}
617617
p {
618-
margin: 0px;
618+
margin: auto;
619619
}
620620
}
621621
}
@@ -837,6 +837,9 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
837837
font-size: 0.7em;
838838
}
839839
}
840+
section#features .grid {
841+
grid-template-columns: 1fr;
842+
}
840843
}
841844

842845
@media screen and (orientation: portrait) {

0 commit comments

Comments
 (0)