@oslokommune/punkt-css 7.2.0 → 8.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.
package/dist/css/pkt.css CHANGED
@@ -12361,7 +12361,7 @@ a:active, a.pkt-link--active,
12361
12361
  }
12362
12362
  .pkt-link--external::after {
12363
12363
  content: " ";
12364
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/new-window-small.svg);
12364
+ --svg: url(https://punkt-cdn.oslo.kommune.no/8.0/icons/new-window-small.svg);
12365
12365
  background-image: var(--svg);
12366
12366
  background-repeat: no-repeat;
12367
12367
  background-size: 18px 18px;
@@ -13377,7 +13377,7 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
13377
13377
  border: 6px solid var(--choice-checked-rb-bc);
13378
13378
  }
13379
13379
  .pkt-form-check-input:checked[type=checkbox] {
13380
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/check-medium.svg);
13380
+ --svg: url(https://punkt-cdn.oslo.kommune.no/8.0/icons/check-medium.svg);
13381
13381
  position: relative;
13382
13382
  background-color: blue;
13383
13383
  }
@@ -13476,6 +13476,194 @@ Therefore, this is removed from the reset here, and images who need to be fluid
13476
13476
  display: inline-block;
13477
13477
  }
13478
13478
 
13479
+ /* Common styles for all inputs */
13480
+ .pkt-input, .pkt-textinput__input, .pkt-select select,
13481
+ .pkt-select:is(select) {
13482
+ font-size: 1.125rem;
13483
+ font-weight: 300;
13484
+ letter-spacing: -0.2px;
13485
+ line-height: 1.75rem;
13486
+ display: flex;
13487
+ align-items: center;
13488
+ appearance: none;
13489
+ background-color: var(--color-white);
13490
+ border: 2px solid var(--color-blue-dark);
13491
+ border-radius: 0;
13492
+ color: var(--color-blue-dark);
13493
+ margin: 0;
13494
+ padding: 0.5rem 1rem;
13495
+ width: 100%;
13496
+ }
13497
+ .pkt-input:is(textarea), .pkt-textinput__input:is(textarea), .pkt-select select:is(textarea),
13498
+ .pkt-select:is(textarea):is(select) {
13499
+ min-height: 8rem;
13500
+ }
13501
+ .pkt-input:is(select), .pkt-textinput__input:is(select), .pkt-select select:is(select),
13502
+ .pkt-select:is(select) {
13503
+ appearance: none;
13504
+ -moz-appearance: none;
13505
+ -webkit-appearance: none;
13506
+ padding-right: 3rem;
13507
+ }
13508
+ .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
13509
+ .pkt-select:is(select):not([multiple]) {
13510
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='var(--fg-color %232A2859)' fill-rule='evenodd' d='M16 19.41 6.33 10 5 11.29 16 22l11-10.71L25.67 10 16 19.41z'/%3E%3C/svg%3E");
13511
+ background-repeat: no-repeat;
13512
+ background-position: right 0.7rem top 50%;
13513
+ background-size: 1.5rem auto, 100%;
13514
+ }
13515
+ .pkt-input:is(select) option, .pkt-textinput__input:is(select) option, .pkt-select select:is(select) option,
13516
+ .pkt-select:is(select) option {
13517
+ background-color: var(--color-white);
13518
+ color: var(--color-blue-dark);
13519
+ font-weight: normal;
13520
+ }
13521
+ .pkt-input::placeholder, .pkt-textinput__input::placeholder, .pkt-select select::placeholder,
13522
+ .pkt-select:is(select)::placeholder {
13523
+ color: var(--color-grayscale-50);
13524
+ opacity: 1;
13525
+ }
13526
+ .pkt-input:hover, .pkt-textinput__input:hover, .pkt-select select:hover,
13527
+ .pkt-select:hover:is(select), .pkt-input.pkt-input--hover, .pkt-input--hover.pkt-textinput__input, .pkt-select select.pkt-input--hover,
13528
+ .pkt-input--hover.pkt-select:is(select) {
13529
+ border-color: var(--color-hover);
13530
+ }
13531
+ .pkt-input:focus-visible + .pkt-input-suffix, .pkt-textinput__input:focus-visible + .pkt-input-suffix, .pkt-select select:focus-visible + .pkt-input-suffix,
13532
+ .pkt-select:focus-visible:is(select) + .pkt-input-suffix, .pkt-input.pkt-input__textinput--focus, .pkt-input__textinput--focus.pkt-textinput__input, .pkt-select select.pkt-input__textinput--focus,
13533
+ .pkt-input__textinput--focus.pkt-select:is(select) {
13534
+ box-shadow: 0 0 0 2px var(--color-active);
13535
+ border-color: var(--color-active);
13536
+ }
13537
+ .pkt-input:focus, .pkt-textinput__input:focus, .pkt-select select:focus,
13538
+ .pkt-select:focus:is(select) {
13539
+ outline: none;
13540
+ box-shadow: 0 0 0 2px var(--color-active);
13541
+ border-color: var(--color-active);
13542
+ }
13543
+ .pkt-input:disabled, .pkt-textinput__input:disabled, .pkt-select select:disabled,
13544
+ .pkt-select:disabled:is(select), .pkt-input:disabled::placeholder, .pkt-textinput__input:disabled::placeholder, .pkt-select select:disabled::placeholder,
13545
+ .pkt-select:disabled:is(select)::placeholder, .pkt-input[readonly], [readonly].pkt-textinput__input, .pkt-select select[readonly],
13546
+ [readonly].pkt-select:is(select) {
13547
+ opacity: 1;
13548
+ background-color: var(--color-disabled-light);
13549
+ border-color: var(--color-disabled);
13550
+ cursor: inherit;
13551
+ }
13552
+ .pkt-input:disabled:active, .pkt-textinput__input:disabled:active, .pkt-select select:disabled:active,
13553
+ .pkt-select:disabled:active:is(select) {
13554
+ border: 2px solid var(--color-disabled);
13555
+ }
13556
+ .pkt-input-prefix, .pkt-input-suffix, .pkt-input-icon {
13557
+ font-size: 1.125rem;
13558
+ font-weight: 300;
13559
+ letter-spacing: -0.2px;
13560
+ line-height: 1.75rem;
13561
+ display: flex;
13562
+ align-items: center;
13563
+ width: auto;
13564
+ height: 3rem;
13565
+ border: 2px solid var(--color-blue-dark);
13566
+ flex-shrink: 0;
13567
+ }
13568
+ .pkt-input-prefix {
13569
+ padding: 0.5rem 0rem 0.5rem 1rem;
13570
+ }
13571
+ .pkt-input-prefix::after {
13572
+ content: "";
13573
+ width: 1px;
13574
+ margin-left: 0.5rem;
13575
+ height: 100%;
13576
+ background-color: var(--color-blue-dark);
13577
+ }
13578
+ .pkt-input-suffix {
13579
+ padding: 0.5rem 1rem 0.5rem 0rem;
13580
+ }
13581
+ .pkt-input-suffix svg {
13582
+ width: 1.5rem;
13583
+ height: 1.5rem;
13584
+ margin-left: 0.5rem;
13585
+ }
13586
+ .pkt-input-suffix::before {
13587
+ content: "";
13588
+ width: 1px;
13589
+ margin-right: 0.5rem;
13590
+ height: 1.5rem;
13591
+ background-color: var(--color-blue-dark);
13592
+ }
13593
+ .pkt-input-icon {
13594
+ padding: 0.5rem 1rem;
13595
+ align-self: stretch;
13596
+ }
13597
+ .pkt-input-icon svg {
13598
+ width: 1.5rem;
13599
+ height: 1.5rem;
13600
+ margin-left: 0.5rem;
13601
+ }
13602
+ .pkt-input--counter-error, .pkt-input--counter-error:focus {
13603
+ border-color: var(--color-red);
13604
+ background-color: var(--color-red-30);
13605
+ }
13606
+ .pkt-input--counter-error:focus {
13607
+ box-shadow: 0 0 0 2px var(--color-red);
13608
+ }
13609
+ .pkt-input__container {
13610
+ display: flex;
13611
+ align-items: center;
13612
+ align-self: stretch;
13613
+ }
13614
+ .pkt-input__container :first-child:not(:only-child) {
13615
+ border-right: none;
13616
+ }
13617
+ .pkt-input__container :last-child:not(:only-child) {
13618
+ border-left: none;
13619
+ }
13620
+ .pkt-input__container :not(:first-child):not(:last-child) {
13621
+ border-left: none;
13622
+ border-right: none;
13623
+ }
13624
+ .pkt-input__container p {
13625
+ margin: 0;
13626
+ }
13627
+ .pkt-input__container input:focus {
13628
+ box-shadow: none;
13629
+ }
13630
+ .pkt-input__container:hover .pkt-input, .pkt-input__container:hover .pkt-textinput__input, .pkt-input__container:hover .pkt-select select, .pkt-select .pkt-input__container:hover select,
13631
+ .pkt-input__container:hover .pkt-select:is(select), .pkt-input__container:hover .pkt-input-prefix, .pkt-input__container:hover .pkt-input-suffix, .pkt-input__container:hover .pkt-input-icon {
13632
+ border-color: var(--color-hover);
13633
+ }
13634
+ .pkt-input__container:focus-within {
13635
+ outline: 2px solid var(--color-active);
13636
+ }
13637
+ .pkt-input__container:focus-within .pkt-input, .pkt-input__container:focus-within .pkt-textinput__input, .pkt-input__container:focus-within .pkt-select select, .pkt-select .pkt-input__container:focus-within select,
13638
+ .pkt-input__container:focus-within .pkt-select:is(select),
13639
+ .pkt-input__container:focus-within .pkt-input-prefix,
13640
+ .pkt-input__container:focus-within .pkt-input-suffix,
13641
+ .pkt-input__container:focus-within .pkt-input-icon {
13642
+ border-color: var(--color-active);
13643
+ }
13644
+ .pkt-input__counter {
13645
+ font-size: 0.875rem;
13646
+ font-weight: 300;
13647
+ letter-spacing: -0.2px;
13648
+ line-height: 1.375rem;
13649
+ width: 100%;
13650
+ text-align: right;
13651
+ }
13652
+ .pkt-input__counter--error {
13653
+ font-size: 0.875rem;
13654
+ font-weight: 500;
13655
+ letter-spacing: -0.2px;
13656
+ line-height: 1.375rem;
13657
+ color: var(--color-red);
13658
+ }
13659
+
13660
+ [data-mode=dark] .pkt-input-prefix,
13661
+ [data-mode=dark] .pkt-input-suffix,
13662
+ [data-mode=dark] .pkt-input-icon {
13663
+ background-color: var(--color-white);
13664
+ color: var(--color-blue-dark);
13665
+ }
13666
+
13479
13667
  /*
13480
13668
  * List elements
13481
13669
  */
