@oslokommune/punkt-css 7.2.0 → 8.0.4

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,200 @@ 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
+ }
13496
+ .pkt-input:not(textarea[cols]):not(input[size]):not(.pkt-input--fullwidth), .pkt-textinput__input:not(textarea[cols]):not(input[size]):not(.pkt-input--fullwidth), .pkt-select select:not(textarea[cols]):not(input[size]):not(.pkt-input--fullwidth),
13497
+ .pkt-select:not(textarea[cols]):not(input[size]):not(.pkt-input--fullwidth):is(select), .pkt-input__container:not(:has(textarea[cols])):not(:has(input[size])):not(:has(.pkt-input--fullwidth)) {
13498
+ width: min(100%, 31rem);
13499
+ }
13500
+ .pkt-input--fullwidth {
13501
+ width: 100%;
13502
+ }
13503
+ .pkt-input:is(textarea), .pkt-textinput__input:is(textarea), .pkt-select select:is(textarea),
13504
+ .pkt-select:is(textarea):is(select) {
13505
+ min-height: 8rem;
13506
+ }
13507
+ .pkt-input:is(select), .pkt-textinput__input:is(select), .pkt-select select:is(select),
13508
+ .pkt-select:is(select) {
13509
+ appearance: none;
13510
+ -moz-appearance: none;
13511
+ -webkit-appearance: none;
13512
+ padding-right: 3rem;
13513
+ }
13514
+ .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
13515
+ .pkt-select:is(select):not([multiple]) {
13516
+ 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");
13517
+ background-repeat: no-repeat;
13518
+ background-position: right 0.7rem top 50%;
13519
+ background-size: 1.5rem auto, 100%;
13520
+ }
13521
+ .pkt-input:is(select) option, .pkt-textinput__input:is(select) option, .pkt-select select:is(select) option,
13522
+ .pkt-select:is(select) option {
13523
+ background-color: var(--color-white);
13524
+ color: var(--color-blue-dark);
13525
+ font-weight: normal;
13526
+ }
13527
+ .pkt-input::placeholder, .pkt-textinput__input::placeholder, .pkt-select select::placeholder,
13528
+ .pkt-select:is(select)::placeholder {
13529
+ color: var(--color-grayscale-50);
13530
+ opacity: 1;
13531
+ }
13532
+ .pkt-input:hover, .pkt-textinput__input:hover, .pkt-select select:hover,
13533
+ .pkt-select:hover:is(select), .pkt-input.pkt-input--hover, .pkt-input--hover.pkt-textinput__input, .pkt-select select.pkt-input--hover,
13534
+ .pkt-input--hover.pkt-select:is(select) {
13535
+ border-color: var(--color-hover);
13536
+ }
13537
+ .pkt-input:focus-visible + .pkt-input-suffix, .pkt-textinput__input:focus-visible + .pkt-input-suffix, .pkt-select select:focus-visible + .pkt-input-suffix,
13538
+ .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,
13539
+ .pkt-input__textinput--focus.pkt-select:is(select) {
13540
+ box-shadow: 0 0 0 2px var(--color-active);
13541
+ border-color: var(--color-active);
13542
+ }
13543
+ .pkt-input:focus, .pkt-textinput__input:focus, .pkt-select select:focus,
13544
+ .pkt-select:focus:is(select) {
13545
+ outline: none;
13546
+ box-shadow: 0 0 0 2px var(--color-active);
13547
+ border-color: var(--color-active);
13548
+ }
13549
+ .pkt-input:disabled, .pkt-textinput__input:disabled, .pkt-select select:disabled,
13550
+ .pkt-select:disabled:is(select), .pkt-input:disabled::placeholder, .pkt-textinput__input:disabled::placeholder, .pkt-select select:disabled::placeholder,
13551
+ .pkt-select:disabled:is(select)::placeholder, .pkt-input[readonly], [readonly].pkt-textinput__input, .pkt-select select[readonly],
13552
+ [readonly].pkt-select:is(select) {
13553
+ opacity: 1;
13554
+ background-color: var(--color-disabled-light);
13555
+ border-color: var(--color-disabled);
13556
+ cursor: inherit;
13557
+ }
13558
+ .pkt-input:disabled:active, .pkt-textinput__input:disabled:active, .pkt-select select:disabled:active,
13559
+ .pkt-select:disabled:active:is(select) {
13560
+ border: 2px solid var(--color-disabled);
13561
+ }
13562
+ .pkt-input-prefix, .pkt-input-suffix, .pkt-input-icon {
13563
+ font-size: 1.125rem;
13564
+ font-weight: 300;
13565
+ letter-spacing: -0.2px;
13566
+ line-height: 1.75rem;
13567
+ display: flex;
13568
+ align-items: center;
13569
+ width: auto;
13570
+ height: 3rem;
13571
+ border: 2px solid var(--color-blue-dark);
13572
+ flex-shrink: 0;
13573
+ }
13574
+ .pkt-input-prefix {
13575
+ padding: 0.5rem 0rem 0.5rem 1rem;
13576
+ }
13577
+ .pkt-input-prefix::after {
13578
+ content: "";
13579
+ width: 1px;
13580
+ margin-left: 0.5rem;
13581
+ height: 100%;
13582
+ background-color: var(--color-blue-dark);
13583
+ }
13584
+ .pkt-input-suffix {
13585
+ padding: 0.5rem 1rem 0.5rem 0rem;
13586
+ }
13587
+ .pkt-input-suffix svg {
13588
+ width: 1.5rem;
13589
+ height: 1.5rem;
13590
+ margin-left: 0.5rem;
13591
+ }
13592
+ .pkt-input-suffix::before {
13593
+ content: "";
13594
+ width: 1px;
13595
+ margin-right: 0.5rem;
13596
+ height: 1.5rem;
13597
+ background-color: var(--color-blue-dark);
13598
+ }
13599
+ .pkt-input-icon {
13600
+ padding: 0.5rem 1rem;
13601
+ align-self: stretch;
13602
+ }
13603
+ .pkt-input-icon svg {
13604
+ width: 1.5rem;
13605
+ height: 1.5rem;
13606
+ margin-left: 0.5rem;
13607
+ }
13608
+ .pkt-input--counter-error, .pkt-input--counter-error:focus {
13609
+ border-color: var(--color-red);
13610
+ background-color: var(--color-red-30);
13611
+ }
13612
+ .pkt-input--counter-error:focus {
13613
+ box-shadow: 0 0 0 2px var(--color-red);
13614
+ }
13615
+ .pkt-input__container {
13616
+ display: flex;
13617
+ align-items: center;
13618
+ align-self: stretch;
13619
+ }
13620
+ .pkt-input__container :first-child:not(:only-child) {
13621
+ border-right: none;
13622
+ }
13623
+ .pkt-input__container :last-child:not(:only-child) {
13624
+ border-left: none;
13625
+ }
13626
+ .pkt-input__container :not(:first-child):not(:last-child) {
13627
+ border-left: none;
13628
+ border-right: none;
13629
+ }
13630
+ .pkt-input__container p {
13631
+ margin: 0;
13632
+ }
13633
+ .pkt-input__container input:focus {
13634
+ box-shadow: none;
13635
+ }
13636
+ .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,
13637
+ .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 {
13638
+ border-color: var(--color-hover);
13639
+ }
13640
+ .pkt-input__container:focus-within {
13641
+ outline: 2px solid var(--color-active);
13642
+ }
13643
+ .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,
13644
+ .pkt-input__container:focus-within .pkt-select:is(select),
13645
+ .pkt-input__container:focus-within .pkt-input-prefix,
13646
+ .pkt-input__container:focus-within .pkt-input-suffix,
13647
+ .pkt-input__container:focus-within .pkt-input-icon {
13648
+ border-color: var(--color-active);
13649
+ }
13650
+ .pkt-input__counter {
13651
+ font-size: 0.875rem;
13652
+ font-weight: 300;
13653
+ letter-spacing: -0.2px;
13654
+ line-height: 1.375rem;
13655
+ width: 100%;
13656
+ text-align: right;
13657
+ }
13658
+ .pkt-input__counter--error {
13659
+ font-size: 0.875rem;
13660
+ font-weight: 500;
13661
+ letter-spacing: -0.2px;
13662
+ line-height: 1.375rem;
13663
+ color: var(--color-red);
13664
+ }
13665
+
13666
+ [data-mode=dark] .pkt-input-prefix,
13667
+ [data-mode=dark] .pkt-input-suffix,
13668
+ [data-mode=dark] .pkt-input-icon {
13669
+ background-color: var(--color-white);
13670
+ color: var(--color-blue-dark);
13671
+ }
13672
+
13479
13673
  /*
13480
13674
  * List elements
13481
13675
  */
