|
1 | 1 | @import "plugins/themes"; |
| 2 | + |
| 3 | +.markdown { |
| 4 | + h1, h2, h3, h4, h5, h6 { |
| 5 | + font-weight: bold; |
| 6 | + } |
| 7 | + |
| 8 | + h1 { |
| 9 | + font-size: 24pt; |
| 10 | + } |
| 11 | + |
| 12 | + h2 { |
| 13 | + font-size: 20pt; |
| 14 | + } |
| 15 | + |
| 16 | + h3 { |
| 17 | + font-size: 18pt; |
| 18 | + } |
| 19 | +} |
| 20 | + |
| 21 | +// custom apollo theme, based on upstream defaults, with some changes to accomodate our branding |
| 22 | +@mixin theme-apollo-light { // made to look like 'browser default' |
| 23 | + --body-background: white; |
| 24 | + --body-background-tint: none; |
| 25 | + --body-font-color: black; |
| 26 | + |
| 27 | + --color-link: hsl(278.18182, 96%, 34%); |
| 28 | + --color-visited-link: hsl(256, 96%, 38%); |
| 29 | + |
| 30 | + --icon-filter: none; |
| 31 | + |
| 32 | + --gray-100: #f8f9fa; |
| 33 | + --gray-200: #e9ecef; |
| 34 | + --gray-500: #adb5bd; |
| 35 | + |
| 36 | + @include accent("default", hsl(279, 96, 45)); |
| 37 | + @include accent("note", #4486dd); |
| 38 | + @include accent("tip", #3bad3b); |
| 39 | + @include accent("important", #8144dd); |
| 40 | + @include accent("warning", #f59e42); |
| 41 | + @include accent("caution", #d84747); |
| 42 | + |
| 43 | + // Fallback for {{< hint >}} shortcodes |
| 44 | + @include accent("info", #4486dd); |
| 45 | + @include accent("success", #3bad3b); |
| 46 | + @include accent("danger", #d84747); |
| 47 | +} |
| 48 | + |
| 49 | +@mixin theme-apollo-dark { // based on https://www.nordtheme.com/ |
| 50 | + --body-background: hsl(270, 9%, 9%); |
| 51 | + --body-background-tint: none; |
| 52 | + |
| 53 | + --body-font-color: #ffffff; |
| 54 | + |
| 55 | + --color-link: hsl(279, 79%, 80%); |
| 56 | + --color-visited-link: hsl(239, 94%, 83%); |
| 57 | + |
| 58 | + --icon-filter: brightness(0) invert(1); |
| 59 | + |
| 60 | + --gray-100: hsl(270, 9%, 14%); |
| 61 | + --gray-200: hsl(270, 9%, 18%); |
| 62 | + --gray-500: hsl(270, 9%, 22%); |
| 63 | + |
| 64 | + @include accent("default", hsl(196, 87%, 60%)); |
| 65 | + @include accent("note", hsl(204, 100%, 65%)); |
| 66 | + @include accent("tip", hsl(103, 100%, 59%)); |
| 67 | + @include accent("important", hsl(301, 100%, 64%)); |
| 68 | + @include accent("warning", hsl(13, 100%, 66%)); |
| 69 | + @include accent("caution", hsl(354, 100%, 62%)); |
| 70 | + |
| 71 | + // Fallback for {{< hint >}} shortcodes |
| 72 | + @include accent("info", hsl(204, 100%, 65%)); |
| 73 | + @include accent("success", hsl(103, 74%, 49%)); |
| 74 | + @include accent("danger", hsl(354, 71%, 52%)); |
| 75 | +} |
| 76 | + |
| 77 | +@mixin theme-apollo-auto { |
| 78 | + @include theme-apollo-light; |
| 79 | + |
| 80 | + @media (prefers-color-scheme: dark) { |
| 81 | + @include theme-apollo-dark; |
| 82 | + } |
| 83 | +} |
0 commit comments