@use "../abstracts/themes"; @use "../abstracts/functions" as *; // Colorful Homepage $colors-home: ( boston: ( light: #fb4d42, dark: #ff5146, ), js-vanilla: ( light: #f48024, dark: #e18431, ), js-frameworks: ( light: #1091b3, dark: #6fcbe3, ), jamstack: ( light: #04a699, dark: #08bbac, ), node: ( light: #6fbc4e, dark: #84d95f, ), golang: ( light: #00acd7, dark: #2ad1fb, ), php: ( light: #8892bf, dark: #a4afe3, ), ruby: ( light: #d34135, dark: #f95a4d, ), python: ( light: #fea500, dark: #ffbb3c, ), infosec: ( light: #00b81a, dark: #57f06d, ), server: ( light: #0098ec, dark: #43b9fb, ), devops: ( light: #ff6200, dark: #f46c16, ), frontend: ( light: #4169e1, dark: #8ca9ff, ), backend: ( light: #9932cc, dark: #d588fb, ), birthday: ( light: #e40088, dark: #fd40b1, ), github: ( light: #8d4eff, dark: #a379f0, ), linkedin: ( light: #0073b1, dark: #3b9dd2, ), twitter: ( light: #00acee, dark: #3bc9ff, ), email: ( light: #de0c0c, dark: #ff5050, ), pgp: ( light: #757575, dark: #959595, ), sms: ( light: #6fcc01, dark: #8edb34, ), news-1: ( light: #ff1b1b, dark: #f06060, ), news-2: ( light: #f78200, dark: #fd992a, ), news-3: ( light: #f2b702, dark: #ffcc2e, ), news-4: ( light: #5ebd3e, dark: #78df55, ), news-5: ( light: #009cdf, dark: #29bfff, ), news-6: ( light: #3e49bb, dark: #7b87ff, ), news-7: ( light: #973999, dark: #db60dd, ), ); $color-serverless: #87cef7; $icon-wand: 'data:image/svg+xml;charset=utf-8,'; // ---------------- // Home Styles div.layout-home { font-size: 1em; padding-top: 1.2em; padding-bottom: 0.6em; h1 { margin: 0 0 0.3em 0; font-size: 1.8em; font-weight: 500; letter-spacing: -0.014em; margin-left: -0.03em; // TODO: why is this indented slightly? img.emoji { margin-left: 0.1em; // a little extra social distancing for the hand } } h2 { margin: 0.5em 0; font-size: 1.35em; font-weight: 400; letter-spacing: -0.022em; margin-left: -0.03em; // TODO: why is this indented slightly? line-height: 1.4; } p { margin: 0.85em 0; letter-spacing: -0.009em; line-height: 1.7; } sup { letter-spacing: normal; position: relative; &#key { font-size: 0.65em; word-spacing: -0.3em; margin-right: 0.1em; img.emoji { vertical-align: -0.2em; // magic number to align with text :\ padding: 0; } } } // easter egg emoji cursor a#birthday { &:hover { cursor: url($icon-wand) 0 0, auto; } } // non-link colors span { &#serverless { color: $color-serverless; } &#shh { @include themes.themed(color, "medium-light"); } &.wave { margin-left: 2px; } } } // Loop through $colors-home (see abstracts/_variables) @each $id, $colors in $colors-home { @each $theme, $color in $colors { @at-root body.#{$theme} div.layout-home a##{$id} { color: $color; background-image: underline-hack($color); } } } // Responsive @mixin responsive() { div.layout-home { font-size: 0.975em; padding-top: 1em; padding-bottom: 0.2em; h1 { font-size: 1.5em; letter-spacing: -0.014em; line-height: 1.7; } h2 { font-size: 1.185em; letter-spacing: -0.017em; line-height: 1.6; } p { letter-spacing: -0.012em; } } }