@oslokommune/punkt-css 3.3.1 → 4.0.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.
@@ -8,8 +8,11 @@ $spacing: (
8
8
  'size-24': 1.5rem,
9
9
  'size-32': 2rem,
10
10
  'size-40': 2.5rem,
11
+ 'size-48': 3rem,
12
+ 'size-56': 3.5rem,
11
13
  'size-64': 4rem,
12
14
  'size-104': 6.5rem,
15
+ 'size-128': 8rem,
13
16
  'size-5': 0.3125rem /* deprecated */,
14
17
  'size-10': 0.625rem /* deprecated */,
15
18
  'size-15': 0.9375rem /* deprecated */,
@@ -7,45 +7,182 @@
7
7
  @use '../abstracts/mixins/breakpoints' as *;
8
8
  @use '../abstracts/mixins/typography';
9
9
 
10
+ $-footer-bg-color: var(--color-blue-dark);
11
+ $-footer-color: var(--color-white);
12
+ $-footer-max-width: map.get(variables.$breakpoints, 'laptop');
13
+ $-footer-icon-r-margin: map.get(variables.$spacing, 'size-8');
14
+ $-footer-link-b-margin: map.get(variables.$spacing, 'size-16');
15
+
10
16
  .pkt-footer {
11
- background-color: var(--color-blue-dark);
12
- padding: map.get(variables.$spacing, 'size-40') 0;
13
17
  @include typography.get-text('pkt-txt-18-light');
18
+ padding: map.get(variables.$spacing, 'size-40') map.get(variables.$spacing, 'size-24');
19
+ background-color: $-footer-bg-color;
20
+ color: $-footer-color;
21
+ display: flex;
22
+ align-items: center;
23
+
24
+ @include bp('laptop-up') {
25
+ padding: map.get(variables.$spacing, 'size-56') map.get(variables.$spacing, 'size-24');
26
+ justify-content: center;
27
+ }
28
+
29
+ &__container {
30
+ max-width: $-footer-max-width;
31
+ }
32
+
33
+ &__title {
34
+ @include typography.get-text('pkt-txt-24-medium');
35
+ margin-bottom: map.get(variables.$spacing, 'size-32');
36
+ margin-top: 0;
37
+ }
38
+
39
+ // tekstfelt
40
+ &__text:last-child {
41
+ margin-bottom: 0;
42
+ margin-top: map.get(variables.$spacing, 'size-32');
43
+ }
44
+
45
+ &__text:not(:last-child) {
46
+ margin-bottom: map.get(variables.$spacing, 'size-32');
47
+ margin-top: 0;
48
+ }
49
+
50
+ // Lenkelisten
51
+ &__list {
52
+ padding: 0;
53
+ margin: 0;
54
+ list-style: none;
55
+ }
14
56
 
15
57
  &__list-item {
16
- @include bp('phablet-up') {
17
- display: inline-flex;
58
+ word-break: break-word;
59
+
60
+ &:not(:last-child) {
61
+ margin-bottom: $-footer-link-b-margin;
62
+ }
63
+
64
+ @include bp('laptop-up') {
65
+ margin-bottom: 0;
18
66
  }
19
67
  }
20
68
 
69
+
21
70
  &__link {
22
- color: currentColor;
23
71
  display: flex;
24
- padding: map.get(variables.$spacing, 'size-12') 0;
25
- text-decoration: none;
72
+ text-decoration: none !important;
73
+
74
+ &:hover .pkt-footer__link-icon {
75
+ --fg-color: currentColor;
76
+ }
77
+ }
78
+
79
+ &__link-icon {
80
+ --fg-color: currentColor;
81
+ width: 24px;
82
+ height: 24px;
83
+ margin-right: $-footer-icon-r-margin;
84
+ flex-shrink: 0;
85
+
86
+ @include bp('laptop-up') {
87
+ margin-top: 0;
88
+ }
89
+ }
90
+
91
+ // Social media ikoner og språklenke
92
+ &__social {
93
+ display: flex;
94
+ flex-direction: row;
95
+ justify-content: space-between;
26
96
  align-items: flex-start;
97
+ gap: map.get(variables.$spacing, 'size-32');
98
+ margin-top: map.get(variables.$spacing, 'size-40');
27
99
 
28
- @include bp('phablet-up') {
29
- padding: map.get(variables.$spacing, 'size-12')
30
- map.get(variables.$spacing, 'size-32')
31
- map.get(variables.$spacing, 'size-12') 0;
32
- align-items: center;
100
+ &:hover .pkt-footer__link-icon {
101
+ --fg-color: currentColor;
33
102
  }
34
- &:visited .pkt-footer__link-icon {
103
+
104
+ @include bp('laptop-up') {
105
+ align-items: flex-end;
106
+ justify-content: end;
107
+ }
108
+
109
+ &-language {
110
+ @include bp('laptop-up') {
111
+ justify-self: flex-start;
112
+ }
113
+ }
114
+
115
+ &-icon {
35
116
  --fg-color: currentColor;
117
+ flex-shrink: 0;
118
+ width: 24px;
119
+ height: 24px;
120
+ }
121
+
122
+ &-icon-link:not(:last-child) {
123
+ margin-right: map.get(variables.$spacing, 'size-16');
36
124
  }
125
+ }
126
+ }
127
+
128
+ // Simple footer
129
+
130
+ .pkt-footer-simple {
131
+ @include typography.get-text('pkt-txt-18-light');
132
+ padding: map.get(variables.$spacing, 'size-32') map.get(variables.$spacing, 'size-24');
133
+ background-color: $-footer-bg-color;
134
+ color: $-footer-color;
135
+ display: flex;
136
+ align-items: center;
137
+
138
+ @include bp('laptop-up') {
139
+ justify-content: center;
140
+ }
141
+
142
+ &__container {
143
+ max-width: $-footer-max-width;
144
+ }
145
+
146
+ // Lenkelisten
147
+ &__list {
148
+ padding: 0;
149
+ margin: 0;
150
+ list-style: none;
151
+ }
152
+
153
+ &__list-item {
154
+ @include bp('laptop-up') {
155
+ display: inline-flex;
156
+ }
157
+
158
+ &:not(:last-child) {
159
+ margin-bottom: $-footer-link-b-margin;
160
+
161
+ @include bp('laptop-up') {
162
+ margin-bottom: 0;
163
+ margin-right: map.get(variables.$spacing, 'size-32');
164
+ }
165
+ }
166
+ }
167
+
168
+ &__link {
169
+ display: flex;
170
+ text-decoration: none !important;
171
+ align-items: flex-start;
172
+
37
173
  &:hover .pkt-footer__link-icon {
38
174
  --fg-color: currentColor;
39
175
  }
40
176
  }
177
+
41
178
  &__link-icon {
42
179
  --fg-color: currentColor;
43
180
  width: 24px;
44
181
  height: 24px;
45
- margin-right: map.get(variables.$spacing, 'size-12');
182
+ margin-right: $-footer-icon-r-margin;
46
183
  flex-shrink: 0;
47
- margin-top: 3px;
48
- @include bp('phablet-up') {
184
+
185
+ @include bp('laptop-up') {
49
186
  margin-top: 0;
50
187
  }
51
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "3.3.1",
3
+ "version": "4.0.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",
@@ -20,7 +20,7 @@
20
20
  "preview": "astro preview"
21
21
  },
22
22
  "devDependencies": {
23
- "@oslokommune/punkt-assets": "^3.1.2",
23
+ "@oslokommune/punkt-assets": "^4.0.0",
24
24
  "astro": "^2.0.2",
25
25
  "edit-json-file": "^1.7.0",
26
26
  "fs-extra": "^11.1.0",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "ea96fd86b38920748f5772c057b2c1449792b2e5"
58
+ "gitHead": "5de20e7298e204d7770f89bd47df267ca1544f54"
59
59
  }