@import "colors"; @import "fonts"; body { font-family: $font-reg; background-color: $bg; color: $fg; display: flex; flex-direction: column; align-items: flex-start; max-width: 920px; margin: 0 auto; padding: 0 1rem; } a { color: $green; text-decoration: none; } a:visited { color: $cyan; } a:hover { text-decoration: underline; } nav { width: 100%; text-align: right; margin: 1rem 0; a { font-size: 2rem; padding-right: 1rem; } a:visited { color: $green; } } hr { width: 100%; } time { color: #c7c7c7; margin: 0.5rem 0; } article { line-height: 1.3; max-width: 720px; } .prompt { font-family: $font-mono; font-weight: 500; font-size: 2.5rem; } .link-label { color: #c7c7c7; margin-left: 5rem; } #index-content { font-size: 1.2rem; } @mixin link($name, $icon, $color) { .#{$name} div { mask: url($icon) no-repeat center; -webkit-mask: url($icon) no-repeat center; } a.#{$name}:hover { color: $color; div { background-color: $color; } } } #links { display: flex; flex-direction: column; margin-bottom: 2rem; @include link(mastodon, "mastodon.svg", $cyan); @include link(srht, "sourcehut.svg", $purple); @include link(email, "envelope.svg", $green); @include link(gpg, "key.svg", $orange); a { font-size: 2.5rem; color: $fg; line-height: 1.5; div { margin: 0 1rem; height: 3rem; width: 3rem; display: inline-block; vertical-align: text-top; background-color: $fg; } } } #rss-link { width: 100%; display: flex; a { margin-left: auto; } } @media (max-width: 700px) { .prompt { font-size: 6vw; } #links { span { font-size: 3vw; } a { font-size: 6vw; div { height: 6vw; width: 6vw; } } } .link-label { margin-left: 14vw; } } @media (max-width: 575px) { #links a { font-size: 5vw; } .prompt { font-size: 5vw; } }