@oslokommune/punkt-css 11.0.0 → 11.0.2

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.
@@ -5,6 +5,9 @@
5
5
  @forward 'breakpoints';
6
6
  @forward 'spacing';
7
7
 
8
+ // Default icon path
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.0/icons' !default;
10
+
8
11
  // Borders
9
12
  $border-width: (
10
13
  'thin': 1px,
@@ -8,6 +8,7 @@
8
8
  @use 'sass:map';
9
9
  @use '../abstracts/variables';
10
10
  @use '../abstracts/mixins/typography';
11
+ @use '../abstracts/mixins/breakpoints' as *;
11
12
  @use '../abstracts/functions';
12
13
 
13
14
  body {
@@ -102,7 +103,7 @@ a,
102
103
 
103
104
  &--external::after {
104
105
  content: ' ';
105
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/new-window-small.svg);
106
+ --svg: url(#{variables.$icon-path}/new-window-small.svg);
106
107
  background-image: var(--svg);
107
108
  background-repeat: no-repeat;
108
109
  background-size: 18px 18px;
@@ -154,6 +155,25 @@ button.pkt-link {
154
155
  @include typography.generate-text-class($name, $style);
155
156
  }
156
157
 
158
+ @each $bp-name, $bp-value in variables.$breakpoints {
159
+ @each $name, $style in variables.$pkt-styles {
160
+ @include bp('#{$bp-value}') {
161
+ @include typography.generate-text-class(
162
+ '#{$name}--#{$bp-name}-up',
163
+ $style
164
+ );
165
+ }
166
+ }
167
+ @each $name, $style in variables.$pkt-font-weight {
168
+ @include bp('#{$bp-value}') {
169
+ @include typography.generate-text-class(
170
+ '#{$name}--#{$bp-name}-up',
171
+ $style
172
+ );
173
+ }
174
+ }
175
+ }
176
+
157
177
  /*
158
178
  * Alignment
159
179
  */
@@ -116,7 +116,7 @@ $-module-name: 'pkt-input-check';
116
116
  &:checked {
117
117
  // Checkbox
118
118
  &[type='checkbox'] {
119
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/check-medium.svg);
119
+ --svg: url(#{variables.$icon-path}/check-medium.svg);
120
120
  position: relative;
121
121
  background-color: var(--pkt-color-input-border-normal);
122
122
  }
@@ -77,7 +77,7 @@
77
77
  padding-right: 3rem;
78
78
 
79
79
  &:not([multiple]) {
80
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/chevron-thin-down.svg);
80
+ --svg: url(#{variables.$icon-path}/chevron-thin-down.svg);
81
81
  background-image: var(--svg);
82
82
  background-repeat: no-repeat;
83
83
  background-position: right 0.7rem top 50%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
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": "bbfa8ce736348b9729d8a8e7269221e3fc2d4c8c"
58
+ "gitHead": "fb582501c2f84621ec005158834dff09c73ea026"
59
59
  }