@internetstiftelsen/styleguide 3.0.2 → 3.0.4-beta.0.10

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": "3.0.2",
3
+ "version": "3.0.4-beta.0.10",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
package/src/app.scss CHANGED
@@ -96,3 +96,6 @@ $namespace: '';
96
96
 
97
97
  // Structures
98
98
  @import 'structures/manifest';
99
+
100
+ // Print
101
+ @import 'print';
@@ -17,18 +17,25 @@
17
17
  @extend %box-shadow;
18
18
 
19
19
  transform: translateY(100%);
20
+
21
+ a,
22
+ button,
23
+ input {
24
+ animation-direction: reverse;
25
+ }
20
26
  }
21
27
 
22
28
  @include bp-up(xl) {
23
29
  display: flex;
24
30
  }
25
- }
26
31
 
27
- &[tabindex='-1'] {
28
- a,
29
- button,
30
- input {
31
- visibility: hidden;
32
+ &[aria-hidden='true'] {
33
+ a,
34
+ button,
35
+ input {
36
+ display: none;
37
+ animation: 0 ease-in 0s 2s reverse both paused fadeIn;
38
+ }
32
39
  }
33
40
  }
34
41
 
@@ -140,3 +147,20 @@
140
147
  display: none;
141
148
  }
142
149
  }
150
+
151
+ @keyframes fadeIn {
152
+ 0% {
153
+ opacity: 0;
154
+ display: none;
155
+ }
156
+
157
+ 1% {
158
+ opacity: 1;
159
+ display: block;
160
+ }
161
+
162
+ 100% {
163
+ opacity: 1;
164
+ display: block;
165
+ }
166
+ }
package/src/print.scss CHANGED
@@ -1 +1,13 @@
1
1
  @charset 'UTF-8';
2
+
3
+ /* Hide elements for print */
4
+ @media print {
5
+ [class*='o-footer'],
6
+ [class*='o-header'],
7
+ [class*='o-mailchimp']
8
+ [class*='m-submenu'],
9
+ [class*='m-share'],
10
+ [class*='m-overview-navigation'] {
11
+ display: none !important;
12
+ }
13
+ }