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.
96 lines
2.1 KiB
96 lines
2.1 KiB
body {
|
|
font-size: medium;
|
|
padding: 1em;
|
|
max-width: 1280px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 1.5em;
|
|
}
|
|
|
|
img, video { max-width: 100% }
|
|
|
|
#landing { display: none; text-decoration: underline }
|
|
|
|
@media (orientation: portrait) {
|
|
#landing.active { display: block }
|
|
}
|
|
|
|
header {
|
|
flex-shrink: 0;
|
|
& > nav {
|
|
display: flex;
|
|
font-size: xx-large;
|
|
position: sticky;
|
|
top: 1em;
|
|
flex-wrap: wrap;
|
|
& a {
|
|
text-decoration: none;
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
& > menu {
|
|
padding: 0;
|
|
margin: 0;
|
|
/* turn the menu into a dynamic one for highly vertical devices */
|
|
@media (orientation: portrait) {
|
|
& li { transition: display 3s ease; visibility: collapse }
|
|
/* TODO: try this
|
|
transition: opacity 1s ease-out;
|
|
opacity: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
TO
|
|
opacity: 1;
|
|
height: auto;
|
|
*/
|
|
& li.active { visibility: inherit }
|
|
&:hover li { visibility: initial }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
main { flex: 1 }
|
|
|
|
/* used mostly by .zs/index, should maybe class it? */
|
|
ul { padding-left: 0 }
|
|
|
|
#post-index + ul li, #projects + 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) }
|