@oslokommune/punkt-css 3.3.0 → 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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,46 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ * [792](https://github.com/oslokommune/punkt/issues/792) Footer. Nye komponenter:
12
+ - pkt-footer
13
+ - pkt-footer-simple
14
+
15
+ BREAKING CHANGE: Gammel pkt-footer er nå blitt pkt-footer-simple
16
+
17
+
18
+ ### Features
19
+ Ingen
20
+
21
+ ### Bug Fixes
22
+ Ingen
23
+
24
+ ### Chores
25
+ Ingen
26
+
27
+ ---
28
+
29
+
30
+ ## [3.3.1](https://github.com/oslokommune/punkt/compare/3.3.0...3.3.1) (2023-04-25)
31
+
32
+ ### ⚠ BREAKING CHANGES
33
+ Ingen
34
+
35
+ ### Features
36
+ Ingen
37
+
38
+ ### Bug Fixes
39
+ Ingen
40
+
41
+ ### Chores
42
+ * Fjern avhengighet. For å rette en feil i watch-funksjonalitet i monorepoet fjerner vi `chokidar` i CSS-modulen og lar `lerna` ta hånd om dette fra nå av.
43
+
44
+
45
+ ---
46
+
47
+
8
48
  ## [3.3.0](https://github.com/oslokommune/punkt/compare/3.2.1...3.3.0) (2023-04-21)
9
49
 
10
50
  ### ⚠ 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
- @media screen and (min-width: 35.938rem) {
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
- display: inline-flex;
53
+ margin-bottom: 0;
15
54
  }
16
55
  }
17
56
  .pkt-footer__link {
18
- color: currentColor;
19
57
  display: flex;
20
- padding: 0.75rem 0;
21
- text-decoration: none;
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
- @media screen and (min-width: 35.938rem) {
25
- .pkt-footer__link {
26
- padding: 0.75rem 2rem 0.75rem 0;
27
- align-items: center;
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-footer__link:visited .pkt-footer__link-icon {
97
+ .pkt-footer__social-icon {
31
98
  --fg-color: currentColor;
99
+ flex-shrink: 0;
100
+ width: 24px;
101
+ height: 24px;
32
102
  }
33
- .pkt-footer__link:hover .pkt-footer__link-icon {
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-footer__link-icon {
153
+ .pkt-footer-simple__link-icon {
37
154
  --fg-color: currentColor;
38
155
  width: 24px;
39
156
  height: 24px;
40
- margin-right: 0.75rem;
157
+ margin-right: 0.5rem;
41
158
  flex-shrink: 0;
42
- margin-top: 3px;
43
159
  }
44
- @media screen and (min-width: 35.938rem) {
45
- .pkt-footer__link-icon {
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:2.5rem 0;font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em}@media screen and (min-width: 35.938rem){.pkt-footer__list-item{display:inline-flex}}.pkt-footer__link{color:currentColor;display:flex;padding:.75rem 0;text-decoration:none;align-items:flex-start}@media screen and (min-width: 35.938rem){.pkt-footer__link{padding:.75rem 2rem .75rem 0;align-items:center}}.pkt-footer__link:visited .pkt-footer__link-icon{--fg-color: currentColor}.pkt-footer__link:hover .pkt-footer__link-icon{--fg-color: currentColor}.pkt-footer__link-icon{--fg-color: currentColor;width:24px;height:24px;margin-right:.75rem;flex-shrink:0;margin-top:3px}@media screen and (min-width: 35.938rem){.pkt-footer__link-icon{margin-top:0}}
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}}