@kth/style 1.4.0 → 1.4.2
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
package/scss/components/kpm.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use "../tokens/colors.scss";
|
|
4
4
|
@use "../tokens/sizing.scss";
|
|
5
5
|
|
|
6
|
+
// This file contains the minimal CSS needed to avoid layout shifts and other
|
|
7
|
+
// styling issues related to KPM being rendered before CSS is loaded
|
|
6
8
|
@layer kth-style {
|
|
7
9
|
.kth-kpm {
|
|
8
10
|
background: var(--color-background, colors.$color-white);
|
|
@@ -12,6 +14,11 @@
|
|
|
12
14
|
@include mixins.container;
|
|
13
15
|
display: flex;
|
|
14
16
|
}
|
|
17
|
+
|
|
18
|
+
// Space between "entrances" and the "Login" button
|
|
19
|
+
.kpm-login {
|
|
20
|
+
margin-inline: auto 0.25rem;
|
|
21
|
+
}
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
.kth-entrances {
|
|
@@ -65,4 +65,30 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
.kth-local-navigation--mobile {
|
|
70
|
+
display: block;
|
|
71
|
+
|
|
72
|
+
@media (min-width: 992px) {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.kth-local-navigation {
|
|
78
|
+
display: none;
|
|
79
|
+
|
|
80
|
+
@media (min-width: 992px) {
|
|
81
|
+
display: block;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.kth-main-content.with-local-nav {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
column-gap: 2rem;
|
|
89
|
+
|
|
90
|
+
@media (min-width: 992px) {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
68
94
|
}
|