@oslokommune/punkt-css 2.0.1 → 2.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/CHANGELOG.md +24 -0
- package/dist/css/components/alert.css +59 -70
- package/dist/css/components/alert.min.css +1 -1
- package/dist/css/components/icon.css +0 -41
- package/dist/css/components/icon.min.css +1 -1
- package/dist/css/pkt-base.css +38 -0
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +59 -111
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +17 -34
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +114 -145
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_colors.scss +4 -0
- package/dist/scss/base/_defaults.scss +2 -0
- package/dist/scss/components/_alert.scss +64 -102
- package/dist/scss/components/_icon.scss +0 -54
- package/dist/scss/elements/_button.scss +24 -40
- package/package.json +3 -3
package/dist/css/pkt.css
CHANGED
|
@@ -299,12 +299,16 @@ textarea {
|
|
|
299
299
|
--color-blue-dark-10: #d9e9f2;
|
|
300
300
|
--color-blue-5: #f1fdff;
|
|
301
301
|
--color-blue-10: #e5fcff;
|
|
302
|
+
--color-blue-60: #cdf5fb;
|
|
302
303
|
--color-green-dark-5: #f2fff3;
|
|
303
304
|
--color-green-dark-10: #d9f2ef;
|
|
304
305
|
--color-green-10: #e5ffe6;
|
|
306
|
+
--color-green-30: #c0f6e3;
|
|
305
307
|
--color-red-5: #fff3f2;
|
|
306
308
|
--color-red-10: #ffe8e5;
|
|
309
|
+
--color-red-30: #f9cfca;
|
|
307
310
|
--color-yellow-5: #fef9f0;
|
|
311
|
+
--color-yellow-50: #fae1b6;
|
|
308
312
|
--color-gray-light: #f9f9f9;
|
|
309
313
|
--color-gray: #f2f2f2;
|
|
310
314
|
--color-gray-dark: #2c2c2c;
|
|
@@ -538,6 +542,14 @@ textarea {
|
|
|
538
542
|
color: #e5fcff !important;
|
|
539
543
|
}
|
|
540
544
|
|
|
545
|
+
.bg-color-blue-60 {
|
|
546
|
+
background-color: #cdf5fb !important;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.txt-color-blue-60 {
|
|
550
|
+
color: #cdf5fb !important;
|
|
551
|
+
}
|
|
552
|
+
|
|
541
553
|
.bg-color-green-dark-5 {
|
|
542
554
|
background-color: #f2fff3 !important;
|
|
543
555
|
}
|
|
@@ -562,6 +574,14 @@ textarea {
|
|
|
562
574
|
color: #e5ffe6 !important;
|
|
563
575
|
}
|
|
564
576
|
|
|
577
|
+
.bg-color-green-30 {
|
|
578
|
+
background-color: #c0f6e3 !important;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.txt-color-green-30 {
|
|
582
|
+
color: #c0f6e3 !important;
|
|
583
|
+
}
|
|
584
|
+
|
|
565
585
|
.bg-color-red-5 {
|
|
566
586
|
background-color: #fff3f2 !important;
|
|
567
587
|
}
|
|
@@ -578,6 +598,14 @@ textarea {
|
|
|
578
598
|
color: #ffe8e5 !important;
|
|
579
599
|
}
|
|
580
600
|
|
|
601
|
+
.bg-color-red-30 {
|
|
602
|
+
background-color: #f9cfca !important;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.txt-color-red-30 {
|
|
606
|
+
color: #f9cfca !important;
|
|
607
|
+
}
|
|
608
|
+
|
|
581
609
|
.bg-color-yellow-5 {
|
|
582
610
|
background-color: #fef9f0 !important;
|
|
583
611
|
}
|
|
@@ -586,6 +614,14 @@ textarea {
|
|
|
586
614
|
color: #fef9f0 !important;
|
|
587
615
|
}
|
|
588
616
|
|
|
617
|
+
.bg-color-yellow-50 {
|
|
618
|
+
background-color: #fae1b6 !important;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.txt-color-yellow-50 {
|
|
622
|
+
color: #fae1b6 !important;
|
|
623
|
+
}
|
|
624
|
+
|
|
589
625
|
.bg-color-gray-light {
|
|
590
626
|
background-color: #f9f9f9 !important;
|
|
591
627
|
}
|
|
@@ -747,6 +783,8 @@ p {
|
|
|
747
783
|
}
|
|
748
784
|
|
|
749
785
|
body {
|
|
786
|
+
-webkit-font-smoothing: antialiased;
|
|
787
|
+
-moz-osx-font-smoothing: grayscale;
|
|
750
788
|
min-height: 100vh;
|
|
751
789
|
overflow-y: scroll;
|
|
752
790
|
line-height: 1.5;
|
|
@@ -10049,7 +10087,6 @@ a:active {
|
|
|
10049
10087
|
font-family: inherit;
|
|
10050
10088
|
font-weight: normal;
|
|
10051
10089
|
margin: 6px;
|
|
10052
|
-
overflow: hidden;
|
|
10053
10090
|
position: relative;
|
|
10054
10091
|
-moz-user-select: none;
|
|
10055
10092
|
-webkit-user-select: none;
|
|
@@ -10063,11 +10100,15 @@ a:active {
|
|
|
10063
10100
|
text-decoration-thickness: 1px;
|
|
10064
10101
|
text-underline-offset: 0.3em;
|
|
10065
10102
|
text-align: left;
|
|
10103
|
+
align-items: center;
|
|
10104
|
+
column-gap: 0.5rem;
|
|
10066
10105
|
font-size: 1.125rem;
|
|
10067
10106
|
font-weight: 500;
|
|
10068
10107
|
letter-spacing: -0.2px;
|
|
10069
10108
|
line-height: 1.5em;
|
|
10070
|
-
|
|
10109
|
+
height: 3rem;
|
|
10110
|
+
line-height: 1.1;
|
|
10111
|
+
padding: 0 1rem;
|
|
10071
10112
|
}
|
|
10072
10113
|
.pkt-btn[class*=pkt-btn--icon] > .pkt-btn__icon {
|
|
10073
10114
|
display: block;
|
|
@@ -10116,20 +10157,16 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
|
|
|
10116
10157
|
font-weight: 500;
|
|
10117
10158
|
letter-spacing: -0.2px;
|
|
10118
10159
|
line-height: 1.5em;
|
|
10119
|
-
|
|
10160
|
+
height: 2.625rem;
|
|
10161
|
+
line-height: 1.1;
|
|
10162
|
+
padding: 0 0.5rem;
|
|
10120
10163
|
}
|
|
10121
10164
|
.pkt-btn--small .pkt-btn__icon {
|
|
10122
10165
|
height: 1.25rem;
|
|
10123
10166
|
width: 1.25rem;
|
|
10124
10167
|
}
|
|
10125
|
-
.pkt-btn--small.pkt-btn--icon-
|
|
10126
|
-
|
|
10127
|
-
}
|
|
10128
|
-
.pkt-btn--small.pkt-btn--icon-right .pkt-btn__icon {
|
|
10129
|
-
margin: 0 0 0 0.5rem;
|
|
10130
|
-
}
|
|
10131
|
-
.pkt-btn--small.pkt-btn--icon-only .pkt-btn__icon {
|
|
10132
|
-
margin: 0 -0.3125rem;
|
|
10168
|
+
.pkt-btn--small.pkt-btn--icon-only {
|
|
10169
|
+
padding: 0 0.5625rem;
|
|
10133
10170
|
}
|
|
10134
10171
|
.pkt-btn__icon {
|
|
10135
10172
|
height: 1.5rem;
|
|
@@ -10141,46 +10178,30 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
|
|
|
10141
10178
|
.pkt-btn--icon-left {
|
|
10142
10179
|
flex-direction: row;
|
|
10143
10180
|
}
|
|
10144
|
-
.pkt-btn--icon-left .pkt-btn__icon {
|
|
10145
|
-
margin: 0.09375rem 0.5rem 0 0;
|
|
10146
|
-
}
|
|
10147
10181
|
.pkt-btn--icon-right {
|
|
10148
10182
|
flex-direction: row-reverse;
|
|
10149
10183
|
}
|
|
10150
|
-
.pkt-btn--icon-right .pkt-btn__icon {
|
|
10151
|
-
margin: 0.09375rem 0 0 0.5rem;
|
|
10152
|
-
}
|
|
10153
10184
|
.pkt-btn--icons-right-and-left {
|
|
10154
10185
|
flex-direction: row;
|
|
10155
10186
|
}
|
|
10156
|
-
.pkt-btn--
|
|
10157
|
-
|
|
10158
|
-
}
|
|
10159
|
-
.pkt-btn--icons-right-and-left .pkt-btn__icon:last-of-type {
|
|
10160
|
-
margin: 0.09375rem 0 0 0.5rem;
|
|
10161
|
-
}
|
|
10162
|
-
.pkt-btn--icon-only .pkt-btn__icon {
|
|
10163
|
-
margin: 0.09375rem -0.21875rem;
|
|
10187
|
+
.pkt-btn--icon-only {
|
|
10188
|
+
padding: 0 0.625rem;
|
|
10164
10189
|
}
|
|
10165
10190
|
.pkt-btn--large {
|
|
10166
10191
|
font-size: 1.5rem;
|
|
10167
10192
|
font-weight: 500;
|
|
10168
10193
|
letter-spacing: -0.2px;
|
|
10169
10194
|
line-height: 1.5em;
|
|
10170
|
-
|
|
10195
|
+
height: 4rem;
|
|
10196
|
+
line-height: 1.1;
|
|
10197
|
+
padding: 0 1rem;
|
|
10171
10198
|
}
|
|
10172
10199
|
.pkt-btn--large .pkt-btn__icon {
|
|
10173
10200
|
height: 2rem;
|
|
10174
10201
|
width: 2rem;
|
|
10175
10202
|
}
|
|
10176
|
-
.pkt-btn--large.pkt-btn--icon-
|
|
10177
|
-
|
|
10178
|
-
}
|
|
10179
|
-
.pkt-btn--large.pkt-btn--icon-right .pkt-btn__icon {
|
|
10180
|
-
margin: 0.0625rem 0 0 0.5rem;
|
|
10181
|
-
}
|
|
10182
|
-
.pkt-btn--large.pkt-btn--icon-only .pkt-btn__icon {
|
|
10183
|
-
margin: 0.0625rem -0.25rem;
|
|
10203
|
+
.pkt-btn--large.pkt-btn--icon-only {
|
|
10204
|
+
padding: 0 0.875rem;
|
|
10184
10205
|
}
|
|
10185
10206
|
.pkt-btn::-moz-focus-inner {
|
|
10186
10207
|
border: 0;
|
|
@@ -10797,31 +10818,65 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
10797
10818
|
* Alert component
|
|
10798
10819
|
*/
|
|
10799
10820
|
.pkt-alert {
|
|
10800
|
-
|
|
10821
|
+
--pkt-alert-bc: var(--color-blue);
|
|
10822
|
+
--pkt-alert-bg: var(--color-blue-60);
|
|
10823
|
+
--pkt-alert-txt: var(--color-blue-dark);
|
|
10824
|
+
--pkt-alert-icon-fg: var(--color-blue-dark);
|
|
10825
|
+
--pkt-alert-close-fg: var(--color-blue-dark);
|
|
10826
|
+
}
|
|
10827
|
+
|
|
10828
|
+
.pkt-alert--error {
|
|
10829
|
+
--pkt-alert-bc: var(--color-red);
|
|
10830
|
+
--pkt-alert-bg: var(--color-red-30);
|
|
10831
|
+
}
|
|
10832
|
+
|
|
10833
|
+
.pkt-alert--success {
|
|
10834
|
+
--pkt-alert-bc: var(--color-green);
|
|
10835
|
+
--pkt-alert-bg: var(--color-green-30);
|
|
10836
|
+
}
|
|
10837
|
+
|
|
10838
|
+
.pkt-alert--warning {
|
|
10839
|
+
--pkt-alert-bc: var(--color-yellow);
|
|
10840
|
+
--pkt-alert-bg: var(--color-yellow-50);
|
|
10841
|
+
}
|
|
10842
|
+
|
|
10843
|
+
.pkt-alert {
|
|
10844
|
+
padding: 1.5rem 1.5rem 1.5rem 1.25rem;
|
|
10801
10845
|
display: block;
|
|
10802
|
-
overflow: hidden;
|
|
10803
10846
|
position: relative;
|
|
10847
|
+
border-left: 0.25rem solid var(--pkt-alert-bc);
|
|
10848
|
+
background-color: var(--pkt-alert-bg);
|
|
10849
|
+
color: var(--pkt-alert-txt);
|
|
10804
10850
|
}
|
|
10805
|
-
.pkt-
|
|
10851
|
+
.pkt-alert__title {
|
|
10806
10852
|
font-size: 1.125rem;
|
|
10807
|
-
font-weight:
|
|
10853
|
+
font-weight: 500;
|
|
10808
10854
|
letter-spacing: -0.2px;
|
|
10809
10855
|
line-height: 1.5em;
|
|
10810
|
-
margin
|
|
10811
|
-
padding: 0;
|
|
10856
|
+
margin: 0 0 1.5rem 2.5rem;
|
|
10812
10857
|
}
|
|
10813
|
-
.pkt-alert__title {
|
|
10858
|
+
.pkt-alert__close ~ .pkt-alert__title {
|
|
10859
|
+
margin: 0 4rem 1.5rem 2.5rem;
|
|
10860
|
+
}
|
|
10861
|
+
.pkt-alert__text {
|
|
10814
10862
|
font-size: 1.125rem;
|
|
10815
|
-
font-weight:
|
|
10863
|
+
font-weight: 300;
|
|
10816
10864
|
letter-spacing: -0.2px;
|
|
10817
10865
|
line-height: 1.5em;
|
|
10818
|
-
|
|
10819
|
-
align-items: center;
|
|
10820
|
-
margin-bottom: 1.5rem;
|
|
10866
|
+
margin: 0 0 0 2.5rem;
|
|
10821
10867
|
}
|
|
10822
|
-
.pkt-
|
|
10823
|
-
|
|
10824
|
-
|
|
10868
|
+
.pkt-alert__text p {
|
|
10869
|
+
margin-bottom: 1rem;
|
|
10870
|
+
}
|
|
10871
|
+
.pkt-alert__text p:last-of-type {
|
|
10872
|
+
margin-bottom: 0;
|
|
10873
|
+
}
|
|
10874
|
+
.pkt-alert__close + .pkt-alert__text {
|
|
10875
|
+
margin: 0 4rem 0 2.5rem;
|
|
10876
|
+
}
|
|
10877
|
+
.pkt-alert__title + .pkt-alert__text {
|
|
10878
|
+
margin-left: 0;
|
|
10879
|
+
margin-right: 0;
|
|
10825
10880
|
}
|
|
10826
10881
|
.pkt-alert__date {
|
|
10827
10882
|
font-size: 0.875rem;
|
|
@@ -10830,64 +10885,19 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
10830
10885
|
line-height: 1.5em;
|
|
10831
10886
|
margin-top: 1.5rem;
|
|
10832
10887
|
}
|
|
10833
|
-
.pkt-alert__close {
|
|
10834
|
-
display: flex;
|
|
10835
|
-
float: right;
|
|
10836
|
-
margin-left: 1.5rem;
|
|
10837
|
-
}
|
|
10838
10888
|
.pkt-alert__icon {
|
|
10839
|
-
|
|
10840
|
-
height:
|
|
10841
|
-
width:
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
border-left: 3px solid #034b45;
|
|
10846
|
-
background-color: #f2fff3;
|
|
10847
|
-
color: #034b45;
|
|
10848
|
-
}
|
|
10849
|
-
.pkt-alert--success.pkt-alert .pkt-alert__icon {
|
|
10850
|
-
--bg-color: var(--color-green-dark);
|
|
10851
|
-
--fg-color: var(--color-green-dark-5);
|
|
10852
|
-
}
|
|
10853
|
-
.pkt-alert--success.pkt-alert .pkt-alert__close {
|
|
10854
|
-
--fg-color: var(--color-green-dark);
|
|
10855
|
-
}
|
|
10856
|
-
.pkt-alert--error {
|
|
10857
|
-
border-left: 3px solid #96281c;
|
|
10858
|
-
background-color: #fff3f2;
|
|
10859
|
-
color: #96281c;
|
|
10860
|
-
}
|
|
10861
|
-
.pkt-alert--error.pkt-alert .pkt-alert__icon {
|
|
10862
|
-
--bg-color: var(--color-error);
|
|
10863
|
-
--fg-color: var(--color-red-5);
|
|
10864
|
-
}
|
|
10865
|
-
.pkt-alert--error.pkt-alert .pkt-alert__close {
|
|
10866
|
-
--fg-color: var(--color-error);
|
|
10867
|
-
}
|
|
10868
|
-
.pkt-alert--warning {
|
|
10869
|
-
border-left: 3px solid #f9c66b;
|
|
10870
|
-
background-color: #fef9f0;
|
|
10871
|
-
color: #774c01;
|
|
10872
|
-
}
|
|
10873
|
-
.pkt-alert--warning.pkt-alert .pkt-alert__icon {
|
|
10874
|
-
--bg-color: var(--color-yellow);
|
|
10875
|
-
--fg-color: var(--color-blue-dark);
|
|
10876
|
-
}
|
|
10877
|
-
.pkt-alert--warning.pkt-alert .pkt-alert__close {
|
|
10878
|
-
--fg-color: var(--color-warning);
|
|
10879
|
-
}
|
|
10880
|
-
.pkt-alert--info {
|
|
10881
|
-
border-left: 3px solid #2a2859;
|
|
10882
|
-
background-color: #f2f9ff;
|
|
10883
|
-
color: #2a2859;
|
|
10884
|
-
}
|
|
10885
|
-
.pkt-alert--info.pkt-alert .pkt-alert__icon {
|
|
10886
|
-
--bg-color: var(--color-blue);
|
|
10887
|
-
--fg-color: var(--color-blue-dark);
|
|
10889
|
+
--fg-color: var(--pkt-alert-icon-fg);
|
|
10890
|
+
height: 2rem;
|
|
10891
|
+
width: 2rem;
|
|
10892
|
+
position: absolute;
|
|
10893
|
+
top: 22px;
|
|
10894
|
+
left: 20px;
|
|
10888
10895
|
}
|
|
10889
|
-
.pkt-
|
|
10890
|
-
--fg-color: var(--
|
|
10896
|
+
.pkt-alert__close {
|
|
10897
|
+
--fg-color: var(--pkt-alert-close-fg);
|
|
10898
|
+
position: absolute;
|
|
10899
|
+
right: 1.125rem;
|
|
10900
|
+
top: 0.625rem;
|
|
10891
10901
|
}
|
|
10892
10902
|
|
|
10893
10903
|
/*
|
|
@@ -11295,47 +11305,6 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
11295
11305
|
width: 4rem;
|
|
11296
11306
|
}
|
|
11297
11307
|
|
|
11298
|
-
.pkt-font-icon {
|
|
11299
|
-
display: inline-block;
|
|
11300
|
-
font-family: 'Oslo Icons', sans-serif;
|
|
11301
|
-
}
|
|
11302
|
-
.pkt-font-icon--chevron-left::before {
|
|
11303
|
-
content: "\e907";
|
|
11304
|
-
}
|
|
11305
|
-
.pkt-font-icon--chevron-right::before {
|
|
11306
|
-
content: "\e908";
|
|
11307
|
-
}
|
|
11308
|
-
.pkt-font-icon--chevron-up::before {
|
|
11309
|
-
content: "\e909";
|
|
11310
|
-
}
|
|
11311
|
-
.pkt-font-icon--chevron-down::before {
|
|
11312
|
-
content: "\e906";
|
|
11313
|
-
}
|
|
11314
|
-
.pkt-font-icon--user::before {
|
|
11315
|
-
content: "\e921";
|
|
11316
|
-
}
|
|
11317
|
-
.pkt-font-icon--menu::before {
|
|
11318
|
-
content: "\e917";
|
|
11319
|
-
}
|
|
11320
|
-
.pkt-font-icon--close::before {
|
|
11321
|
-
content: "\e923";
|
|
11322
|
-
}
|
|
11323
|
-
.pkt-font-icon--search::before {
|
|
11324
|
-
content: "\e915";
|
|
11325
|
-
}
|
|
11326
|
-
.pkt-font-icon--trash::before {
|
|
11327
|
-
content: "\e92d";
|
|
11328
|
-
}
|
|
11329
|
-
.pkt-font-icon--edit::before {
|
|
11330
|
-
content: "\e949";
|
|
11331
|
-
}
|
|
11332
|
-
.pkt-font-icon--filter::before {
|
|
11333
|
-
content: "\e910";
|
|
11334
|
-
}
|
|
11335
|
-
.pkt-font-icon--envelope::before {
|
|
11336
|
-
content: "\e929";
|
|
11337
|
-
}
|
|
11338
|
-
|
|
11339
11308
|
/*
|
|
11340
11309
|
* Header element
|
|
11341
11310
|
*/
|