@internetstiftelsen/styleguide 4.1.13 → 5.0.1

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.
Files changed (248) hide show
  1. package/dist/assets/js/iconToggle.js +1 -2
  2. package/dist/assets/js/parallax.js +0 -2
  3. package/dist/assets/js/textToggle.js +0 -1
  4. package/dist/assets/js/track.js +2 -2
  5. package/dist/assets/js/youtube.js +2 -1
  6. package/dist/components.js +0 -4
  7. package/dist/molecules/glider/glider-hero.js +1 -2
  8. package/dist/molecules/modal/modal.js +2 -2
  9. package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
  10. package/dist/organisms/mailchimp/mailchimp.js +2 -1
  11. package/dist/organisms/tabs/tabs.js +3 -2
  12. package/dist/organisms/timeline/timeline.js +2 -4
  13. package/package.json +23 -18
  14. package/src/app.js +1 -15
  15. package/src/app.scss +85 -88
  16. package/src/assets/js/iconToggle.js +2 -2
  17. package/src/assets/js/parallax.js +0 -2
  18. package/src/assets/js/textToggle.js +1 -1
  19. package/src/assets/js/track.js +2 -2
  20. package/src/assets/js/youtube.js +2 -1
  21. package/src/atoms/archive-link/archive-link.config.js +1 -1
  22. package/src/atoms/archive-link/archive-link.scss +24 -17
  23. package/src/atoms/button/_button.scss +216 -210
  24. package/src/atoms/checkbox/_checkbox.scss +33 -26
  25. package/src/atoms/checkbox/checkbox.config.js +1 -1
  26. package/src/atoms/file/_file.scss +23 -13
  27. package/src/atoms/file/file.config.js +1 -1
  28. package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
  29. package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
  30. package/src/atoms/height-limiter/_height-limiter.scss +21 -14
  31. package/src/atoms/height-limiter/height-limiter.config.js +1 -1
  32. package/src/atoms/hr/hr.config.js +1 -1
  33. package/src/atoms/icon/icon.config.js +2 -2
  34. package/src/atoms/input/_input.scss +23 -16
  35. package/src/atoms/input/input.config.js +1 -1
  36. package/src/atoms/label/label.config.js +1 -1
  37. package/src/atoms/label/label.scss +11 -5
  38. package/src/atoms/logotype/_logotype.scss +3 -2
  39. package/src/atoms/logotype/logotype.config.js +3 -3
  40. package/src/atoms/main-menu/_main-menu.scss +67 -60
  41. package/src/atoms/main-menu/main-menu.config.js +1 -1
  42. package/src/atoms/meta/_meta.scss +44 -33
  43. package/src/atoms/meta/meta.config.js +2 -2
  44. package/src/atoms/paging/_paging.scss +27 -21
  45. package/src/atoms/paging/paging.config.js +1 -1
  46. package/src/atoms/password-toggle/_password-toggle.scss +9 -6
  47. package/src/atoms/password-toggle/password-toggle.config.js +1 -1
  48. package/src/atoms/progress/_progress.scss +19 -11
  49. package/src/atoms/progress/progress.config.js +1 -1
  50. package/src/atoms/quote/_quote.scss +17 -10
  51. package/src/atoms/quote/quote.config.js +1 -1
  52. package/src/atoms/radiobutton/_radiobutton.scss +33 -26
  53. package/src/atoms/radiobutton/radiobutton.config.js +1 -1
  54. package/src/atoms/range/_range.scss +46 -39
  55. package/src/atoms/range/range.config.js +1 -1
  56. package/src/atoms/rating/_rating.scss +11 -4
  57. package/src/atoms/rating/rating.config.js +1 -1
  58. package/src/atoms/ribbon/_ribbon.scss +17 -10
  59. package/src/atoms/ribbon/ribbon.config.js +1 -1
  60. package/src/atoms/select/_select.scss +18 -10
  61. package/src/atoms/select/select.config.js +1 -1
  62. package/src/atoms/skip/_skip.scss +9 -6
  63. package/src/atoms/skip/skip.config.js +1 -1
  64. package/src/atoms/spinner/_spinner.scss +4 -3
  65. package/src/atoms/spinner/spinner.config.js +1 -1
  66. package/src/atoms/tag/_tag.scss +26 -19
  67. package/src/atoms/tag/tag.config.js +1 -1
  68. package/src/atoms/textarea/_textarea.scss +22 -13
  69. package/src/atoms/textarea/textarea.config.js +1 -1
  70. package/src/atoms/toggle-button/toggle-button.config.js +1 -1
  71. package/src/atoms/tooltip/_tooltip.scss +28 -21
  72. package/src/atoms/tooltip/tooltip.config.js +1 -1
  73. package/src/base/_grid.scss +4 -4
  74. package/src/base/_normalize.scss +122 -120
  75. package/src/base/fonts/_fonts.scss +1 -1
  76. package/src/brandbook/goto10/goto10.config.js +1 -1
  77. package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
  78. package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
  79. package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
  80. package/src/components.js +0 -2
  81. package/src/configurations/_bem.scss +30 -27
  82. package/src/configurations/_config.scss +24 -23
  83. package/src/configurations/_extends.scss +38 -34
  84. package/src/configurations/_functions.scss +25 -9
  85. package/src/configurations/_mixins.scss +23 -19
  86. package/src/configurations/_recaptcha.scss +2 -2
  87. package/src/configurations/_variables.scss +40 -46
  88. package/src/configurations/_wordpress.scss +69 -62
  89. package/src/configurations/colors/_background-colors.scss +3 -2
  90. package/src/configurations/colors/_colors-functions.scss +41 -39
  91. package/src/configurations/colors/_colors.scss +4 -4
  92. package/src/configurations/colors/_text-colors.scss +3 -2
  93. package/src/configurations/colors/_wordpress-colors.scss +3 -2
  94. package/src/configurations/colors/colors.config.js +1 -1
  95. package/src/configurations/favicon/favicon.config.js +1 -1
  96. package/src/configurations/forms/_fields.scss +28 -23
  97. package/src/configurations/grid/_grid.scss +33 -28
  98. package/src/configurations/grid/grid.config.js +1 -1
  99. package/src/configurations/icons.json +1 -1
  100. package/src/configurations/typography/_typography.scss +113 -105
  101. package/src/configurations/typography/readme.md +1 -1
  102. package/src/configurations/typography/typography.config.js +1 -1
  103. package/src/globals.scss +16 -18
  104. package/src/isolated-footer.scss +25 -25
  105. package/src/molecules/alert/_alert.scss +44 -35
  106. package/src/molecules/alert/alert.config.js +1 -1
  107. package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
  108. package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
  109. package/src/molecules/byline/_byline.scss +30 -21
  110. package/src/molecules/byline/byline.config.js +1 -1
  111. package/src/molecules/card/_card.scss +87 -77
  112. package/src/molecules/context-menu/_context-menu.scss +32 -15
  113. package/src/molecules/context-menu/context-menu.config.js +11 -11
  114. package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
  115. package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
  116. package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
  117. package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
  118. package/src/molecules/download/_download.scss +38 -30
  119. package/src/molecules/download/download.config.js +1 -1
  120. package/src/molecules/form/form.config.js +1 -1
  121. package/src/molecules/form-control/_form-control.scss +66 -58
  122. package/src/molecules/form-control/form-control.config.js +1 -1
  123. package/src/molecules/glider/_glider-course.scss +29 -23
  124. package/src/molecules/glider/_glider-hero.scss +112 -104
  125. package/src/molecules/glider/_glider.scss +36 -30
  126. package/src/molecules/glider/glider-hero.js +1 -3
  127. package/src/molecules/glider/glider.config.js +1 -1
  128. package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
  129. package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
  130. package/src/molecules/info-box/_info-box.scss +31 -22
  131. package/src/molecules/info-box/info-box.config.js +1 -1
  132. package/src/molecules/input-group/_input-group.scss +23 -13
  133. package/src/molecules/input-group/input-group.config.js +1 -1
  134. package/src/molecules/modal/_modal.scss +77 -65
  135. package/src/molecules/modal/modal.js +2 -2
  136. package/src/molecules/multi-select/_multi-select.scss +44 -33
  137. package/src/molecules/multi-select/multi-select.js +3 -3
  138. package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
  139. package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
  140. package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
  141. package/src/molecules/overview-navigation/overview-navigation.js +2 -2
  142. package/src/molecules/readspeaker/_readspeaker.scss +1 -1
  143. package/src/molecules/share/_share.scss +23 -15
  144. package/src/molecules/share/share.config.js +1 -1
  145. package/src/molecules/submenu/_submenu.scss +77 -69
  146. package/src/molecules/submenu/submenu.config.js +1 -1
  147. package/src/molecules/system-error/_system-error.scss +26 -17
  148. package/src/molecules/system-error/system-error.config.js +1 -1
  149. package/src/molecules/table/_table.scss +50 -42
  150. package/src/molecules/table/table.config.js +1 -1
  151. package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
  152. package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
  153. package/src/organisms/accordion/_accordion.scss +64 -54
  154. package/src/organisms/accordion/accordion.config.js +1 -1
  155. package/src/organisms/domain-search/_domain-search.scss +54 -45
  156. package/src/organisms/domain-search/domain-search.config.js +1 -1
  157. package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
  158. package/src/organisms/features-box/_features-box.scss +30 -19
  159. package/src/organisms/filter/_filter.scss +15 -10
  160. package/src/organisms/filter/filter.config.js +1 -1
  161. package/src/organisms/footer/_footer.scss +121 -111
  162. package/src/organisms/footer/footer.config.js +1 -1
  163. package/src/organisms/header/_header.scss +24 -14
  164. package/src/organisms/header/header.config.js +1 -1
  165. package/src/organisms/hero/_hero--bbk.scss +50 -38
  166. package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
  167. package/src/organisms/hero/_hero.scss +222 -207
  168. package/src/organisms/hero/hero.config.js +37 -38
  169. package/src/organisms/mailchimp/_mailchimp.scss +53 -43
  170. package/src/organisms/mailchimp/mailchimp.config.js +1 -1
  171. package/src/organisms/mailchimp/mailchimp.js +2 -1
  172. package/src/organisms/mega-menu/_mega-menu.scss +55 -45
  173. package/src/organisms/mega-menu/mega-menu.config.js +1 -1
  174. package/src/organisms/members-service-product/_members-service-product.scss +29 -18
  175. package/src/organisms/members-service-product/members-service-product.config.js +6 -8
  176. package/src/organisms/podcast/_podcast-episodes.scss +85 -75
  177. package/src/organisms/podcast/_podcast-player.scss +73 -64
  178. package/src/organisms/podcast/podcast.config.js +1 -1
  179. package/src/organisms/schedule/_schedule.scss +92 -82
  180. package/src/organisms/search/_search.scss +68 -58
  181. package/src/organisms/search-result/_search-result.scss +50 -40
  182. package/src/organisms/search-result/search-result.config.js +1 -1
  183. package/src/organisms/sections/_sections.scss +41 -31
  184. package/src/organisms/sections/sections.config.js +1 -1
  185. package/src/organisms/tabs/_tabs.scss +58 -46
  186. package/src/organisms/tabs/tabs.config.js +1 -1
  187. package/src/organisms/tabs/tabs.js +3 -2
  188. package/src/organisms/timeline/_timeline.scss +92 -81
  189. package/src/organisms/timeline/timeline.config.js +1 -1
  190. package/src/organisms/timeline/timeline.js +3 -2
  191. package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
  192. package/src/organisms/video-guide/_video-guide.scss +148 -138
  193. package/src/organisms/video-guide/video-guide.config.js +1 -1
  194. package/src/organisms/video-guide/video-guide.js +2 -2
  195. package/src/pages/animate-footer/animate-footer.config.js +181 -2
  196. package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
  197. package/src/pages/conditional/conditional.config.js +1 -1
  198. package/src/pages/dark-mode/dark-mode.config.js +1 -1
  199. package/src/pages/internetguider/internetguider.config.js +1 -1
  200. package/src/pages/magazine/magazine.config.js +1 -1
  201. package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
  202. package/src/pages/responsive-position/responsive-position.config.js +1 -1
  203. package/src/pages/search/search.config.js +1 -1
  204. package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -1
  205. package/src/print.scss +1 -1
  206. package/src/structures/_article.scss +39 -28
  207. package/src/structures/_core-values.scss +14 -2
  208. package/src/structures/_manifest.scss +4 -4
  209. package/src/structures/_section.scss +32 -20
  210. package/src/structures/_site.scss +19 -7
  211. package/src/theme/_dark-mode.scss +14 -13
  212. package/src/theme/_theme.scss +29 -26
  213. package/src/utilities/_align.scss +1 -1
  214. package/src/utilities/_border.scss +5 -3
  215. package/src/utilities/_box-shadow.scss +5 -2
  216. package/src/utilities/_display.scss +1 -1
  217. package/src/utilities/_fill.scss +5 -4
  218. package/src/utilities/_flex.scss +1 -1
  219. package/src/utilities/_font-size.scss +6 -5
  220. package/src/utilities/_fonts.scss +6 -5
  221. package/src/utilities/_gutter.scss +3 -2
  222. package/src/utilities/_hide.scss +17 -15
  223. package/src/utilities/_icons.scss +41 -37
  224. package/src/utilities/_indent.scss +8 -6
  225. package/src/utilities/_links.scss +22 -18
  226. package/src/utilities/_lists.scss +19 -14
  227. package/src/utilities/_manifest.scss +27 -27
  228. package/src/utilities/_margin.scss +28 -25
  229. package/src/utilities/_misc.scss +3 -2
  230. package/src/utilities/_padding.scss +26 -23
  231. package/src/utilities/_position.scss +3 -2
  232. package/src/utilities/_show.scss +7 -6
  233. package/src/utilities/_text.scss +1 -1
  234. package/src/utilities/_vertical-align.scss +1 -1
  235. package/src/utilities/_wrap.scss +1 -1
  236. package/src/utilities/_z-index.scss +7 -6
  237. package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
  238. package/src/vendor/baseline/_plumber.scss +14 -13
  239. package/src/vendor/grid/_breakpoints.scss +17 -13
  240. package/src/vendor/grid/_flex.scss +8 -4
  241. package/src/vendor/grid/_functions.scss +9 -6
  242. package/src/vendor/grid/_grid-framework.scss +14 -9
  243. package/src/vendor/grid/_grid.scss +19 -16
  244. package/src/vendor/grid/_spacing.scss +8 -3
  245. package/src/atoms/toggle-high-contrast/readme.md +0 -6
  246. package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
  247. package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
  248. package/src/molecules/modal/modal-graph.js +0 -40
