update command layout and various styles

This commit is contained in:
Cade Scroggins
2022-11-16 15:29:05 -08:00
parent e165b23b46
commit ac6da98f0b
+17 -58
View File
@@ -128,6 +128,10 @@
suggestions: ['y/feed/trending'], suggestions: ['y/feed/trending'],
url: 'https://youtube.com/feed/subscriptions', url: 'https://youtube.com/feed/subscriptions',
}, },
'First time here?': {
name: 'README.md',
url: 'https://read.xvvvyz.xyz/xvvvyz/tilde/main/README.md',
},
}; };
</script> </script>
@@ -140,7 +144,7 @@
Ubuntu, Roboto, Noto, Segoe UI, Arial, sans-serif; Ubuntu, Roboto, Noto, Segoe UI, Arial, sans-serif;
--font-size-1: 1rem; --font-size-1: 1rem;
--font-size-2: 3rem; --font-size-2: 3rem;
--font-size-base: 105%; --font-size-base: 100%;
--font-weight-bold: 700; --font-weight-bold: 700;
--font-weight-normal: 400; --font-weight-normal: 400;
--line-height-base: 1.4; --line-height-base: 1.4;
@@ -174,9 +178,13 @@
<template id="commands-template"> <template id="commands-template">
<style> <style>
.commands { .commands {
display: grid; align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none; list-style: none;
margin: 0; margin: 0 auto;
max-width: 55rem;
padding: 0; padding: 0;
} }
@@ -188,77 +196,28 @@
color: inherit; color: inherit;
display: flex; display: flex;
outline: 0; outline: 0;
padding: var(--space-1) var(--space-2); padding: var(--space-1);
text-decoration: none; text-decoration: none;
transition: color var(--transition-speed);
} }
.key { .key {
color: var(--color-text-subtle); color: var(--color-text-subtle);
width: 1ch; transition: inherit;
} }
.name { .name {
margin-left: var(--space-2); margin-left: var(--space-1);
transition: color var(--transition-speed); transition: inherit;
} }
.command:hover .key, .command:hover .key,
.command:hover .name { .command:hover .name {
color: var(--color-text); color: var(--color-text);
} }
.help {
bottom: 0;
color: var(--color-text-subtle);
display: none;
padding: var(--space-1) var(--space-2);
position: fixed;
right: 0;
}
.readme {
color: var(--color-text);
}
@media (min-width: 500px) {
.commands {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 700px) {
.commands {
grid-template-columns: repeat(3, 1fr);
}
.help {
display: block;
}
}
@media (min-width: 900px) {
.commands {
grid-template-columns: repeat(4, 1fr);
}
}
@media (min-width: 1100px) {
.commands {
grid-template-columns: repeat(5, 1fr);
}
}
</style> </style>
<nav> <nav>
<menu class="commands"></menu> <menu class="commands"></menu>
<p class="help">
First time here?
<a
class="readme"
href="https://read.xvvvyz.xyz/xvvvyz/tilde/main/README.md"
>
README.md
</a>
</p>
</nav> </nav>
</template> </template>
@@ -355,7 +314,7 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
list-style: none; list-style: none;
margin: var(--space-2) 0 0; margin: var(--space-1) 0 0;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
} }