@oslokommune/punkt-css 12.34.2 → 12.35.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/CHANGELOG.md +36 -0
- package/CONTRIBUTING.md +1 -1
- package/dist/css/components/heading.css +48 -0
- package/dist/css/components/heading.min.css +1 -0
- package/dist/css/components/inputwrapper.css +5 -3
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/tag.css +5 -0
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/checkbox-radio.css +2 -2
- package/dist/css/elements/checkbox-radio.min.css +1 -1
- package/dist/css/elements/input.css +1 -1
- package/dist/css/elements/input.min.css +1 -1
- package/dist/css/elements/select.css +1 -1
- package/dist/css/elements/select.min.css +1 -1
- package/dist/css/pkt-base.css +111 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +60 -4
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +22391 -0
- package/dist/css/pkt-docs.min.css +1 -0
- package/dist/css/pkt-elements.css +3 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +173 -7
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/abstracts/variables/_typography.scss +14 -0
- package/dist/scss/components/_heading.scss +48 -0
- package/dist/scss/components/_index.scss +1 -0
- package/dist/scss/components/_inputwrapper.scss +5 -2
- package/dist/scss/components/_tag.scss +6 -0
- package/dist/scss/pkt-docs.scss +113 -0
- package/package.json +7 -4
|
@@ -65,7 +65,9 @@ $font-size: (
|
|
|
65
65
|
'size-30': 1.875rem,
|
|
66
66
|
'size-36': 2.25rem,
|
|
67
67
|
'size-40': 2.5rem,
|
|
68
|
+
'size-48': 3rem,
|
|
68
69
|
'size-54': 3.375rem,
|
|
70
|
+
'size-70': 4.375rem,
|
|
69
71
|
) !default;
|
|
70
72
|
|
|
71
73
|
$font-weight: (
|
|
@@ -115,12 +117,24 @@ $pkt-font-weight: (
|
|
|
115
117
|
|
|
116
118
|
// pkt specific styles
|
|
117
119
|
$pkt-styles: (
|
|
120
|
+
'pkt-txt-70': (
|
|
121
|
+
'size': 'size-70',
|
|
122
|
+
'weight': 'regular',
|
|
123
|
+
'letter-spacing': 'tighter',
|
|
124
|
+
'line-height': 'lh-82',
|
|
125
|
+
),
|
|
118
126
|
'pkt-txt-54': (
|
|
119
127
|
'size': 'size-54',
|
|
120
128
|
'weight': 'regular',
|
|
121
129
|
'letter-spacing': 'tighter',
|
|
122
130
|
'line-height': 'lh-82',
|
|
123
131
|
),
|
|
132
|
+
'pkt-txt-48': (
|
|
133
|
+
'size': 'size-48',
|
|
134
|
+
'weight': 'regular',
|
|
135
|
+
'letter-spacing': 'tight',
|
|
136
|
+
'line-height': 'lh-54',
|
|
137
|
+
),
|
|
124
138
|
'pkt-txt-40': (
|
|
125
139
|
'size': 'size-40',
|
|
126
140
|
'weight': 'regular',
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../abstracts/variables';
|
|
3
|
+
@use '../abstracts/mixins/typography';
|
|
4
|
+
@use '../abstracts/mixins/breakpoints' as *;
|
|
5
|
+
@use '../abstracts/functions';
|
|
6
|
+
|
|
7
|
+
.pkt-heading {
|
|
8
|
+
font-size: 1.5rem;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
line-height: 1.2;
|
|
11
|
+
|
|
12
|
+
&--xlarge {
|
|
13
|
+
@include typography.get-text('pkt-txt-70');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&--large {
|
|
17
|
+
@include typography.get-text('pkt-txt-48');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--medium {
|
|
21
|
+
@include typography.get-text('pkt-txt-30');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&--small {
|
|
25
|
+
@include typography.get-text('pkt-txt-24');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--xsmall {
|
|
29
|
+
@include typography.get-text('pkt-txt-22');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--noSpacing {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--start {
|
|
38
|
+
text-align: start;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--end {
|
|
42
|
+
text-align: end;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--center {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -15,13 +15,16 @@ pkt-input-wrapper {
|
|
|
15
15
|
gap: map.get(variables.$spacing, 'size-8');
|
|
16
16
|
color: var(--pkt-color-text-body-default);
|
|
17
17
|
|
|
18
|
-
@include typography.get-text('pkt-txt-18-medium');
|
|
19
|
-
|
|
20
18
|
&:empty {
|
|
21
19
|
display: none;
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
|
|
23
|
+
&__label,
|
|
24
|
+
&__legend {
|
|
25
|
+
@include typography.get-text('pkt-txt-18-medium');
|
|
26
|
+
}
|
|
27
|
+
|
|
25
28
|
&__helptext-container {
|
|
26
29
|
display: flex;
|
|
27
30
|
flex-direction: column;
|
|
@@ -44,6 +44,12 @@ pkt-tag > .pkt-tag {
|
|
|
44
44
|
@include typography.get-text-style('pkt-txt-14-medium');
|
|
45
45
|
line-height: 1.875rem;
|
|
46
46
|
|
|
47
|
+
p {
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
line-height: inherit;
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
&.pkt-btn:hover,
|
|
48
54
|
&.pkt-tag--hover {
|
|
49
55
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
|
|
3
|
+
// Normalise
|
|
4
|
+
@forward 'normalise';
|
|
5
|
+
|
|
6
|
+
// Base
|
|
7
|
+
@forward 'base';
|
|
8
|
+
|
|
9
|
+
// HTML elements
|
|
10
|
+
@forward 'elements';
|
|
11
|
+
|
|
12
|
+
// Components
|
|
13
|
+
@forward 'components';
|
|
14
|
+
|
|
15
|
+
.punkt-white-bg {
|
|
16
|
+
background-color: var(--pkt-color-surface-subtle-white);
|
|
17
|
+
}
|
|
18
|
+
.punkt-green-bg {
|
|
19
|
+
background-color: var(--pkt-color-brand-light-green-400);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.punkt-frontpage {
|
|
23
|
+
background-color: var(--bg-color, var(--pkt-color-brand-blue-200));
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.punkt-header {
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
position: absolute;
|
|
32
|
+
padding: 2rem;
|
|
33
|
+
}
|
|
34
|
+
.punkt-header,
|
|
35
|
+
.punkt-header > nav,
|
|
36
|
+
.punkt-header__links {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
align-items: center;
|
|
40
|
+
column-gap: 3rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.punkt-header__links {
|
|
44
|
+
list-style: none;
|
|
45
|
+
padding: 0;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
column-gap: 1.5rem;
|
|
49
|
+
row-gap: 0.5rem;
|
|
50
|
+
a {
|
|
51
|
+
line-height: 1;
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
color: var(--pkt-color-brand-dark-blue-1000);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.punkt-header__search {
|
|
59
|
+
max-width: 10rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.punkt-hero--centered {
|
|
63
|
+
padding: 14rem 8rem 10rem;
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
align-items: center;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
background-color: var(--bg-color, var(--pkt-color-brand-blue-500));
|
|
69
|
+
margin-bottom: -5rem;
|
|
70
|
+
.punkt-hero__text {
|
|
71
|
+
text-align: center;
|
|
72
|
+
padding-top: 2rem;
|
|
73
|
+
max-width: 45rem;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.punkt-frontpage-links,
|
|
78
|
+
.punkt-article-grid {
|
|
79
|
+
ul {
|
|
80
|
+
padding: 0;
|
|
81
|
+
list-style: none;
|
|
82
|
+
}
|
|
83
|
+
.pkt-linkcard {
|
|
84
|
+
background-color: white;
|
|
85
|
+
padding: 2.5rem;
|
|
86
|
+
}
|
|
87
|
+
.pkt-card {
|
|
88
|
+
padding: 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.punkt-promo {
|
|
93
|
+
display: flex;
|
|
94
|
+
padding: 4rem;
|
|
95
|
+
margin: 6rem 0;
|
|
96
|
+
gap: 4rem;
|
|
97
|
+
align-items: center;
|
|
98
|
+
background-color: var(--pkt-color-brand-yellow-500);
|
|
99
|
+
.punkt-promo-text {
|
|
100
|
+
flex: 1 1 auto;
|
|
101
|
+
}
|
|
102
|
+
.punkt-promo-icon {
|
|
103
|
+
flex: 0 1 13rem;
|
|
104
|
+
aspect-ratio: 1/1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.punkt-info-box {
|
|
109
|
+
display: flex;
|
|
110
|
+
> div {
|
|
111
|
+
flex: 1 1 50%;
|
|
112
|
+
}
|
|
113
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.35.0",
|
|
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",
|
|
@@ -19,8 +19,11 @@
|
|
|
19
19
|
"dev": "astro dev",
|
|
20
20
|
"preview": "astro preview"
|
|
21
21
|
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"astro": "^5.7.5"
|
|
24
|
+
},
|
|
22
25
|
"devDependencies": {
|
|
23
|
-
"@oslokommune/punkt-assets": "^12.
|
|
26
|
+
"@oslokommune/punkt-assets": "^12.34.4",
|
|
24
27
|
"edit-json-file": "^1.8.0",
|
|
25
28
|
"fs-extra": "^11.2.0",
|
|
26
29
|
"prettier": "^3.3.3",
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
"@oslokommune/punkt-assets": ">=3.1.0"
|
|
33
36
|
},
|
|
34
37
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
38
|
+
"node": ">=20.19.1"
|
|
36
39
|
},
|
|
37
40
|
"private": false,
|
|
38
41
|
"publishConfig": {
|
|
@@ -54,5 +57,5 @@
|
|
|
54
57
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
55
58
|
},
|
|
56
59
|
"license": "MIT",
|
|
57
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "897a80f0520cca735bc514c074d11a7e750079cc"
|
|
58
61
|
}
|