@navikt/aksel-stylelint 7.28.1 → 7.29.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 +213 -14
- package/package.json +3 -3
package/dist/index.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
:root, :host {
|
|
8
|
-
--ax-version: "7.
|
|
8
|
+
--ax-version: "7.29.1";
|
|
9
9
|
--a-breakpoint-xs: 0;
|
|
10
10
|
--a-breakpoint-sm: 480px;
|
|
11
11
|
--a-breakpoint-sm-down: 479px;
|
|
@@ -3931,7 +3931,7 @@ li.navds-file-item {
|
|
|
3931
3931
|
.navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
3932
3932
|
content: "";
|
|
3933
3933
|
position: absolute;
|
|
3934
|
-
top:
|
|
3934
|
+
top: var(--a-spacing-6);
|
|
3935
3935
|
transform: translate(var(--a-spacing-1-alt), -50%);
|
|
3936
3936
|
background-color: var(--ac-radio-checkbox-bg, var(--a-surface-default));
|
|
3937
3937
|
width: 0.75rem;
|
|
@@ -3942,6 +3942,7 @@ li.navds-file-item {
|
|
|
3942
3942
|
|
|
3943
3943
|
.navds-checkbox--small .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
3944
3944
|
transform: translate(0.25rem, -50%);
|
|
3945
|
+
top: var(--a-spacing-4);
|
|
3945
3946
|
}
|
|
3946
3947
|
|
|
3947
3948
|
.navds-checkbox__input:where(:checked, :indeterminate) + .navds-checkbox__label::before {
|
|
@@ -3977,8 +3978,11 @@ li.navds-file-item {
|
|
|
3977
3978
|
/* Tailwind sets all svg to block */
|
|
3978
3979
|
|
|
3979
3980
|
.navds-checkbox__icon > svg {
|
|
3980
|
-
display:
|
|
3981
|
-
|
|
3981
|
+
display: block;
|
|
3982
|
+
|
|
3983
|
+
/* Safari does not support inline rem-values in SVG */
|
|
3984
|
+
width: 0.8125rem;
|
|
3985
|
+
height: 0.625rem;
|
|
3982
3986
|
}
|
|
3983
3987
|
|
|
3984
3988
|
.navds-checkbox--small > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
@@ -5973,15 +5977,23 @@ button.navds-internalheader__title:active,
|
|
|
5973
5977
|
cursor: pointer;
|
|
5974
5978
|
display: grid;
|
|
5975
5979
|
grid-template-areas:
|
|
5976
|
-
"image image"
|
|
5977
|
-
"icon title"
|
|
5978
|
-
"icon description"
|
|
5979
|
-
"icon footer";
|
|
5980
|
+
"image image image"
|
|
5981
|
+
"icon title arrow"
|
|
5982
|
+
"icon description arrow"
|
|
5983
|
+
"icon footer arrow";
|
|
5980
5984
|
grid-template-columns: auto 1fr;
|
|
5981
5985
|
grid-template-rows: min-content min-content min-content auto;
|
|
5982
5986
|
align-items: center;
|
|
5983
5987
|
}
|
|
5984
5988
|
|
|
5989
|
+
.navds-link-card[data-align-arrow="baseline"] {
|
|
5990
|
+
grid-template-areas:
|
|
5991
|
+
"image image image"
|
|
5992
|
+
"icon title arrow"
|
|
5993
|
+
"icon description description"
|
|
5994
|
+
"icon footer footer";
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5985
5997
|
.navds-link-card:not(:has(.navds-link-card__description, .navds-link-card__footer)) {
|
|
5986
5998
|
grid-template-rows: auto 1fr;
|
|
5987
5999
|
}
|
|
@@ -5994,6 +6006,11 @@ button.navds-internalheader__title:active,
|
|
|
5994
6006
|
align-items: center;
|
|
5995
6007
|
}
|
|
5996
6008
|
|
|
6009
|
+
.navds-link-card[data-align-arrow="baseline"]:not(:has(.navds-link-card__description, .navds-link-card__footer))
|
|
6010
|
+
.navds-link-card__arrow {
|
|
6011
|
+
align-self: center;
|
|
6012
|
+
}
|
|
6013
|
+
|
|
5997
6014
|
.navds-link-card:hover {
|
|
5998
6015
|
border-color: var(--a-border-default);
|
|
5999
6016
|
box-shadow: 0 0 0 1px var(--a-border-default);
|
|
@@ -6002,10 +6019,6 @@ button.navds-internalheader__title:active,
|
|
|
6002
6019
|
.navds-link-card__title {
|
|
6003
6020
|
grid-area: title;
|
|
6004
6021
|
color: var(--a-text-default);
|
|
6005
|
-
display: flex;
|
|
6006
|
-
align-items: flex-start;
|
|
6007
|
-
justify-content: space-between;
|
|
6008
|
-
gap: var(--a-spacing-2);
|
|
6009
6022
|
hyphens: auto;
|
|
6010
6023
|
}
|
|
6011
6024
|
|
|
@@ -6034,12 +6047,12 @@ button.navds-internalheader__title:active,
|
|
|
6034
6047
|
margin-inline-end: var(--a-spacing-4);
|
|
6035
6048
|
}
|
|
6036
6049
|
|
|
6037
|
-
.
|
|
6050
|
+
.navds-link-card--small {
|
|
6038
6051
|
--__ac-link-card-padding-block: var(--a-spacing-3);
|
|
6039
6052
|
--__ac-link-card-padding-inline: var(--a-spacing-4);
|
|
6040
6053
|
}
|
|
6041
6054
|
|
|
6042
|
-
.
|
|
6055
|
+
.navds-link-card--small .navds-link-card__icon {
|
|
6043
6056
|
margin-inline-end: var(--a-spacing-3);
|
|
6044
6057
|
}
|
|
6045
6058
|
|
|
@@ -6062,6 +6075,19 @@ button.navds-internalheader__title:active,
|
|
|
6062
6075
|
height: 100%;
|
|
6063
6076
|
}
|
|
6064
6077
|
|
|
6078
|
+
.navds-link-card__arrow {
|
|
6079
|
+
grid-area: arrow;
|
|
6080
|
+
margin-inline-start: var(--a-spacing-2);
|
|
6081
|
+
}
|
|
6082
|
+
|
|
6083
|
+
.navds-link-card[data-align-arrow="baseline"] .navds-link-card__arrow {
|
|
6084
|
+
align-self: baseline;
|
|
6085
|
+
}
|
|
6086
|
+
|
|
6087
|
+
.navds-link-card[data-align-arrow="center"] .navds-link-card__arrow {
|
|
6088
|
+
align-self: center;
|
|
6089
|
+
}
|
|
6090
|
+
|
|
6065
6091
|
.navds-loader {
|
|
6066
6092
|
width: 1.5rem;
|
|
6067
6093
|
display: inline-block;
|
|
@@ -7973,6 +7999,160 @@ span.rdp-weeknumber {
|
|
|
7973
7999
|
top: -1px;
|
|
7974
8000
|
}
|
|
7975
8001
|
|
|
8002
|
+
.navds-process {
|
|
8003
|
+
--__ac-process-circle-base: 2rem;
|
|
8004
|
+
--__ac-process-circle-large: var(--__ac-process-circle-base);
|
|
8005
|
+
--__ac-process-circle-small: 1rem;
|
|
8006
|
+
--__ac-process-circle-size: var(--__ac-process-circle-large);
|
|
8007
|
+
--__ac-process-border-width: 2px;
|
|
8008
|
+
|
|
8009
|
+
list-style: none;
|
|
8010
|
+
padding: 0;
|
|
8011
|
+
margin: 0;
|
|
8012
|
+
}
|
|
8013
|
+
|
|
8014
|
+
.navds-process__event {
|
|
8015
|
+
display: grid;
|
|
8016
|
+
grid-template-rows:
|
|
8017
|
+
[line-1] auto [step-start] var(--__ac-process-circle-size)
|
|
8018
|
+
[line-2 step-end] auto;
|
|
8019
|
+
grid-template-columns: var(--__ac-process-circle-base) auto;
|
|
8020
|
+
justify-items: flex-start;
|
|
8021
|
+
}
|
|
8022
|
+
|
|
8023
|
+
.navds-process__event[data-dot="true"] {
|
|
8024
|
+
--__ac-process-circle-size: var(--__ac-process-circle-small);
|
|
8025
|
+
|
|
8026
|
+
margin-block-start: calc((var(--__ac-process-circle-small) / 2) * -1);
|
|
8027
|
+
}
|
|
8028
|
+
|
|
8029
|
+
.navds-process__event[data-dot="true"] .navds-process__line {
|
|
8030
|
+
margin-block-start: calc(var(--__ac-process-circle-size) / 2);
|
|
8031
|
+
}
|
|
8032
|
+
|
|
8033
|
+
.navds-process__event[data-dot="true"] .navds-process__bullet {
|
|
8034
|
+
--__ac-process-circle-size: var(--__ac-process-circle-small);
|
|
8035
|
+
|
|
8036
|
+
margin-top: calc((var(--__ac-process-circle-large) - var(--__ac-process-circle-small)) / 2);
|
|
8037
|
+
}
|
|
8038
|
+
|
|
8039
|
+
.navds-process__line {
|
|
8040
|
+
width: 0;
|
|
8041
|
+
border: calc(var(--__ac-process-border-width) / 2) solid;
|
|
8042
|
+
min-height: 2rem;
|
|
8043
|
+
justify-self: center;
|
|
8044
|
+
grid-column: 1;
|
|
8045
|
+
grid-row: line-2;
|
|
8046
|
+
border-color: var(--a-border-subtle);
|
|
8047
|
+
}
|
|
8048
|
+
|
|
8049
|
+
.navds-process__event[data-status="active"] .navds-process__line {
|
|
8050
|
+
border-color: var(--a-border-alt-3);
|
|
8051
|
+
border-image: linear-gradient(to bottom, var(--a-border-alt-3) 50%, var(--a-border-subtle) 90%);
|
|
8052
|
+
border-image-slice: 1;
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
.navds-process__event[data-status="completed"] .navds-process__line {
|
|
8056
|
+
border-color: var(--a-border-alt-3);
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
.navds-process__event:not([data-status="active"]) .navds-process__line {
|
|
8060
|
+
border-image: none;
|
|
8061
|
+
}
|
|
8062
|
+
|
|
8063
|
+
.navds-process__event:last-of-type .navds-process__line {
|
|
8064
|
+
display: none;
|
|
8065
|
+
}
|
|
8066
|
+
|
|
8067
|
+
.navds-process__item {
|
|
8068
|
+
grid-row: 2 / -1;
|
|
8069
|
+
grid-column: 1 / -1;
|
|
8070
|
+
display: grid;
|
|
8071
|
+
grid-template-columns: [bullet] var(--__ac-process-circle-base) [content] auto;
|
|
8072
|
+
gap: var(--a-spacing-4);
|
|
8073
|
+
justify-content: flex-start;
|
|
8074
|
+
padding: var(--__ac-process-border-width);
|
|
8075
|
+
margin: calc(var(--__ac-process-border-width) * -1) calc(var(--__ac-process-border-width) * -1) var(--a-spacing-4);
|
|
8076
|
+
width: 100%;
|
|
8077
|
+
}
|
|
8078
|
+
|
|
8079
|
+
.navds-process__event:last-child .navds-process__item {
|
|
8080
|
+
margin-bottom: 0;
|
|
8081
|
+
}
|
|
8082
|
+
|
|
8083
|
+
.navds-process__bullet {
|
|
8084
|
+
grid-column: bullet;
|
|
8085
|
+
display: inline-grid;
|
|
8086
|
+
place-self: baseline center;
|
|
8087
|
+
place-items: center;
|
|
8088
|
+
width: var(--__ac-process-circle-size);
|
|
8089
|
+
height: var(--__ac-process-circle-size);
|
|
8090
|
+
line-height: 1;
|
|
8091
|
+
border-radius: var(--a-border-radius-full);
|
|
8092
|
+
border: var(--__ac-process-border-width) solid;
|
|
8093
|
+
color: var(--a-text-subtle);
|
|
8094
|
+
border-color: var(--a-border-subtle);
|
|
8095
|
+
transition-property: background, border-color, color;
|
|
8096
|
+
transition-duration: 70ms;
|
|
8097
|
+
transition-timing-function: linear;
|
|
8098
|
+
}
|
|
8099
|
+
|
|
8100
|
+
.navds-process__bullet svg {
|
|
8101
|
+
height: min(calc(var(--__ac-process-circle-size) * 0.75), 1.5rem);
|
|
8102
|
+
width: min(calc(var(--__ac-process-circle-size) * 0.75), 1.5rem);
|
|
8103
|
+
}
|
|
8104
|
+
|
|
8105
|
+
.navds-process__event:is([data-status="completed"],[data-status="active"]) .navds-process__bullet {
|
|
8106
|
+
color: var(--a-text-on-alt-3);
|
|
8107
|
+
background: var(--a-surface-alt-3);
|
|
8108
|
+
border-color: transparent;
|
|
8109
|
+
}
|
|
8110
|
+
|
|
8111
|
+
.navds-process__event[data-status="active"] .navds-process__bullet {
|
|
8112
|
+
outline: 4px solid var(--a-surface-alt-3-subtle);
|
|
8113
|
+
}
|
|
8114
|
+
|
|
8115
|
+
.navds-process__event[data-status="uncompleted"] .navds-process__bullet {
|
|
8116
|
+
transition: none;
|
|
8117
|
+
}
|
|
8118
|
+
|
|
8119
|
+
.navds-process__body {
|
|
8120
|
+
grid-column: content;
|
|
8121
|
+
}
|
|
8122
|
+
|
|
8123
|
+
.navds-process__title {
|
|
8124
|
+
padding-block: 0.16rem var(--a-spacing-1);
|
|
8125
|
+
}
|
|
8126
|
+
|
|
8127
|
+
.navds-process__event[data-status="active"] .navds-process__title:has( + .navds-process__active-label) {
|
|
8128
|
+
padding-block-end: 0;
|
|
8129
|
+
}
|
|
8130
|
+
|
|
8131
|
+
.navds-process__active-label {
|
|
8132
|
+
margin-block: 0 var(--a-spacing-1);
|
|
8133
|
+
color: var(--a-surface-alt-3);
|
|
8134
|
+
}
|
|
8135
|
+
|
|
8136
|
+
.navds-process__active-label:last-of-type {
|
|
8137
|
+
margin-block-end: 0;
|
|
8138
|
+
}
|
|
8139
|
+
|
|
8140
|
+
@media (forced-colors: active) {
|
|
8141
|
+
.navds-process__bullet {
|
|
8142
|
+
transition: none;
|
|
8143
|
+
}
|
|
8144
|
+
|
|
8145
|
+
.navds-process__event:is([data-status="completed"], [data-status="active"]) .navds-process__bullet {
|
|
8146
|
+
outline-color: ButtonText;
|
|
8147
|
+
background-color: ButtonText;
|
|
8148
|
+
color: ButtonFace;
|
|
8149
|
+
}
|
|
8150
|
+
|
|
8151
|
+
.navds-process__event:is([data-status="active"]) .navds-process__line {
|
|
8152
|
+
border-image: none;
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
|
|
7976
8156
|
.navds-progress-bar {
|
|
7977
8157
|
background: var(--a-surface-neutral-subtle);
|
|
7978
8158
|
position: relative;
|
|
@@ -8610,6 +8790,18 @@ button.navds-stepper__step {
|
|
|
8610
8790
|
padding: 0;
|
|
8611
8791
|
}
|
|
8612
8792
|
|
|
8793
|
+
.navds-table :not(.navds-checkboxes) > .navds-checkbox .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
8794
|
+
top: var(--a-spacing-3);
|
|
8795
|
+
}
|
|
8796
|
+
|
|
8797
|
+
.navds-table
|
|
8798
|
+
:not(.navds-checkboxes)
|
|
8799
|
+
> .navds-checkbox--small
|
|
8800
|
+
.navds-checkbox__input:indeterminate
|
|
8801
|
+
+ .navds-checkbox__label::after {
|
|
8802
|
+
top: 0.6rem;
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8613
8805
|
.navds-table__header-cell[aria-sort] {
|
|
8614
8806
|
padding: 0;
|
|
8615
8807
|
}
|
|
@@ -9051,6 +9243,13 @@ button.navds-stepper__step {
|
|
|
9051
9243
|
color: var(--ac-list-marker-ul-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
9052
9244
|
}
|
|
9053
9245
|
|
|
9246
|
+
/* Safari does not support inline rem-values in SVG */
|
|
9247
|
+
|
|
9248
|
+
.navds-list__item-marker--bullet > svg {
|
|
9249
|
+
width: 0.375rem;
|
|
9250
|
+
height: 0.375rem;
|
|
9251
|
+
}
|
|
9252
|
+
|
|
9054
9253
|
.navds-list__item-marker--icon {
|
|
9055
9254
|
font-size: 1.5rem;
|
|
9056
9255
|
justify-content: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel-stylelint",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.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": "^7.
|
|
39
|
-
"@navikt/ds-tokens": "^7.
|
|
38
|
+
"@navikt/ds-css": "^7.29.1",
|
|
39
|
+
"@navikt/ds-tokens": "^7.29.1",
|
|
40
40
|
"concurrently": "9.0.1",
|
|
41
41
|
"postcss-selector-parser": "^7.1.0",
|
|
42
42
|
"postcss-value-parser": "^4.2.0",
|