@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,62 +1,72 @@
1
1
  @charset "UTF-8";
2
-
3
- @include organism(podcast-episodes) {
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(podcast-episodes) {
4
14
 
5
15
  // Episode
6
- @include e(episode) {
16
+ @include bem.e(episode) {
7
17
  justify-content: center;
8
18
  margin-right: 0;
9
19
  margin-left: 0;
10
- padding: rhythm(2);
11
- border-radius: $border-radius;
12
- background-color: $color-snow;
20
+ padding: func.rhythm(2);
21
+ border-radius: var.$border-radius;
22
+ background-color: colors.$color-snow;
13
23
 
14
- @include bp-up(sm) {
15
- padding-right: rhythm(2);
16
- padding-left: rhythm(2);
24
+ @include breakpoint.bp-up(sm) {
25
+ padding-right: func.rhythm(2);
26
+ padding-left: func.rhythm(2);
17
27
  }
18
28
 
19
- @include bp-up(md) {
29
+ @include breakpoint.bp-up(md) {
20
30
  justify-content: flex-start;
21
31
  }
22
32
 
23
- @include bp-up(md) {
24
- padding: rhythm(3);
33
+ @include breakpoint.bp-up(md) {
34
+ padding: func.rhythm(3);
25
35
  }
26
36
 
27
- @include m(list) {
28
- margin-bottom: rhythm(2);
37
+ @include bem.m(list) {
38
+ margin-bottom: func.rhythm(2);
29
39
 
30
- @include e(image) {
40
+ @include bem.e(image) {
31
41
  display: none;
32
42
 
33
- @include bp-up(md) {
43
+ @include breakpoint.bp-up(md) {
34
44
  display: block;
35
- width: rem(170px);
36
- height: rem(170px);
45
+ width: func.to_rem(170px);
46
+ height: func.to_rem(170px);
37
47
  }
38
48
  }
39
49
  }
40
50
 
41
- @include m(hero) {
51
+ @include bem.m(hero) {
42
52
  padding-right: 0;
43
53
  padding-left: 0;
44
54
  border-radius: 0;
45
55
  background-color: transparent;
46
56
 
47
- @include bp-up(md) {
57
+ @include breakpoint.bp-up(md) {
48
58
  flex-direction: row-reverse;
49
59
  align-items: center;
50
60
  }
51
61
 
52
- @include e(image) {
53
- width: rem(310px);
54
- height: rem(310px);
62
+ @include bem.e(image) {
63
+ width: func.to_rem(310px);
64
+ height: func.to_rem(310px);
55
65
  margin-right: 0;
56
- margin-left: rhythm(4);
66
+ margin-left: func.rhythm(4);
57
67
  }
58
68
 
59
- @include e(info) {
69
+ @include bem.e(info) {
60
70
  > p {
61
71
  overflow: visible;
62
72
  text-overflow: inherit;
@@ -64,45 +74,45 @@
64
74
  }
65
75
  }
66
76
 
67
- @include e(link) {
77
+ @include bem.e(link) {
68
78
  pointer-events: none;
69
79
  }
70
80
  }
71
81
 
72
- @include e(image) {
73
- margin-bottom: rhythm(2);
74
- border-radius: $border-radius;
82
+ @include bem.e(image) {
83
+ margin-bottom: func.rhythm(2);
84
+ border-radius: var.$border-radius;
75
85
 
76
- @include bp-down(sm) {
86
+ @include breakpoint.bp-down(sm) {
77
87
  display: none;
78
88
  }
79
89
 
80
- @include bp-up(sm) {
90
+ @include breakpoint.bp-up(sm) {
81
91
  display: block;
82
- width: rem(255px);
83
- height: rem(255px);
84
- margin-right: rhythm(3);
92
+ width: func.to_rem(255px);
93
+ height: func.to_rem(255px);
94
+ margin-right: func.rhythm(3);
85
95
  }
86
96
  }
87
97
 
88
- @include e(meta) {
98
+ @include bem.e(meta) {
89
99
  display: flex;
90
- margin-bottom: rhythm(1);
100
+ margin-bottom: func.rhythm(1);
91
101
  }
92
102
 
93
- @include e(info) {
103
+ @include bem.e(info) {
94
104
  h1 span {
95
105
  pointer-events: none;
96
106
  }
97
107
 
98
108
  h1 svg {
99
- width: $icon-size-large * 1.5;
100
- height: $icon-size-large * 1.5;
109
+ width: var.$icon-size-large * 1.5;
110
+ height: var.$icon-size-large * 1.5;
101
111
  }
102
112
 
103
113
  h2 svg {
104
- width: $icon-size-large * 1.2;
105
- height: $icon-size-large * 1.2;
114
+ width: var.$icon-size-large * 1.2;
115
+ height: var.$icon-size-large * 1.2;
106
116
  }
107
117
 
108
118
  > p {
@@ -110,7 +120,7 @@
110
120
  text-overflow: ellipsis;
111
121
  white-space: nowrap;
112
122
 
113
- @include bp-up(sm-xs) {
123
+ @include breakpoint.bp-up(sm-xs) {
114
124
  overflow: visible;
115
125
  text-overflow: inherit;
116
126
  white-space: normal;
@@ -118,8 +128,8 @@
118
128
  }
119
129
  }
120
130
 
121
- @include e(link) {
122
- color: $color-cyberspace;
131
+ @include bem.e(link) {
132
+ color: colors.$color-cyberspace;
123
133
  text-decoration: none;
124
134
 
125
135
  &:hover,
@@ -128,17 +138,17 @@
128
138
  }
129
139
  }
130
140
 
131
- @include e(button) {
141
+ @include bem.e(button) {
132
142
  display: flex;
133
143
  align-items: center;
134
- margin: 0 rhythm(1);
144
+ margin: 0 func.rhythm(1);
135
145
  padding: 0;
136
146
  border: 0;
137
147
  background-color: transparent;
138
148
 
139
149
  &:hover {
140
150
  > svg {
141
- fill: $color-ruby;
151
+ fill: colors.$color-ruby;
142
152
  }
143
153
  }
144
154
 
@@ -147,58 +157,58 @@
147
157
  }
148
158
  }
149
159
 
150
- @include e(share) {
160
+ @include bem.e(share) {
151
161
  display: flex;
152
162
  flex-wrap: wrap;
153
163
  align-items: center;
154
- margin-top: rhythm(1);
164
+ margin-top: func.rhythm(1);
155
165
 
156
- @include e(spacer) {
166
+ @include bem.e(spacer) {
157
167
  display: none;
158
- margin-bottom: rhythm(2);
168
+ margin-bottom: func.rhythm(2);
159
169
 
160
- @include bp-up(lg) {
170
+ @include breakpoint.bp-up(lg) {
161
171
  display: block;
162
- margin-right: rhythm(2);
172
+ margin-right: func.rhythm(2);
163
173
  margin-bottom: 0;
164
- margin-left: rhythm(2);
174
+ margin-left: func.rhythm(2);
165
175
  line-height: 1;
166
176
  }
167
177
  }
168
178
 
169
- @include e(list) {
179
+ @include bem.e(list) {
170
180
  display: flex;
171
181
  flex-basis: 100%;
172
182
 
173
183
  > dt {
174
- margin-right: rhythm(2);
184
+ margin-right: func.rhythm(2);
175
185
  }
176
186
 
177
187
  > dd {
178
188
  margin-left: 0;
179
189
  }
180
190
 
181
- @include bp-up(lg) {
191
+ @include breakpoint.bp-up(lg) {
182
192
  flex-basis: auto;
183
193
  }
184
194
  }
185
195
  }
186
196
 
187
- @include e(listen-link) {
188
- margin-right: rhythm(2);
189
- color: $color-cyberspace;
197
+ @include bem.e(listen-link) {
198
+ margin-right: func.rhythm(2);
199
+ color: colors.$color-cyberspace;
190
200
  }
191
201
 
192
- @include e(download-link) {
202
+ @include bem.e(download-link) {
193
203
  display: flex;
194
204
  flex-basis: 100%;
195
205
  flex-grow: 1;
196
- margin-bottom: rhythm(2);
197
- color: $color-cyberspace;
206
+ margin-bottom: func.rhythm(2);
207
+ color: colors.$color-cyberspace;
198
208
 
199
209
  > span {
200
- font-family: $font-family-base;
201
- font-size: $size-base;
210
+ font-family: var.$font-family-base;
211
+ font-size: var.$size-base;
202
212
  text-decoration: underline;
203
213
  }
204
214
 
@@ -206,37 +216,37 @@
206
216
  transform: translateY(3px);
207
217
  }
208
218
 
209
- @include bp-up(lg) {
219
+ @include breakpoint.bp-up(lg) {
210
220
  margin-bottom: 0;
211
221
  }
212
222
 
213
- @include bp-up(md) {
223
+ @include breakpoint.bp-up(md) {
214
224
  flex-basis: auto;
215
225
  flex-grow: 0;
216
226
  }
217
227
  }
218
228
 
219
- @include e(download-icon) {
220
- width: $icon-size;
221
- height: $icon-size;
222
- margin-right: rhythm(1);
229
+ @include bem.e(download-icon) {
230
+ width: var.$icon-size;
231
+ height: var.$icon-size;
232
+ margin-right: func.rhythm(1);
223
233
  padding: 3px;
224
- border-radius: $border-radius;
234
+ border-radius: var.$border-radius;
225
235
  }
226
236
  }
227
237
  }
228
238
 
229
239
  // Track list (Prototype)
230
- @include organism(podcast-track-list) {
240
+ @include mixin.organism(podcast-track-list) {
231
241
  display: flex;
232
242
  flex-direction: column;
233
243
 
234
244
  > li {
235
245
  display: flex;
236
- padding: rhythm(1) rhythm(2);
246
+ padding: func.rhythm(1) func.rhythm(2);
237
247
 
238
248
  + li {
239
- border-top: 1px solid $color-concrete;
249
+ border-top: 1px solid colors.$color-concrete;
240
250
  }
241
251
 
242
252
  > button {
@@ -1,83 +1,92 @@
1
1
  @charset "UTF-8";
2
2
  @use "sass:color";
3
-
4
3
  @use "sass:math";
4
+ @use '../../configurations/mixins' as mixin;
5
+ @use '../../configurations/bem' as bem;
6
+ @use '../../configurations/config' as config;
7
+ @use '../../configurations/variables' as var;
8
+ @use '../../configurations/functions' as func;
9
+ @use '../../configurations/colors/colors' as colors;
10
+ @use '../../configurations/colors/colors-functions' as colorFunc;
11
+ @use '../../vendor/grid/breakpoints' as breakpoint;
12
+ @use '../../vendor/grid/grid' as grid;
13
+ @use '../../vendor/baseline/plumber' as plumber;
5
14
 
6
- @include organism(podcast-player) {
15
+ @include mixin.organism(podcast-player) {
7
16
 
8
- // Player
17
+ /* Player */
9
18
 
10
- $time-left-width: rem(65px);
19
+ $time-left-width: func.to_rem(65px);
11
20
 
12
21
  position: fixed;
13
- z-index: z_index(middlegroundImportant);
22
+ z-index: func.z_index(middlegroundImportant);
14
23
  right: 0;
15
24
  bottom: 0;
16
25
  left: 0;
17
- padding: rhythm(1) 0 0 0;
26
+ padding: func.rhythm(1) 0 0 0;
18
27
  transform: translateY(0);
19
28
  transition: transform 0.25s ease-out;
20
- background-color: $color-snow;
21
- box-shadow: 0 -#{rhythm(1)} rhythm(3) color.adjust($color-cyberspace, $lightness: 70%);
29
+ background-color: colors.$color-snow;
30
+ box-shadow: 0 -#{func.rhythm(1)} func.rhythm(3) color.adjust(colors.$color-cyberspace, $lightness: 70%);
22
31
 
23
- @include m(hidden) {
32
+ @include bem.m(hidden) {
24
33
  transform: translateY(100%);
25
34
  box-shadow: none;
26
35
  }
27
36
 
28
- @include e(player) {
37
+ @include bem.e(player) {
29
38
  display: flex;
30
39
  flex-grow: 1;
31
40
  align-items: center;
32
41
 
33
- @include e(show-info) {
42
+ @include bem.e(show-info) {
34
43
  display: none;
35
44
 
36
- @include bp-up(sm) {
45
+ @include breakpoint.bp-up(sm) {
37
46
  display: block;
38
47
  }
39
48
  }
40
49
 
41
- @include e(image) {
50
+ @include bem.e(image) {
42
51
  display: none;
43
52
 
44
- @include bp-up(md) {
53
+ @include breakpoint.bp-up(md) {
45
54
  display: flex;
46
55
  flex-grow: 0;
47
- width: rhythm(7);
48
- height: rhythm(7);
49
- margin-right: rhythm(2);
50
- border-radius: $border-radius;
56
+ width: func.rhythm(7);
57
+ height: func.rhythm(7);
58
+ margin-right: func.rhythm(2);
59
+ border-radius: var.$border-radius;
51
60
  }
52
61
  }
53
62
  }
54
63
 
55
- @include e(show-info) {
64
+ @include bem.e(show-info) {
56
65
  display: flex;
57
66
  flex-direction: column;
58
67
  }
59
68
 
60
- @include e(title) {
69
+ @include bem.e(title) {
61
70
  margin-bottom: 0;
62
- color: $color-ruby;
63
- font-family: $font-family-headings;
71
+ color: colors.$color-ruby;
72
+ font-family: var.$font-family-headings;
64
73
  overflow: hidden;
65
74
  text-overflow: ellipsis;
66
75
  white-space: nowrap;
67
- max-width: rem(200px);
76
+ max-width: func.to_rem(200px);
68
77
 
69
- @include bp-up(sm) {
70
- max-width: rem(250px);
78
+ @include breakpoint.bp-up(sm) {
79
+ max-width: func.to_rem(250px);
71
80
  }
72
81
 
73
- @include bp-up(lg) {
74
- max-width: rem(500px);
82
+ @include breakpoint.bp-up(lg) {
83
+ max-width: func.to_rem(500px);
75
84
  }
76
85
  }
77
86
 
78
- @include e(description) {
87
+ @include bem.e(description) {
79
88
  display: block;
80
- max-width: rem(200px);
89
+ max-width: func.to_rem(200px);
81
90
  overflow: hidden;
82
91
  text-overflow: ellipsis;
83
92
  white-space: nowrap;
@@ -86,95 +95,95 @@
86
95
  display: none;
87
96
  }
88
97
 
89
- @include bp-up(sm) {
90
- max-width: rem(250px);
98
+ @include breakpoint.bp-up(sm) {
99
+ max-width: func.to_rem(250px);
91
100
  }
92
101
 
93
- @include bp-up(lg) {
94
- max-width: rem(500px);
102
+ @include breakpoint.bp-up(lg) {
103
+ max-width: func.to_rem(500px);
95
104
  }
96
105
  }
97
106
 
98
- @include e(playtime) {
99
- @include bp-between(sm, md) {
107
+ @include bem.e(playtime) {
108
+ @include breakpoint.bp-between(sm, md) {
100
109
  display: none;
101
110
  }
102
111
  }
103
112
 
104
- @include e(spacer) {
105
- @include bp-between(sm, md) {
113
+ @include bem.e(spacer) {
114
+ @include breakpoint.bp-between(sm, md) {
106
115
  display: none;
107
116
  }
108
117
  }
109
118
 
110
- @include e(controls) {
119
+ @include bem.e(controls) {
111
120
  display: flex;
112
121
  flex-grow: 1;
113
122
  align-items: center;
114
123
  justify-content: center;
115
124
  }
116
125
 
117
- @include e(spacer) {
118
- margin-right: rhythm(0.5);
119
- margin-left: rhythm(0.5);
126
+ @include bem.e(spacer) {
127
+ margin-right: func.rhythm(0.5);
128
+ margin-left: func.rhythm(0.5);
120
129
  }
121
130
 
122
- @include e(button) {
131
+ @include bem.e(button) {
123
132
  display: flex;
124
133
  align-items: center;
125
- margin: 0 rhythm(1);
134
+ margin: 0 func.rhythm(1);
126
135
  padding: 0;
127
136
  border: 0;
128
137
  background-color: transparent;
129
138
 
130
139
  &:hover {
131
140
  > svg {
132
- fill: $color-ruby;
141
+ fill: colors.$color-ruby;
133
142
  }
134
143
  }
135
144
  }
136
145
 
137
- @include e(timeleft) {
146
+ @include bem.e(timeleft) {
138
147
  min-width: $time-left-width;
139
148
  }
140
149
 
141
- @include e(rewind-icon) {
142
- width: $icon-size-large * 1.2;
143
- height: $icon-size-large * 1.2;
150
+ @include bem.e(rewind-icon) {
151
+ width: var.$icon-size-large * 1.2;
152
+ height: var.$icon-size-large * 1.2;
144
153
  }
145
154
 
146
- @include e(forward-icon) {
147
- width: $icon-size-large * 1.2;
148
- height: $icon-size-large * 1.2;
155
+ @include bem.e(forward-icon) {
156
+ width: var.$icon-size-large * 1.2;
157
+ height: var.$icon-size-large * 1.2;
149
158
  }
150
159
 
151
- @include e(play-icon) {
160
+ @include bem.e(play-icon) {
152
161
  display: block;
153
- width: $icon-size-large * 1.5;
154
- height: $icon-size-large * 1.5;
162
+ width: var.$icon-size-large * 1.5;
163
+ height: var.$icon-size-large * 1.5;
155
164
  }
156
165
 
157
- @include e(progressbar) {
166
+ @include bem.e(progressbar) {
158
167
  flex-wrap: wrap;
159
168
  width: 100%;
160
- height: rhythm(0.5);
161
- margin-top: rhythm(1);
162
- background-color: $color-concrete;
169
+ height: func.rhythm(0.5);
170
+ margin-top: func.rhythm(1);
171
+ background-color: colors.$color-concrete;
163
172
 
164
- @include e(progress) {
173
+ @include bem.e(progress) {
165
174
  width: 0;
166
- height: rhythm(1);
175
+ height: func.rhythm(1);
167
176
  }
168
177
  }
169
178
 
170
- @include e(close) {
179
+ @include bem.e(close) {
171
180
  position: absolute;
172
- right: rhythm(0.5);
181
+ right: func.rhythm(0.5);
173
182
  top: 50%;
174
183
  transform: translateY(-50%);
175
184
 
176
- @include bp-up(xxl) {
177
- right: rhythm(2);
185
+ @include breakpoint.bp-up(xxl) {
186
+ right: func.rhythm(2);
178
187
  }
179
188
  }
180
189
  }
@@ -73,4 +73,4 @@ module.exports = {
73
73
  }
74
74
  }
75
75
  ]
76
- }
76
+ };