@oslokommune/punkt-css 3.3.1 → 4.3.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 +39 -0
- package/dist/css/components/footer.css +134 -18
- package/dist/css/components/footer.min.css +1 -1
- package/dist/css/components/linkcard.css +9 -0
- package/dist/css/components/linkcard.min.css +1 -1
- package/dist/css/pkt-base.css +1233 -0
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +143 -18
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt.css +1468 -110
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_spacing.scss +3 -0
- package/dist/scss/components/_footer.scss +153 -16
- package/dist/scss/components/_linkcard.scss +26 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,45 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [4.3.0](https://github.com/oslokommune/punkt/compare/4.2.1...4.3.0) (2023-05-24)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08)
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
* [792](https://github.com/oslokommune/punkt/issues/792) Footer. Nye komponenter:
|
|
29
|
+
- pkt-footer
|
|
30
|
+
- pkt-footer-simple
|
|
31
|
+
|
|
32
|
+
BREAKING CHANGE: Gammel pkt-footer er nå blitt pkt-footer-simple
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
### Chores
|
|
42
|
+
Ingen
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
|
|
8
47
|
## [3.3.1](https://github.com/oslokommune/punkt/compare/3.3.0...3.3.1) (2023-04-25)
|
|
9
48
|
|
|
10
49
|
### ⚠ BREAKING CHANGES
|
|
@@ -2,47 +2,163 @@
|
|
|
2
2
|
* Footer element
|
|
3
3
|
*/
|
|
4
4
|
.pkt-footer {
|
|
5
|
-
background-color: var(--color-blue-dark);
|
|
6
|
-
padding: 2.5rem 0;
|
|
7
5
|
font-size: 1.125rem;
|
|
8
6
|
font-weight: 300;
|
|
9
7
|
letter-spacing: -0.2px;
|
|
10
8
|
line-height: 1.5em;
|
|
9
|
+
padding: 2.5rem 1.5rem;
|
|
10
|
+
background-color: var(--color-blue-dark);
|
|
11
|
+
color: var(--color-white);
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
@media screen and (min-width: 80rem) {
|
|
16
|
+
.pkt-footer {
|
|
17
|
+
padding: 3.5rem 1.5rem;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.pkt-footer__container {
|
|
22
|
+
max-width: 80rem;
|
|
23
|
+
}
|
|
24
|
+
.pkt-footer__title {
|
|
25
|
+
font-size: 1.5rem;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
letter-spacing: -0.2px;
|
|
28
|
+
line-height: 1.5em;
|
|
29
|
+
margin-bottom: 2rem;
|
|
30
|
+
margin-top: 0;
|
|
31
|
+
}
|
|
32
|
+
.pkt-footer__text:last-child {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
margin-top: 2rem;
|
|
35
|
+
}
|
|
36
|
+
.pkt-footer__text:not(:last-child) {
|
|
37
|
+
margin-bottom: 2rem;
|
|
38
|
+
margin-top: 0;
|
|
39
|
+
}
|
|
40
|
+
.pkt-footer__list {
|
|
41
|
+
padding: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
list-style: none;
|
|
11
44
|
}
|
|
12
|
-
|
|
45
|
+
.pkt-footer__list-item {
|
|
46
|
+
word-break: break-word;
|
|
47
|
+
}
|
|
48
|
+
.pkt-footer__list-item:not(:last-child) {
|
|
49
|
+
margin-bottom: 1rem;
|
|
50
|
+
}
|
|
51
|
+
@media screen and (min-width: 80rem) {
|
|
13
52
|
.pkt-footer__list-item {
|
|
14
|
-
|
|
53
|
+
margin-bottom: 0;
|
|
15
54
|
}
|
|
16
55
|
}
|
|
17
56
|
.pkt-footer__link {
|
|
18
|
-
color: currentColor;
|
|
19
57
|
display: flex;
|
|
20
|
-
|
|
21
|
-
|
|
58
|
+
text-decoration: none !important;
|
|
59
|
+
}
|
|
60
|
+
.pkt-footer__link:hover .pkt-footer__link-icon {
|
|
61
|
+
--fg-color: currentColor;
|
|
62
|
+
}
|
|
63
|
+
.pkt-footer__link-icon {
|
|
64
|
+
--fg-color: currentColor;
|
|
65
|
+
width: 24px;
|
|
66
|
+
height: 24px;
|
|
67
|
+
margin-right: 0.5rem;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
}
|
|
70
|
+
@media screen and (min-width: 80rem) {
|
|
71
|
+
.pkt-footer__link-icon {
|
|
72
|
+
margin-top: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.pkt-footer__social {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
justify-content: space-between;
|
|
22
79
|
align-items: flex-start;
|
|
80
|
+
gap: 2rem;
|
|
81
|
+
margin-top: 2.5rem;
|
|
23
82
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
83
|
+
.pkt-footer__social:hover .pkt-footer__link-icon {
|
|
84
|
+
--fg-color: currentColor;
|
|
85
|
+
}
|
|
86
|
+
@media screen and (min-width: 80rem) {
|
|
87
|
+
.pkt-footer__social {
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
justify-content: end;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
@media screen and (min-width: 80rem) {
|
|
93
|
+
.pkt-footer__social-language {
|
|
94
|
+
justify-self: flex-start;
|
|
28
95
|
}
|
|
29
96
|
}
|
|
30
|
-
.pkt-
|
|
97
|
+
.pkt-footer__social-icon {
|
|
31
98
|
--fg-color: currentColor;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
width: 24px;
|
|
101
|
+
height: 24px;
|
|
32
102
|
}
|
|
33
|
-
.pkt-
|
|
103
|
+
.pkt-footer__social-icon-link:not(:last-child) {
|
|
104
|
+
margin-right: 1rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pkt-footer-simple {
|
|
108
|
+
font-size: 1.125rem;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: -0.2px;
|
|
111
|
+
line-height: 1.5em;
|
|
112
|
+
padding: 2rem 1.5rem;
|
|
113
|
+
background-color: var(--color-blue-dark);
|
|
114
|
+
color: var(--color-white);
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
}
|
|
118
|
+
@media screen and (min-width: 80rem) {
|
|
119
|
+
.pkt-footer-simple {
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.pkt-footer-simple__container {
|
|
124
|
+
max-width: 80rem;
|
|
125
|
+
}
|
|
126
|
+
.pkt-footer-simple__list {
|
|
127
|
+
padding: 0;
|
|
128
|
+
margin: 0;
|
|
129
|
+
list-style: none;
|
|
130
|
+
}
|
|
131
|
+
@media screen and (min-width: 80rem) {
|
|
132
|
+
.pkt-footer-simple__list-item {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.pkt-footer-simple__list-item:not(:last-child) {
|
|
137
|
+
margin-bottom: 1rem;
|
|
138
|
+
}
|
|
139
|
+
@media screen and (min-width: 80rem) {
|
|
140
|
+
.pkt-footer-simple__list-item:not(:last-child) {
|
|
141
|
+
margin-bottom: 0;
|
|
142
|
+
margin-right: 2rem;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.pkt-footer-simple__link {
|
|
146
|
+
display: flex;
|
|
147
|
+
text-decoration: none !important;
|
|
148
|
+
align-items: flex-start;
|
|
149
|
+
}
|
|
150
|
+
.pkt-footer-simple__link:hover .pkt-footer__link-icon {
|
|
34
151
|
--fg-color: currentColor;
|
|
35
152
|
}
|
|
36
|
-
.pkt-
|
|
153
|
+
.pkt-footer-simple__link-icon {
|
|
37
154
|
--fg-color: currentColor;
|
|
38
155
|
width: 24px;
|
|
39
156
|
height: 24px;
|
|
40
|
-
margin-right: 0.
|
|
157
|
+
margin-right: 0.5rem;
|
|
41
158
|
flex-shrink: 0;
|
|
42
|
-
margin-top: 3px;
|
|
43
159
|
}
|
|
44
|
-
@media screen and (min-width:
|
|
45
|
-
.pkt-
|
|
160
|
+
@media screen and (min-width: 80rem) {
|
|
161
|
+
.pkt-footer-simple__link-icon {
|
|
46
162
|
margin-top: 0;
|
|
47
163
|
}
|
|
48
164
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-footer{background-color:var(--color-blue-dark);padding:
|
|
1
|
+
.pkt-footer{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;padding:2.5rem 1.5rem;background-color:var(--color-blue-dark);color:var(--color-white);display:flex;align-items:center}@media screen and (min-width: 80rem){.pkt-footer{padding:3.5rem 1.5rem;justify-content:center}}.pkt-footer__container{max-width:80rem}.pkt-footer__title{font-size:1.5rem;font-weight:500;letter-spacing:-0.2px;line-height:1.5em;margin-bottom:2rem;margin-top:0}.pkt-footer__text:last-child{margin-bottom:0;margin-top:2rem}.pkt-footer__text:not(:last-child){margin-bottom:2rem;margin-top:0}.pkt-footer__list{padding:0;margin:0;list-style:none}.pkt-footer__list-item{word-break:break-word}.pkt-footer__list-item:not(:last-child){margin-bottom:1rem}@media screen and (min-width: 80rem){.pkt-footer__list-item{margin-bottom:0}}.pkt-footer__link{display:flex;text-decoration:none !important}.pkt-footer__link:hover .pkt-footer__link-icon{--fg-color: currentColor}.pkt-footer__link-icon{--fg-color: currentColor;width:24px;height:24px;margin-right:.5rem;flex-shrink:0}@media screen and (min-width: 80rem){.pkt-footer__link-icon{margin-top:0}}.pkt-footer__social{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:2rem;margin-top:2.5rem}.pkt-footer__social:hover .pkt-footer__link-icon{--fg-color: currentColor}@media screen and (min-width: 80rem){.pkt-footer__social{align-items:flex-end;justify-content:end}}@media screen and (min-width: 80rem){.pkt-footer__social-language{justify-self:flex-start}}.pkt-footer__social-icon{--fg-color: currentColor;flex-shrink:0;width:24px;height:24px}.pkt-footer__social-icon-link:not(:last-child){margin-right:1rem}.pkt-footer-simple{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;padding:2rem 1.5rem;background-color:var(--color-blue-dark);color:var(--color-white);display:flex;align-items:center}@media screen and (min-width: 80rem){.pkt-footer-simple{justify-content:center}}.pkt-footer-simple__container{max-width:80rem}.pkt-footer-simple__list{padding:0;margin:0;list-style:none}@media screen and (min-width: 80rem){.pkt-footer-simple__list-item{display:inline-flex}}.pkt-footer-simple__list-item:not(:last-child){margin-bottom:1rem}@media screen and (min-width: 80rem){.pkt-footer-simple__list-item:not(:last-child){margin-bottom:0;margin-right:2rem}}.pkt-footer-simple__link{display:flex;text-decoration:none !important;align-items:flex-start}.pkt-footer-simple__link:hover .pkt-footer__link-icon{--fg-color: currentColor}.pkt-footer-simple__link-icon{--fg-color: currentColor;width:24px;height:24px;margin-right:.5rem;flex-shrink:0}@media screen and (min-width: 80rem){.pkt-footer-simple__link-icon{margin-top:0}}
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
.pkt-linkcard:hover .pkt-linkcard__title {
|
|
18
18
|
text-decoration: underline;
|
|
19
19
|
}
|
|
20
|
+
.pkt-linkcard:hover .pkt-link--external::after {
|
|
21
|
+
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
|
|
22
|
+
}
|
|
20
23
|
.pkt-linkcard__title {
|
|
21
24
|
font-size: 1.5rem;
|
|
22
25
|
font-weight: 500;
|
|
@@ -24,6 +27,12 @@
|
|
|
24
27
|
line-height: 1.5em;
|
|
25
28
|
margin-bottom: 0.5rem;
|
|
26
29
|
}
|
|
30
|
+
.pkt-linkcard__title.pkt-link--external::after {
|
|
31
|
+
height: 32px;
|
|
32
|
+
width: 32px;
|
|
33
|
+
background-size: 32px 32px;
|
|
34
|
+
margin-left: 0.5rem;
|
|
35
|
+
}
|
|
27
36
|
.pkt-linkcard__text p:first-of-type {
|
|
28
37
|
margin-top: 0;
|
|
29
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-linkcard{align-items:flex-start;padding:1rem;text-decoration:none}@media screen and (min-width: 80rem){.pkt-linkcard{padding:1.5rem}}.pkt-linkcard:hover{text-decoration:none}.pkt-linkcard:hover .pkt-linkcard__title{text-decoration:underline}.pkt-linkcard__title{font-size:1.5rem;font-weight:500;letter-spacing:-0.2px;line-height:1.5em;margin-bottom:.5rem}.pkt-linkcard__text p:first-of-type{margin-top:0}.pkt-linkcard__text p:last-of-type{margin-bottom:0}.pkt-linkcard svg{margin-top:.313rem}.pkt-linkcard--beige{background-color:var(--color-beige-light)}.pkt-linkcard--blue{background-color:var(--color-blue-5)}.pkt-linkcard--grey-outline{border:4px solid var(--color-gray)}.pkt-linkcard--beige-outline{border:4px solid var(--color-beige-light)}[data-mode=dark] .pkt-linkcard--beige{color:var(--color-blue-dark) !important}[data-mode=dark] .pkt-linkcard--beige:focus{color:var(--color-hover) !important}[data-mode=dark] .pkt-linkcard--blue{color:var(--color-blue-dark) !important}[data-mode=dark] .pkt-linkcard--blue:focus{color:var(--color-hover) !important}
|
|
1
|
+
.pkt-linkcard{align-items:flex-start;padding:1rem;text-decoration:none}@media screen and (min-width: 80rem){.pkt-linkcard{padding:1.5rem}}.pkt-linkcard:hover{text-decoration:none}.pkt-linkcard:hover .pkt-linkcard__title{text-decoration:underline}.pkt-linkcard:hover .pkt-link--external::after{filter:brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%)}.pkt-linkcard__title{font-size:1.5rem;font-weight:500;letter-spacing:-0.2px;line-height:1.5em;margin-bottom:.5rem}.pkt-linkcard__title.pkt-link--external::after{height:32px;width:32px;background-size:32px 32px;margin-left:.5rem}.pkt-linkcard__text p:first-of-type{margin-top:0}.pkt-linkcard__text p:last-of-type{margin-bottom:0}.pkt-linkcard svg{margin-top:.313rem}.pkt-linkcard--beige{background-color:var(--color-beige-light)}.pkt-linkcard--blue{background-color:var(--color-blue-5)}.pkt-linkcard--grey-outline{border:4px solid var(--color-gray)}.pkt-linkcard--beige-outline{border:4px solid var(--color-beige-light)}[data-mode=dark] .pkt-linkcard--beige{color:var(--color-blue-dark) !important}[data-mode=dark] .pkt-linkcard--beige:focus{color:var(--color-hover) !important}[data-mode=dark] .pkt-linkcard--blue{color:var(--color-blue-dark) !important}[data-mode=dark] .pkt-linkcard--blue:focus{color:var(--color-hover) !important}
|