@oslokommune/punkt-css 13.6.15 → 13.9.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.
package/dist/css/pkt.css CHANGED
@@ -14218,7 +14218,7 @@ a:active, a.pkt-link--active,
14218
14218
  .pkt-link--external::after {
14219
14219
  display: inline-block;
14220
14220
  content: " ";
14221
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/new-window-small.svg);
14221
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/new-window-small.svg);
14222
14222
  background-image: var(--svg);
14223
14223
  background-repeat: no-repeat;
14224
14224
  background-size: 18px 18px;
@@ -18025,17 +18025,17 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18025
18025
  /* TODO: Contemplate and decide if this should be split up to multiple files or not.
18026
18026
  * button is only one without pkt-form prefix. Is that ok???
18027
18027
  */
18028
- .pkt-form {
18029
- /* EXPLICIT LABEL (recommended for use)
18030
- * - the label is connected to an input via "for" and "id"
18031
- */
18032
- }
18033
18028
  .pkt-form-group {
18034
18029
  margin-bottom: 1.5rem;
18035
18030
  }
18036
18031
  .pkt-form-group:focus-within {
18037
18032
  color: var(--pkt-color-brand-warm-blue-1000);
18038
18033
  }
18034
+ .pkt-form {
18035
+ /* EXPLICIT LABEL (recommended for use)
18036
+ * - the label is connected to an input via "for" and "id"
18037
+ */
18038
+ }
18039
18039
  .pkt-form-label {
18040
18040
  width: 100%;
18041
18041
  }
@@ -18081,9 +18081,6 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18081
18081
  padding: 0.4375rem 0.5rem;
18082
18082
  position: relative;
18083
18083
  width: 100%;
18084
- /* Placeholder
18085
- * 1. Override Firefox's default opacity
18086
- */
18087
18084
  }
18088
18085
  .pkt-form-input:focus, .pkt-form-textarea:focus {
18089
18086
  background-color: var(--pkt-color-brand-neutrals-white);
@@ -18092,6 +18089,11 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18092
18089
  color: var(--pkt-color-brand-warm-blue-1000);
18093
18090
  outline: 2px solid var(--pkt-color-brand-warm-blue-1000);
18094
18091
  }
18092
+ .pkt-form-input, .pkt-form-textarea {
18093
+ /* Placeholder
18094
+ * 1. Override Firefox's default opacity
18095
+ */
18096
+ }
18095
18097
  .pkt-form-input::placeholder, .pkt-form-textarea::placeholder {
18096
18098
  color: var(--pkt-color-grays-gray-300);
18097
18099
  opacity: 1;
@@ -18234,7 +18236,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18234
18236
  outline-color: var(--pkt-color-input-border-hover);
18235
18237
  }
18236
18238
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18237
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/check-medium.svg);
18239
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/check-medium.svg);
18238
18240
  position: relative;
18239
18241
  background-color: var(--pkt-color-input-border-normal);
18240
18242
  }
@@ -18292,7 +18294,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18292
18294
  cursor: not-allowed;
18293
18295
  }
18294
18296
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18295
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/check-medium.svg);
18297
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/check-medium.svg);
18296
18298
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18297
18299
  filter: grayscale(100%) brightness(400%);
18298
18300
  }
@@ -18338,10 +18340,6 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18338
18340
  border: 2px solid var(--pkt-color-border-subtle);
18339
18341
  width: 21.875rem;
18340
18342
  position: relative;
18341
- /* TODO - Wait on firefox-support!
18342
- &:has(:checked) {
18343
- border-color: var(--choice-checked-rb-bc);
18344
- }*/
18345
18343
  }
18346
18344
  .pkt-input-check__input--tile .pkt-input-check__input-label:before {
18347
18345
  content: "";
@@ -18363,6 +18361,12 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18363
18361
  border: 2px solid var(--pkt-color-border-default);
18364
18362
  pointer-events: none;
18365
18363
  }
18364
+ .pkt-input-check__input--tile {
18365
+ /* TODO - Wait on firefox-support!
18366
+ &:has(:checked) {
18367
+ border-color: var(--choice-checked-rb-bc);
18368
+ }*/
18369
+ }
18366
18370
  .pkt-input-check__input--tile:focus-within {
18367
18371
  background-color: var(--pkt-color-input-background-normal);
18368
18372
  border-color: var(--pkt-color-border-states-active);
@@ -18545,7 +18549,7 @@ pkt-select {
18545
18549
  }
18546
18550
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18547
18551
  .pkt-select:is(select):not([multiple]) {
18548
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/chevron-thin-down.svg);
18552
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/chevron-thin-down.svg);
18549
18553
  background-image: var(--svg);
