@navikt/aksel-stylelint 4.11.2 → 4.12.1
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/index.css +70 -16
- package/dist/tokens.json +2 -1
- package/package.json +3 -3
package/dist/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Thu, 17 Aug 2023 14:06:32 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -1319,9 +1319,15 @@ body,
|
|
|
1319
1319
|
font-size: 1.5rem;
|
|
1320
1320
|
align-self: flex-start;
|
|
1321
1321
|
height: var(--a-font-line-height-xlarge);
|
|
1322
|
-
margin: var(--a-spacing-1);
|
|
1322
|
+
margin-inline: var(--a-spacing-1);
|
|
1323
|
+
margin-block: 0;
|
|
1324
|
+
margin-block-start: -1px;
|
|
1323
1325
|
background: radial-gradient(circle, var(--a-surface-default) 50%, 0, transparent);
|
|
1324
1326
|
}
|
|
1327
|
+
.navds-alert--close-button > .navds-alert__icon,
|
|
1328
|
+
.navds-alert--small > .navds-alert__icon {
|
|
1329
|
+
margin-block-start: 0;
|
|
1330
|
+
}
|
|
1325
1331
|
.navds-alert--small > .navds-alert__icon {
|
|
1326
1332
|
height: var(--a-font-line-height-large);
|
|
1327
1333
|
}
|
|
@@ -1988,8 +1994,13 @@ body,
|
|
|
1988
1994
|
.navds-copybutton__icon {
|
|
1989
1995
|
font-size: 1.5rem;
|
|
1990
1996
|
display: flex;
|
|
1997
|
+
}
|
|
1998
|
+
.navds-copybutton__icon:first-of-type {
|
|
1991
1999
|
margin-left: -0.25rem;
|
|
1992
2000
|
}
|
|
2001
|
+
.navds-copybutton__icon:last-of-type {
|
|
2002
|
+
margin-right: -0.25rem;
|
|
2003
|
+
}
|
|
1993
2004
|
.navds-copybutton__icon:only-child {
|
|
1994
2005
|
margin: 0;
|
|
1995
2006
|
}
|
|
@@ -2591,13 +2602,23 @@ body,
|
|
|
2591
2602
|
transform: translate(0.25rem, -50%);
|
|
2592
2603
|
}
|
|
2593
2604
|
.navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
2594
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMyAxMCI+ICAgIDxnPiAgICA8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNNCwxMGMtMC40LDAtMC44LTAuMS0xLjEtMC40TDAuNCw3LjFDMC4xLDYuOCwwLDYuNCwwLDZzMC4yLTAuOCwwLjUtMS4xQzEsNC40LDIsNC40LDIuNSw0LjlMNCw2LjRsNi40LTYgICAgQzEwLjgsMC4xLDExLjEsMCwxMS41LDBjMC40LDAsMC44LDAuMiwxLDAuNWMwLjYsMC42LDAuNSwxLjYtMC4xLDIuMXYwTDUsOS42QzQuNyw5LjksNC40LDEwLDQsMTB6IE0xMS44LDEuOUwxMS44LDEuOSAgICBDMTEuOCwxLjksMTEuOCwxLjksMTEuOCwxLjl6IE0xMS4yLDEuMUMxMS4yLDEuMSwxMS4yLDEuMSwxMS4yLDEuMUwxMS4yLDEuMXoiLz4gICAgPC9nPjwvc3ZnPg==);
|
|
2595
|
-
background-position: 0.375rem center;
|
|
2596
|
-
background-repeat: no-repeat;
|
|
2597
|
-
background-size: 0.8125rem;
|
|
2598
2605
|
box-shadow: none;
|
|
2599
2606
|
background-color: var(--ac-radio-checkbox-action, var(--a-surface-action));
|
|
2600
2607
|
}
|
|
2608
|
+
.navds-checkbox__input:where(:not(:checked)) + .navds-checkbox__label > .navds-checkbox__icon {
|
|
2609
|
+
display: none;
|
|
2610
|
+
}
|
|
2611
|
+
.navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
2612
|
+
color: var(--ac-radio-checkbox-bg, var(--a-surface-default));
|
|
2613
|
+
position: absolute;
|
|
2614
|
+
height: 1.5rem;
|
|
2615
|
+
transform: translate(0.375rem);
|
|
2616
|
+
pointer-events: none;
|
|
2617
|
+
}
|
|
2618
|
+
.navds-checkbox--small .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
2619
|
+
transform: translate(0.25rem, -10%);
|
|
2620
|
+
height: 1.25rem;
|
|
2621
|
+
}
|
|
2601
2622
|
.navds-checkbox--small > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
2602
2623
|
background-position: 0.25rem center;
|
|
2603
2624
|
}
|
|
@@ -2736,10 +2757,12 @@ body,
|
|
|
2736
2757
|
--__ac-radio-checkbox-readonly-border: var(--a-border-subtle), var(--a-shadow-focus);
|
|
2737
2758
|
}
|
|
2738
2759
|
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
2739
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMyAxMCI+ICAgIDxnPiAgICA8cGF0aCBmaWxsPSJyZ2JhKDAsIDAsIDAsIDAuNjUpIiBkPSJNNCwxMGMtMC40LDAtMC44LTAuMS0xLjEtMC40TDAuNCw3LjFDMC4xLDYuOCwwLDYuNCwwLDZzMC4yLTAuOCwwLjUtMS4xQzEsNC40LDIsNC40LDIuNSw0LjlMNCw2LjRsNi40LTYgICAgQzEwLjgsMC4xLDExLjEsMCwxMS41LDBjMC40LDAsMC44LDAuMiwxLDAuNWMwLjYsMC42LDAuNSwxLjYtMC4xLDIuMXYwTDUsOS42QzQuNyw5LjksNC40LDEwLDQsMTB6IE0xMS44LDEuOUwxMS44LDEuOSAgICBDMTEuOCwxLjksMTEuOCwxLjksMTEuOCwxLjl6IE0xMS4yLDEuMUMxMS4yLDEuMSwxMS4yLDEuMSwxMS4yLDEuMUwxMS4yLDEuMXoiLz4gICAgPC9nPjwvc3ZnPg==);
|
|
2740
2760
|
box-shadow: inset 0 0 0 2px var(--__ac-radio-checkbox-readonly-border);
|
|
2741
2761
|
background-color: var(--__ac-radio-checkbox-readonly-bg);
|
|
2742
2762
|
}
|
|
2763
|
+
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
2764
|
+
color: var(--a-icon-subtle);
|
|
2765
|
+
}
|
|
2743
2766
|
.navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
|
|
2744
2767
|
box-shadow: inset 0 0 0 2px var(--__ac-radio-checkbox-readonly-border), inset 0 0 0 4px var(--__ac-radio-checkbox-readonly-bg);
|
|
2745
2768
|
background-color: var(--a-icon-subtle);
|
|
@@ -3342,6 +3365,14 @@ body,
|
|
|
3342
3365
|
.navds-combobox__wrapper-inner:hover {
|
|
3343
3366
|
cursor: text;
|
|
3344
3367
|
}
|
|
3368
|
+
.navds-combobox--error .navds-text-field__input:not(:hover):not(:disabled) {
|
|
3369
|
+
border-color: var(--ac-combobox-error-border, var(--a-border-danger));
|
|
3370
|
+
box-shadow: 0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger));
|
|
3371
|
+
}
|
|
3372
|
+
.navds-combobox--error
|
|
3373
|
+
.navds-text-field__input:not(:hover):not(:disabled):not(.navds-combobox__wrapper-inner--virtually-unfocused):focus-within {
|
|
3374
|
+
box-shadow: 0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger)), var(--a-shadow-focus);
|
|
3375
|
+
}
|
|
3345
3376
|
.navds-combobox__selected-options {
|
|
3346
3377
|
gap: var(--a-spacing-2);
|
|
3347
3378
|
align-items: center;
|
|
@@ -3534,6 +3565,10 @@ body,
|
|
|
3534
3565
|
border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
|
|
3535
3566
|
padding-left: calc(var(--a-spacing-3) - 4px);
|
|
3536
3567
|
}
|
|
3568
|
+
.navds-form-field--small .navds-combobox__list-item--focus,
|
|
3569
|
+
.navds-form-field--small .navds-combobox__list-item:hover {
|
|
3570
|
+
padding-left: calc(var(--a-spacing-2) - 4px);
|
|
3571
|
+
}
|
|
3537
3572
|
.navds-combobox__list-item--selected {
|
|
3538
3573
|
background-color: var(--ac-combobox-list-item-selected-bg, var(--a-surface-selected));
|
|
3539
3574
|
}
|
|
@@ -5687,12 +5722,20 @@ button.navds-stepper__step {
|
|
|
5687
5722
|
.navds-list ul,
|
|
5688
5723
|
.navds-list ol {
|
|
5689
5724
|
padding: 0;
|
|
5725
|
+
margin-block: var(--a-spacing-4);
|
|
5690
5726
|
}
|
|
5691
|
-
.navds-list--nested
|
|
5692
|
-
|
|
5727
|
+
.navds-list--nested ul,
|
|
5728
|
+
.navds-list--nested ol {
|
|
5729
|
+
margin-block: var(--a-spacing-2);
|
|
5693
5730
|
}
|
|
5694
|
-
.navds-list li
|
|
5695
|
-
margin-
|
|
5731
|
+
.navds-list li {
|
|
5732
|
+
margin-block-end: var(--a-spacing-5);
|
|
5733
|
+
}
|
|
5734
|
+
.navds-list--small li {
|
|
5735
|
+
margin-block-end: var(--a-spacing-2);
|
|
5736
|
+
}
|
|
5737
|
+
.navds-list--nested li {
|
|
5738
|
+
margin-block-end: var(--a-spacing-3);
|
|
5696
5739
|
}
|
|
5697
5740
|
.navds-list:last-child > ul > li:last-child,
|
|
5698
5741
|
.navds-list:last-child > ol > li:last-child {
|
|
@@ -5713,16 +5756,22 @@ button.navds-stepper__step {
|
|
|
5713
5756
|
}
|
|
5714
5757
|
.navds-list .navds-list__item-marker--bullet {
|
|
5715
5758
|
display: flex;
|
|
5716
|
-
|
|
5759
|
+
align-items: center;
|
|
5760
|
+
height: var(--a-font-line-height-large);
|
|
5717
5761
|
grid-column: 1 / 2;
|
|
5718
|
-
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
5719
5762
|
color: var(--ac-list-marker-ul-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
5720
5763
|
}
|
|
5764
|
+
.navds-list--small .navds-list__item-marker--bullet {
|
|
5765
|
+
height: var(--a-font-line-height-medium);
|
|
5766
|
+
}
|
|
5721
5767
|
.navds-list__item-marker--icon {
|
|
5722
|
-
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
5723
5768
|
color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
5724
5769
|
display: flex;
|
|
5725
5770
|
align-items: center;
|
|
5771
|
+
height: var(--a-font-line-height-large);
|
|
5772
|
+
padding-block-end: 1px;
|
|
5773
|
+
}
|
|
5774
|
+
.navds-list--small .navds-list__item-marker--icon {
|
|
5726
5775
|
height: var(--a-font-line-height-medium);
|
|
5727
5776
|
}
|
|
5728
5777
|
.navds-list__item-marker--icon svg {
|
|
@@ -5733,6 +5782,7 @@ button.navds-stepper__step {
|
|
|
5733
5782
|
}
|
|
5734
5783
|
.navds-list ol {
|
|
5735
5784
|
padding-left: var(--a-spacing-2);
|
|
5785
|
+
list-style: decimal;
|
|
5736
5786
|
}
|
|
5737
5787
|
.navds-list ol li {
|
|
5738
5788
|
padding-left: var(--a-spacing-1);
|
|
@@ -5740,7 +5790,11 @@ button.navds-stepper__step {
|
|
|
5740
5790
|
}
|
|
5741
5791
|
.navds-list ol li::marker {
|
|
5742
5792
|
font-weight: var(--a-font-weight-bold);
|
|
5743
|
-
font-size: var(--a-font-size-
|
|
5744
|
-
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
5793
|
+
font-size: var(--a-font-size-large);
|
|
5745
5794
|
color: var(--ac-list-marker-ol-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
5795
|
+
line-height: var(--a-font-line-height-large);
|
|
5796
|
+
}
|
|
5797
|
+
.navds-list--small ol li::marker {
|
|
5798
|
+
font-size: var(--a-font-size-small);
|
|
5799
|
+
line-height: var(--a-font-line-height-medium);
|
|
5746
5800
|
}
|
package/dist/tokens.json
CHANGED
|
@@ -388,7 +388,8 @@
|
|
|
388
388
|
"--ac-combobox-list-item-selected-hover-bg": "--a-surface-action-subtle-hover",
|
|
389
389
|
"--ac-combobox-list-item-loading-bg": "--a-surface-default",
|
|
390
390
|
"--ac-combobox-list-item-hover-border-left": "--a-border-strong",
|
|
391
|
-
"--ac-combobox-list-item-selected-hover-border-left": "--a-border-focus"
|
|
391
|
+
"--ac-combobox-list-item-selected-hover-border-left": "--a-border-focus",
|
|
392
|
+
"--ac-combobox-error-border": "--a-border-danger"
|
|
392
393
|
},
|
|
393
394
|
"select": {
|
|
394
395
|
"--ac-select-bg": "--a-surface-default",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel-stylelint",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"author": "Aksel | NAV",
|
|
5
5
|
"homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dev": "yarn watch:lint"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@navikt/ds-css": "^4.
|
|
39
|
-
"@navikt/ds-tokens": "^4.
|
|
38
|
+
"@navikt/ds-css": "^4.12.1",
|
|
39
|
+
"@navikt/ds-tokens": "^4.12.1",
|
|
40
40
|
"@types/jest": "^29.0.0",
|
|
41
41
|
"concurrently": "7.2.1",
|
|
42
42
|
"copyfiles": "2.4.1",
|