You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.5 KiB

body {
font-size: medium;
display: flex;
padding: 1em;
max-width: 1280px;
}
header {
flex-shrink: 0;
& > nav {
display: flex;
font-size: xx-large;
& a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
& > menu {
padding: 0;
margin: 0;
/* TODO: go vertical / dropdown on small screens
& li { display: none }
& li.active { display: inherit }
&:hover li {
transition: display 1s ease-in-out;
display: block;
}
*/
}
}
}
main {
padding-left: 1.5rem;
}
/* used mostly by .zs/index */
ul li {
display: flex;
align-items: baseline;
& span {
min-width: 5em;
text-align: right;
padding-right: 1rem;
line-height: 1.5rem;
font-size: smaller;
}
& a {
font-size: larger;
}
}
a { color: inherit }
li { list-style: none }
:root {
--red: #f21332;
--orange: #f27225;
--pink: #e20b88;
--yellow: #f2ad24;
--green: #00b249;
--blue: #1844b5;
--purple: #a033b3;
}
li:nth-of-type(6n + 1):hover, li.active:nth-of-type(6n + 1) { color: var(--red) }
li:nth-of-type(6n + 2):hover, li.active:nth-of-type(6n + 2) { color: var(--orange) }
li:nth-of-type(6n + 3):hover, li.active:nth-of-type(6n + 3) { color: var(--pink) }
li:nth-of-type(6n + 4):hover, li.active:nth-of-type(6n + 4) { color: var(--green) }
li:nth-of-type(6n + 5):hover, li.active:nth-of-type(6n + 5) { color: var(--blue) }
li:nth-of-type(6n + 6):hover, li.active:nth-of-type(6n + 6) { color: var(--purple) }