@oslokommune/punkt-css 14.1.1 → 15.0.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.
@@ -14399,7 +14399,7 @@ a:active, a.pkt-link--active,
14399
14399
  .pkt-link--external::after {
14400
14400
  display: inline-block;
14401
14401
  content: " ";
14402
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.1/icons/new-window-small.svg);
14402
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/new-window-small.svg);
14403
14403
  background-image: var(--svg);
14404
14404
  background-repeat: no-repeat;
14405
14405
  background-size: 18px 18px;
@@ -17571,6 +17571,13 @@ button.pkt-link {
17571
17571
  display: contents;
17572
17572
  }
17573
17573
 
17574
+ .pkt-layout {
17575
+ display: grid;
17576
+ width: 100vw;
17577
+ min-height: 100vh;
17578
+ grid-template-rows: auto 1fr auto;
17579
+ }
17580
+
17574
17581
  /*
17575
17582
  * Visibility
17576
17583
  */
@@ -17582,6 +17589,10 @@ button.pkt-link {
17582
17589
  display: block !important;
17583
17590
  }
17584
17591
 
17592
+ .pkt-invisible {
17593
+ visibility: hidden !important;
17594
+ }
17595
+
17585
17596
  @media screen and (min-width: 0) {
17586
17597
  .pkt-hide-mobile-up,
17587
17598
  .pkt-show.pkt-hide-mobile-up {
@@ -18422,7 +18433,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18422
18433
  outline-color: var(--pkt-color-input-border-hover);
18423
18434
  }
18424
18435
  .pkt-input-check__input-checkbox:indeterminate[type=checkbox]:not([role=switch]) {
18425
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.1/icons/minus-sign.svg);
18436
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/minus-sign.svg);
18426
18437
  position: relative;
18427
18438
  background-color: var(--pkt-color-input-border-normal);
18428
18439
  }
@@ -18448,7 +18459,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18448
18459
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%) contrast(101%);
18449
18460
  }
18450
18461
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18451
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.1/icons/check-medium.svg);
18462
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18452
18463
  position: relative;
18453
18464
  background-color: var(--pkt-color-input-border-normal);
18454
18465
  }
@@ -18506,7 +18517,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18506
18517
  cursor: not-allowed;
18507
18518
  }
18508
18519
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18509
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.1/icons/check-medium.svg);
18520
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18510
18521
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18511
18522
  filter: grayscale(100%) brightness(400%);
18512
18523
  }
@@ -18705,7 +18716,10 @@ pkt-select {
18705
18716
  .pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))) {
18706
18717
  width: fit-content;
18707
18718
  }
18708
- .pkt-input--fullwidth, .pkt-input--fullwidth + .pkt-input__counter {
18719
+ .pkt-input--fullwidth, *:has(.pkt-input--fullwidth) ~ .pkt-input__counter, .pkt-input--fullwidth + .pkt-input__counter {
18720
+ width: 100%;
18721
+ }
18722
+ [fullwidth] .pkt-input__counter {
18709
18723
  width: 100%;
18710
18724
  }
18711
18725
  .pkt-input:is(textarea), .pkt-textinput__input:is(textarea), .pkt-select select:is(textarea),
@@ -18721,7 +18735,7 @@ pkt-select {
18721
18735
  }
18722
18736
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18723
18737
  .pkt-select:is(select):not([multiple]) {
18724
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.1/icons/chevron-thin-down.svg);
18738
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/chevron-thin-down.svg);
18725
18739
  background-image: var(--svg);
18726
18740
  background-repeat: no-repeat;
18727
18741
  background-position: right 0.7rem top 50%;
@@ -20113,6 +20127,15 @@ pkt-calendar .pkt-cal-selected .pkt-btn,
20113
20127
  pkt-calendar .pkt-cal-selected .pkt-btn:focus,
20114
20128
  pkt-calendar .pkt-cal-selected .pkt-btn:hover {
20115
20129
  background-color: var(--pkt-color-surface-strong-blue);
20130
+ color: var(--pkt-color-brand-dark-blue-1000);
20131
+ }
20132
+ .pkt-calendar .pkt-cal-in-range .pkt-btn,
20133
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20134
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:hover,
20135
+ pkt-calendar .pkt-cal-in-range .pkt-btn,
20136
+ pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20137
+ pkt-calendar .pkt-cal-in-range .pkt-btn:hover {
20138
+ color: var(--pkt-color-brand-dark-blue-1000);
20116
20139
  }
