@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kth/style",
3
- "version": "0.18.11",
3
+ "version": "0.19.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -5,6 +5,11 @@
5
5
  .kth-content {
6
6
  @include mixins.container;
7
7
  }
8
+
9
+ .kth-main-content {
10
+ @include mixins.container;
11
+ flex: 1;
12
+ }
8
13
  }
9
14
 
10
15
  // TODO: investigate the possibility to expand this `.kth-content` class:
@@ -15,17 +15,19 @@
15
15
  }
16
16
  }
17
17
 
18
- nav.kth-mega-menu--collapsable {
18
+ nav.kth-mega-menu {
19
19
  display: none;
20
- }
21
20
 
22
- @media (max-width: sizing.$breakpoint-64) {
23
- nav.kth-mega-menu {
24
- display: none;
21
+ @media (min-width: sizing.$breakpoint-64) {
22
+ display: block;
25
23
  }
24
+ }
26
25
 
27
- nav.kth-mega-menu--collapsable {
28
- display: block;
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
- width: 22.5rem;
8
- left: auto;
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 (max-width: calc(22.5rem + spacing.$space-16 * 2)) {
29
- right: spacing.$space-16;
30
- left: spacing.$space-16;
31
- width: auto;
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 {
@@ -15,5 +15,6 @@
15
15
  @mixin container {
16
16
  margin-inline: auto;
17
17
  max-width: 82rem;
18
+ width: 100%;
18
19
  padding-inline: clamp(spacing.$space-16, calc(100vw / 30), spacing.$space-32);
19
20
  }
@@ -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;