@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,10 +1,19 @@
1
- @charset 'UTF-8';
2
-
3
- @include molecule(info-box) {
4
- margin: rhythm(4) 0;
5
- padding: rhythm(4);
6
- border-top: rem(4px) solid $color-lemon;
7
- border-radius: $border-radius;
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
+
12
+ @include mixin.molecule(info-box) {
13
+ margin: func.rhythm(4) 0;
14
+ padding: func.rhythm(4);
15
+ border-top: func.to_rem(4px) solid colors.$color-lemon;
16
+ border-radius: var.$border-radius;
8
17
  background-color: var(--snow-color);
9
18
 
10
19
  > p,
@@ -15,38 +24,38 @@
15
24
  }
16
25
  }
17
26
 
18
- @include bp-up(md) {
19
- padding-right: rhythm(5.5);
20
- padding-left: rhythm(5.5);
27
+ @include breakpoint.bp-up(md) {
28
+ padding-right: func.rhythm(5.5);
29
+ padding-left: func.rhythm(5.5);
21
30
  }
22
31
 
23
- @include m(big) {
24
- border-color: $color-jade;
32
+ @include bem.m(big) {
33
+ border-color: colors.$color-jade;
25
34
 
26
35
  p {
27
36
  @extend %preamble;
28
37
  }
29
38
  }
30
39
 
31
- @include m(basic) {
40
+ @include bem.m(basic) {
32
41
  margin-top: 0;
33
- padding: rhythm(2);
42
+ padding: func.rhythm(2);
34
43
  border-top: 0;
35
44
  border-color: none;
36
45
 
37
- @include bp-up(md) {
38
- padding: rhythm(4);
46
+ @include breakpoint.bp-up(md) {
47
+ padding: func.rhythm(4);
39
48
  }
40
49
 
41
- @include bp-up(lg) {
42
- padding-top: rhythm(6);
43
- padding-right: rhythm(8);
44
- padding-bottom: rhythm(6);
45
- padding-left: rhythm(8);
50
+ @include breakpoint.bp-up(lg) {
51
+ padding-top: func.rhythm(6);
52
+ padding-right: func.rhythm(8);
53
+ padding-bottom: func.rhythm(6);
54
+ padding-left: func.rhythm(8);
46
55
  }
47
56
  }
48
57
 
49
- @include m(custom-border) {
58
+ @include bem.m(custom-border) {
50
59
  border-color: var(--m-info-box-border-color);
51
60
  }
52
61
  }
@@ -30,4 +30,4 @@ module.exports = {
30
30
  }
31
31
  }
32
32
  ]
33
- }
33
+ };
@@ -1,24 +1,34 @@
1
- @charset 'UTF-8';
2
-
3
- @include molecule(input-group) {
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
+
12
+
13
+ @include mixin.molecule(input-group) {
4
14
  display: flex;
5
15
  align-items: stretch;
6
16
 
7
- @include e(label) {
17
+ @include bem.e(label) {
8
18
  display: flex;
9
19
  align-items: center;
10
- padding: 0 rhythm(1);
11
- background: $color-concrete;
12
- border: 1px solid $color-granit;
13
- font-size: rem(16px);
20
+ padding: 0 func.rhythm(1);
21
+ background: colors.$color-concrete;
22
+ border: 1px solid colors.$color-granit;
23
+ font-size: func.to_rem(16px);
14
24
 
15
25
  &:first-child {
16
- border-radius: $border-radius 0 0 $border-radius;
26
+ border-radius: var.$border-radius 0 0 var.$border-radius;
17
27
  border-right: none;
18
28
  }
19
29
 
20
30
  &:last-child {
21
- border-radius: 0 $border-radius $border-radius 0;
31
+ border-radius: 0 var.$border-radius var.$border-radius 0;
22
32
  border-left: none;
23
33
  }
24
34
 
@@ -28,13 +38,13 @@
28
38
  }
29
39
  }
30
40
 
31
- @include atom(input) {
41
+ @include mixin.atom(input) {
32
42
  &:first-child {
33
- border-radius: $border-radius 0 0 $border-radius;
43
+ border-radius: var.$border-radius 0 0 var.$border-radius;
34
44
  }
35
45
 
36
46
  &:last-child {
37
- border-radius: 0 $border-radius $border-radius 0;
47
+ border-radius: 0 var.$border-radius var.$border-radius 0;
38
48
  }
39
49
 
40
50
  &:not(:first-child):not(:last-child) {
@@ -34,4 +34,4 @@ module.exports = {
34
34
  },
35
35
  },
36
36
  ],
37
- }
37
+ };
@@ -1,7 +1,19 @@
1
- @include molecule(modal) {
1
+ @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/extends';
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
+ @include mixin.molecule(modal) {
2
14
  display: flex;
3
15
  position: fixed;
4
- z-index: z_index(foreground);
16
+ z-index: func.z_index(foreground);
5
17
  top: 0;
6
18
  right: 0;
7
19
  bottom: 0;
@@ -14,11 +26,11 @@
14
26
  }
15
27
 
16
28
  // Adjust close button position
17
- @include m(has-overlay) {
29
+ @include bem.m(has-overlay) {
18
30
  &::after {
19
31
  content: '';
20
32
  position: absolute;
21
- z-index: z_index(foregroundMinus);
33
+ z-index: func.z_index(foregroundMinus);
22
34
  top: 0;
23
35
  right: 0;
24
36
  bottom: 0;
@@ -27,49 +39,49 @@
27
39
  }
28
40
  }
29
41
 
30
- @include e(container) {
42
+ @include bem.e(container) {
31
43
  display: flex;
32
44
  position: relative;
33
- z-index: z_index(foreground);
45
+ z-index: func.z_index(foreground);
34
46
  flex-direction: column;
35
47
  width: 100%;
36
- max-height: calc(100vh - #{rhythm(2)});
37
- margin: rhythm(1);
38
- padding: rhythm(4) rhythm(2) rhythm(4) rhythm(2);
48
+ max-height: calc(100vh - #{func.rhythm(2)});
49
+ margin: func.rhythm(1);
50
+ padding: func.rhythm(4) func.rhythm(2) func.rhythm(4) func.rhythm(2);
39
51
  overflow-y: auto;
40
- border-radius: $border-radius;
52
+ border-radius: var.$border-radius;
41
53
  background: var(--snow-color);
42
54
 
43
55
  > button {
44
56
  position: absolute;
45
- z-index: z_index(background);
46
- top: rhythm(1);
47
- right: rhythm(1);
57
+ z-index: func.z_index(background);
58
+ top: func.rhythm(1);
59
+ right: func.rhythm(1);
48
60
  }
49
61
 
50
- @include bp-up(sm) {
51
- padding: rhythm(4) rhythm(4) rhythm(6) rhythm(4);
62
+ @include breakpoint.bp-up(sm) {
63
+ padding: func.rhythm(4) func.rhythm(4) func.rhythm(6) func.rhythm(4);
52
64
  width: auto;
53
- min-width: rem(576px);
65
+ min-width: func.to_rem(576px);
54
66
  }
55
67
 
56
- @include bp-up(md) {
57
- padding: rhythm(8) rhythm(8) rhythm(6) rhythm(8);
68
+ @include breakpoint.bp-up(md) {
69
+ padding: func.rhythm(8) func.rhythm(8) func.rhythm(6) func.rhythm(8);
58
70
  }
59
71
 
60
- @include bp-up(lg) {
61
- max-width: rem(961px);
72
+ @include breakpoint.bp-up(lg) {
73
+ max-width: func.to_rem(961px);
62
74
  }
63
75
 
64
- @include m(no-max-width) {
76
+ @include bem.m(no-max-width) {
65
77
  max-width: none;
66
78
  }
67
79
 
68
- @include m(dynamic-width) {
80
+ @include bem.m(dynamic-width) {
69
81
  width: 100%;
70
82
  max-width: calc(100vw);
71
83
  min-width: 0;
72
- max-height: calc(100% - #{rhythm(2)});
84
+ max-height: calc(100% - #{func.rhythm(2)});
73
85
  padding: 0;
74
86
  overflow: auto;
75
87
 
@@ -79,64 +91,64 @@
79
91
  }
80
92
  }
81
93
 
82
- @include bp-up(md) {
83
- @include e(input-wrapper) {
94
+ @include breakpoint.bp-up(md) {
95
+ @include bem.e(input-wrapper) {
84
96
  display: flex;
85
97
  justify-content: space-between;
86
- margin-bottom: rhythm(2);
98
+ margin-bottom: func.rhythm(2);
87
99
  }
88
100
  }
89
101
 
90
- @include e(content) {
102
+ @include bem.e(content) {
91
103
  position: relative;
92
- margin-right: rhythm(2);
104
+ margin-right: func.rhythm(2);
93
105
 
94
- @include bp-up(sm) {
106
+ @include breakpoint.bp-up(sm) {
95
107
  margin-right: 0;
96
108
  }
97
109
 
98
- @include m(form-name) {
110
+ @include bem.m(form-name) {
99
111
  flex: 0 0 45%;
100
112
  }
101
113
 
102
- @include m(form-lname) {
114
+ @include bem.m(form-lname) {
103
115
  flex: 0 0 45%;
104
116
  }
105
117
 
106
- @include e(input-wrapper) {
118
+ @include bem.e(input-wrapper) {
107
119
  display: flex;
108
120
  justify-content: space-between;
109
- margin-bottom: rhythm(2);
121
+ margin-bottom: func.rhythm(2);
110
122
  }
111
123
 
112
- @include bp-up(md) {
124
+ @include breakpoint.bp-up(md) {
113
125
 
114
- @include m(form-email) {
115
- margin-bottom: rhythm(2);
126
+ @include bem.m(form-email) {
127
+ margin-bottom: func.rhythm(2);
116
128
  }
117
129
 
118
- @include m(form-username) {
119
- margin-bottom: rhythm(2);
130
+ @include bem.m(form-username) {
131
+ margin-bottom: func.rhythm(2);
120
132
  }
121
133
  }
122
- @include m(form-check) {
134
+ @include bem.m(form-check) {
123
135
  display: flex;
124
136
  }
125
137
 
126
- @include m(form-text) {
138
+ @include bem.m(form-text) {
127
139
  display: flex;
128
140
  justify-content: center;
129
- margin-top: rhythm(2);
141
+ margin-top: func.rhythm(2);
130
142
  }
131
143
  }
132
144
 
133
- @include e(buttons) {
145
+ @include bem.e(buttons) {
134
146
  display: flex;
135
147
  flex-shrink: 0;
136
148
  justify-content: flex-end;
137
149
  }
138
150
 
139
- @include e(button-primary) {
151
+ @include bem.e(button-primary) {
140
152
  color: var(--m-modal-button-primary-color) !important;
141
153
  box-shadow: 0 0 0 1px inset var(--m-modal-button-primary-border-color) !important;
142
154
 
@@ -150,7 +162,7 @@
150
162
  }
151
163
  }
152
164
 
153
- @include e(button-secondary) {
165
+ @include bem.e(button-secondary) {
154
166
  color: var(--m-modal-button-secondary-color) !important;
155
167
  box-shadow: 0 0 0 1px inset var(--m-modal-button-secondary-border-color) !important;
156
168
 
@@ -164,7 +176,7 @@
164
176
  }
165
177
  }
166
178
 
167
- @include e(graph-button) {
179
+ @include bem.e(graph-button) {
168
180
  padding: 0;
169
181
  position: relative;
170
182
 
@@ -175,49 +187,49 @@
175
187
 
176
188
  &::after {
177
189
  content: attr(data-zoom);
178
- color: $color-snow;
179
- padding: rhythm(1) rhythm(2) rhythm(1) rhythm(4);
190
+ color: colors.$color-snow;
191
+ padding: func.rhythm(1) func.rhythm(2) func.rhythm(1) func.rhythm(4);
180
192
  display: block;
181
193
  position: absolute;
182
194
  top: 0;
183
195
  left: 0;
184
- border-top-left-radius: $border-radius;
185
- border-bottom-right-radius: $border-radius;
196
+ border-top-left-radius: var.$border-radius;
197
+ border-bottom-right-radius: var.$border-radius;
186
198
  width: auto;
187
199
  line-height: 1;
188
- height: $icon-size-large * 1.4;
189
- background-color: rgba($color-cyberspace, 0.7);
200
+ height: var.$icon-size-large * 1.4;
201
+ background-color: rgba(colors.$color-cyberspace, 0.7);
190
202
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-search' viewbox='0 0 32 32' width='32' height='32' fill='%23ffffff'%3E%3Cpath d='M24,21.8l8,8L29.9,32l-8-8c-5.9,4.6-14.3,3.6-19-2.2S-0.7,7.6,5.1,2.9S19.3-0.7,24,5.1C27.9,10,27.9,16.9,24,21.8L24,21.8z M13.4,23.9c5.8,0,10.5-4.7,10.5-10.5S19.2,3,13.4,3S3,7.7,3,13.4S7.7,23.9,13.4,23.9z'/%3E%3C/svg%3E");
191
- background-position: rhythm(1) center;
192
- background-size: $icon-size-medium $icon-size-medium;
203
+ background-position: func.rhythm(1) center;
204
+ background-size: var.$icon-size-medium var.$icon-size-medium;
193
205
  background-repeat: no-repeat;
194
206
 
195
207
  }
196
208
  }
197
209
 
198
- @include e(button-fixed) {
210
+ @include bem.e(button-fixed) {
199
211
  position: fixed !important;
200
- top: rhythm(2) !important;
201
- right: rhythm(3) !important;
202
- z-index: z_index(foreground) !important;
212
+ top: func.rhythm(2) !important;
213
+ right: func.rhythm(3) !important;
214
+ z-index: func.z_index(foreground) !important;
203
215
  }
204
216
 
205
- @include e(overlay-button) {
217
+ @include bem.e(overlay-button) {
206
218
  position: fixed !important;
207
- color: $color-snow;
219
+ color: colors.$color-snow;
208
220
  display: flex;
209
221
  align-items: center;
210
222
  text-align: center;
211
223
  justify-content: center;
212
224
  padding: 0;
213
- z-index: z_index(foregroundMinus) !important;
225
+ z-index: func.z_index(foregroundMinus) !important;
214
226
  top: 0 !important;
215
227
  right: 0 !important;
216
228
  bottom: 0 !important;
217
229
  left: 0 !important;
218
230
  background: rgba(0, 0, 0, 0.5);
219
- text-shadow: 0 0 rhythm(0.5) $color-cyberspace;
220
- font-family: $font-family-headings;
231
+ text-shadow: 0 0 func.rhythm(0.5) colors.$color-cyberspace;
232
+ font-family: var.$font-family-headings;
221
233
  border: 0;
222
234
  width: 100vw;
223
235
 
@@ -225,12 +237,12 @@
225
237
  display: none;
226
238
  }
227
239
 
228
- @include bp-up(xxl) {
240
+ @include breakpoint.bp-up(xxl) {
229
241
  display: none;
230
242
  }
231
243
  }
232
244
 
233
- @include b(field-group) {
234
- margin-bottom: rhythm(1);
245
+ @include bem.b(field-group) {
246
+ margin-bottom: func.rhythm(1);
235
247
  }
236
248
  }
@@ -104,7 +104,7 @@ function addAction(action) {
104
104
 
105
105
  if (action.onClick) {
106
106
  el.addEventListener('click', (e) => {
107
- // eslint-disable-next-line no-use-before-define
107
+
108
108
  action.onClick(e, modal, close);
109
109
  });
110
110
  }
@@ -113,7 +113,7 @@ function addAction(action) {
113
113
  function handleKeyUp(e) {
114
114
  Object.entries(keyHandlers).forEach(([key, handler]) => {
115
115
  if (e.key.toLowerCase() === key) {
116
- // eslint-disable-next-line no-use-before-define
116
+
117
117
  handler(e, modal, close);
118
118
  }
119
119
  });
@@ -1,78 +1,89 @@
1
1
  @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/extends';
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 '../../utilities/hide';
2
13
 
3
- @include molecule(multi-select) {
14
+ @include mixin.molecule(multi-select) {
4
15
  position: relative;
5
16
 
6
17
  &::before {
7
18
  @extend %u-visuallyhidden;
8
19
 
9
- content: $namespace;
20
+ content: var.$namespace;
10
21
  }
11
22
 
12
- @include e(search) {
23
+ @include bem.e(search) {
13
24
  position: relative;
14
25
  }
15
26
 
16
- @include e(suggestions-box) {
27
+ @include bem.e(suggestions-box) {
17
28
  position: absolute;
18
29
  border-top: none;
19
- z-index: z_index(foreground);
30
+ z-index: func.z_index(foreground);
20
31
  top: 100%;
21
32
  left: 0;
22
33
  right: 0;
23
- background-color: $color-snow;
34
+ background-color: colors.$color-snow;
24
35
  overflow-y: auto;
25
- max-height: rhythm(15);
26
- border-bottom-left-radius: $border-radius;
27
- border-bottom-right-radius: $border-radius;
36
+ max-height: func.rhythm(15);
37
+ border-bottom-left-radius: var.$border-radius;
38
+ border-bottom-right-radius: var.$border-radius;
28
39
 
29
40
  @extend %box-shadow;
30
41
  }
31
42
 
32
- @include e(suggestion-btn) {
33
- padding: rhythm(1);
43
+ @include bem.e(suggestion-btn) {
44
+ padding: func.rhythm(1);
34
45
  cursor: pointer;
35
- background-color: $color-snow;
46
+ background-color: colors.$color-snow;
36
47
  border: none;
37
- border-bottom: 1px solid $color-concrete;
48
+ border-bottom: 1px solid colors.$color-concrete;
38
49
  width: 100%;
39
50
  text-align: left;
40
51
 
41
52
  &:hover,
42
53
  &.autocomplete-active {
43
- background-color: $color-ocean-dark;
44
- color: $color-snow;
54
+ background-color: colors.$color-ocean-dark;
55
+ color: colors.$color-snow;
45
56
  }
46
57
  }
47
58
 
48
- @include e(tag){
49
- margin-bottom: rhythm(1);
50
- background-color: $color-ash;
59
+ @include bem.e(tag){
60
+ margin-bottom: func.rhythm(1);
61
+ background-color: colors.$color-ash;
51
62
  text-transform: none;
52
- font-size: $size-medium;
63
+ font-size: var.$size-medium;
53
64
 
54
65
  &:hover,
55
66
  &:focus {
56
- background-color: $color-ash;
57
- color: $color-cyberspace;
67
+ background-color: colors.$color-ash;
68
+ color: colors.$color-cyberspace;
58
69
  }
59
70
  }
60
71
  }
61
72
 
62
73
  /* Selected items container */
63
- @include molecule(multi-select-selected-items) {
64
- margin-top: -#{rhythm(1)};
65
- padding: rhythm(2) rhythm(1) 0 rhythm(1);
74
+ @include mixin.molecule(multi-select-selected-items) {
75
+ margin-top: -#{func.rhythm(1)};
76
+ padding: func.rhythm(2) func.rhythm(1) 0 func.rhythm(1);
66
77
  border: 1px solid #d4d4d4;
67
- background-color: $color-concrete;
68
- border-bottom-left-radius: $border-radius;
69
- border-bottom-right-radius: $border-radius;
78
+ background-color: colors.$color-concrete;
79
+ border-bottom-left-radius: var.$border-radius;
80
+ border-bottom-right-radius: var.$border-radius;
70
81
 
71
82
  &:empty {
72
83
  display: none;
73
84
  }
74
85
 
75
- @include e(remove-btn) {
86
+ @include bem.e(remove-btn) {
76
87
  margin-left: 5px;
77
88
  border: none;
78
89
  background-color: #d80000;
@@ -83,10 +94,10 @@
83
94
  align-items: center;
84
95
  justify-content: center;
85
96
  line-height: 1;
86
- width: $icon-size-small;
87
- height: $icon-size-small;
97
+ width: var.$icon-size-small;
98
+ height: var.$icon-size-small;
88
99
  position: relative;
89
- transform: translateX(rhythm(0.5));
100
+ transform: translateX(func.rhythm(0.5));
90
101
 
91
102
  &::after {
92
103
  content: '';
@@ -101,12 +112,12 @@
101
112
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDojRkZGRkZGO30KPC9zdHlsZT4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSI4LDEwIDIsMTYgMCwxNCA2LDggMCwyIDIsMCA4LDYgMTQsMCAxNiwyIDEwLDggMTYsMTQgMTQsMTYgIi8+Cjwvc3ZnPgo=);
102
113
  background-repeat: no-repeat;
103
114
  background-position: center center;
104
- background-size: calc($icon-size-small / 2) calc($icon-size-small / 2);
115
+ background-size: calc(var.$icon-size-small / 2) calc(var.$icon-size-small / 2);
105
116
  }
106
117
 
107
118
  &:hover,
108
119
  &:focus {
109
- background-color: $color-cyberspace;
120
+ background-color: colors.$color-cyberspace;
110
121
  }
111
122
  }
112
123
  }
@@ -105,7 +105,7 @@ class MultiSelect {
105
105
  }
106
106
 
107
107
  this.resetFocus();
108
- }
108
+ };
109
109
 
110
110
  removeItem(item) {
111
111
  const node = this.element.querySelector(`.js-m-multi-select-selected-items li[data-value="${item.value}"]`);
@@ -228,7 +228,7 @@ class MultiSelect {
228
228
 
229
229
  this.selectHighlighted();
230
230
  }
231
- }
231
+ };
232
232
 
233
233
  onClick = (e) => {
234
234
  if (e.target.classList.contains(className(`${this.baseClassName}__suggestion-btn`))) {
@@ -236,7 +236,7 @@ class MultiSelect {
236
236
  this.clearSuggestions();
237
237
  this.input.value = '';
238
238
  }
239
- }
239
+ };
240
240
  }
241
241
 
242
242
  const multiSelectElements = document.querySelectorAll('.js-m-multi-select');