@oslokommune/punkt-css 13.17.0 → 13.18.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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/13.17/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/13.18/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -109,6 +109,38 @@ $-module-name: 'pkt-input-check';
109
109
  outline-color: var(--pkt-color-input-border-hover);
110
110
  }
111
111
 
112
+ &:indeterminate {
113
+ &[type='checkbox']:not([role='switch']) {
114
+ --svg: url(#{variables.$icon-path}/minus-sign.svg);
115
+ position: relative;
116
+ background-color: var(--pkt-color-input-border-normal);
117
+
118
+ &:before {
119
+ content: '';
120
+ position: absolute;
121
+ top: 0;
122
+ left: 0;
123
+ width: 100%;
124
+ height: 100%;
125
+ z-index: -1;
126
+ }
127
+
128
+ &:after {
129
+ content: '';
130
+ position: absolute;
131
+ top: 50%;
132
+ left: 50%;
133
+ transform: translate(-50%, -50%);
134
+ width: 24px;
135
+ height: 24px;
136
+ background-image: var(--svg);
137
+ background-repeat: no-repeat;
138
+ filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%)
139
+ contrast(101%);
140
+ }
141
+ }
142
+ }
143
+
112
144
  &:checked {
113
145
  // Checkbox and switch
114
146
  &[type='checkbox'] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "13.17.0",
3
+ "version": "13.18.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": "8eb6e3c34e6bba48446f574861192858379c48a1"
58
+ "gitHead": "d1f7500eed274abde4ea0532a746a54d74a38877"
59
59
  }