@oslokommune/punkt-css 12.11.3 → 12.11.5

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.
@@ -156,6 +156,20 @@ pkt-datepicker {
156
156
  .pkt-datepicker__inputs {
157
157
  width: 100%;
158
158
  position: relative;
159
+ .pkt-input__container {
160
+ width: fit-content;
161
+ }
162
+ button.pkt-input-icon {
163
+ padding-left: 0.25rem;
164
+ padding-right: 0.25rem;
165
+ }
166
+ .pkt-datepicker__input {
167
+ padding-right: 0;
168
+ background-image: none;
169
+ }
170
+ .pkt-input-separator ~ .pkt-datepicker--range {
171
+ padding-left: 0.25rem;
172
+ }
159
173
  }
160
174
  .pkt-calendar-popup {
161
175
  top: 100%;
@@ -170,8 +184,25 @@ pkt-datepicker {
170
184
  0px 2px 4px -2px rgba(0, 0, 0, 0.1),
171
185
  0px 4px 6px -1px rgba(0, 0, 0, 0.1);
172
186
  }
187
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
188
+ width: 8.3rem;
189
+ }
173
190
  .pkt-datepicker__input::-webkit-inner-spin-button,
174
191
  .pkt-datepicker__input::-webkit-calendar-picker-indicator {
175
192
  display: none;
176
193
  -webkit-appearance: none;
177
194
  }
195
+
196
+ // Firefox specific styles :(
197
+ @-moz-document url-prefix() {
198
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
199
+ width: 10.5rem;
200
+ }
201
+ .pkt-datepicker__inputs button.pkt-input-icon {
202
+ display: none;
203
+ }
204
+ .pkt-datepicker__inputs
205
+ input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
206
+ border-right-width: 2px !important;
207
+ }
208
+ }
@@ -70,8 +70,10 @@
70
70
  }
71
71
  }
72
72
 
73
- &:not(textarea[cols]):not(input[size]):not(&--fullwidth),
74
- &__container:not(:is(:has(textarea[cols]))):not(:is(:has(input[size]))):not(:is(:has(&--fullwidth))) {
73
+ &:not(textarea[cols]):not(input[size]):not(&--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)),
74
+ &__container:not(:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple)))):not(:is(:has(textarea[cols]))):not(
75
+ :is(:has(input[size]))
76
+ ):not(:is(:has(&--fullwidth))) {
75
77
  width: min(100%, 31rem);
76
78
  }
77
79
 
@@ -148,7 +150,8 @@
148
150
 
149
151
  &-prefix,
150
152
  &-suffix,
151
- &-icon {
153
+ &-icon,
154
+ &-separator {
152
155
  @include typography.get-text('pkt-txt-18-light');
153
156
  display: flex;
154
157
  align-items: center;
@@ -197,10 +200,17 @@
197
200
  & svg {
198
201
  width: 1.5rem;
199
202
  height: 1.5rem;
203
+ }
204
+
205
+ &:not(button) svg {
200
206
  margin-left: 0.5rem;
201
207
  }
202
208
  }
203
209
 
210
+ &-separator {
211
+ padding: 0.5rem 0;
212
+ }
213
+
204
214
  &--counter-error,
205
215
  &--counter-error:focus {
206
216
  border-color: var(--pkt-color-input-border-error);
@@ -212,6 +222,7 @@
212
222
  }
213
223
 
214
224
  &__container {
225
+ width: fit-content;
215
226
  display: flex;
216
227
  align-items: center;
217
228
  align-self: stretch;
@@ -222,16 +233,16 @@
222
233
  }
223
234
 
224
235
  :first-child:not(:only-child) {
225
- border-right: none;
236
+ border-right-width: 0;
226
237
  }
227
238
 
228
239
  :last-child:not(:only-child) {
229
- border-left: none;
240
+ border-left-width: 0;
230
241
  }
231
242
 
232
243
  :not(:first-child):not(:last-child) {
233
- border-left: none;
234
- border-right: none;
244
+ border-left-width: 0;
245
+ border-right-width: 0;
235
246
  }
236
247
 
237
248
  p {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "12.11.3",
3
+ "version": "12.11.5",
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",
@@ -54,5 +54,5 @@
54
54
  "url": "https://github.com/oslokommune/punkt/issues"
55
55
  },
56
56
  "license": "MIT",
57
- "gitHead": "6e3766c461f3ad153c396c51f84e12d6e69be979"
57
+ "gitHead": "1ac7645d35560a308696609a4d6743ed5f183452"
58
58
  }