@oslokommune/punkt-css 11.13.14 → 11.14.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/CHANGELOG.md +36 -0
- package/dist/css/components/linkcard.css +18 -1
- package/dist/css/components/linkcard.min.css +1 -1
- package/dist/css/components/progressbar.css +57 -0
- package/dist/css/components/progressbar.min.css +1 -0
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +1 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +77 -2
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +3 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +80 -5
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_index.scss +1 -0
- package/dist/scss/components/_linkcard.scss +26 -1
- package/dist/scss/components/_progressbar.scss +70 -0
- package/package.json +2 -2
|
@@ -19,6 +19,7 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
19
19
|
text-decoration: none;
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
|
+
transition: background-color 0.2s linear;
|
|
22
23
|
|
|
23
24
|
@include bp('laptop-up') {
|
|
24
25
|
padding: $-linkcard-spacing-big;
|
|
@@ -103,6 +104,26 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
103
104
|
background-color: var(--pkt-color-surface-subtle-pale-blue);
|
|
104
105
|
color: var(--pkt-color-text-body-dark) !important;
|
|
105
106
|
|
|
107
|
+
&:hover {
|
|
108
|
+
background-color: var(--pkt-color-surface-default-light-blue);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:hover,
|
|
112
|
+
&:focus,
|
|
113
|
+
&:focus-visible,
|
|
114
|
+
&:active {
|
|
115
|
+
color: var(--pkt-color-brand-warm-blue-1000) !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--grey {
|
|
120
|
+
background-color: var(--pkt-color-surface-default-gray);
|
|
121
|
+
color: var(--pkt-color-text-body-dark) !important;
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
background-color: var(--pkt-color-surface-strong-gray);
|
|
125
|
+
}
|
|
126
|
+
|
|
106
127
|
&:hover,
|
|
107
128
|
&:focus,
|
|
108
129
|
&:focus-visible,
|
|
@@ -112,9 +133,13 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
112
133
|
}
|
|
113
134
|
|
|
114
135
|
&--green {
|
|
115
|
-
background-color: var(--pkt-color-surface-
|
|
136
|
+
background-color: var(--pkt-color-surface-default-faded-green);
|
|
116
137
|
color: var(--pkt-color-text-body-dark) !important;
|
|
117
138
|
|
|
139
|
+
&:hover {
|
|
140
|
+
background-color: var(--pkt-color-surface-strong-light-green);
|
|
141
|
+
}
|
|
142
|
+
|
|
118
143
|
&:hover,
|
|
119
144
|
&:focus,
|
|
120
145
|
&:focus-visible,
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.pkt-progressbar {
|
|
2
|
+
--pkt-progress-width: 0%;
|
|
3
|
+
--pkt-progress-label-width: 5rem;
|
|
4
|
+
|
|
5
|
+
&__container {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
&__title {
|
|
9
|
+
display: block;
|
|
10
|
+
margin: 0;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
text-align: left;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
|
|
16
|
+
&-center {
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
&__bar-wrapper {
|
|
21
|
+
background-color: var(--pkt-color-grays-gray-100);
|
|
22
|
+
height: 8px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
&__bar {
|
|
26
|
+
background-color: var(--pkt-color-brand-dark-blue-1000);
|
|
27
|
+
display: block;
|
|
28
|
+
width: var(--pkt-progress-width);
|
|
29
|
+
height: 100%;
|
|
30
|
+
transition: width 0.5s ease;
|
|
31
|
+
&--dark-blue {
|
|
32
|
+
background-color: var(--pkt-color-brand-dark-blue-1000);
|
|
33
|
+
}
|
|
34
|
+
&--green {
|
|
35
|
+
background-color: var(--pkt-color-brand-green-1000);
|
|
36
|
+
}
|
|
37
|
+
&--light-blue {
|
|
38
|
+
background-color: var(--pkt-color-brand-blue-1000);
|
|
39
|
+
}
|
|
40
|
+
&--red {
|
|
41
|
+
background-color: var(--pkt-color-brand-red-1000);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__status {
|
|
46
|
+
margin-top: 8px;
|
|
47
|
+
position: relative;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 0.75rem;
|
|
51
|
+
|
|
52
|
+
&--center {
|
|
53
|
+
width: 100% !important;
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__status-placement {
|
|
59
|
+
&--following {
|
|
60
|
+
margin-left: max(
|
|
61
|
+
0%,
|
|
62
|
+
min(
|
|
63
|
+
calc(100% - var(--pkt-progress-label-width)),
|
|
64
|
+
calc(var(--pkt-progress-width) - calc(var(--pkt-progress-label-width) / 2))
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
transition: margin-left 0.5s ease;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.1",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "962e2a838414c5c286a385a815ee48051c12cc41"
|
|
59
59
|
}
|