@kth/style 0.18.10 → 0.18.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,17 +15,19 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
nav.kth-mega-menu
|
|
18
|
+
nav.kth-mega-menu {
|
|
19
19
|
display: none;
|
|
20
|
-
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
display: none;
|
|
21
|
+
@media (min-width: sizing.$breakpoint-64) {
|
|
22
|
+
display: block;
|
|
25
23
|
}
|
|
24
|
+
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
nav.kth-mega-menu--collapsable {
|
|
27
|
+
display: block;
|
|
28
|
+
|
|
29
|
+
@media (min-width: sizing.$breakpoint-64) {
|
|
30
|
+
display: none;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
@layer kth-style {
|
|
5
5
|
.kth-translation {
|
|
6
6
|
@include colors.theme-default;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// TODO: this formula should be a token
|
|
11
|
-
right: clamp(spacing.$space-16, calc(100vw / 30), spacing.$space-32);
|
|
7
|
+
left: spacing.$space-16;
|
|
8
|
+
right: spacing.$space-16;
|
|
9
|
+
width: auto;
|
|
12
10
|
background-color: var(--color-background);
|
|
13
11
|
|
|
14
12
|
// TODO: tokenize this shadow
|
|
@@ -25,10 +23,11 @@
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
// Let the dialog take up the remaining space
|
|
28
|
-
@media (
|
|
29
|
-
|
|
30
|
-
left:
|
|
31
|
-
|
|
26
|
+
@media (min-width: calc(22.5rem + spacing.$space-16 * 2)) {
|
|
27
|
+
width: 22.5rem;
|
|
28
|
+
left: auto;
|
|
29
|
+
// TODO: this formula should be a token
|
|
30
|
+
right: clamp(spacing.$space-16, calc(100vw / 30), spacing.$space-32);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
&__content {
|
package/scss/utils/reset.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/// Set to `false` when importing if you want to use the mixin but don't want
|
|
8
8
|
/// to apply reset to the entire document.
|
|
9
9
|
$generate-css: true !default;
|
|
10
|
+
$kpm-height: 2.5rem !default;
|
|
10
11
|
|
|
11
12
|
/// Based on https://andy-bell.co.uk/a-more-modern-css-reset/
|
|
12
13
|
@mixin reset {
|
|
@@ -97,6 +98,7 @@ $generate-css: true !default;
|
|
|
97
98
|
background: var(--color-background);
|
|
98
99
|
min-height: 100vh;
|
|
99
100
|
margin: 0;
|
|
101
|
+
margin-top: $kpm-height;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
@include reset;
|