@@ -1,17 +1,19 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
 
3
3
  @use "sass:math";
4
-
5
- @import '../configurations/colors/colors';
4
+ @use '../configurations/colors/colors' as colors;
5
+ @use '../configurations/variables' as var;
6
+ @use '../configurations/functions' as func;
7
+ @use '../theme/theme' as theme;
6
8
 
7
9
  html {
8
10
  box-sizing: border-box;
9
11
  height: 100%;
10
12
  min-height: 100%;
11
- background-color: theme_palette('background');
13
+ background-color: theme.theme_palette('background');
12
14
  color: var(--cyberspace-color);
13
15
  font-family: sans-serif;
14
- font-size: percentage(math.div($size-base, 16px));
16
+ font-size: math.percentage(math.div(var.$size-base, 16px));
15
17
  font-variant-ligatures: no-common-ligatures;
16
18
  -ms-overflow-style: scrollbar;
17
19
  -webkit-text-size-adjust: 100%;
@@ -23,11 +25,11 @@ body {
23
25
  min-height: 100%;
24
26
  margin: 0;
25
27
 
26
- //iPhone X landscape Notch fix
28
+ /* iPhone X landscape Notch fix */
27
29
  padding-right: env(safe-area-inset-right);
28
30
  padding-left: env(safe-area-inset-left);
29
31
  overflow-x: hidden;
30
- font-family: $font-family-base;
32
+ font-family: var.$font-family-base;
31
33
  -ms-overflow-style: auto;
32
34
  -webkit-overflow-scrolling: touch;
33
35
  }
@@ -38,7 +40,7 @@ body {
38
40
  box-sizing: inherit;
39
41
  }
40
42
 
41
- // HTML5 display definitions
43
+ /* HTML5 display definitions
42
44
  // ==========================================================================
43
45
 
44
46
  //
@@ -46,7 +48,7 @@ body {
46
48
  // Correct `block` display not defined for `details` or `summary` in IE 10/11
47
49
  // and Firefox.
48
50
  // Correct `block` display not defined for `main` in IE 11.
49
- //
51
+ */
50
52
 
51
53
  article,
52
54
  aside,
@@ -64,30 +66,30 @@ summary {
64
66
  display: block;
65
67
  }
66
68
 
67
- //
69
+ /*
68
70
  // Iframe
69
- //
71
+ //*
70
72
  iframe {
71
73
  border: 0;
72
74
  }
73
75
 
74
- //
76
+ /*
75
77
  // 1. Correct `inline-block` display not defined in IE 8/9.
76
78
  // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
77
- //
79
+ */
78
80
 
79
81
  audio,
80
82
  canvas,
81
83
  progress,
82
84
  video {
83
- display: inline-block; // 1
84
- vertical-align: baseline; // 2
85
+ display: inline-block; /* 1 */
86
+ vertical-align: baseline; /* 2 */
85
87
  }
86
88
 
87
- //
89
+ /*
88
90
  // Prevent modern browsers from displaying `audio` without controls.
89
91
  // Remove excess height in iOS 5 devices.
90
- //
92
+ */
91
93
 
92
94
  audio {
93
95
  &:not([controls]) {
@@ -96,30 +98,30 @@ audio {
96
98
  }
97
99
  }
98
100
 
99
- //
101
+ /*
100
102
  // Address
101
- //
103
+ */
102
104
 
103
105
  address {
104
106
  font-style: normal;
105
107
  }
106
108
 
107
- //
109
+ /*
108
110
  // Address `[hidden]` styling not present in IE 8/9/10.
109
111
  // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
110
- //
112
+ */
111
113
 
112
114
  [hidden],
113
115
  template {
114
116
  display: none;
115
117
  }
116
118
 
117
- // Links
118
- // ==========================================================================
119
+ /* Links
120
+ /* ========================================================================== */
119
121
 
120
- //
122
+ /*
121
123
  // Remove the gray background color from active links in IE 10.
122
- //
124
+ */
123
125
 
124
126
  a {
125
127
  background-color: transparent;
@@ -130,7 +132,7 @@ a {
130
132
  }
131
133
  }
132
134
 
133
- // Prevent 300ms click delay
135
+ /* Prevent 300ms click delay */
134
136
  a,
135
137
  button,
136
138
  input,
@@ -140,12 +142,12 @@ label {
140
142
  touch-action: manipulation;
141
143
  }
142
144
 
143
- // Text-level semantics
145
+ /* Text-level semantics
144
146
  // ==========================================================================
145
147
 
146
148
  //
147
149
  // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
148
- //
150
+ */
149
151
 
150
152
  abbr {
151
153
  &[title] {
@@ -153,18 +155,18 @@ abbr {
153
155
  }
154
156
  }
155
157
 
156
- //
158
+ /*
157
159
  // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
158
- //
160
+ */
159
161
 
160
162
  b,
161
163
  strong {
162
164
  font-weight: 700;
163
165
  }
164
166
 
165
- //
167
+ /*
166
168
  // Address styling not present in Safari and Chrome.
167
- //
169
+ */
168
170
 
169
171
  em,
170
172
  i,
@@ -182,33 +184,33 @@ h6 {
182
184
  font-weight: normal;
183
185
  }
184
186
 
185
- //
187
+ /*
186
188
  // Address styling not present in IE 8/9.
187
- //
189
+ */
188
190
 
189
191
  mark {
190
- background: $color-lemon-light;
191
- color: $color-black;
192
+ background: colors.$color-lemon-light;
193
+ color: colors.$color-black;
192
194
  }
193
195
 
194
- //
196
+ /*
195
197
  // Remove default italic
196
- //
198
+ */
197
199
  cite {
198
200
  font-style: normal;
199
201
  }
200
202
 
201
- //
203
+ /*
202
204
  // Address inconsistent and variable font size in all browsers.
203
- //
205
+ */
204
206
 
205
207
  small {
206
208
  font-size: 80%;
207
209
  }
208
210
 
209
- //
211
+ /*
210
212
  // Prevent `sub` and `sup` affecting `line-height` in all browsers.
211
- //
213
+ */
212
214
 
213
215
  sub,
214
216
  sup {
@@ -226,12 +228,12 @@ sub {
226
228
  bottom: -0.25em;
227
229
  }
228
230
 
229
- // Embedded content
231
+ /* Embedded content
230
232
  // ==========================================================================
231
233
 
232
234
  //
233
235
  // Remove border when inside `a` element in IE 8/9/10.
234
- //
236
+ */
235
237
 
236
238
  img {
237
239
  max-width: 100%;
@@ -239,7 +241,7 @@ img {
239
241
  border: 0;
240
242
  }
241
243
 
242
- // Images in Google Translate Widget
244
+ /* Images in Google Translate Widget */
243
245
 
244
246
  /* stylelint-disable */
245
247
  .google_translate_element {
@@ -253,9 +255,9 @@ img {
253
255
  }
254
256
  /* stylelint-enable */
255
257
 
256
- //
258
+ /*
257
259
  // Correct overflow not hidden in IE 9/10/11.
258
- //
260
+ */
259
261
 
260
262
  svg {
261
263
  &:not(:root) {
@@ -263,46 +265,46 @@ svg {
263
265
  }
264
266
  }
265
267
 
266
- // Grouping content
268
+ /* Grouping content
267
269
  // ==========================================================================
268
270
 
269
271
  //
270
272
  // Address margin not present in IE 8/9 and Safari.
271
- //
273
+ */
272
274
 
273
275
  figure {
274
276
  margin: 0;
275
277
  }
276
278
 
277
- //
279
+ /*
278
280
  // Address differences between Firefox and other browsers.
279
- //
281
+ */
280
282
 
281
283
  hr,
282
284
  hr.wp-block-separator {
283
285
  box-sizing: content-box;
284
286
  width: 100%;
285
287
  height: 0;
286
- margin-top: rhythm(2);
287
- margin-bottom: rhythm(2);
288
+ margin-top: func.rhythm(2);
289
+ margin-bottom: func.rhythm(2);
288
290
  border: 0;
289
- border-bottom: 1px solid $color-concrete;
291
+ border-bottom: 1px solid colors.$color-concrete;
290
292
  }
291
293
 
292
- //
294
+ /*
293
295
  // Contain overflow in all browsers.
294
- //
296
+ */
295
297
 
296
298
  pre {
297
299
  width: 100%;
298
300
  max-height: 80vh;
299
- margin-bottom: rhythm(4);
300
- padding: rhythm(2);
301
+ margin-bottom: func.rhythm(4);
302
+ padding: func.rhythm(2);
301
303
  overflow: auto;
302
- border-top: rem(4px) solid $color-sandstone;
303
- border-radius: $border-radius;
304
- background-color: $color-snow;
305
- font-size: $size-medium;
304
+ border-top: func.to_rem(4px) solid colors.$color-sandstone;
305
+ border-radius: var.$border-radius;
306
+ background-color: colors.$color-snow;
307
+ font-size: var.$size-medium;
306
308
 
307
309
  code {
308
310
  padding: 0;
@@ -312,23 +314,23 @@ pre {
312
314
  code {
313
315
  display: block;
314
316
  width: 100%;
315
- padding: rhythm(2);
316
- font-size: $size-medium;
317
- color: $color-cyberspace;
317
+ padding: func.rhythm(2);
318
+ font-size: var.$size-medium;
319
+ color: colors.$color-cyberspace;
318
320
  }
319
321
 
320
- //
322
+ /*
321
323
  // Address odd `em`-unit font size rendering in all browsers.
322
- //
324
+ */
323
325
 
324
326
  code,
325
327
  kbd,
326
328
  pre,
327
329
  samp {
328
- font-family: $font-family-mono;
330
+ font-family: var.$font-family-mono;
329
331
  }
330
332
 
331
- // Forms
333
+ /* Forms
332
334
  // ==========================================================================
333
335
 
334
336
  //
@@ -341,67 +343,67 @@ samp {
341
343
  // Known issue: affects color of disabled elements.
342
344
  // 2. Correct font properties not being inherited.
343
345
  // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
344
- //
346
+ */
345
347
 
346
348
  button,
347
349
  input,
348
350
  optgroup,
349
351
  select,
350
352
  textarea {
351
- margin: 0; // 3
352
- color: inherit; // 1
353
- font: inherit; // 2
354
- -webkit-appearance: none; // stylelint:disable-line no-vendor-prefixes
353
+ margin: 0; /* 3 */
354
+ color: inherit; /* 1 */
355
+ font: inherit; /* 2 */
356
+ -webkit-appearance: none; /* stylelint:disable-line no-vendor-prefixes */
355
357
  }
356
358
 
357
- //
359
+ /*
358
360
  // Address `overflow` set to `hidden` in IE 8/9/10/11.
359
- //
361
+ */
360
362
 
361
363
  button {
362
364
  overflow: visible;
363
365
  }
364
366
 
365
- //
367
+ /*
366
368
  // Address inconsistent `text-transform` inheritance for `button` and `select`.
367
369
  // All other form control elements do not inherit `text-transform` values.
368
370
  // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
369
371
  // Correct `select` style inheritance in Firefox.
370
- //
372
+ */
371
373
 
372
374
  button,
373
375
  select {
374
376
  text-transform: none;
375
377
  }
376
378
 
377
- //
379
+ /*
378
380
  // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
379
381
  // and `video` controls.
380
382
  // 2. Correct inability to style clickable `input` types in iOS.
381
383
  // 3. Improve usability and consistency of cursor style between image-type
382
384
  // `input` and others.
383
- //
385
+ */
384
386
 
385
387
  button,
386
- html input[type='button'], // 1
388
+ html input[type='button'], /* 1 */
387
389
  input[type='reset'],
388
390
  input[type='submit'] {
389
391
  cursor: pointer;
390
- -webkit-appearance: button; // 3
392
+ -webkit-appearance: button; /* 3 */
391
393
  }
392
394
 
393
- //
395
+ /*
394
396
  // Re-set default cursor for disabled elements.
395
- //
397
+ */
396
398
 
397
399
  button[disabled],
398
400
  html input[disabled] {
399
401
  cursor: default;
400
402
  }
401
403
 
402
- //
404
+ /*
403
405
  // Remove inner padding and border in Firefox 4+.
404
- //
406
+ */
405
407
 
406
408
  button::-moz-focus-inner,
407
409
  input::-moz-focus-inner {
@@ -409,91 +411,91 @@ input::-moz-focus-inner {
409
411
  border: 0;
410
412
  }
411
413
 
412
- //
414
+ /*
413
415
  // Address Firefox 4+ setting `line-height` on `input` using `!important` in
414
416
  // the UA stylesheet.
415
- //
417
+ */
416
418
 
417
419
  input {
418
420
  border-radius: 0;
419
421
  line-height: normal;
420
422
  }
421
423
 
422
- //
424
+ /*
423
425
  // It's recommended that you don't attempt to style these elements.
424
426
  // Firefox's implementation doesn't respect box-sizing, padding, or width.
425
427
  //
426
428
  // 1. Address box sizing set to `content-box` in IE 8/9/10.
427
429
  // 2. Remove excess padding in IE 8/9/10.
428
- //
430
+ */
429
431
 
430
432
  input,
431
433
  input {
432
434
  &[type='checkbox'],
433
435
  &[type='radio'] {
434
- box-sizing: border-box; // 1
435
- padding: 0; // 2
436
+ box-sizing: border-box; /* 1 */
437
+ padding: 0; /* 2 */
436
438
  }
437
439
  }
438
440
 
439
- //
441
+ /*
440
442
  // Fix the cursor style for Chrome's increment/decrement buttons. For certain
441
443
  // `font-size` values of the `input`, it causes the cursor style of the
442
444
  // decrement button to change from `default` to `text`.
443
- //
445
+ */
444
446
 
445
447
  input[type='number']::-webkit-inner-spin-button,
446
448
  input[type='number']::-webkit-outer-spin-button {
447
449
  height: auto;
448
450
  }
449
451
 
450
- //
452
+ /*
451
453
  // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
452
454
  // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
453
- //
455
+ */
454
456
 
455
457
  input[type='search'] {
456
458
  -webkit-appearance: none;
457
459
  }
458
460
 
459
- //
461
+ /*
460
462
  // Remove inner padding and search cancel button in Safari and Chrome on OS X.
461
463
  // Safari (but not Chrome) clips the cancel button when the search input has
462
464
  // padding (and `textfield` appearance).
463
- //
465
+ */
464
466
 
465
467
  input[type='search']::-webkit-search-cancel-button,
466
468
  input[type='search']::-webkit-search-decoration {
467
469
  -webkit-appearance: none;
468
470
  }
469
471
 
470
- // Style placeholders
472
+ /* Style placeholders */
471
473
  ::-webkit-input-placeholder {
472
474
  opacity: 1;
473
- color: $color-granit;
475
+ color: colors.$color-granit;
474
476
  }
475
477
 
476
478
  ::-moz-placeholder {
477
479
  opacity: 1;
478
- color: $color-granit;
480
+ color: colors.$color-granit;
479
481
  }
480
482
 
481
483
  :-ms-input-placeholder {
482
484
  opacity: 1;
483
- color: $color-granit;
485
+ color: colors.$color-granit;
484
486
  }
485
487
 
486
488
  :-moz-placeholder {
487
489
  opacity: 1;
488
- color: $color-granit;
490
+ color: colors.$color-granit;
489
491
  }
490
492
 
491
493
  ::placeholder {
492
494
  opacity: 1;
493
- color: $color-granit;
495
+ color: colors.$color-granit;
494
496
  }
495
497
 
496
- // Remove spinner from fields in Chrome
498
+ /* Remove spinner from fields in Chrome */
497
499
  input[type=number]::-webkit-inner-spin-button,
498
500
  input[type=number]::-webkit-outer-spin-button,
499
501
  input[type=date]::-webkit-inner-spin-button,
@@ -506,14 +508,14 @@ input[type=time]::-webkit-outer-spin-button {
506
508
  -webkit-appearance: none;
507
509
  }
508
510
 
509
- // Remove spinner from number fields in Firefox
511
+ /* Remove spinner from number fields in Firefox */
510
512
  input[type=number] {
511
513
  -moz-appearance: textfield;
512
514
  }
513
515
 
514
- //
516
+ /*
515
517
  // Define consistent border, margin, and padding.
516
- //
518
+ */
517
519
 
518
520
  fieldset {
519
521
  margin: 0;
@@ -521,41 +523,41 @@ fieldset {
521
523
  border: 0;
522
524
  }
523
525
 
524
- //
526
+ /*
525
527
  // 1. Correct `color` not being inherited in IE 8/9/10/11.
526
528
  // 2. Remove padding so people aren't caught out if they zero out fieldsets.
527
- //
529
+ */
528
530
 
529
531
  legend {
530
- margin-bottom: rhythm(1);
531
- padding: 0; // 2
532
- border: 0; // 1
532
+ margin-bottom: func.rhythm(1);
533
+ padding: 0; /* 2 */
534
+ border: 0; /* 1 */
533
535
  font-weight: 700;
534
536
  }
535
537
 
536
- //
538
+ /*
537
539
  // Remove default vertical scrollbar in IE 8/9/10/11.
538
- //
540
+ */
539
541
 
540
542
  textarea {
541
543
  overflow: auto;
542
544
  }
543
545
 
544
- //
546
+ /*
545
547
  // Don't inherit the `font-weight` (applied by a rule above).
546
548
  // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
547
- //
549
+ */
548
550
 
549
551
  optgroup {
550
552
  font-weight: bold;
551
553
  }
552
554
 
553
- // Tables
555
+ /* Tables
554
556
  // ==========================================================================
555
557
 
556
- //
558
+ /*
557
559
  // Remove most spacing between table cells.
558
- //
560
+ */
559
561
 
560
562
  table {
561
563
  border-spacing: 0;
@@ -1,4 +1,4 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
 
3
3
  // Fonts
4
4
  @font-face {
@@ -184,4 +184,4 @@ module.exports = {
184
184
  }
185
185
  ]
186
186
  }
187
- }
187
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Bildmanér',
4
4
  title: 'Bildmanér'
5
- }
5
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Identitet',
4
4
  title: 'Identitet'
5
- }
5
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Tonalitet och språkbruk',
4
4
  title: 'Tonalitet och språkbruk'
5
- }
5
+ };
package/src/components.js CHANGED
@@ -11,7 +11,6 @@ import './organisms/mega-menu/mega-menu';
11
11
  import './molecules/share/share';
12
12
  import './molecules/natural-language-form/natural-language-form';
13
13
  import './atoms/tooltip/tooltip';
14
- import './atoms/toggle-high-contrast/toggle-high-contrast';
15
14
  import './atoms/height-limiter/height-limiter';
16
15
  import './atoms/file/file';
17
16
  import './atoms/file/filePreview';
@@ -23,7 +22,6 @@ import './molecules/glider/glider-course';
23
22
  import './molecules/glider/glider-hero';
24
23
  import './molecules/context-menu/context-menu';
25
24
  import './molecules/alert/alert';
26
- import './molecules/modal/modal-graph';
27
25
  import './molecules/continue-video-guide/continue-video-guide';
28
26
  import './organisms/video-guide/video-guide';
29
27
  import './organisms/timeline/timeline';