@@ -13804,63 +13998,9 @@ Therefore, this is removed from the reset here, and images who need to be fluid
13804
13998
  /*
13805
13999
  * Select component
13806
14000
  *
13807
- * TODO: Det er ikke optimalt løst å duplisere svg-ikonet,
13808
- * dette refaktoreres ved anledning.
14001
+ * Denne blir stilsatt av .pkt-input
14002
+ * Ikke bruk klassen .pkt-select
13809
14003
  */
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
14004
  /*
13865
14005
  * Table elements
13866
14006
  */
@@ -14800,6 +14940,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14800
14940
  margin-bottom: 0;
14801
14941
  }
14802
14942
  .pkt-inputwrapper__helptext {
14943
+ width: min(100%, 31rem);
14803
14944
  display: flex;
14804
14945
  flex-direction: column;
14805
14946
  align-items: flex-start;
@@ -14809,6 +14950,12 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14809
14950
  letter-spacing: -0.2px;
14810
14951
  line-height: 1.375rem;
14811
14952
  }
14953
+ .pkt-inputwrapper__helptext > *:first-child {
14954
+ margin-top: 0;
14955
+ }
14956
+ .pkt-inputwrapper__helptext > *:last-child {
14957
+ margin-bottom: 0;
14958
+ }
14812
14959
  .pkt-inputwrapper__helptext-expandable {
14813
14960
  display: inline-flex;
14814
14961
  text-align: left;
@@ -14822,7 +14969,6 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14822
14969
  margin: 0;
14823
14970
  }