@@ -13804,63 +13992,9 @@ Therefore, this is removed from the reset here, and images who need to be fluid
13804
13992
  /*
13805
13993
  * Select component
13806
13994
  *
13807
- * TODO: Det er ikke optimalt løst å duplisere svg-ikonet,
13808
- * dette refaktoreres ved anledning.
13995
+ * Denne blir stilsatt av .pkt-input
13996
+ * Ikke bruk klassen .pkt-select
13809
13997
  */
13810
- .pkt-select {
13811
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.2/icons/chevron-thin-down.svg);
13812
- display: block;
13813
- background-color: var(--color-white);
13814
- background-image: var(--svg);
13815
- background-repeat: no-repeat;
13816
- background-position: right 0.7rem top 50%;
13817
- background-size: 2rem auto, 100%;
13818
- border: 2px solid var(--color-blue-dark);
13819
- border-radius: 0;
13820
- color: var(--color-blue-dark);
13821
- font-family: inherit;
13822
- font-size: 1rem;
13823
- font-weight: normal;
13824
- height: 3.125rem;
13825
- line-height: 2rem;
13826
- margin: 0;
13827
- max-width: 100%;
13828
- padding: 0.4375rem 3rem 0.4375rem 0.5rem;
13829
- width: 100%;
13830
- appearance: none;
13831
- -moz-appearance: none;
13832
- -webkit-appearance: none;
13833
- }
13834
- .pkt-select::-ms-expand {
13835
- display: none;
13836
- }
13837
- .pkt-select:enabled:focus {
13838
- border-color: var(--color-active);
13839
- outline: 2px solid var(--color-active);
13840
- }
13841
- .pkt-select:enabled:hover {
13842
- --fg-color: var(--color-active);
13843
- border-color: var(--color-active);
13844
- color: var(--color-active);
13845
- }
13846
- .pkt-select:enabled:active {
13847
- border-color: var(--color-active);
13848
- outline: none;
13849
- }
13850
- .pkt-select:-moz-focusring {
13851
- color: transparent;
13852
- text-shadow: 0 0 0 var(--color-active);
13853
- }
13854
- .pkt-select:disabled {
13855
- filter: grayscale(1) brightness(4.16);
13856
- font-weight: 500;
13857
- }
13858
- .pkt-select option {
13859
- background-color: var(--color-white);
13860
- color: var(--color-blue-dark);
13861
- font-weight: normal;
13862
- }
13863
-
13864
13998
  /*
13865
13999
  * Table elements
13866
14000
  */
