@oslokommune/punkt-css 11.11.0 → 11.12.3
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 +34 -0
- package/dist/css/components/calendar.css +174 -0
- package/dist/css/components/calendar.min.css +1 -0
- package/dist/css/components/icon.css +10 -5
- package/dist/css/components/icon.min.css +1 -1
- package/dist/css/components/linkcard.css +8 -4
- package/dist/css/components/linkcard.min.css +1 -1
- package/dist/css/components/tabs.css +3 -1
- package/dist/css/components/tabs.min.css +1 -1
- package/dist/css/components/textinput.css +14 -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 +210 -11
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +18 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +215 -14
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_calendar.scss +147 -0
- package/dist/scss/components/_icon.scss +2 -1
- package/dist/scss/components/_index.scss +1 -0
- package/dist/scss/components/_linkcard.scss +15 -12
- package/dist/scss/components/_tabs.scss +2 -1
- package/dist/scss/elements/_input.scss +12 -3
- package/package.json +2 -2
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../abstracts/variables';
|
|
3
|
+
@use '../abstracts/functions';
|
|
4
|
+
@use '../abstracts/mixins/typography';
|
|
5
|
+
|
|
6
|
+
.pkt-calendar,
|
|
7
|
+
pkt-el-calendar {
|
|
8
|
+
max-width: 25rem;
|
|
9
|
+
.pkt-cal-month-nav {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: 1rem;
|
|
14
|
+
.pkt-cal-month-picker {
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 0.5rem;
|
|
17
|
+
.pkt-input {
|
|
18
|
+
@include typography.get-text('pkt-txt-16-medium');
|
|
19
|
+
&:is(select) {
|
|
20
|
+
text-align: right;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
> .pkt-cal-input-year {
|
|
24
|
+
max-width: 4.5rem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pkt-cal-month-nav,
|
|
30
|
+
.pkt-cal-days {
|
|
31
|
+
.pkt-btn,
|
|
32
|
+
li {
|
|
33
|
+
font: inherit;
|
|
34
|
+
aspect-ratio: 1 / 1;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
.pkt-btn {
|
|
40
|
+
margin: 1px;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
&:focus,
|
|
44
|
+
&:active {
|
|
45
|
+
outline: 0;
|
|
46
|
+
border: 0;
|
|
47
|
+
}
|
|
48
|
+
&:disabled {
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
border: 0;
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pkt-cal-days {
|
|
57
|
+
list-style: none;
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: repeat(7, 14.285%);
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding-left: 0;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
align-items: center;
|
|
64
|
+
> li {
|
|
65
|
+
aspect-ratio: 1 / 1;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
position: relative;
|
|
69
|
+
text-align: center;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
&:before,
|
|
72
|
+
&:after {
|
|
73
|
+
content: '';
|
|
74
|
+
display: block;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
z-index: 0;
|
|
79
|
+
}
|
|
80
|
+
&:before {
|
|
81
|
+
left: 0;
|
|
82
|
+
right: 50%;
|
|
83
|
+
}
|
|
84
|
+
&:after {
|
|
85
|
+
left: 50%;
|
|
86
|
+
right: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&.pkt-cal-weeknumbers .pkt-cal-day-names,
|
|
91
|
+
&.pkt-cal-weeknumbers .pkt-cal-days {
|
|
92
|
+
grid-template-columns: repeat(8, 12.5%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pkt-cal-other {
|
|
96
|
+
color: var(--pkt-color-grays-gray-200);
|
|
97
|
+
.pkt-btn {
|
|
98
|
+
color: inherit;
|
|
99
|
+
background: transparent;
|
|
100
|
+
border: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.pkt-cal-today {
|
|
104
|
+
.pkt-btn {
|
|
105
|
+
z-index: 2;
|
|
106
|
+
text-decoration: underline;
|
|
107
|
+
outline: 1px solid var(--pkt-color-border-default);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.pkt-cal-selected {
|
|
111
|
+
.pkt-btn,
|
|
112
|
+
.pkt-btn:focus {
|
|
113
|
+
background-color: var(--pkt-color-surface-strong-blue);
|
|
114
|
+
&:hover {
|
|
115
|
+
border-color: var(--pkt-color-surface-strong-blue);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.pkt-cal-in-range {
|
|
120
|
+
&:before,
|
|
121
|
+
&:after,
|
|
122
|
+
&-first:after,
|
|
123
|
+
&-last:before {
|
|
124
|
+
background-color: var(--pkt-color-surface-default-light-blue);
|
|
125
|
+
}
|
|
126
|
+
&-first:before,
|
|
127
|
+
&-last:after {
|
|
128
|
+
background-color: transparent;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.pkt-cal-range-hover {
|
|
132
|
+
&:before,
|
|
133
|
+
.pkt-btn {
|
|
134
|
+
background-color: var(--pkt-color-surface-default-light-blue);
|
|
135
|
+
}
|
|
136
|
+
.pkt-btn {
|
|
137
|
+
border-color: var(--pkt-color-surface-default-light-blue);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.pkt-cal-excluded {
|
|
141
|
+
background-color: var(--pkt-color-brand-neutrals-100);
|
|
142
|
+
&:before,
|
|
143
|
+
&:after {
|
|
144
|
+
background-color: transparent;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -34,7 +34,8 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
34
34
|
|
|
35
35
|
&:hover .pkt-link--external {
|
|
36
36
|
&::after {
|
|
37
|
-
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%)
|
|
37
|
+
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%)
|
|
38
|
+
contrast(90%);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -42,7 +43,7 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
42
43
|
@include get-text('pkt-txt-20-medium');
|
|
43
44
|
margin-bottom: 0.5rem;
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
& > p {
|
|
46
47
|
margin: 0;
|
|
47
48
|
}
|
|
48
49
|
|
|
@@ -59,7 +60,8 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
&.pkt-link {
|
|
62
|
-
.pkt-icon.pkt-link__icon
|
|
63
|
+
.pkt-icon.pkt-link__icon,
|
|
64
|
+
pkt-icon.pkt-link__icon {
|
|
63
65
|
margin-top: 0.188rem;
|
|
64
66
|
|
|
65
67
|
@include bp('phablet-up') {
|
|
@@ -89,7 +91,6 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
89
91
|
&:active {
|
|
90
92
|
color: var(--pkt-color-brand-warm-blue-1000) !important;
|
|
91
93
|
}
|
|
92
|
-
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
&--blue {
|
|
@@ -114,28 +115,30 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
|
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
@at-root [data-mode='dark'] .#{$-module-name} {
|
|
117
|
-
|
|
118
118
|
.pkt-link--external::after {
|
|
119
119
|
// white
|
|
120
|
-
filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(2190%) hue-rotate(285deg) brightness(109%)
|
|
120
|
+
filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(2190%) hue-rotate(285deg) brightness(109%)
|
|
121
|
+
contrast(100%);
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
&:hover .pkt-link--external::after {
|
|
124
125
|
// --pkt-color-brand-blue-500
|
|
125
|
-
filter: brightness(0) saturate(100%) invert(93%) sepia(91%) saturate(6664%) hue-rotate(169deg) brightness(103%)
|
|
126
|
+
filter: brightness(0) saturate(100%) invert(93%) sepia(91%) saturate(6664%) hue-rotate(169deg) brightness(103%)
|
|
127
|
+
contrast(107%);
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
@at-root [data-mode='dark'] .#{$-module-name}--beige,
|
|
132
|
+
.#{$-module-name}--blue {
|
|
132
133
|
.pkt-link--external::after {
|
|
133
134
|
// #2A2859
|
|
134
|
-
filter: brightness(0) saturate(100%) invert(14%) sepia(64%) saturate(913%) hue-rotate(210deg) brightness(91%)
|
|
135
|
+
filter: brightness(0) saturate(100%) invert(14%) sepia(64%) saturate(913%) hue-rotate(210deg) brightness(91%)
|
|
136
|
+
contrast(95%) !important;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
.pkt-link--external:hover::after {
|
|
138
140
|
// --pkt-color-brand-blue-500
|
|
139
|
-
filter: brightness(0) saturate(100%) invert(14%) sepia(64%) saturate(913%) hue-rotate(210deg) brightness(91%)
|
|
141
|
+
filter: brightness(0) saturate(100%) invert(14%) sepia(64%) saturate(913%) hue-rotate(210deg) brightness(91%)
|
|
142
|
+
contrast(95%) !important;
|
|
140
143
|
}
|
|
141
144
|
}
|
|
@@ -55,10 +55,19 @@
|
|
|
55
55
|
margin: 0;
|
|
56
56
|
padding: 0.5rem 1rem;
|
|
57
57
|
|
|
58
|
+
&-compact#{&} {
|
|
59
|
+
border: 0;
|
|
60
|
+
border-bottom: 1px solid var(--pkt-color-input-border-normal);
|
|
61
|
+
padding: 0 0 0.1rem 0;
|
|
62
|
+
@include typography.get-text('pkt-txt-16-light');
|
|
63
|
+
&:is(select):not([multiple]) {
|
|
64
|
+
background-position: right 0 top 50%;
|
|
65
|
+
padding-right: 2rem;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
58
69
|
&:not(textarea[cols]):not(input[size]):not(&--fullwidth),
|
|
59
|
-
&__container:not(:is(:has(textarea[cols]))):not(:is(:has(input[size]))):not(
|
|
60
|
-
:is(:has(&--fullwidth))
|
|
61
|
-
) {
|
|
70
|
+
&__container:not(:is(:has(textarea[cols]))):not(:is(:has(input[size]))):not(:is(:has(&--fullwidth))) {
|
|
62
71
|
width: min(100%, 31rem);
|
|
63
72
|
}
|
|
64
73
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.12.3",
|
|
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": "3d1c0ec4fee5ae98b0e26d1068b76faec73406b0"
|
|
59
59
|
}
|