-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathcore.scss
76 lines (67 loc) · 2 KB
/
core.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@charset "UTF-8";
@use "sass:map";
@use "jkl";
@use "jkl/typography";
@use "styles";
/* Used by menu to figure out if it should render a compact or comfortable view */
@include jkl.comfortable-density-variables {
--jkl-density: "comfortable";
}
@include jkl.compact-density-variables {
--jkl-density: "compact";
}
@include jkl.light-mode-variables {
--jkl-background-color: #{jkl.$color-snohvit};
--jkl-color: #{jkl.$color-granitt};
--jkl-error: #{jkl.$color-feil};
--jkl-info: #{jkl.$color-info};
--jkl-warning: #{jkl.$color-advarsel};
--jkl-success: #{jkl.$color-suksess};
}
@include jkl.dark-mode-variables {
--jkl-background-color: #{jkl.$color-granitt};
--jkl-color: #{jkl.$color-snohvit};
--jkl-error: #{jkl.$color-feil-dark};
--jkl-info: #{jkl.$color-info-dark};
--jkl-warning: #{jkl.$color-advarsel-dark};
--jkl-success: #{jkl.$color-suksess-dark};
}
:root {
@each $level, $values in typography.$text-styles {
@each $property,
$value in map.get(typography.$text-styles, $level, "small-screen")
{
--jkl-#{$level}-#{$property}: #{$value};
}
}
@include jkl.from-medium-device {
@each $level, $values in typography.$text-styles {
@each $property,
$value
in map.get(typography.$text-styles, $level, "large-screen")
{
--jkl-#{$level}-#{$property}: #{$value};
}
}
}
}
.jkl {
@include jkl.use-font-family("Fremtind Grotesk");
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--jkl-background-color);
color: var(--jkl-color);
strong {
--jkl-icon-weight: #{jkl.$icon-weight-bold};
font-weight: jkl.$typography-weight-bold;
}
}
@include jkl.prefers-reduced-motion {
*,
*::after,
*::before {
animation-duration: 0ms !important;
animation-delay: 0ms !important;
transition: none !important;
}
}