2023-01-31 16:53:34 +01:00
|
|
|
@use '../config';
|
2023-01-12 20:54:24 +01:00
|
|
|
@use 'sass:math';
|
|
|
|
@use 'sass:color';
|
|
|
|
@use 'sass:list';
|
|
|
|
@use '../functions';
|
2023-01-12 19:19:42 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
$sl-color--hopbush: #c69 !default;
|
|
|
|
$sl-color--bouquet: #b37399 !default;
|
|
|
|
$sl-color--venus: #998099 !default;
|
|
|
|
$sl-color--patina: #699 !default;
|
|
|
|
$sl-color--nebula: #d2e1dd !default;
|
2023-01-09 23:19:15 +01:00
|
|
|
$sl-color--white: white !default;
|
2023-01-09 20:10:02 +01:00
|
|
|
$sl-color--dawn-pink: #f2ece4 !default;
|
|
|
|
$sl-color--wafer: #e1d7d2 !default;
|
|
|
|
$sl-color--iron: #dadbdf !default;
|
|
|
|
$sl-color--regent-grey: #808c99 !default;
|
|
|
|
$sl-color--pale-sky: #6b717f !default;
|
|
|
|
$sl-color--midnight-blue: #036 !default;
|
2023-01-06 22:40:29 +01:00
|
|
|
$sl-colors: (
|
2023-01-09 20:10:02 +01:00
|
|
|
hopbush: $sl-color--hopbush,
|
|
|
|
bouquet: $sl-color--bouquet,
|
|
|
|
venus: $sl-color--venus,
|
|
|
|
patina: $sl-color--patina,
|
|
|
|
nebula: $sl-color--nebula,
|
|
|
|
white: $sl-color--white,
|
|
|
|
dawn-pink: $sl-color--dawn-pink,
|
|
|
|
wafer: $sl-color--wafer,
|
|
|
|
iron: $sl-color--iron,
|
|
|
|
regent-grey: $sl-color--regent-grey,
|
|
|
|
pale-sky: $sl-color--pale-sky,
|
2023-01-06 22:40:29 +01:00
|
|
|
midnight-blue: $sl-color--midnight-blue,
|
|
|
|
);
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
@each $name, $value in $sl-colors {
|
|
|
|
// to avoid Sass yelling at using 'white' or 'black' as a color name
|
|
|
|
.sl-background--#{'' + $name} {
|
2023-01-06 22:40:29 +01:00
|
|
|
background: $value;
|
|
|
|
}
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
// to avoid Sass yelling at using 'white' or 'black' as a color name
|
|
|
|
.sl-color--#{'' + $name} {
|
2023-01-06 22:40:29 +01:00
|
|
|
color: $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
2023-02-20 20:21:30 +01:00
|
|
|
@include config.tokens(config.$brand-colors);
|
2023-02-22 17:42:04 +01:00
|
|
|
@include config.tokens(config.$content-colors, 'sl-');
|
2023-02-21 20:51:32 +01:00
|
|
|
@include config.tokens(config.$scale, 'sl-');
|
2023-01-31 07:13:57 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
background: #f8f9fa
|
|
|
|
url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23f1f3f5' fill-opacity='0.47' fill-rule='evenodd'/%3E%3C/svg%3E");
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: transparent;
|
|
|
|
color: $sl-color--pale-sky;
|
|
|
|
}
|
|
|
|
|
|
|
|
::selection {
|
|
|
|
background: $sl-color--iron;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2023-02-21 20:51:32 +01:00
|
|
|
border-bottom: var(--sl-border--small) solid rgba($sl-color--iron, 0.5);
|
2023-02-22 17:11:29 +01:00
|
|
|
background: var(--color-link-bg, transparent);
|
2023-01-06 22:40:29 +01:00
|
|
|
color: $sl-color--midnight-blue;
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
.c1 & {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-02-22 17:42:04 +01:00
|
|
|
--color-link-bg: var(--sl-color-link--action);
|
2023-02-22 17:11:29 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
border-bottom-color: rgba($sl-color--iron, 0.75);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
&:active {
|
|
|
|
border-bottom-color: $sl-color--iron;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
code,
|
|
|
|
pre {
|
2023-02-21 20:51:32 +01:00
|
|
|
border-radius: var(--sl-border-radius--small);
|
2023-02-22 17:42:04 +01:00
|
|
|
color: var(--sl-color-code--text);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
a & {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
2023-02-21 20:51:32 +01:00
|
|
|
border: var(--sl-border--small) solid #ebebeb;
|
2023-01-09 20:10:02 +01:00
|
|
|
background: rgba($sl-color--midnight-blue, 0.0625);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|