20117
20140
  .pkt-calendar .pkt-cal-in-range :before,
20118
20141
  .pkt-calendar .pkt-cal-in-range :after, .pkt-calendar .pkt-cal-in-range-first :after, .pkt-calendar .pkt-cal-in-range-last :before,
@@ -20132,6 +20155,7 @@ pkt-calendar .pkt-cal-in-range-last :after {
20132
20155
  pkt-calendar .pkt-cal-range-hover :before,
20133
20156
  pkt-calendar .pkt-cal-range-hover .pkt-btn {
20134
20157
  background-color: var(--pkt-color-surface-default-light-blue);
20158
+ color: var(--pkt-color-brand-dark-blue-1000);
20135
20159
  }
20136
20160
  .pkt-calendar .pkt-cal-range-hover ::after,
20137
20161
  pkt-calendar .pkt-cal-range-hover ::after {
@@ -20152,80 +20176,6 @@ pkt-calendar .pkt-cal-excluded :after {
20152
20176
  background-color: transparent;
20153
20177
  }
20154
20178
 
20155
- pkt-datepicker {
20156
- display: block;
20157
- position: relative;
20158
- }
20159
- pkt-datepicker .pkt-datepicker {
20160
- position: relative;
20161
- }
20162
- pkt-datepicker .pkt-datepicker__tags .pkt-tag {
20163
- margin: 0 0.25rem 0.5rem 0;
20164
- }
20165
-
20166
- pkt-datepicker-single,
20167
- pkt-datepicker-range,
20168
- pkt-datepicker-multiple {
20169
- display: block;
20170
- }
20171
-
20172
- .pkt-datepicker__inputs {
20173
- width: 100%;
20174
- position: relative;
20175
- }
20176
- .pkt-datepicker__inputs .pkt-input__container {
20177
- width: fit-content;
20178
- }
20179
- .pkt-datepicker__inputs button.pkt-input-icon {
20180
- padding-left: 0.25rem;
20181
- padding-right: 0.25rem;
20182
- }
20183
- .pkt-datepicker__inputs button.pkt-input-icon:hover {
20184
- background-color: inherit !important;
20185
- border-color: inherit !important;
20186
- --fg-color: var(--pkt-color-button-text-hover);
20187
- }
20188
- .pkt-datepicker__inputs .pkt-datepicker__input {
20189
- padding-right: 0;
20190
- background-image: none;
20191
- }
20192
- .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
20193
- padding-left: 0.25rem;
20194
- }
20195
-
20196
- .pkt-calendar-popup {
20197
- top: 100%;
20198
- left: 0;
20199
- z-index: 2;
20200
- margin: 0;
20201
- padding: 0.5rem;
20202
- position: absolute;
20203
- width: max-content;
20204
- background: var(--pkt-color-background-default);
20205
- box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
20206
- }
20207
-
20208
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20209
- width: 8.3rem;
20210
- }
20211
-
20212
- .pkt-datepicker__input::-webkit-inner-spin-button,
20213
- .pkt-datepicker__input::-webkit-calendar-picker-indicator {
20214
- display: none;
20215
- -webkit-appearance: none;
20216
- }
20217
-
20218
- @-moz-document url-prefix() {
20219
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20220
- width: 10.5rem;
20221
- }
20222
- .pkt-datepicker__inputs button.pkt-input-icon {
20223
- display: none;
20224
- }
20225
- .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
20226
- border-right-width: 2px !important;
20227
- }
20228
- }
20229
20179
  /*
20230
20180
  * Cardcomponent
20231
20181
  */
@@ -20559,6 +20509,127 @@ pkt-combobox[fullwidth] {
20559
20509
  margin-top: 0.5rem;
20560
20510
  }
20561
20511
 