18550
18554
  background-repeat: no-repeat;
18551
18555
  background-position: right 0.7rem top 50%;
@@ -18867,16 +18871,6 @@ pkt-select {
18867
18871
  margin: 1rem 0;
18868
18872
  padding: 0.75rem;
18869
18873
  background-color: #2a2859;
18870
- /*
18871
- @if luminance($backgroundColor) < 0.4 {
18872
- color: white;
18873
-
18874
- a:not([class^='ok-btn']) {
18875
- color: white;
18876
- text-decoration: underline;
18877
- }
18878
- }
18879
- */
18880
18874
  }
18881
18875
  @media screen and (min-width: 35.938rem) {
18882
18876
  .pkt-section--dark {
@@ -18888,15 +18882,7 @@ pkt-select {
18888
18882
  padding: 1.5rem;
18889
18883
  }
18890
18884
  }
18891
- .pkt-section--dark a.pkt-btn--ter {
18892
- color: white;
18893
- }
18894
-
18895
- .pkt-section--danger {
18896
- color: black;
18897
- margin: 1rem 0;
18898
- padding: 0.75rem;
18899
- background-color: #ff8274;
18885
+ .pkt-section--dark {
18900
18886
  /*
18901
18887
  @if luminance($backgroundColor) < 0.4 {
18902
18888
  color: white;
@@ -18908,6 +18894,16 @@ pkt-select {
18908
18894
  }
18909
18895
  */
18910
18896
  }
18897
+ .pkt-section--dark a.pkt-btn--ter {
18898
+ color: white;
18899
+ }
18900
+
18901
+ .pkt-section--danger {
18902
+ color: black;
18903
+ margin: 1rem 0;
18904
+ padding: 0.75rem;
18905
+ background-color: #ff8274;
18906
+ }
18911
18907
  @media screen and (min-width: 35.938rem) {
18912
18908
  .pkt-section--danger {
18913
18909
  padding: 1rem;
@@ -18918,15 +18914,7 @@ pkt-select {
18918
18914
  padding: 1.5rem;
18919
18915
  }
18920
18916
  }
18921
- .pkt-section--danger a.pkt-btn--ter {
18922
- color: black;
18923
- }
18924
-
18925
- .pkt-section--gray,
18926
- .pkt-section--grey {
18927
- margin: 1rem 0;
18928
- padding: 0.75rem;
18929
- background-color: #f2f2f2;
18917
+ .pkt-section--danger {
18930
18918
  /*
18931
18919
  @if luminance($backgroundColor) < 0.4 {
18932
18920
  color: white;
@@ -18938,6 +18926,16 @@ pkt-select {
18938
18926
  }
18939
18927
  */
18940
18928
  }
18929
+ .pkt-section--danger a.pkt-btn--ter {
18930
+ color: black;
18931
+ }
18932
+
18933
+ .pkt-section--gray,
18934
+ .pkt-section--grey {
18935
+ margin: 1rem 0;
18936
+ padding: 0.75rem;
18937
+ background-color: #f2f2f2;
18938
+ }
18941
18939
  @media screen and (min-width: 35.938rem) {
18942
18940
  .pkt-section--gray,
18943
18941
  .pkt-section--grey {
@@ -18950,12 +18948,8 @@ pkt-select {
18950
18948
  padding: 1.5rem;
18951
18949
  }
18952
18950
  }
18953
-
18954
- .pkt-section--success {
18955
- color: black;
18956
- margin: 1rem 0;
18957
- padding: 0.75rem;
18958
- background-color: #43f8b6;
18951
+ .pkt-section--gray,
18952
+ .pkt-section--grey {
18959
18953
  /*
18960
18954
  @if luminance($backgroundColor) < 0.4 {
18961
18955
  color: white;
@@ -18967,6 +18961,13 @@ pkt-select {
18967
18961
  }
18968
18962
  */
18969
18963
  }
18964
+
18965
+ .pkt-section--success {
18966
+ color: black;
18967
+ margin: 1rem 0;
18968
+ padding: 0.75rem;
18969
+ background-color: #43f8b6;
18970
+ }
18970
18971
  @media screen and (min-width: 35.938rem) {
18971
18972
  .pkt-section--success {
18972
18973
  padding: 1rem;
@@ -18977,14 +18978,7 @@ pkt-select {
18977
18978
  padding: 1.5rem;
18978
18979
  }
18979
18980
  }
18980
- .pkt-section--success a.pkt-btn--ter {
18981
- color: black;
18982
- }
18983
-
18984
- .pkt-section--warning {
18985
- margin: 1rem 0;
18986
- padding: 0.75rem;
18987
- background-color: #f9c66b;
18981
+ .pkt-section--success {
18988
18982
  /*
18989
18983
  @if luminance($backgroundColor) < 0.4 {
18990
18984
  color: white;
@@ -18996,6 +18990,15 @@ pkt-select {
18996
18990
  }
18997
18991
  */
18998
18992
  }
18993
+ .pkt-section--success a.pkt-btn--ter {
18994
+ color: black;
18995
+ }
18996
+
18997
+ .pkt-section--warning {
18998
+ margin: 1rem 0;
18999
+ padding: 0.75rem;
19000
+ background-color: #f9c66b;
19001
+ }
18999
19002
  @media screen and (min-width: 35.938rem) {
19000
19003
  .pkt-section--warning {
19001
19004
  padding: 1rem;
@@ -19006,11 +19009,7 @@ pkt-select {
19006
19009
  padding: 1.5rem;
19007
19010
  }
19008
19011
  }
19009
-
19010
- .pkt-section--info {
19011
- margin: 1rem 0;
19012
- padding: 0.75rem;
19013
- background-color: #b3f5ff;
19012
+ .pkt-section--warning {
19014
19013
  /*
19015
19014
  @if luminance($backgroundColor) < 0.4 {
19016
19015
  color: white;
@@ -19022,6 +19021,12 @@ pkt-select {
19022
19021
  }
19023
19022
  */
19024
19023
  }
19024
+
19025
+ .pkt-section--info {
19026
+ margin: 1rem 0;
19027
+ padding: 0.75rem;
19028
+ background-color: #b3f5ff;
19029
+ }
19025
19030
  @media screen and (min-width: 35.938rem) {
19026
19031
  .pkt-section--info {
19027
19032
  padding: 1rem;
@@ -19032,15 +19037,7 @@ pkt-select {
19032
19037
  padding: 1.5rem;
19033
19038
  }
19034
19039
  }
19035
- .pkt-section--info a.pkt-btn--ter {
19036
- color: black;
19037
- }
19038
-
19039
- .pkt-section--frame {
19040
- border: 1px solid #2c2c2c;
19041
- margin: 1rem 0;
19042
- padding: 0.75rem;
19043
- background-color: white;
19040
+ .pkt-section--info {
19044
19041
  /*
19045
19042
  @if luminance($backgroundColor) < 0.4 {
19046
19043
  color: white;
@@ -19052,6 +19049,16 @@ pkt-select {
19052
19049
  }
19053
19050
  */
19054
19051
  }
19052
+ .pkt-section--info a.pkt-btn--ter {
19053
+ color: black;
19054
+ }
19055
+
19056
+ .pkt-section--frame {
19057
+ border: 1px solid #2c2c2c;
19058
+ margin: 1rem 0;
19059
+ padding: 0.75rem;
19060
+ background-color: white;
19061
+ }
19055
19062
  @media screen and (min-width: 35.938rem) {
19056
19063
  .pkt-section--frame {
19057
19064
  padding: 1rem;
@@ -19062,6 +19069,18 @@ pkt-select {
19062
19069
  padding: 1.5rem;
19063
19070
  }
19064
19071
  }
19072
+ .pkt-section--frame {
19073
+ /*
19074
+ @if luminance($backgroundColor) < 0.4 {
19075
+ color: white;
19076
+
19077
+ a:not([class^='ok-btn']) {
19078
+ color: white;
19079
+ text-decoration: underline;
19080
+ }
19081
+ }
19082
+ */
19083
+ }
19065
19084
 
19066
19085
  [class*=ok-section-] > [class^=ok-title-] {
19067
19086
  margin-top: 0;
@@ -22484,6 +22503,11 @@ pkt-messagebox {
22484
22503
  min-width: 2rem;
22485
22504
  }
22486
22505
 
22506
+ pkt-tabs,
22507
+ pkt-tab-item {
22508
+ display: block;
22509
+ }
22510
+
22487
22511
  .pkt-tabs {
22488
22512
  --pkt-tabs-bg: var(--pkt-color-background-default);
22489
22513
  background-color: var(--pkt-tabs-bg);