@internetstiftelsen/styleguide 2.21.4 → 2.21.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.21.4",
3
+ "version": "2.21.8",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -231,7 +231,8 @@
231
231
  margin-left: -16px;
232
232
  }
233
233
 
234
- &[aria-hidden='true'] {
234
+ &[aria-hidden='true'],
235
+ &:not([aria-hidden]) {
235
236
  display: none;
236
237
  }
237
238
 
@@ -257,3 +258,11 @@
257
258
  }
258
259
  }
259
260
  }
261
+
262
+ .no-js {
263
+ @include atom(main-menu) {
264
+ @include e(subnav) {
265
+ display: block;
266
+ }
267
+ }
268
+ }
@@ -24,7 +24,8 @@
24
24
  background-color: $color-snow;
25
25
  white-space: nowrap;
26
26
 
27
- &[aria-hidden='true'] {
27
+ &[aria-hidden='true'],
28
+ &:not([aria-hidden]) {
28
29
  display: none;
29
30
  }
30
31
  }
@@ -49,3 +50,11 @@
49
50
  }
50
51
  }
51
52
  }
53
+
54
+ .no-js {
55
+ @include molecule(context-menu) {
56
+ @include e(list) {
57
+ display: initial;
58
+ }
59
+ }
60
+ }
@@ -58,6 +58,34 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
58
58
  padding: rhythm(4) rhythm(6);
59
59
  border-bottom: 0;
60
60
  }
61
+
62
+ p {
63
+ max-width: none;
64
+ margin-bottom: 27px;
65
+ font-size: $footer-font-size;
66
+
67
+ @include bp-up(xxl) {
68
+ @include make-col(14);
69
+ max-width: rem(612px);
70
+ }
71
+ }
72
+
73
+ a {
74
+ @extend %normalize-links;
75
+
76
+ color: $color-jade;
77
+ text-decoration: none;
78
+
79
+ &:hover,
80
+ &:focus {
81
+ color: $color-jade;
82
+ text-decoration: underline;
83
+ }
84
+
85
+ svg {
86
+ display: none;
87
+ }
88
+ }
61
89
  }
62
90
 
63
91
  @include e(contact) {
@@ -141,36 +169,6 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
141
169
  }
142
170
  }
143
171
 
144
- @include e(paragraph) {
145
- @extend %normalize-links;
146
-
147
- max-width: none;
148
- margin-bottom: 27px;
149
- font-size: $footer-font-size;
150
-
151
- a {
152
- @extend %normalize-links;
153
-
154
- color: $color-jade;
155
- text-decoration: none;
156
-
157
- &:hover,
158
- &:focus {
159
- color: $color-jade;
160
- text-decoration: underline;
161
- }
162
-
163
- svg {
164
- display: none;
165
- }
166
- }
167
-
168
- @include bp-up(xxl) {
169
- @include make-col(14);
170
- max-width: rem(612px);
171
- }
172
- }
173
-
174
172
  @include e(logotypes) {
175
173
  max-width: 100%;
176
174
  height: auto;