@kth/style 0.19.0 → 1.0.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
|
@@ -6,21 +6,12 @@
|
|
|
6
6
|
@layer kth-style {
|
|
7
7
|
.kth-header.intranet {
|
|
8
8
|
@include colors.theme-intranet;
|
|
9
|
-
.kth-logotype img.white {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
9
|
}
|
|
13
10
|
.kth-header.external {
|
|
14
11
|
@include colors.theme-inverse;
|
|
15
|
-
.kth-logotype img.blue {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
12
|
}
|
|
19
13
|
.kth-header.student-web {
|
|
20
14
|
@include colors.theme-student-web;
|
|
21
|
-
.kth-logotype img.white {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
15
|
}
|
|
25
16
|
|
|
26
17
|
.kth-header {
|
package/scss/components/kpm.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "../utils/mixins.scss";
|
|
2
2
|
@use "../tokens/spacing.scss";
|
|
3
3
|
@use "../tokens/colors.scss";
|
|
4
|
+
@use "../tokens/sizing.scss";
|
|
4
5
|
|
|
5
6
|
@layer kth-style {
|
|
6
7
|
.kth-kpm {
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
.kth-entrances {
|
|
17
18
|
> ul {
|
|
18
19
|
@include mixins.horizontal-list();
|
|
19
20
|
gap: spacing.$space-4;
|
|
@@ -48,4 +49,20 @@
|
|
|
48
49
|
@include colors.theme-intranet;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
52
|
+
|
|
53
|
+
// When logged out, show "mobile" version only in small screens
|
|
54
|
+
// Styling for kpm and entrances when logged in is handled by KPM
|
|
55
|
+
.kth-entrances {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media screen and (min-width: sizing.$breakpoint-30) {
|
|
60
|
+
.kth-entrances {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.kth-entrances-expandable {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
51
68
|
}
|
|
@@ -9,8 +9,12 @@
|
|
|
9
9
|
inline-size: 4rem;
|
|
10
10
|
border: none;
|
|
11
11
|
margin: 0;
|
|
12
|
-
margin-inline-end: spacing.$space-32;
|
|
13
12
|
padding: 0;
|
|
13
|
+
margin-inline-end: spacing.$space-8;
|
|
14
|
+
|
|
15
|
+
@media (min-width: sizing.$breakpoint-40) {
|
|
16
|
+
margin-inline-end: spacing.$space-32;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
// Defensive measurement:
|
|
16
20
|
// - We prevent logo from shrinking
|