@kth/style 0.19.0 → 0.19.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kth/style",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -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
- nav.kth-entrances {
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
@@ -1,4 +1,5 @@
1
1
  /// DO NOT USE IT OUTSIDE OF KTH STYLE. THOSE NAMES MAY CHANGE
2
+ $breakpoint-30: 30rem;
2
3
  $breakpoint-40: 40rem;
3
4
  $breakpoint-48: 48rem;
4
5
  $breakpoint-64: 64rem;