@@ -14809,6 +14943,12 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14809
14943
  letter-spacing: -0.2px;
14810
14944
  line-height: 1.375rem;
14811
14945
  }
14946
+ .pkt-inputwrapper__helptext > *:first-child {
14947
+ margin-top: 0;
14948
+ }
14949
+ .pkt-inputwrapper__helptext > *:last-child {
14950
+ margin-bottom: 0;
14951
+ }
14812
14952
  .pkt-inputwrapper__helptext-expandable {
14813
14953
  display: inline-flex;
14814
14954
  text-align: left;
@@ -14879,63 +15019,57 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14879
15019
  padding: 0;
14880
15020
  height: auto;
14881
15021
  }
14882
- .pkt-inputwrapper--error .pkt-textinput__input,
14883
- .pkt-inputwrapper--error .pkt-textinput__input-prefix,
14884
- .pkt-inputwrapper--error .pkt-textinput__input-suffix,
14885
- .pkt-inputwrapper--error .pkt-textinput__input-icon {
15022
+ .pkt-inputwrapper--error .pkt-input,
15023
+ .pkt-inputwrapper--error .pkt-input-prefix,
15024
+ .pkt-inputwrapper--error .pkt-input-suffix,
15025
+ .pkt-inputwrapper--error .pkt-input-icon {
14886
15026
  border-color: var(--color-red);
14887
15027
  }
14888
- .pkt-inputwrapper--error .pkt-textinput__input:hover,
14889
- .pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input,
14890
- .pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-prefix,
14891
- .pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-suffix,
14892
- .pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-icon {
15028
+ .pkt-inputwrapper--error .pkt-input:hover,
15029
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input,
15030
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-prefix,
15031
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-suffix,
15032
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-icon {
14893
15033
  border-color: var(--color-red);
14894
15034
  }
14895
- .pkt-inputwrapper--error .pkt-textinput__input:focus-within,
14896
- .pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input,
14897
- .pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-prefix,
14898
- .pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-suffix,
14899
- .pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-icon {
15035
+ .pkt-inputwrapper--error .pkt-input:focus-within,
15036
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input,
15037
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-prefix,
15038
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-suffix,
15039
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-icon {
14900
15040
  border-color: var(--color-red);
14901
15041
  }
14902
15042
  .pkt-inputwrapper--disabled {
14903
15043
  color: var(--color-disabled);
14904
15044
  cursor: inherit;
14905
15045
  }
14906
- .pkt-inputwrapper--disabled .pkt-textinput__input,
14907
- .pkt-inputwrapper--disabled .pkt-textinput__input-prefix,
14908
- .pkt-inputwrapper--disabled .pkt-textinput__input-suffix,
14909
- .pkt-inputwrapper--disabled .pkt-textinput__input-icon {
15046
+ .pkt-inputwrapper--disabled .pkt-input,
15047
+ .pkt-inputwrapper--disabled .pkt-input-prefix,
15048
+ .pkt-inputwrapper--disabled .pkt-input-suffix,
15049
+ .pkt-inputwrapper--disabled .pkt-input-icon {
14910
15050
  border-color: var(--color-disabled);
14911
15051
  background-color: var(--color-disabled-light);
14912
15052
  }
14913
- .pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input,
14914
- .pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-prefix,
14915
- .pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-suffix,
14916
- .pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-icon {
15053
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input,
15054
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-prefix,
15055
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-suffix,
15056
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-icon {
14917
15057
  border-color: var(--color-disabled);
14918
15058
  }
14919
- .pkt-inputwrapper--disabled .pkt-textinput__input:hover {
15059
+ .pkt-inputwrapper--disabled .pkt-input:hover {
14920
15060
  border-color: var(--color-disabled);
14921
15061
  box-shadow: none;
14922
15062
  }
14923
- .pkt-inputwrapper--disabled .pkt-textinput__input:focus {
15063
+ .pkt-inputwrapper--disabled .pkt-input:focus {
14924
15064
  border-color: var(--color-disabled);
14925
15065
  box-shadow: none;
14926
15066
  outline: none;
14927
15067
  }
14928
- .pkt-inputwrapper--disabled .pkt-textinput__container:active .pkt-textinput__input {
15068
+ .pkt-inputwrapper--disabled .pkt-input__container:active .pkt-input {
14929
15069
  border-right: none;
14930
15070
  box-shadow: none;
14931
15071
  outline: none;
14932
15072
  }
14933
- [data-mode=dark] .pkt-textinput__input-prefix,
14934
- [data-mode=dark] .pkt-textinput__input-suffix,
14935
- [data-mode=dark] .pkt-textinput__input-icon {
14936
- background-color: var(--color-white);
14937
- color: var(--color-blue-dark);
14938
- }
14939
15073
 
14940
15074
  /*
14941
15075
  * Header element
@@ -15133,149 +15267,9 @@ Therefore, this is removed from the reset here, and images who need to be fluid
15133
15267
  color: var(--color-hover) !important;
15134
15268
  }
15135
15269
 
15136
- /* textinput */
15137
- .pkt-textinput__input {
15138
- font-size: 1.125rem;
15139
- font-weight: 300;
15140
- letter-spacing: -0.2px;
15141
- line-height: 1.75rem;
15142
- display: flex;
15143
- align-items: center;
15144
- appearance: none;
15145
- background-color: var(--color-white);
15146
- border: 2px solid var(--color-blue-dark);
15147
- border-radius: 0;
15148
- color: var(--color-blue-dark);
15149
- margin: 0;
15150
- padding: 0.5rem 1rem;
15151
- width: 100%;
15152
- }
15153
- .pkt-textinput__input:is(textarea) {
15154
- min-height: 8rem;
15155
- }
15156
- .pkt-textinput__input::placeholder {
15157
- color: var(--color-grayscale-50);
15158
- opacity: 1;
15159
- }
15160
- .pkt-textinput__input:hover, .pkt-textinput__input.pkt-textinput__textinput--hover {
15161
- border-color: var(--color-hover);
15162
- }
15163
- .pkt-textinput__input:focus-visible + .pkt-textinput-suffix, .pkt-textinput__input.pkt-textinput__textinput--focus {
15164
- box-shadow: 0 0 0 2px var(--color-active);
15165
- border-color: var(--color-active);
15166
- }
15167
- .pkt-textinput__input:focus {
15168
- outline: none;
15169
- box-shadow: 0 0 0 2px var(--color-active);
15170
- border-color: var(--color-active);
15171
- }
15172
- .pkt-textinput__input:disabled, .pkt-textinput__input:disabled::placeholder, .pkt-textinput__input[readonly] {
15173
- opacity: 1;
15174
- background-color: var(--color-disabled-light);
15175
- border-color: var(--color-disabled);
15176
- cursor: inherit;
15177
- }
15178
- .pkt-textinput__input:disabled:active {
15179
- border: 2px solid var(--color-disabled);
15180
- }
15181
- .pkt-textinput__input-prefix, .pkt-textinput__input-suffix, .pkt-textinput__input-icon {
15182
- font-size: 1.125rem;
15183
- font-weight: 300;
15184
- letter-spacing: -0.2px;
15185
- line-height: 1.75rem;
15186
- display: flex;
15187
- align-items: center;
15188
- width: auto;
15189
- height: 3rem;
15190
- border: 2px solid var(--color-blue-dark);
15191
- flex-shrink: 0;
15192
- }
15193
- .pkt-textinput__input-prefix {
15194
- padding: 0.5rem 0rem 0.5rem 1rem;
15195
- }
15196
- .pkt-textinput__input-prefix::after {
15197
- content: "";
15198
- width: 1px;
15199
- margin-left: 0.5rem;
15200
- height: 100%;
15201
- background-color: var(--color-blue-dark);
15202
- }
15203
- .pkt-textinput__input-suffix {
15204
- padding: 0.5rem 1rem 0.5rem 0rem;
15205
- }
15206
- .pkt-textinput__input-suffix svg {
15207
- width: 1.5rem;
15208
- height: 1.5rem;
15209
- margin-left: 0.5rem;
15210
- }
15211
- .pkt-textinput__input-suffix::before {
15212
- content: "";
15213
- width: 1px;
15214
- margin-right: 0.5rem;
15215
- height: 1.5rem;
15216
- background-color: var(--color-blue-dark);
15217
- }
15218
- .pkt-textinput__input-icon {
15219
- padding: 0.5rem 1rem;
15220
- align-self: stretch;
15221
- }
15222
- .pkt-textinput__input-icon svg {
15223
- width: 1.5rem;
15224
- height: 1.5rem;
15225
- margin-left: 0.5rem;
15226
- }
15227
- .pkt-textinput__input--counter-error, .pkt-textinput__input--counter-error:focus {
15228
- border-color: var(--color-red);
15229
- background-color: var(--color-red-30);
15230
- }
15231
- .pkt-textinput__input--counter-error:focus {
15232
- box-shadow: 0 0 0 2px var(--color-red);
15233
- }
15234
- .pkt-textinput__container {
15235
- display: flex;
15236
- align-items: center;
15237
- align-self: stretch;
15238
- }
15239
- .pkt-textinput__container :first-child:not(:only-child) {
15240
- border-right: none;
15241
- }
15242
- .pkt-textinput__container :last-child:not(:only-child) {
15243
- border-left: none;
15244
- }
15245
- .pkt-textinput__container :not(:first-child):not(:last-child) {
15246
- border-left: none;
15247
- border-right: none;
15248
- }
15249
- .pkt-textinput__container p {
15250
- margin: 0;
15251
- }
15252
- .pkt-textinput__container input:focus {
15253
- box-shadow: none;
15254
- }
15255
- .pkt-textinput__container:hover .pkt-textinput__input, .pkt-textinput__container:hover .pkt-textinput__input-prefix, .pkt-textinput__container:hover .pkt-textinput__input-suffix, .pkt-textinput__container:hover .pkt-textinput__input-icon {
15256
- border-color: var(--color-hover);
15257
- }
15258
- .pkt-textinput__container:focus-within {
15259
- outline: 2px solid var(--color-active);
15260
- }
15261
- .pkt-textinput__container:focus-within .pkt-textinput__input,
15262
- .pkt-textinput__container:focus-within .pkt-textinput__input-prefix,
15263
- .pkt-textinput__container:focus-within .pkt-textinput__input-suffix,
15264
- .pkt-textinput__container:focus-within .pkt-textinput__input-icon {
15265
- border-color: var(--color-active);
15266
- }
15267
- .pkt-textinput__counter {
15268
- font-size: 0.875rem;
15269
- font-weight: 300;
15270
- letter-spacing: -0.2px;
15271
- line-height: 1.375rem;
15272
- width: 100%;
15273
- text-align: right;
15274
- }
15275
- .pkt-textinput__counter--error {
15276
- font-size: 0.875rem;
15277
- font-weight: 500;
15278
- letter-spacing: -0.2px;
15279
- line-height: 1.375rem;
15280
- color: var(--color-red);
15281
- }
15270
+ /*
15271
+ * Textinput component
15272
+ *
15273
+ * Denne blir stilsatt av .pkt-input
15274
+ * Ikke bruk klassen .pkt-textinput
15275
+ */