diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index d73f5da0..9ca7f8c5 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -4,14 +4,21 @@ diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 9032c01b..e4c36045 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -28,3 +28,41 @@ div.site-logo { width: 100%; color: $body-text-color; } + +//Dark mode link styles +html[data-theme="dark"] { + .main-header a, + .main-header button, + .side-bar a { + color: $link-color-dark; + } + + main a, + footer a { + color: $link-color-dark; + text-decoration: underline; + text-decoration-color: $link-color-dark; + text-decoration-thickness: 1px; + transition: + text-decoration-thickness 0.2s ease-in-out, + text-underline-offset 0.2s ease-in-out; + } + + main a:hover, + footer a:hover { + text-decoration-color: $link-color-dark; + text-decoration-thickness: 2px; + text-underline-offset: 3px; + } +} + +//Label colors +main { + .label-green { + background-color: $label-success-bg; + } + + .label-red { + background-color: $label-error-bg; + } +} diff --git a/docs/_sass/custom/setup.scss b/docs/_sass/custom/setup.scss new file mode 100644 index 00000000..98e97982 --- /dev/null +++ b/docs/_sass/custom/setup.scss @@ -0,0 +1,9 @@ +// Color palette +$blue-400: #4da6ff; +$green-700: #00755c; +$red-600: #d13c3c; + +// Semantic mappings +$link-color-dark: $blue-400; +$label-success-bg: $green-700; +$label-error-bg: $red-600;