@oslokommune/punkt-css 12.34.2 → 12.34.4

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.
@@ -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.34.2",
3
+ "version": "12.34.4",
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.30.1",
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": ">=18.19.0"
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": "780c78ea4619450ddd43ba97183c2eb239a53524"
60
+ "gitHead": "437c77a182d85a710e0d5adbf492ea7585a0d472"
58
61
  }