20512
+ .pkt-datepicker,
20513
+ pkt-datepicker {
20514
+ display: block;
20515
+ position: relative;
20516
+ }
20517
+
20518
+ .pkt-datepicker__tags button.pkt-tag {
20519
+ margin: 0 0.25rem 0.5rem 0;
20520
+ }
20521
+
20522
+ .pkt-datepicker-single,
20523
+ .pkt-datepicker-range,
20524
+ .pkt-datepicker-multiple,
20525
+ pkt-datepicker-single,
20526
+ pkt-datepicker-range,
20527
+ pkt-datepicker-multiple {
20528
+ display: block;
20529
+ }
20530
+
20531
+ .pkt-datepicker__inputs {
20532
+ width: 100%;
20533
+ position: relative;
20534
+ }
20535
+ .pkt-datepicker__inputs .pkt-input__container:not(:has(.pkt-input--fullwidth)) {
20536
+ width: fit-content;
20537
+ }
20538
+ .pkt-datepicker__inputs > .pkt-input__container {
20539
+ border: 2px solid var(--pkt-color-input-border-normal);
20540
+ }
20541
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input,
20542
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-prefix,
20543
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-suffix,
20544
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-icon,
20545
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-separator {
20546
+ border: 0;
20547
+ }
20548
+ .pkt-datepicker__inputs > .pkt-input__container:hover {
20549
+ border-color: var(--pkt-color-input-border-active);
20550
+ }
20551
+ .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20552
+ border-color: var(--pkt-color-input-border-active);
20553
+ }
20554
+ .pkt-datepicker__inputs > .pkt-input__container:has(input:disabled), .pkt-datepicker__inputs > .pkt-input__container:has(input[readonly]) {
20555
+ border-color: var(--pkt-color-input-border-disabled);
20556
+ }
20557
+ .pkt-datepicker__inputs > .pkt-input__container:has(.pkt-input--counter-error) {
20558
+ border-color: var(--pkt-color-input-border-error);
20559
+ }
20560
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container {
20561
+ border-color: var(--pkt-color-brand-red-1000);
20562
+ }
20563
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20564
+ border-color: var(--pkt-color-brand-red-1000);
20565
+ }
20566
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container {
20567
+ border-color: var(--pkt-color-border-states-disabled);
20568
+ }
20569
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20570
+ border-color: var(--pkt-color-border-states-disabled);
20571
+ box-shadow: none;
20572
+ outline: none;
20573
+ }
20574
+ .pkt-datepicker__inputs button.pkt-input-icon {
20575
+ padding-left: 0.75rem;
20576
+ padding-right: 0.75rem;
20577
+ }
20578
+ .pkt-datepicker__inputs button.pkt-input-icon:hover {
20579
+ background-color: inherit !important;
20580
+ border-color: inherit !important;
20581
+ --fg-color: var(--pkt-color-button-text-hover);
20582
+ }
20583
+ .pkt-datepicker__inputs .pkt-datepicker__input {
20584
+ padding-right: 0;
20585
+ background-image: none;
20586
+ }
20587
+ .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
20588
+ padding-left: 0.25rem;
20589
+ }
20590
+
20591
+ .pkt-calendar-popup {
20592
+ top: 100%;
20593
+ left: 0;
20594
+ z-index: 2;
20595
+ margin: 0;
20596
+ padding: 0.5rem;
20597
+ position: absolute;
20598
+ width: max-content;
20599
+ background: var(--pkt-color-background-default);
20600
+ box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
20601
+ }
20602
+
20603
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20604
+ width: 8.3rem;
20605
+ }
20606
+
20607
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20608
+ width: auto;
20609
+ flex: 1;
20610
+ }
20611
+
20612
+ .pkt-datepicker__input::-webkit-inner-spin-button,
20613
+ .pkt-datepicker__input::-webkit-calendar-picker-indicator {
20614
+ display: none;
20615
+ -webkit-appearance: none;
20616
+ }
20617
+
20618
+ @-moz-document url-prefix() {
20619
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20620
+ width: 10.5rem;
20621
+ }
20622
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20623
+ width: auto;
20624
+ flex: 1;
20625
+ }
20626
+ .pkt-datepicker__inputs button.pkt-input-icon {
20627
+ display: none;
20628
+ }
20629
+ .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
20630
+ border-right-width: 2px !important;
20631
+ }
20632
+ }
20562
20633
  /*
20563
20634
  * Footer element
20564
20635
  */