@navikt/aksel-stylelint 7.28.1 → 7.29.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/index.css +187 -11
- 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.0";
|
|
9
9
|
--a-breakpoint-xs: 0;
|
|
10
10
|
--a-breakpoint-sm: 480px;
|
|
11
11
|
--a-breakpoint-sm-down: 479px;
|
|
@@ -5973,15 +5973,23 @@ button.navds-internalheader__title:active,
|
|
|
5973
5973
|
cursor: pointer;
|
|
5974
5974
|
display: grid;
|
|
5975
5975
|
grid-template-areas:
|
|
5976
|
-
"image image"
|
|
5977
|
-
"icon title"
|
|
5978
|
-
"icon description"
|
|
5979
|
-
"icon footer";
|
|
5976
|
+
"image image image"
|
|
5977
|
+
"icon title arrow"
|
|
5978
|
+
"icon description arrow"
|
|
5979
|
+
"icon footer arrow";
|
|
5980
5980
|
grid-template-columns: auto 1fr;
|
|
5981
5981
|
grid-template-rows: min-content min-content min-content auto;
|
|
5982
5982
|
align-items: center;
|
|
5983
5983
|
}
|
|
5984
5984
|
|
|
5985
|
+
.navds-link-card[data-align-arrow="baseline"] {
|
|
5986
|
+
grid-template-areas:
|
|
5987
|
+
"image image image"
|
|
5988
|
+
"icon title arrow"
|
|
5989
|
+
"icon description description"
|
|
5990
|
+
"icon footer footer";
|
|
5991
|
+
}
|
|
5992
|
+
|
|
5985
5993
|
.navds-link-card:not(:has(.navds-link-card__description, .navds-link-card__footer)) {
|
|
5986
5994
|
grid-template-rows: auto 1fr;
|
|
5987
5995
|
}
|
|
@@ -5994,6 +6002,11 @@ button.navds-internalheader__title:active,
|
|
|
5994
6002
|
align-items: center;
|
|
5995
6003
|
}
|
|
5996
6004
|
|
|
6005
|
+
.navds-link-card[data-align-arrow="baseline"]:not(:has(.navds-link-card__description, .navds-link-card__footer))
|
|
6006
|
+
.navds-link-card__arrow {
|
|
6007
|
+
align-self: center;
|
|
6008
|
+
}
|
|
6009
|
+
|
|
5997
6010
|
.navds-link-card:hover {
|
|
5998
6011
|
border-color: var(--a-border-default);
|
|
5999
6012
|
box-shadow: 0 0 0 1px var(--a-border-default);
|
|
@@ -6002,10 +6015,6 @@ button.navds-internalheader__title:active,
|
|
|
6002
6015
|
.navds-link-card__title {
|
|
6003
6016
|
grid-area: title;
|
|
6004
6017
|
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
6018
|
hyphens: auto;
|
|
6010
6019
|
}
|
|
6011
6020
|
|
|
@@ -6034,12 +6043,12 @@ button.navds-internalheader__title:active,
|
|
|
6034
6043
|
margin-inline-end: var(--a-spacing-4);
|
|
6035
6044
|
}
|
|
6036
6045
|
|
|
6037
|
-
.
|
|
6046
|
+
.navds-link-card--small {
|
|
6038
6047
|
--__ac-link-card-padding-block: var(--a-spacing-3);
|
|
6039
6048
|
--__ac-link-card-padding-inline: var(--a-spacing-4);
|
|
6040
6049
|
}
|
|
6041
6050
|
|
|
6042
|
-
.
|
|
6051
|
+
.navds-link-card--small .navds-link-card__icon {
|
|
6043
6052
|
margin-inline-end: var(--a-spacing-3);
|
|
6044
6053
|
}
|
|
6045
6054
|
|
|
@@ -6062,6 +6071,19 @@ button.navds-internalheader__title:active,
|
|
|
6062
6071
|
height: 100%;
|
|
6063
6072
|
}
|
|
6064
6073
|
|
|
6074
|
+
.navds-link-card__arrow {
|
|
6075
|
+
grid-area: arrow;
|
|
6076
|
+
margin-inline-start: var(--a-spacing-2);
|
|
6077
|
+
}
|
|
6078
|
+
|
|
6079
|
+
.navds-link-card[data-align-arrow="baseline"] .navds-link-card__arrow {
|
|
6080
|
+
align-self: baseline;
|
|
6081
|
+
}
|
|
6082
|
+
|
|
6083
|
+
.navds-link-card[data-align-arrow="center"] .navds-link-card__arrow {
|
|
6084
|
+
align-self: center;
|
|
6085
|
+
}
|
|
6086
|
+
|
|
6065
6087
|
.navds-loader {
|
|
6066
6088
|
width: 1.5rem;
|
|
6067
6089
|
display: inline-block;
|
|
@@ -7973,6 +7995,160 @@ span.rdp-weeknumber {
|
|
|
7973
7995
|
top: -1px;
|
|
7974
7996
|
}
|
|
7975
7997
|
|
|
7998
|
+
.navds-process {
|
|
7999
|
+
--__ac-process-circle-base: 2rem;
|
|
8000
|
+
--__ac-process-circle-large: var(--__ac-process-circle-base);
|
|
8001
|
+
--__ac-process-circle-small: 1rem;
|
|
8002
|
+
--__ac-process-circle-size: var(--__ac-process-circle-large);
|
|
8003
|
+
--__ac-process-border-width: 2px;
|
|
8004
|
+
|
|
8005
|
+
list-style: none;
|
|
8006
|
+
padding: 0;
|
|
8007
|
+
margin: 0;
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8010
|
+
.navds-process__event {
|
|
8011
|
+
display: grid;
|
|
8012
|
+
grid-template-rows:
|
|
8013
|
+
[line-1] auto [step-start] var(--__ac-process-circle-size)
|
|
8014
|
+
[line-2 step-end] auto;
|
|
8015
|
+
grid-template-columns: var(--__ac-process-circle-base) auto;
|
|
8016
|
+
justify-items: flex-start;
|
|
8017
|
+
}
|
|
8018
|
+
|
|
8019
|
+
.navds-process__event[data-dot="true"] {
|
|
8020
|
+
--__ac-process-circle-size: var(--__ac-process-circle-small);
|
|
8021
|
+
|
|
8022
|
+
margin-block-start: calc((var(--__ac-process-circle-small) / 2) * -1);
|
|
8023
|
+
}
|
|
8024
|
+
|
|
8025
|
+
.navds-process__event[data-dot="true"] .navds-process__line {
|
|
8026
|
+
margin-block-start: calc(var(--__ac-process-circle-size) / 2);
|
|
8027
|
+
}
|
|
8028
|
+
|
|
8029
|
+
.navds-process__event[data-dot="true"] .navds-process__bullet {
|
|
8030
|
+
--__ac-process-circle-size: var(--__ac-process-circle-small);
|
|
8031
|
+
|
|
8032
|
+
margin-top: calc((var(--__ac-process-circle-large) - var(--__ac-process-circle-small)) / 2);
|
|
8033
|
+
}
|
|
8034
|
+
|
|
8035
|
+
.navds-process__line {
|
|
8036
|
+
width: 0;
|
|
8037
|
+
border: calc(var(--__ac-process-border-width) / 2) solid;
|
|
8038
|
+
min-height: 2rem;
|
|
8039
|
+
justify-self: center;
|
|
8040
|
+
grid-column: 1;
|
|
8041
|
+
grid-row: line-2;
|
|
8042
|
+
border-color: var(--a-border-subtle);
|
|
8043
|
+
}
|
|
8044
|
+
|
|
8045
|
+
.navds-process__event[data-status="active"] .navds-process__line {
|
|
8046
|
+
border-color: var(--a-border-alt-3);
|
|
8047
|
+
border-image: linear-gradient(to bottom, var(--a-border-alt-3) 50%, var(--a-border-subtle) 90%);
|
|
8048
|
+
border-image-slice: 1;
|
|
8049
|
+
}
|
|
8050
|
+
|
|
8051
|
+
.navds-process__event[data-status="completed"] .navds-process__line {
|
|
8052
|
+
border-color: var(--a-border-alt-3);
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
.navds-process__event:not([data-status="active"]) .navds-process__line {
|
|
8056
|
+
border-image: none;
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
.navds-process__event:last-of-type .navds-process__line {
|
|
8060
|
+
display: none;
|
|
8061
|
+
}
|
|
8062
|
+
|
|
8063
|
+
.navds-process__item {
|
|
8064
|
+
grid-row: 2 / -1;
|
|
8065
|
+
grid-column: 1 / -1;
|
|
8066
|
+
display: grid;
|
|
8067
|
+
grid-template-columns: [bullet] var(--__ac-process-circle-base) [content] auto;
|
|
8068
|
+
gap: var(--a-spacing-4);
|
|
8069
|
+
justify-content: flex-start;
|
|
8070
|
+
padding: var(--__ac-process-border-width);
|
|
8071
|
+
margin: calc(var(--__ac-process-border-width) * -1) calc(var(--__ac-process-border-width) * -1) var(--a-spacing-4);
|
|
8072
|
+
width: 100%;
|
|
8073
|
+
}
|
|
8074
|
+
|
|
8075
|
+
.navds-process__event:last-child .navds-process__item {
|
|
8076
|
+
margin-bottom: 0;
|
|
8077
|
+
}
|
|
8078
|
+
|
|
8079
|
+
.navds-process__bullet {
|
|
8080
|
+
grid-column: bullet;
|
|
8081
|
+
display: inline-grid;
|
|
8082
|
+
place-self: baseline center;
|
|
8083
|
+
place-items: center;
|
|
8084
|
+
width: var(--__ac-process-circle-size);
|
|
8085
|
+
height: var(--__ac-process-circle-size);
|
|
8086
|
+
line-height: 1;
|
|
8087
|
+
border-radius: var(--a-border-radius-full);
|
|
8088
|
+
border: var(--__ac-process-border-width) solid;
|
|
8089
|
+
color: var(--a-text-subtle);
|
|
8090
|
+
border-color: var(--a-border-subtle);
|
|
8091
|
+
transition-property: background, border-color, color;
|
|
8092
|
+
transition-duration: 70ms;
|
|
8093
|
+
transition-timing-function: linear;
|
|
8094
|
+
}
|
|
8095
|
+
|
|
8096
|
+
.navds-process__bullet svg {
|
|
8097
|
+
height: min(calc(var(--__ac-process-circle-size) * 0.75), 1.5rem);
|
|
8098
|
+
width: min(calc(var(--__ac-process-circle-size) * 0.75), 1.5rem);
|
|
8099
|
+
}
|
|
8100
|
+
|
|
8101
|
+
.navds-process__event:is([data-status="completed"],[data-status="active"]) .navds-process__bullet {
|
|
8102
|
+
color: var(--a-text-on-alt-3);
|
|
8103
|
+
background: var(--a-surface-alt-3);
|
|
8104
|
+
border-color: transparent;
|
|
8105
|
+
}
|
|
8106
|
+
|
|
8107
|
+
.navds-process__event[data-status="active"] .navds-process__bullet {
|
|
8108
|
+
outline: 4px solid var(--a-surface-alt-3-subtle);
|
|
8109
|
+
}
|
|
8110
|
+
|
|
8111
|
+
.navds-process__event[data-status="uncompleted"] .navds-process__bullet {
|
|
8112
|
+
transition: none;
|
|
8113
|
+
}
|
|
8114
|
+
|
|
8115
|
+
.navds-process__body {
|
|
8116
|
+
grid-column: content;
|
|
8117
|
+
}
|
|
8118
|
+
|
|
8119
|
+
.navds-process__title {
|
|
8120
|
+
padding-block: 0.16rem var(--a-spacing-1);
|
|
8121
|
+
}
|
|
8122
|
+
|
|
8123
|
+
.navds-process__event[data-status="active"] .navds-process__title:has( + .navds-process__active-label) {
|
|
8124
|
+
padding-block-end: 0;
|
|
8125
|
+
}
|
|
8126
|
+
|
|
8127
|
+
.navds-process__active-label {
|
|
8128
|
+
margin-block: 0 var(--a-spacing-1);
|
|
8129
|
+
color: var(--a-surface-alt-3);
|
|
8130
|
+
}
|
|
8131
|
+
|
|
8132
|
+
.navds-process__active-label:last-of-type {
|
|
8133
|
+
margin-block-end: 0;
|
|
8134
|
+
}
|
|
8135
|
+
|
|
8136
|
+
@media (forced-colors: active) {
|
|
8137
|
+
.navds-process__bullet {
|
|
8138
|
+
transition: none;
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8141
|
+
.navds-process__event:is([data-status="completed"], [data-status="active"]) .navds-process__bullet {
|
|
8142
|
+
outline-color: ButtonText;
|
|
8143
|
+
background-color: ButtonText;
|
|
8144
|
+
color: ButtonFace;
|
|
8145
|
+
}
|
|
8146
|
+
|
|
8147
|
+
.navds-process__event:is([data-status="active"]) .navds-process__line {
|
|
8148
|
+
border-image: none;
|
|
8149
|
+
}
|
|
8150
|
+
}
|
|
8151
|
+
|
|
7976
8152
|
.navds-progress-bar {
|
|
7977
8153
|
background: var(--a-surface-neutral-subtle);
|
|
7978
8154
|
position: relative;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel-stylelint",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.0",
|
|
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.0",
|
|
39
|
+
"@navikt/ds-tokens": "^7.29.0",
|
|
40
40
|
"concurrently": "9.0.1",
|
|
41
41
|
"postcss-selector-parser": "^7.1.0",
|
|
42
42
|
"postcss-value-parser": "^4.2.0",
|