@kth/style 0.18.11 → 0.19.0
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/mixins.scss
CHANGED
package/scss/utils/reset.scss
CHANGED
|
@@ -96,9 +96,11 @@ $kpm-height: 2.5rem !default;
|
|
|
96
96
|
@include typography.font-default;
|
|
97
97
|
color: var(--color-text);
|
|
98
98
|
background: var(--color-background);
|
|
99
|
-
min-height: 100vh;
|
|
99
|
+
min-height: calc(100vh - $kpm-height);
|
|
100
100
|
margin: 0;
|
|
101
101
|
margin-top: $kpm-height;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
@include reset;
|