@oslokommune/punkt-css 7.1.6 → 7.2.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.
@@ -143,7 +143,7 @@ a,
143
143
 
144
144
  &--external::after {
145
145
  content: ' ';
146
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/new-window-small.svg);
146
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/new-window-small.svg);
147
147
  background-image: var(--svg);
148
148
  background-repeat: no-repeat;
149
149
  background-size: 18px 18px;
@@ -5,55 +5,32 @@
5
5
  @use 'sass:map';
6
6
  @use '../abstracts/variables';
7
7
  @use '../abstracts/mixins/breakpoints' as *;
8
+ @use '../abstracts/mixins/typography';
8
9
 
9
10
  .pkt-breadcrumbs {
10
11
  position: relative;
11
- font-size: map.get(variables.$font-size, 'size-14');
12
- padding: 0 map.get(variables.$spacing, 'size-16');
12
+ @include typography.get-text('pkt-txt-14-light');
13
13
 
14
- @include bp('tablet-up') {
15
- margin-bottom: map.get(variables.$spacing, 'size-16');
16
- }
17
-
18
- @include bp('laptop-up') {
19
- padding: 0 map.get(variables.$spacing, 'size-64');
20
- }
21
14
 
22
15
  &__list {
23
16
  display: flex;
24
17
  flex-direction: column;
25
18
  height: auto;
26
- overflow: hidden;
27
19
  list-style-type: none;
28
20
  border-bottom: 1px solid transparent;
29
21
  transition: all 0.4s ease-in-out;
30
22
 
31
23
  @include bp('phablet-up') {
32
24
  flex-direction: row;
33
- padding: 0 1rem;
34
25
  border-bottom-color: transparent !important;
35
26
  }
36
-
37
- &.expanded {
38
- align-items: flex-start;
39
- max-height: 25rem;
40
- border-bottom-color: var(--color-gray);
41
- transition: all 0.4s ease-in-out;
42
-
43
- & > .pkt-breadcrumbs__item {
44
- display: block;
45
- }
46
-
47
- & > .pkt-breadcrumbs__item:last-child {
48
- display: block;
49
- }
50
- }
51
27
  }
52
28
 
53
29
  &__item {
54
30
  position: relative;
55
31
  display: none;
56
32
  width: 100%;
33
+ text-decoration: underline;
57
34
 
58
35
  @include bp('phablet-up') {
59
36
  display: block;
@@ -62,6 +39,7 @@
62
39
 
63
40
  &:last-child {
64
41
  display: block;
42
+ text-decoration: none;
65
43
 
66
44
  @include bp('tablet-up') {
67
45
  max-width: 300px;
@@ -73,31 +51,11 @@
73
51
  }
74
52
  }
75
53
 
76
- &__link {
77
- text-decoration: none;
78
- color: var(--color-blue-dark);
79
-
80
- &:visited,
81
- &:focus,
82
- &:hover,
83
- &:active {
84
- color: var(--color-blue-dark);
85
- }
86
-
87
- &:hover {
88
- text-decoration: underline;
89
- }
90
- }
91
-
92
54
  &__label {
93
55
  display: flex;
94
56
  align-items: center;
95
- justify-content: flex-start;
96
57
  width: 100%;
97
58
  white-space: nowrap;
98
- padding: map.get(variables.$spacing, 'size-12')
99
- map.get(variables.$spacing, 'size-16')
100
- map.get(variables.$spacing, 'size-16') 0;
101
59
  }
102
60
 
103
61
  &__text {
@@ -110,9 +68,11 @@
110
68
  @include bp('phablet-up') {
111
69
  max-width: 120px;
112
70
  }
71
+
113
72
  @include bp('tablet-up') {
114
73
  max-width: 200px;
115
74
  }
75
+
116
76
  @include bp('tablet-big-up') {
117
77
  max-width: 300px;
118
78
  }
@@ -121,6 +81,23 @@
121
81
  &__icon {
122
82
  width: 1rem;
123
83
  height: 1rem;
124
- margin-right: map.get(variables.$spacing, 'size-12');
84
+ margin-left: map.get(variables.$spacing, 'size-8');
85
+ }
86
+
87
+
88
+ &--desktop {
89
+ display: none !important;
90
+
91
+ @include bp('phablet-up') {
92
+ display: inline-flex !important;
93
+ }
94
+ }
95
+
96
+ &--mobile {
97
+ display: inline-flex !important;
98
+
99
+ @include bp('phablet-up') {
100
+ display: none !important;
101
+ }
125
102
  }
126
103
  }
@@ -41,6 +41,10 @@
41
41
  &-open {
42
42
  width: 100%;
43
43
  display: block;
44
+ border-left: 2px solid var(--color-blue-dark);
45
+ padding: map.get(variables.$spacing, 'size-8')
46
+ map.get(variables.$spacing, 'size-16');
47
+ margin-bottom: map.get(variables.$spacing, 'size-4');
44
48
  }
45
49
 
46
50
  &-closed {
@@ -100,6 +104,7 @@
100
104
  .pkt-btn {
101
105
  @include typography.get-text('pkt-txt-14-light');
102
106
  padding: 0;
107
+ height: auto;
103
108
  }
104
109
 
105
110
  &--error {
@@ -81,7 +81,7 @@ $-module-name: 'pkt-form-check-input';
81
81
  }
82
82
 
83
83
  &[type='checkbox'] {
84
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/check-medium.svg);
84
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/check-medium.svg);
85
85
  position: relative;
86
86
  background-color: blue;
87
87
  }
@@ -10,7 +10,7 @@
10
10
  @use '../abstracts/functions';
11
11
 
12
12
  .pkt-select {
13
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/chevron-thin-down.svg);
13
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/chevron-thin-down.svg);
14
14
 
15
15
  display: block;
16
16
  background-color: var(--color-white);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "7.1.6",
3
+ "version": "7.2.0",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "baeec3b03bbbe29c7f8bd5adac16d9516c948bc3"
58
+ "gitHead": "f66d7532315a855442edf9e19cf883d7862a787f"
59
59
  }