@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,15 +1,25 @@
1
1
  @charset "UTF-8";
2
-
3
- @include organism(schedule-filter) {
4
- margin-bottom: rhythm(2);
5
- background-color: $color-ash;
6
- z-index: z_index(foregroundMinus);
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(schedule-filter) {
14
+ margin-bottom: func.rhythm(2);
15
+ background-color: colors.$color-ash;
16
+ z-index: func.z_index(foregroundMinus);
7
17
  transition: box-shadow 0.25s ease, border-width 0.25s ease, background-color 0.25s ease;
8
18
 
9
- @include e(button) {
10
- font-size: $size-base;
19
+ @include bem.e(button) {
20
+ font-size: var.$size-base;
11
21
 
12
- @include bp-up(md) {
22
+ @include breakpoint.bp-up(md) {
13
23
  pointer-events: none;
14
24
 
15
25
  &:hover,
@@ -30,8 +40,8 @@
30
40
  }
31
41
  }
32
42
  }
33
- @include e(list) {
34
- padding: 0 0 rhythm(1) 0;
43
+ @include bem.e(list) {
44
+ padding: 0 0 func.rhythm(1) 0;
35
45
  margin: 0;
36
46
  display: flex;
37
47
  flex-wrap: wrap;
@@ -39,7 +49,7 @@
39
49
  &[aria-hidden='true'] {
40
50
  display: none;
41
51
 
42
- @include bp-up(md) {
52
+ @include breakpoint.bp-up(md) {
43
53
  display: flex;
44
54
  }
45
55
  }
@@ -47,7 +57,7 @@
47
57
  dt {
48
58
  width: 100%;
49
59
  flex-basis: 100%;
50
- font-family: $font-family-headings;
60
+ font-family: var.$font-family-headings;
51
61
  }
52
62
 
53
63
  dt,
@@ -58,21 +68,21 @@
58
68
  }
59
69
  }
60
70
 
61
- @include organism(schedule) {
62
- @include e(item) {
63
- background-color: $color-snow;
64
- border-right: $border-radius;
65
- padding: rhythm(1) rhythm(3) rhythm(1) rhythm(2);
71
+ @include mixin.organism(schedule) {
72
+ @include bem.e(item) {
73
+ background-color: colors.$color-snow;
74
+ border-right: var.$border-radius;
75
+ padding: func.rhythm(1) func.rhythm(3) func.rhythm(1) func.rhythm(2);
66
76
  border-left-width: 4px;
67
77
  border-left-style: solid;
68
- border-radius: $border-radius;
69
- margin-bottom: rhythm(2);
78
+ border-radius: var.$border-radius;
79
+ margin-bottom: func.rhythm(2);
70
80
 
71
81
  a {
72
82
  &:hover,
73
83
  &:focus {
74
84
  span {
75
- color: $color-ruby;
85
+ color: colors.$color-ruby;
76
86
  }
77
87
  }
78
88
  }
@@ -97,86 +107,86 @@
97
107
  margin-bottom: 0;
98
108
  }
99
109
 
100
- @include m(keynote) {
101
- background-color: $color-cyberspace;
102
- color: $color-snow;
103
- border-color: $color-cyberspace;
104
- padding: rhythm(2) rhythm(3) rhythm(2) rhythm(2);
110
+ @include bem.m(keynote) {
111
+ background-color: colors.$color-cyberspace;
112
+ color: colors.$color-snow;
113
+ border-color: colors.$color-cyberspace;
114
+ padding: func.rhythm(2) func.rhythm(3) func.rhythm(2) func.rhythm(2);
105
115
 
106
116
  svg {
107
- fill: $color-snow !important;
117
+ fill: colors.$color-snow !important;
108
118
  }
109
119
 
110
120
  span {
111
- color: $color-snow;
121
+ color: colors.$color-snow;
112
122
  }
113
123
  }
114
124
 
115
- @include m(granit) {
116
- border-color: $color-granit;
125
+ @include bem.m(granit) {
126
+ border-color: colors.$color-granit;
117
127
  }
118
128
 
119
- @include m(lemon) {
120
- border-color: $color-lemon;
129
+ @include bem.m(lemon) {
130
+ border-color: colors.$color-lemon;
121
131
  }
122
132
 
123
- @include m(jade) {
124
- border-color: $color-jade;
133
+ @include bem.m(jade) {
134
+ border-color: colors.$color-jade;
125
135
  }
126
136
 
127
- @include m(ruby) {
128
- border-color: $color-ruby;
137
+ @include bem.m(ruby) {
138
+ border-color: colors.$color-ruby;
129
139
  }
130
140
 
131
- @include m(peacock) {
132
- border-color: $color-peacock;
141
+ @include bem.m(peacock) {
142
+ border-color: colors.$color-peacock;
133
143
  }
134
144
 
135
- @include m(ocean) {
136
- border-color: $color-ocean;
145
+ @include bem.m(ocean) {
146
+ border-color: colors.$color-ocean;
137
147
  }
138
148
 
139
- @include m(sandstone) {
140
- border-color: $color-sandstone;
149
+ @include bem.m(sandstone) {
150
+ border-color: colors.$color-sandstone;
141
151
  }
142
152
 
143
- @include m(transparent) {
153
+ @include bem.m(transparent) {
144
154
  background-color: transparent;
145
155
  border-color: transparent;
146
156
  }
147
157
 
148
- @include e(image-wrapper) {
149
- width: rem(50px);
150
- height: rem(50px);
151
- margin-right: rhythm(2);
158
+ @include bem.e(image-wrapper) {
159
+ width: func.to_rem(50px);
160
+ height: func.to_rem(50px);
161
+ margin-right: func.rhythm(2);
152
162
  position: relative;
153
163
 
154
- @include bp-up(md) {
164
+ @include breakpoint.bp-up(md) {
155
165
  margin-right: 0;
156
166
  }
157
167
 
158
- @include m(medium) {
159
- width: rem(75px);
160
- height: rem(75px);
168
+ @include bem.m(medium) {
169
+ width: func.to_rem(75px);
170
+ height: func.to_rem(75px);
161
171
 
162
172
  }
163
173
 
164
- @include m(large) {
165
- width: rem(125px);
166
- height: rem(125px);
167
- margin-bottom: rhythm(2);
174
+ @include bem.m(large) {
175
+ width: func.to_rem(125px);
176
+ height: func.to_rem(125px);
177
+ margin-bottom: func.rhythm(2);
168
178
 
169
- @include bp-up(md) {
179
+ @include breakpoint.bp-up(md) {
170
180
  margin-bottom: 0;
171
181
  }
172
182
  }
173
183
 
174
- @include m(multiple) {
175
- margin-right: rhythm(3);
184
+ @include bem.m(multiple) {
185
+ margin-right: func.rhythm(3);
176
186
  flex-grow: 0;
177
187
  flex-shrink: 0;
178
188
 
179
- @include bp-up(md) {
189
+ @include breakpoint.bp-up(md) {
180
190
  margin-right: 0;
181
191
  }
182
192
 
@@ -188,73 +198,73 @@
188
198
  width: 100%;
189
199
  height: 100%;
190
200
  top: 0;
191
- left: rhythm(1.25);
192
- background-color: $color-ash;
201
+ left: func.rhythm(1.25);
202
+ background-color: colors.$color-ash;
193
203
  position: absolute;
194
204
  z-index: 2;
195
205
  transform: scale(0.95);
196
- box-shadow: 0 0 0 3px $color-snow;
206
+ box-shadow: 0 0 0 3px colors.$color-snow;
197
207
  }
198
208
 
199
209
  &::after {
200
- left: rhythm(2.5);
210
+ left: func.rhythm(2.5);
201
211
  z-index: 1;
202
212
  transform: scale(0.9);
203
213
  }
204
214
  }
205
215
  }
206
216
 
207
- @include e(image) {
217
+ @include bem.e(image) {
208
218
  border-radius: 50%;
209
- width: rem(50px);
210
- height: rem(50px);
219
+ width: func.to_rem(50px);
220
+ height: func.to_rem(50px);
211
221
  position: relative;
212
222
  z-index: 3;
213
- box-shadow: 0 0 0 3px $color-snow;
223
+ box-shadow: 0 0 0 3px colors.$color-snow;
214
224
 
215
- @include bp-up(lg) {
225
+ @include breakpoint.bp-up(lg) {
216
226
  margin-right: 0;
217
227
  }
218
228
 
219
- @include m(medium) {
220
- width: rem(75px);
221
- height: rem(75px);
229
+ @include bem.m(medium) {
230
+ width: func.to_rem(75px);
231
+ height: func.to_rem(75px);
222
232
 
223
233
  }
224
234
 
225
- @include m(large) {
226
- width: rem(125px);
227
- height: rem(125px);
228
- margin-bottom: rhythm(2);
235
+ @include bem.m(large) {
236
+ width: func.to_rem(125px);
237
+ height: func.to_rem(125px);
238
+ margin-bottom: func.rhythm(2);
229
239
  box-shadow: none;
230
240
 
231
- @include bp-up(md) {
241
+ @include breakpoint.bp-up(md) {
232
242
  margin-bottom: 0;
233
243
  }
234
244
  }
235
245
  }
236
246
 
237
- @include e(close-btn) {
247
+ @include bem.e(close-btn) {
238
248
  position: absolute;
239
249
  top: 0;
240
250
  right: 0;
241
- z-index: z_index(middleGround);
251
+ z-index: func.z_index(middleGround);
242
252
  }
243
253
 
244
- @include e(owner) {
254
+ @include bem.e(owner) {
245
255
  display: flex;
246
- margin-bottom: rhythm(1);
256
+ margin-bottom: func.rhythm(1);
247
257
  align-items: center;
248
258
 
249
259
  > span {
250
260
  line-height: 1.2;
251
261
  }
252
262
 
253
- @include bp-up(lg) {
263
+ @include breakpoint.bp-up(lg) {
254
264
  margin-bottom: 0;
255
265
  }
256
266
 
257
- @include bp-up(md) {
267
+ @include breakpoint.bp-up(md) {
258
268
  flex-wrap: wrap;
259
269
  flex-direction: column;
260
270
  align-items: center;
@@ -262,7 +272,7 @@
262
272
 
263
273
  > span {
264
274
  text-align: center;
265
- margin-top: rhythm(0.5);
275
+ margin-top: func.rhythm(0.5);
266
276
  }
267
277
  }
268
278
  }
@@ -1,112 +1,122 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
  @use "sass:color";
3
-
4
- @include organism(search) {
5
- border-radius: $border-radius;
6
- background-color: $color-snow;
7
-
8
- @include e(padded) {
9
- padding: rhythm(2);
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/extends';
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
+
14
+ @include mixin.organism(search) {
15
+ border-radius: var.$border-radius;
16
+ background-color: colors.$color-snow;
17
+
18
+ @include bem.e(padded) {
19
+ padding: func.rhythm(2);
10
20
  }
11
21
 
12
- @include e(border) {
13
- border-top: 1px solid $color-concrete;
22
+ @include bem.e(border) {
23
+ border-top: 1px solid colors.$color-concrete;
14
24
  }
15
25
 
16
- @include e(icon) {
26
+ @include bem.e(icon) {
17
27
  display: flex;
18
28
  flex-grow: 0;
19
- width: $icon-size;
20
- height: $icon-size;
21
- margin-right: rhythm(2);
29
+ width: var.$icon-size;
30
+ height: var.$icon-size;
31
+ margin-right: func.rhythm(2);
22
32
  }
23
33
 
24
- @include e(status) {
25
- background-color: $color-jade-light;
26
- font-family: $font-family-mono;
27
- font-size: rem($size-medium-plus);
34
+ @include bem.e(status) {
35
+ background-color: colors.$color-jade-light;
36
+ font-family: var.$font-family-mono;
37
+ font-size: func.to_rem(var.$size-medium-plus);
28
38
  text-transform: uppercase;
29
39
  }
30
40
 
31
- @include e(input) {
41
+ @include bem.e(input) {
32
42
  display: block;
33
- width: calc(100% - #{rhythm(2)});
34
- margin-right: rhythm(2);
35
- padding: rhythm(1) rhythm(2);
43
+ width: calc(100% - #{func.rhythm(2)});
44
+ margin-right: func.rhythm(2);
45
+ padding: func.rhythm(1) func.rhythm(2);
36
46
  transition: padding 0.25s ease-out;
37
47
  border: 0;
38
- border-radius: $border-radius;
39
- background-color: color.adjust($color-ash, $lightness: 4%);
48
+ border-radius: var.$border-radius;
49
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
40
50
  letter-spacing: -0.1px;
41
51
  -webkit-appearance: none;
42
52
 
43
53
  &:focus {
44
54
  @extend %input-focus;
45
55
 
46
- background-color: $color-snow;
56
+ background-color: colors.$color-snow;
47
57
  }
48
58
 
49
59
  + [aria-live] {
50
- width: calc(100% - #{rhythm(2)});
60
+ width: calc(100% - #{func.rhythm(2)});
51
61
  }
52
62
 
53
- @include m(force-focus-look) {
54
- background-color: color.adjust($color-ash, $lightness: 4%);
63
+ @include bem.m(force-focus-look) {
64
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
55
65
 
56
66
  &:focus {
57
- background-color: color.adjust($color-ash, $lightness: 4%);
67
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
58
68
  }
59
69
  }
60
70
  }
61
71
 
62
- @include e(submit) {
72
+ @include bem.e(submit) {
63
73
  flex-shrink: 0;
64
- padding-right: rhythm(4);
65
- padding-left: rhythm(4);
74
+ padding-right: func.rhythm(4);
75
+ padding-left: func.rhythm(4);
66
76
  }
67
77
 
68
- @include bp-down(sm) {
69
- @include e(submit) {
70
- padding: rhythm(0.6) rhythm(1);
71
- font-size: rem($size-small);
78
+ @include breakpoint.bp-down(sm) {
79
+ @include bem.e(submit) {
80
+ padding: func.rhythm(0.6) func.rhythm(1);
81
+ font-size: func.to_rem(var.$size-small);
72
82
  }
73
83
  }
74
84
 
75
- @include bp-up(md) {
76
- @include e(padded) {
77
- padding: rhythm(3);
85
+ @include breakpoint.bp-up(md) {
86
+ @include bem.e(padded) {
87
+ padding: func.rhythm(3);
78
88
  }
79
89
 
80
- @include e(icon) {
81
- width: $icon-size * 1.5;
82
- height: $icon-size * 1.5;
90
+ @include bem.e(icon) {
91
+ width: var.$icon-size * 1.5;
92
+ height: var.$icon-size * 1.5;
83
93
  }
84
94
 
85
- @include e(input) {
86
- font-size: rem(32px);
95
+ @include bem.e(input) {
96
+ font-size: func.to_rem(32px);
87
97
  }
88
98
  }
89
99
 
90
- @include m(tight) {
91
- @include e(submit) {
92
- padding: rhythm(0.6) rhythm(1);
93
- font-size: rem($size-small);
100
+ @include bem.m(tight) {
101
+ @include bem.e(submit) {
102
+ padding: func.rhythm(0.6) func.rhythm(1);
103
+ font-size: func.to_rem(var.$size-small);
94
104
 
95
- @include bp-up(sm) {
96
- padding-right: rhythm(3);
97
- padding-left: rhythm(3);
98
- font-size: $size-base;
105
+ @include breakpoint.bp-up(sm) {
106
+ padding-right: func.rhythm(3);
107
+ padding-left: func.rhythm(3);
108
+ font-size: var.$size-base;
99
109
  }
100
110
  }
101
111
 
102
- @include e(icon) {
103
- width: $icon-size;
104
- height: $icon-size;
112
+ @include bem.e(icon) {
113
+ width: var.$icon-size;
114
+ height: var.$icon-size;
105
115
  }
106
116
 
107
- @include e(input) {
108
- padding: rhythm(1) rhythm(2);
109
- font-size: $size-base;
117
+ @include bem.e(input) {
118
+ padding: func.rhythm(1) func.rhythm(2);
119
+ font-size: var.$size-base;
110
120
  }
111
121
  }
112
122
  }
@@ -1,25 +1,35 @@
1
- @charset 'UTF-8';
2
-
3
- @include organism(search-result) {
4
- @include e(list) {
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
+
13
+ @include mixin.organism(search-result) {
14
+ @include bem.e(list) {
5
15
  margin: 0;
6
16
  padding: 0;
7
17
  list-style: none;
8
18
  }
9
19
 
10
- @include e(item) {
20
+ @include bem.e(item) {
11
21
  position: relative;
12
- padding: rhythm(3) rhythm(2);
22
+ padding: func.rhythm(3) func.rhythm(2);
13
23
 
14
24
  &:not(:first-child) {
15
- border-top: 1px solid $color-concrete;
25
+ border-top: 1px solid colors.$color-concrete;
16
26
  }
17
27
 
18
28
  div > a:not([class*=tag]) {
19
29
  @extend %reset-link-style;
20
30
  }
21
31
 
22
- @include m(article) {
32
+ @include bem.m(article) {
23
33
  article {
24
34
  display: flex;
25
35
  align-items: flex-start;
@@ -29,57 +39,57 @@
29
39
  display: flex;
30
40
  align-items: flex-start;
31
41
  justify-content: space-between;
32
- margin-bottom: rhythm(1);
42
+ margin-bottom: func.rhythm(1);
33
43
  }
34
44
 
35
45
  p {
36
46
  margin-bottom: 0;
37
47
  }
38
48
 
39
- @include bp-up(xl) {
49
+ @include breakpoint.bp-up(xl) {
40
50
  > h2,
41
51
  p {
42
- @include make-col(14);
52
+ @include grid.make-col(14);
43
53
  }
44
54
  }
45
55
 
46
- @include e(content) {
47
- @include bp-up(sm) {
48
- margin-right: rhythm(2);
56
+ @include bem.e(content) {
57
+ @include breakpoint.bp-up(sm) {
58
+ margin-right: func.rhythm(2);
49
59
  }
50
60
 
51
- @include bp-up(md) {
61
+ @include breakpoint.bp-up(md) {
52
62
  margin-right: 0;
53
63
  }
54
64
  }
55
65
  }
56
66
 
57
- @include m(page) {
58
- padding-right: rhythm(2);
59
- padding-left: rhythm(2);
67
+ @include bem.m(page) {
68
+ padding-right: func.rhythm(2);
69
+ padding-left: func.rhythm(2);
60
70
  }
61
71
 
62
- @include m(file) {
63
- @include e(content) {
64
- margin: 0 rhythm(3);
72
+ @include bem.m(file) {
73
+ @include bem.e(content) {
74
+ margin: 0 func.rhythm(3);
65
75
 
66
- @include bp-up(xl) {
76
+ @include breakpoint.bp-up(xl) {
67
77
  > h2,
68
78
  p {
69
- @include make-col(12);
79
+ @include grid.make-col(12);
70
80
  }
71
81
  }
72
82
  }
73
83
  }
74
84
 
75
- @include e(content) {
85
+ @include bem.e(content) {
76
86
  flex: 0 1 100%;
77
87
  }
78
88
 
79
- @include e(link) {
89
+ @include bem.e(link) {
80
90
  @extend %reset-link-style;
81
91
 
82
- color: $color-cyberspace;
92
+ color: colors.$color-cyberspace;
83
93
  text-decoration: none;
84
94
 
85
95
  &:hover,
@@ -89,34 +99,34 @@
89
99
  }
90
100
  }
91
101
 
92
- @include e(image) {
102
+ @include bem.e(image) {
93
103
  display: block;
94
104
  width: 100%;
95
105
  height: auto;
96
- margin-bottom: rhythm(2);
97
- border-radius: $border-radius;
106
+ margin-bottom: func.rhythm(2);
107
+ border-radius: var.$border-radius;
98
108
 
99
- @include bp-up(sm) {
100
- margin-right: rhythm(2);
109
+ @include breakpoint.bp-up(sm) {
110
+ margin-right: func.rhythm(2);
101
111
  }
102
112
 
103
- @include bp-up(md) {
104
- margin-right: rhythm(2);
113
+ @include breakpoint.bp-up(md) {
114
+ margin-right: func.rhythm(2);
105
115
  margin-bottom: 0;
106
116
  }
107
117
 
108
- @include bp-up(lg) {
109
- margin-right: rhythm(3);
118
+ @include breakpoint.bp-up(lg) {
119
+ margin-right: func.rhythm(3);
110
120
  }
111
121
 
112
- @include bp-up(xl) {
113
- margin-right: rhythm(4);
122
+ @include breakpoint.bp-up(xl) {
123
+ margin-right: func.rhythm(4);
114
124
  }
115
125
  }
116
126
 
117
- @include bp-up(md) {
118
- @include e(item) {
119
- padding: rhythm(3);
127
+ @include breakpoint.bp-up(md) {
128
+ @include bem.e(item) {
129
+ padding: func.rhythm(3);
120
130
  }
121
131
  }
122
132
  }
@@ -9,4 +9,4 @@ module.exports = {
9
9
  url: 'http://www.google.se',
10
10
  exerpt: 'Praesent tempus metus in arcu mollis, non convallis odio faucibus. Nullam lectus nulla, rutrum nec odio ut, mollis interdum enim. Proin tincidunt odio at quam eleifend imperdiet. Mauris sagittis nulla ipsum, consectetur efficitur libero dignissim in.'
11
11
  }
12
- }
12
+ };