@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
@@ -20,7 +20,6 @@ module.exports = {
20
20
  no_image_class: false,
21
21
  has_radius: true,
22
22
  limited_width: true,
23
- has_radius: true,
24
23
  has_buttons: false,
25
24
  text: 'Nästan alla i Sverige använder internet – men hur meningsfull är tiden vi spenderar där? I rapporten Svenskarna och internet 2019 frågar vi för första gången om meningsfullhet, och det syns stora skillnader mellan olika aktiviteter.',
26
25
  }
@@ -32,7 +31,7 @@ module.exports = {
32
31
  has_tags: false,
33
32
  has_buttons: true,
34
33
  limited_width: false,
35
- hero_image: 'https://stage.goto10.se/app/uploads/2024/05/toppbild-goto-10-linkoping-1-.jpg.webp',
34
+ hero_image: 'https://www.goto10.se/app/uploads/2024/06/toppbild-goto-10-linkoping-1-.jpg.webp',
36
35
  },
37
36
  },
38
37
  {
@@ -74,44 +73,44 @@ module.exports = {
74
73
  },
75
74
  {
76
75
  name: 'Event hero',
77
- context: {
78
- event_title: 'Creator Circle Meetup',
79
- organizer: 'Creator Circle',
80
- city: 'Stockholm',
81
- time: '24 januari 2020 18:20-21:30',
82
- event_text: 'Event på Goto 10 i',
83
- no_image_class: 'o-hero--no-image',
84
- icon_share: 'share',
85
- icon_export: 'external-link',
86
- limited_width: false,
87
- has_image: false,
88
- has_video: false,
89
- is_event: true,
90
- has_buttons: false,
91
- background_color: 'background-peacock-light'
92
- }
76
+ context: {
77
+ event_title: 'Creator Circle Meetup',
78
+ organizer: 'Creator Circle',
79
+ city: 'Stockholm',
80
+ time: '24 januari 2020 18:20-21:30',
81
+ event_text: 'Event på Goto 10 i',
82
+ no_image_class: 'o-hero--no-image',
83
+ icon_share: 'share',
84
+ icon_export: 'external-link',
85
+ limited_width: false,
86
+ has_image: false,
87
+ has_video: false,
88
+ is_event: true,
89
+ has_buttons: false,
90
+ background_color: 'background-peacock-light'
91
+ }
93
92
  },
94
93
  {
95
94
  name: 'Event hero with button',
96
95
  status: 'ready',
97
- context: {
98
- event_title: 'Framtidsoptimism och problemlösning i en uppkopplad värld',
99
- organizer: 'Heja framtiden',
100
- city: false,
101
- time: '22 november 09:00-17:00',
102
- event_text: 'Digitalt spår på Internetdagarna',
103
- no_image_class: 'o-hero--no-image',
104
- geometric_figures: false,
105
- icon_share: 'share',
106
- icon_export: 'external-link',
107
- limited_width: false,
108
- has_image: false,
109
- has_video: false,
110
- is_event: true,
111
- has_button: true,
112
- text: 'Köp biljett',
113
- background_color: 'background-jade-light'
114
- }
96
+ context: {
97
+ event_title: 'Framtidsoptimism och problemlösning i en uppkopplad värld',
98
+ organizer: 'Heja framtiden',
99
+ city: false,
100
+ time: '22 november 09:00-17:00',
101
+ event_text: 'Digitalt spår på Internetdagarna',
102
+ no_image_class: 'o-hero--no-image',
103
+ geometric_figures: false,
104
+ icon_share: 'share',
105
+ icon_export: 'external-link',
106
+ limited_width: false,
107
+ has_image: false,
108
+ has_video: false,
109
+ is_event: true,
110
+ has_button: true,
111
+ text: 'Köp biljett',
112
+ background_color: 'background-jade-light'
113
+ }
115
114
  },
116
115
  {
117
116
  name: 'Clean',
@@ -137,7 +136,7 @@ module.exports = {
137
136
  has_buttons: true,
138
137
  limited_width: false,
139
138
  heading: 'Välkommen till Goto 10',
140
- hero_image: 'https://stage.goto10.se/app/uploads/2024/05/toppbild-goto-10-linkoping-1-.jpg.webp',
139
+ hero_image: 'https://www.goto10.se/app/uploads/2024/06/toppbild-goto-10-linkoping-1-.jpg.webp',
141
140
  text: 'Goto 10 är en kostnadsfri mötesplats för kunskapsutbyte och innovation som drivs av Internetstiftelsen. Besök oss i Linköping, Malmö och Stockholm.',
142
141
  },
143
142
  },
@@ -151,4 +150,4 @@ module.exports = {
151
150
  }
152
151
  },