14824
14971
  .pkt-inputwrapper__helptext-expandable-open {
14825
- width: 100%;
14826
14972
  display: block;
14827
14973
  border-left: 2px solid var(--color-blue-dark);
14828
14974
  padding: 0.5rem 1rem;
@@ -14848,7 +14994,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14848
14994
  margin-right: 8px;
14849
14995
  }
14850
14996
  .pkt-inputwrapper .pkt-alert {
14851
- width: 100%;
14997
+ width: min(100%, 31rem);
14852
14998
  padding: 0.75rem 1rem 0.75rem 4px;
14853
14999
  margin: 0 0 0.5rem 0;
14854
15000
  }
@@ -14879,63 +15025,57 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14879
15025
  padding: 0;
14880
15026
  height: auto;
14881
15027
  }
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 {
15028
+ .pkt-inputwrapper--error .pkt-input,
15029
+ .pkt-inputwrapper--error .pkt-input-prefix,
15030
+ .pkt-inputwrapper--error .pkt-input-suffix,
15031
+ .pkt-inputwrapper--error .pkt-input-icon {
14886
15032
  border-color: var(--color-red);
14887
15033
  }
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 {
15034
+ .pkt-inputwrapper--error .pkt-input:hover,
15035
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input,
15036
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-prefix,
15037
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-suffix,
15038
+ .pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-icon {
14893
15039
  border-color: var(--color-red);
14894
15040
  }
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 {
15041
+ .pkt-inputwrapper--error .pkt-input:focus-within,
15042
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input,
15043
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-prefix,
15044
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-suffix,
15045
+ .pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-icon {
14900
15046
  border-color: var(--color-red);
14901
15047
  }
14902
15048
  .pkt-inputwrapper--disabled {
14903
15049
  color: var(--color-disabled);
14904
15050
  cursor: inherit;
14905
15051
  }
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 {
15052
+ .pkt-inputwrapper--disabled .pkt-input,
15053
+ .pkt-inputwrapper--disabled .pkt-input-prefix,
15054
+ .pkt-inputwrapper--disabled .pkt-input-suffix,
15055
+ .pkt-inputwrapper--disabled .pkt-input-icon {
14910
15056
  border-color: var(--color-disabled);
14911
15057
  background-color: var(--color-disabled-light);
14912
15058
  }
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 {
15059
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input,
15060
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-prefix,
15061
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-suffix,
15062
+ .pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-icon {
14917
15063
  border-color: var(--color-disabled);
14918
15064
  }
14919
- .pkt-inputwrapper--disabled .pkt-textinput__input:hover {
15065
+ .pkt-inputwrapper--disabled .pkt-input:hover {
14920
15066
  border-color: var(--color-disabled);
14921
15067
  box-shadow: none;
14922
15068
  }
14923
- .pkt-inputwrapper--disabled .pkt-textinput__input:focus {
15069
+ .pkt-inputwrapper--disabled .pkt-input:focus {
14924
15070
  border-color: var(--color-disabled);
14925
15071
  box-shadow: none;
14926
15072
  outline: none;
14927
15073
  }
14928
- .pkt-inputwrapper--disabled .pkt-textinput__container:active .pkt-textinput__input {
15074
+ .pkt-inputwrapper--disabled .pkt-input__container:active .pkt-input {
14929
15075
  border-right: none;
14930
15076
  box-shadow: none;
14931
15077
  outline: none;
14932
15078
  }
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
15079
 
14940
15080
  /*
14941
15081
  * Header element
@@ -15133,149 +15273,9 @@ Therefore, this is removed from the reset here, and images who need to be fluid
15133
15273
  color: var(--color-hover) !important;
15134
15274
  }
15135
15275
 
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
- }
15276
+ /*
15277
+ * Textinput component
15278
+ *
15279
+ * Denne blir stilsatt av .pkt-input
15280
+ * Ikke bruk klassen .pkt-textinput
15281
+ */