@kth/style 0.18.9 → 0.18.11
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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "../utils/mixins.scss";
|
|
2
|
+
@use "../tokens/spacing.scss";
|
|
2
3
|
@use "../tokens/colors.scss";
|
|
3
4
|
|
|
4
5
|
@layer kth-style {
|
|
@@ -11,4 +12,40 @@
|
|
|
11
12
|
display: flex;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
16
|
+
nav.kth-entrances {
|
|
17
|
+
> ul {
|
|
18
|
+
@include mixins.horizontal-list();
|
|
19
|
+
gap: spacing.$space-4;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Special case for "kth.se" link.
|
|
23
|
+
// It has a fixed width
|
|
24
|
+
a:not([href*="intra"], [href*="student"]) {
|
|
25
|
+
// TODO: this "4rem" should be a token (logotype width)
|
|
26
|
+
inline-size: 4rem;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
a[href*="intra"],
|
|
31
|
+
a[href*="student"] {
|
|
32
|
+
padding-inline: spacing.$space-8;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
a[aria-current="true"] {
|
|
36
|
+
background: var(--color-header, transparent);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
a:not([href*="intra"], [href*="student"])[aria-current="true"] {
|
|
40
|
+
@include colors.theme-inverse;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
a[href*="student"][aria-current="true"] {
|
|
44
|
+
@include colors.theme-student-web;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
a[href*="intra"][aria-current="true"] {
|
|
48
|
+
@include colors.theme-intranet;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
14
51
|
}
|
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;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@use "../tokens/spacing.scss";
|
|
2
|
-
@use "../tokens/colors.scss";
|
|
3
|
-
@use "../utils/mixins.scss";
|
|
4
|
-
|
|
5
|
-
@layer kth-style {
|
|
6
|
-
nav.kth-entrances {
|
|
7
|
-
> ul {
|
|
8
|
-
@include mixins.horizontal-list();
|
|
9
|
-
gap: spacing.$space-4;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Special case for "kth.se" link.
|
|
13
|
-
// It has a fixed width
|
|
14
|
-
a:not([href*="intra"], [href*="student"]) {
|
|
15
|
-
// TODO: this "4rem" should be a token (logotype width)
|
|
16
|
-
inline-size: 4rem;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
a[href*="intra"],
|
|
21
|
-
a[href*="student"] {
|
|
22
|
-
padding-inline: spacing.$space-8;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
a[aria-current="true"] {
|
|
26
|
-
background: var(--color-header, transparent);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
a:not([href*="intra"], [href*="student"])[aria-current="true"] {
|
|
30
|
-
@include colors.theme-inverse;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
a[href*="student"][aria-current="true"] {
|
|
34
|
-
@include colors.theme-student-web;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
a[href*="intra"][aria-current="true"] {
|
|
38
|
-
@include colors.theme-intranet;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|