153
152
  ]
154
- }
153
+ };
@@ -1,124 +1,134 @@
1
- @charset 'UTF-8';
2
-
3
- @include organism(mailchimp) {
1
+ @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/bem' as bem;
4
+ @use '../../configurations/config' as config;
5
+ @use '../../configurations/variables' as var;
6
+ @use '../../configurations/functions' as func;
7
+ @use '../../configurations/colors/colors' as colors;
8
+ @use '../../configurations/colors/colors-functions' as colorFunc;
9
+ @use '../../vendor/grid/breakpoints' as breakpoint;
10
+ @use '../../vendor/grid/grid' as grid;
11
+ @use '../../vendor/baseline/plumber' as plumber;
12
+
13
+ @include mixin.organism(mailchimp) {
4
14
  clear: both;
5
15
 
6
- @include e(wrapper) {
7
- @include card-shadow($color-cyberspace, 0.2);
16
+ @include bem.e(wrapper) {
17
+ @include mixin.card-shadow(colors.$color-cyberspace, 0.2);
8
18
 
9
- margin-top: rhythm(4);
10
- margin-bottom: rhythm(8);
11
- padding: rhythm(2);
12
- border-radius: $border-radius;
13
- background-color: $color-snow;
19
+ margin-top: func.rhythm(4);
20
+ margin-bottom: func.rhythm(8);
21
+ padding: func.rhythm(2);
22
+ border-radius: var.$border-radius;
23
+ background-color: colors.$color-snow;
14
24
  }
15
25
 
16
- @include e(close) {
26
+ @include bem.e(close) {
17
27
  display: none;
18
28
  }
19
29
 
20
- @include e(image-container) {
21
- margin-bottom: rhythm(2);
30
+ @include bem.e(image-container) {
31
+ margin-bottom: func.rhythm(2);
22
32
 
23
- @include bp-up(lg) {
33
+ @include breakpoint.bp-up(lg) {
24
34
  display: flex;
25
- display: -webkit-box; // Weird Sarafi bug needs this
35
+ display: -webkit-box; /* Weird Sarafi bug needs this */
26
36
  width: 50%;
27
37
  margin-bottom: 0;
28
38
  }
29
39
  }
30
40
 
31
- @include e(image) {
41
+ @include bem.e(image) {
32
42
  display: block;
33
43
  flex-grow: 0;
34
- border-radius: $border-radius;
44
+ border-radius: var.$border-radius;
35
45
  object-fit: cover;
36
46
  }
37
47
 
38
- @include e(image-missing) {
48
+ @include bem.e(image-missing) {
39
49
  display: flex;
40
50
  align-items: center;
41
51
  justify-content: center;
42
52
  width: 100%;
43
53
  height: 100%;
44
- padding: rhythm(4);
45
- border-radius: $border-radius;
46
- background-color: $color-cyberspace;
54
+ padding: func.rhythm(4);
55
+ border-radius: var.$border-radius;
56
+ background-color: colors.$color-cyberspace;
47
57
 
48
58
  svg {
49
59
  width: 80%;
50
60
  height: 80%;
51
- min-height: rhythm(20);
52
- fill: $color-jade;
61
+ min-height: func.rhythm(20);
62
+ fill: colors.$color-jade;
53
63
  }
54
64
  }
55
65
 
56
- @include e(content) {
57
- padding: 0 rhythm(3) 0 rhythm(3);
66
+ @include bem.e(content) {
67
+ padding: 0 func.rhythm(3) 0 func.rhythm(3);
58
68
 
59
- @include bp-up(lg) {
60
- padding-right: rhythm(4);
69
+ @include breakpoint.bp-up(lg) {
70
+ padding-right: func.rhythm(4);
61
71
  }
62
72
  }
63
73
 
64
- @include m(sliding) {
74
+ @include bem.m(sliding) {
65
75
  position: fixed;
66
- z-index: z_index(foregroundMinus);
67
- top: rhythm(1);
76
+ z-index: func.z_index(foregroundMinus);
77
+ top: func.rhythm(1);
68
78
  right: -500px;
69
- bottom: rhythm(1);
79
+ bottom: func.rhythm(1);
70
80
  max-width: 420px;
71
81
  transition: right ease-out 0.35s;
72
82
 
73
83
  &.is-visible {
74
84
  right: 0;
75
85
 
76
- @include e(wrapper) {
86
+ @include bem.e(wrapper) {
77
87
  display: block;
78
- border: 1px solid $color-ash;
88
+ border: 1px solid colors.$color-ash;
79
89
  }
80
90
  }
81
91
 
82
- @include bp-up(sm) {
92
+ @include breakpoint.bp-up(sm) {
83
93
  top: auto;
84
94
  }
85
95
 
86
- @include e(wrapper) {
96
+ @include bem.e(wrapper) {
87
97
  display: none;
88
98
  margin-top: 0;
89
99
  margin-bottom: 0;
90
100
  }
91
101
 
92
- @include e(row-bottom) {
102
+ @include bem.e(row-bottom) {
93
103
  max-height: calc(100vh - 94px);
94
104
  overflow-x: hidden;
95
105
  overflow-y: auto;
96
106
 
97
- @include bp-up(sm) {
107
+ @include breakpoint.bp-up(sm) {
98
108
  max-height: none;
99
109
  overflow: visible;
100
110
  }
101
111
  }
102
112
 
103
- @include e(close) {
113
+ @include bem.e(close) {
104
114
  display: flex;
105
115
  }
106
116
 
107
- @include e(image-container) {
117
+ @include bem.e(image-container) {
108
118
  display: none;
109
119
  }
110
120
 
111
- @include e(content) {
121
+ @include bem.e(content) {
112
122
  flex: 0 0 100%;
113
123
  width: 100%;
114
124
  max-width: 100%;
115
- padding-right: rhythm(3);
116
- padding-bottom: rhythm(2);
125
+ padding-right: func.rhythm(3);
126
+ padding-bottom: func.rhythm(2);
117
127
  overflow-y: auto;
118
128
  max-height: calc(100vh - 77px);
119
129
  }
120
130
 
121
- @include b(m-form__row) {
131
+ @include bem.b(m-form__row) {
122
132
  flex: 0 0 100%;
123
133
  width: 100%;
124
134
  max-width: 100%;
@@ -35,4 +35,4 @@ module.exports = {
35
35
  }
36
36
  }
37
37
  ]
38
- }
38
+ };
@@ -49,7 +49,8 @@ function isInViewport(element) {
49
49
  const height = element.offsetHeight;
50
50
 
51
51
  while (element.offsetParent) {
52
- element = element.offsetParent; // eslint-disable-line
52
+ // eslint-disable-next-line no-param-reassign
53
+ element = element.offsetParent;
53
54
  top += element.offsetTop;
54
55
  }
55
56
 
@@ -1,13 +1,23 @@
1
+ @charset "UTF-8";
1
2
  @use "sass:color";
2
-
3
- $border-color: color.adjust($color-jade, $lightness: -5%);
4
-
5
- @include organism(mega-menu) {
6
- z-index: z_index(middlegroundImportant);
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/bem' as bem;
5
+ @use '../../configurations/config' as config;
6
+ @use '../../configurations/variables' as var;
7
+ @use '../../configurations/functions' as func;
8
+ @use '../../configurations/colors/colors' as colors;
9
+ @use '../../configurations/colors/colors-functions' as colorFunc;
10
+ @use '../../vendor/grid/breakpoints' as breakpoint;
11
+ @use '../../vendor/grid/grid' as grid;
12
+
13
+ $border-color: color.adjust(colors.$color-jade, $lightness: -5%);
14
+
15
+ @include mixin.organism(mega-menu) {
16
+ z-index: func.z_index(middlegroundImportant);
7
17
  padding-right: 0;
8
18
  padding-left: 0;
9
19
  transition: transform 0.25s ease-out;
10
- background-color: $color-jade-light;
20
+ background-color: colors.$color-jade-light;
11
21
 
12
22
  &[aria-hidden='true'] {
13
23
  display: none;
@@ -18,7 +28,7 @@ $border-color: color.adjust($color-jade, $lightness: -5%);
18
28
  transform: translateY(0);
19
29
 
20
30
  + {
21
- @include organism(domain-search) {
31
+ @include mixin.organism(domain-search) {
22
32
  display: none;
23
33
  }
24
34
  }
@@ -32,48 +42,48 @@ $border-color: color.adjust($color-jade, $lightness: -5%);
32
42
  }
33
43
  }
34
44
 
35
- @include e(wrapper) {
36
- padding-top: rhythm(3);
45
+ @include bem.e(wrapper) {
46
+ padding-top: func.rhythm(3);
37
47
 
38
- @include bp-down(md) {
39
- padding-right: rhythm(1);
40
- padding-left: rhythm(1);
48
+ @include breakpoint.bp-down(md) {
49
+ padding-right: func.rhythm(1);
50
+ padding-left: func.rhythm(1);
41
51
  }
42
52
  }
43
53
 
44
- @include e(list) {
45
- margin-top: rhythm(1);
54
+ @include bem.e(list) {
55
+ margin-top: func.rhythm(1);
46
56
 
47
- @include e(topic) {
48
- margin-top: rhythm(2);
49
- margin-bottom: rhythm(0.5);
50
- padding: rhythm(1) rhythm(1);
57
+ @include bem.e(topic) {
58
+ margin-top: func.rhythm(2);
59
+ margin-bottom: func.rhythm(0.5);
60
+ padding: func.rhythm(1) func.rhythm(1);
51
61
  border-bottom: 1px solid $border-color;
52
- font-family: $font-family-headings;
62
+ font-family: var.$font-family-headings;
53
63
 
54
64
  &:first-child {
55
65
  margin-top: 0;
56
66
  }
57
67
  }
58
68
 
59
- @include e(item) {
60
- margin: 0 0 rhythm(0.5) 0;
61
- padding: rhythm(1) rhythm(1);
69
+ @include bem.e(item) {
70
+ margin: 0 0 func.rhythm(0.5) 0;
71
+ padding: func.rhythm(1) func.rhythm(1);
62
72
 
63
73
  & + & {
64
74
  border-top: 1px solid $border-color;
65
75
  }
66
76
  }
67
77
 
68
- @include bp-up(lg) {
78
+ @include breakpoint.bp-up(lg) {
69
79
 
70
- @include e(topic) {
80
+ @include bem.e(topic) {
71
81
  padding: 0;
72
82
  border-bottom: 0;
73
83
  }
74
84
 
75
- @include e(item) {
76
- margin-bottom: rhythm(1);
85
+ @include bem.e(item) {
86
+ margin-bottom: func.rhythm(1);
77
87
  padding: 0;
78
88
  line-height: 1.3;
79
89
 
@@ -84,10 +94,10 @@ $border-color: color.adjust($color-jade, $lightness: -5%);
84
94
  }
85
95
  }
86
96
 
87
- @include e(link) {
97
+ @include bem.e(link) {
88
98
  display: inline-flex;
89
99
  align-items: baseline;
90
- color: $color-cyberspace;
100
+ color: colors.$color-cyberspace;
91
101
  text-decoration: none;
92
102
 
93
103
  &:hover {
@@ -96,42 +106,42 @@ $border-color: color.adjust($color-jade, $lightness: -5%);
96
106
  }
97
107
  }
98
108
 
99
- @include m(large) {
109
+ @include bem.m(large) {
100
110
  display: block;
101
- padding: 0 rhythm(1);
102
- font-family: $font-family-headings;
103
- font-size: rem(23px);
111
+ padding: 0 func.rhythm(1);
112
+ font-family: var.$font-family-headings;
113
+ font-size: func.to_rem(23px);
104
114
  white-space: nowrap;
105
115
 
106
- @include bp-up(lg) {
116
+ @include breakpoint.bp-up(lg) {
107
117
  padding: 0;
108
118
  }
109
119
  }
110
120
 
111
- @include e(icon) {
112
- width: $icon-size-smallest;
113
- height: $icon-size-smallest;
121
+ @include bem.e(icon) {
122
+ width: var.$icon-size-smallest;
123
+ height: var.$icon-size-smallest;
114
124
  flex-shrink: 0;
115
- margin-left: rhythm(0.5);
125
+ margin-left: func.rhythm(0.5);
116
126
  }
117
127
  }
118
128
 
119
- @include bp-up(lg) {
129
+ @include breakpoint.bp-up(lg) {
120
130
  padding-bottom: 0;
121
131
 
122
- @include e(link) {
123
- @include m(large) {
132
+ @include bem.e(link) {
133
+ @include bem.m(large) {
124
134
  padding: 0;
125
135
  }
126
136
  }
127
137
  }
128
138
 
129
- @include e(search) {
130
- @include e(wrapper) {
131
- padding: rhythm(2) rhythm(1);
139
+ @include bem.e(search) {
140
+ @include bem.e(wrapper) {
141
+ padding: func.rhythm(2) func.rhythm(1);
132
142
 
133
- @include bp-up(md) {
134
- padding: rhythm(3) rhythm(2);
143
+ @include breakpoint.bp-up(md) {
144
+ padding: func.rhythm(3) func.rhythm(2);
135
145
  }
136
146
  }
137
147
  }
@@ -207,4 +207,4 @@ module.exports = {
207
207
  }
208
208
  }
209
209
  ]
210
- }
210
+ };
@@ -1,44 +1,55 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/typography/typography';
4
+ @use '../../configurations/bem' as bem;
5
+ @use '../../configurations/config' as config;
6
+ @use '../../configurations/variables' as var;
7
+ @use '../../configurations/functions' as func;
8
+ @use '../../configurations/colors/colors' as colors;
9
+ @use '../../configurations/colors/colors-functions' as colorFunc;
10
+ @use '../../vendor/grid/breakpoints' as breakpoint;
11
+ @use '../../vendor/grid/grid' as grid;
12
+ @use '../../vendor/baseline/plumber' as plumber;
2
13
 
3
- @include organism(service-product-list) {
14
+ @include mixin.organism(service-product-list) {
4
15
  list-style: none;
5
- margin: 0 0 rhythm(2) 0;
16
+ margin: 0 0 func.rhythm(2) 0;
6
17
  padding: 0;
7
18
 
8
- @include e(item) {
19
+ @include bem.e(item) {
9
20
  display: flex;
10
21
  flex-direction: column;
11
- padding: rhythm(3) rhythm(2);
22
+ padding: func.rhythm(3) func.rhythm(2);
12
23
 
13
24
  & + & {
14
- border-top: 1px solid $color-concrete;
25
+ border-top: 1px solid colors.$color-concrete;
15
26
  }
16
27
 
17
- @include bp-up(sm) {
18
- padding-top: rhythm(2);
19
- padding-bottom: rhythm(2);
28
+ @include breakpoint.bp-up(sm) {
29
+ padding-top: func.rhythm(2);
30
+ padding-bottom: func.rhythm(2);
20
31
  flex-direction: row;
21
32
  align-items: center;
22
33
  }
23
34
  }
24
35
 
25
- @include e(logo) {
36
+ @include bem.e(logo) {
26
37
  flex-shrink: 0;
27
38
 
28
- @include e(image) {
39
+ @include bem.e(image) {
29
40
  width: 100px;
30
41
  height: auto;
31
- margin-right: rhythm(4);
32
- margin-bottom: rhythm(1);
42
+ margin-right: func.rhythm(4);
43
+ margin-bottom: func.rhythm(1);
33
44
 
34
- @include bp-up(sm) {
45
+ @include breakpoint.bp-up(sm) {
35
46
  margin-bottom: 0;
36
47
  }
37
48
  }
38
49
  }
39
50
 
40
- @include e(data) {
41
- @include e(list) {
51
+ @include bem.e(data) {
52
+ @include bem.e(list) {
42
53
  list-style: none;
43
54
  margin: 0;
44
55
  padding: 0;
@@ -53,8 +64,8 @@
53
64
  }
54
65
 
55
66
  dd {
56
- max-width: calc(#{rem(612px)} + #{($indent * 2)});
67
+ max-width: calc(#{func.to_rem(612px)} + #{(var.$indent * 2)});
57
68
  }
58
69
  }
59
70
  }
60
- }
71
+ }
@@ -1,12 +1,10 @@
1
- const { filter } = require("lodash");
2
-
3
1
  module.exports = {
4
2
  status: 'wip',
5
3
  default: 'Single item',
6
4
 
7
5
  context: {
8
6
  provider: 'Gotit AB',
9
- logo: 'https://www.skolfederation.se/wp-content/uploads/2017/02/logo_gotit.png',
7
+ logo: 'https://skolfederation.se/app/uploads/2017/02/logo_gotit.png',
10
8
  description: 'Ett IT-stöd anpassat för alla former av vuxenutbildning. Alvis stödjer vuxenutbildning i egenregi, upphandlad utbildning eller en blandning av dessa.',
11
9
  serviceName: 'Alvis',
12
10
  heading: 'Filtrera',
@@ -56,19 +54,19 @@ module.exports = {
56
54
  items: [
57
55
  {
58
56
  provider: 'Gotit AB',
59
- logo: 'https://www.skolfederation.se/wp-content/uploads/2017/02/logo_gotit.png',
57
+ logo: 'https://skolfederation.se/app/uploads/2017/02/logo_gotit.png',
60
58
  description: 'Ett IT-stöd anpassat för alla former av vuxenutbildning. Alvis stödjer vuxenutbildning i egenregi, upphandlad utbildning eller en blandning av dessa.',
61
59
  serviceName: 'Alvis',
62
60
  },
63
61
  {
64
- provider: 'MV Nordic AB',
65
- logo: 'https://www.skolfederation.se/wp-content/uploads/2016/10/MV-Nordic_logotyp-180x34.png',
62
+ provider: 'Lexplore Nordic AB',
63
+ logo: 'https://skolfederation.se/app/uploads/2017/06/lexplore_logo-180x55.png',
66
64
  description: 'Avtalen ger dig som uppköpare eller rektor möjlighet att hjälpa elever med dyslexi eller andra läs- och skrivsvårigheter med att klara sig i skolan eller på en utbildning.',
67
65
  serviceName: 'Det flexibla avtalet',
68
66
  },
69
67
  {
70
68
  provider: 'Natur & kultur',
71
- logo: 'https://www.skolfederation.se/wp-content/uploads/2015/04/NoK_Logo_35mm.gif',
69
+ logo: 'https://skolfederation.se/app/uploads/2015/04/NoK_Logo_35mm.gif',
72
70
  description: 'En digitalbok är den tryckta boken i digitalt format. Läs boken på en pekplatta, datorn eller telefon.',
73
71
  serviceName: 'Digitalbok',
74
72
  }
@@ -76,4 +74,4 @@ module.exports = {
76
74
  }
77
75
  }
78
76
  ]
79
- }
77
+ };