diff --git a/style.css b/style.css index c54a2e1..0e47082 100644 --- a/style.css +++ b/style.css @@ -3,32 +3,18 @@ body { 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 } -} - -@media (orientation: portrait) { - main { - min-width: fit-content - } + gap: 2em; } header { - flex-shrink: 0; + background: white; + position: sticky; + top: 1em; & > nav { + background: white; + position: sticky; display: flex; font-size: xx-large; - position: sticky; - top: 1em; flex-wrap: wrap; & a { text-decoration: none; @@ -39,31 +25,64 @@ header { & > 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 } +main { + flex: 1; +} + +/* single element niceties */ +a { color: inherit } +img, video { max-width: 100% } +li { list-style: none } + +/* the /??? which shows in the nav on the homepage */ +#landing { + display: none; + text-decoration: underline; +} + +/* turn the menu into a dynamic one for highly vertical devices */ +@media (orientation: portrait) { + #landing.active { + display: block; + } + main { + min-width: fit-content; + } + header { + max-height: 2em; + & > menu { + & li { + transition: display 3s ease; + visibility: collapse; + display: none; + } + & li.active { + visibility: inherit; + display: block; + } + &:hover li { + visibility: initial; + display: block; + } + } + } + body { + flex-direction: column; + } +} /* used mostly by .zs/index, should maybe class it? */ -ul { padding-left: 0 } +ul { + padding-left: 0; +} -#post-index + ul li, #projects + ul li { +/* lists that have optional dates associated with them */ +#post-index + ul li, +#projects + ul li { display: flex; align-items: baseline; @@ -80,9 +99,6 @@ ul { padding-left: 0 } } } -a { color: inherit } -li { list-style: none } - :root { --red: #f21332; --orange: #f27225; @@ -93,9 +109,27 @@ li { list-style: none } --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) } +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); +}