1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 10:18:27 -04:00
jarv.is/components/page-header/Menu.module.css
Jake Jarvis 41d2b8c64b
scss ➡️ vanilla css (#727)
* scss isn't worth the technical/mental overhead anymore

* try to translate my old Hugo pygments themes

* update lockfile

* consolidate .hljs classes
2022-01-07 16:17:14 -05:00

68 lines
908 B
CSS

.menu {
list-style: none;
display: flex;
align-items: center;
margin: 0;
padding: 0;
}
.item {
margin-left: 1.8em;
display: inline-flex;
}
.item .link {
display: inline-flex;
align-items: center;
color: var(--medium-dark);
background: none;
padding-bottom: 0;
}
.item .link:hover {
color: var(--link);
}
.item .icon {
width: 1.6em;
height: 1.6em;
}
.item .text {
font-size: 0.95em;
font-weight: 500;
margin-top: 0.125em;
margin-left: 0.75em;
}
.theme_toggle {
margin-left: 1.25em;
}
@media screen and (max-width: 768px) {
.menu {
max-width: 320px;
margin-left: 20px;
justify-content: space-between;
flex-grow: 1;
}
.item {
margin-left: 0;
}
.item .icon {
width: 1.8em;
height: 1.8em;
}
/* hide text next to emojis on mobile */
.item .text {
display: none;
}
.theme_toggle {
margin-left: -0.3em;
}
}