flex -> grid
This commit is contained in:
+13
-8
@@ -25,7 +25,7 @@
|
|||||||
--color-text-subtle: #888;
|
--color-text-subtle: #888;
|
||||||
--color-text: #ccc;
|
--color-text: #ccc;
|
||||||
--font-family: SpaceGrotesk, -apple-system, Helvetica, sans-serif;
|
--font-family: SpaceGrotesk, -apple-system, Helvetica, sans-serif;
|
||||||
--font-size: clamp(16px, 1.3vw, 18px);
|
--font-size: clamp(16px, 1.5vw, 18px);
|
||||||
--transition-speed: 200ms;
|
--transition-speed: 200ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,19 +80,24 @@
|
|||||||
|
|
||||||
<template id="commands-template">
|
<template id="commands-template">
|
||||||
<style>
|
<style>
|
||||||
.commands {
|
nav {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
list-style: none;
|
min-height: 100dvh;
|
||||||
margin: 0;
|
|
||||||
min-height: 100vh;
|
|
||||||
padding: 4rem 0;
|
padding: 4rem 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.commands {
|
||||||
|
display: inline-grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.command {
|
.command {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
@@ -130,9 +135,9 @@
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 65rem) {
|
@media (min-width: 35rem) {
|
||||||
.commands {
|
.commands {
|
||||||
flex-direction: row;
|
grid-template-columns: repeat(7, 1fr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user