@internetstiftelsen/styleguide 4.1.13-beta.0.2 → 5.0.0

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 (145) hide show
  1. package/package.json +29 -29
  2. package/src/app.scss +85 -88
  3. package/src/atoms/archive-link/archive-link.scss +24 -17
  4. package/src/atoms/button/_button.scss +209 -203
  5. package/src/atoms/checkbox/_checkbox.scss +33 -26
  6. package/src/atoms/file/_file.scss +23 -13
  7. package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
  8. package/src/atoms/height-limiter/_height-limiter.scss +21 -14
  9. package/src/atoms/input/_input.scss +23 -16
  10. package/src/atoms/label/label.scss +11 -5
  11. package/src/atoms/logotype/_logotype.scss +3 -2
  12. package/src/atoms/main-menu/_main-menu.scss +67 -60
  13. package/src/atoms/meta/_meta.scss +44 -33
  14. package/src/atoms/meta/meta.config.js +1 -1
  15. package/src/atoms/paging/_paging.scss +27 -21
  16. package/src/atoms/password-toggle/_password-toggle.scss +9 -6
  17. package/src/atoms/progress/_progress.scss +19 -11
  18. package/src/atoms/quote/_quote.scss +17 -10
  19. package/src/atoms/radiobutton/_radiobutton.scss +33 -26
  20. package/src/atoms/range/_range.scss +46 -39
  21. package/src/atoms/rating/_rating.scss +11 -4
  22. package/src/atoms/ribbon/_ribbon.scss +16 -9
  23. package/src/atoms/select/_select.scss +18 -10
  24. package/src/atoms/skip/_skip.scss +9 -6
  25. package/src/atoms/spinner/_spinner.scss +4 -3
  26. package/src/atoms/tag/_tag.scss +26 -19
  27. package/src/atoms/textarea/_textarea.scss +22 -13
  28. package/src/atoms/tooltip/_tooltip.scss +28 -21
  29. package/src/base/_grid.scss +4 -4
  30. package/src/base/_normalize.scss +29 -27
  31. package/src/base/fonts/_fonts.scss +1 -1
  32. package/src/components.js +0 -2
  33. package/src/configurations/_bem.scss +10 -7
  34. package/src/configurations/_config.scss +11 -10
  35. package/src/configurations/_extends.scss +38 -34
  36. package/src/configurations/_functions.scss +23 -7
  37. package/src/configurations/_mixins.scss +23 -19
  38. package/src/configurations/_recaptcha.scss +2 -2
  39. package/src/configurations/_variables.scss +19 -25
  40. package/src/configurations/_wordpress.scss +64 -57
  41. package/src/configurations/colors/_background-colors.scss +3 -2
  42. package/src/configurations/colors/_colors-functions.scss +41 -39
  43. package/src/configurations/colors/_colors.scss +1 -1
  44. package/src/configurations/colors/_text-colors.scss +3 -2
  45. package/src/configurations/colors/_wordpress-colors.scss +3 -2
  46. package/src/configurations/forms/_fields.scss +28 -23
  47. package/src/configurations/grid/_grid.scss +40 -34
  48. package/src/configurations/typography/_typography.scss +113 -105
  49. package/src/configurations/typography/readme.md +1 -1
  50. package/src/globals.scss +16 -18
  51. package/src/isolated-footer.scss +25 -25
  52. package/src/molecules/alert/_alert.scss +44 -35
  53. package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
  54. package/src/molecules/byline/_byline.scss +30 -21
  55. package/src/molecules/card/_card.scss +87 -77
  56. package/src/molecules/context-menu/_context-menu.scss +32 -15
  57. package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
  58. package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
  59. package/src/molecules/download/_download.scss +38 -30
  60. package/src/molecules/form-control/_form-control.scss +66 -58
  61. package/src/molecules/glider/_glider-course.scss +29 -23
  62. package/src/molecules/glider/_glider-hero.scss +112 -104
  63. package/src/molecules/glider/_glider.scss +36 -30
  64. package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
  65. package/src/molecules/info-box/_info-box.scss +31 -22
  66. package/src/molecules/input-group/_input-group.scss +23 -13
  67. package/src/molecules/modal/_modal.scss +77 -65
  68. package/src/molecules/multi-select/_multi-select.scss +44 -33
  69. package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
  70. package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
  71. package/src/molecules/readspeaker/_readspeaker.scss +1 -1
  72. package/src/molecules/share/_share.scss +23 -15
  73. package/src/molecules/submenu/_submenu.scss +77 -69
  74. package/src/molecules/system-error/_system-error.scss +26 -17
  75. package/src/molecules/table/_table.scss +50 -42
  76. package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
  77. package/src/organisms/accordion/_accordion.scss +59 -49
  78. package/src/organisms/domain-search/_domain-search.scss +54 -45
  79. package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
  80. package/src/organisms/features-box/_features-box.scss +30 -19
  81. package/src/organisms/filter/_filter.scss +15 -10
  82. package/src/organisms/footer/_footer.scss +119 -109
  83. package/src/organisms/header/_header.scss +24 -14
  84. package/src/organisms/hero/_hero--bbk.scss +50 -38
  85. package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
  86. package/src/organisms/hero/_hero.scss +222 -207
  87. package/src/organisms/hero/hero.config.js +2 -2
  88. package/src/organisms/mailchimp/_mailchimp.scss +52 -42
  89. package/src/organisms/mega-menu/_mega-menu.scss +55 -45
  90. package/src/organisms/members-service-product/_members-service-product.scss +29 -18
  91. package/src/organisms/members-service-product/members-service-product.config.js +5 -5
  92. package/src/organisms/podcast/_podcast-episodes.scss +85 -75
  93. package/src/organisms/podcast/_podcast-player.scss +73 -64
  94. package/src/organisms/schedule/_schedule.scss +92 -82
  95. package/src/organisms/search/_search.scss +68 -58
  96. package/src/organisms/search-result/_search-result.scss +50 -40
  97. package/src/organisms/sections/_sections.scss +41 -31
  98. package/src/organisms/tabs/_tabs.scss +58 -46
  99. package/src/organisms/timeline/_timeline.scss +92 -81
  100. package/src/organisms/video-guide/_video-guide.scss +148 -138
  101. package/src/pages/animate-footer/animate-footer.config.js +180 -1
  102. package/src/print.scss +1 -1
  103. package/src/structures/_article.scss +39 -28
  104. package/src/structures/_core-values.scss +14 -2
  105. package/src/structures/_manifest.scss +4 -4
  106. package/src/structures/_section.scss +32 -20
  107. package/src/structures/_site.scss +19 -7
  108. package/src/theme/_dark-mode.scss +14 -13
  109. package/src/theme/_theme.scss +28 -25
  110. package/src/utilities/_align.scss +1 -1
  111. package/src/utilities/_border.scss +5 -3
  112. package/src/utilities/_box-shadow.scss +5 -2
  113. package/src/utilities/_display.scss +1 -1
  114. package/src/utilities/_fill.scss +5 -4
  115. package/src/utilities/_flex.scss +1 -1
  116. package/src/utilities/_font-size.scss +6 -5
  117. package/src/utilities/_fonts.scss +6 -5
  118. package/src/utilities/_gutter.scss +3 -2
  119. package/src/utilities/_hide.scss +17 -15
  120. package/src/utilities/_icons.scss +37 -33
  121. package/src/utilities/_indent.scss +8 -6
  122. package/src/utilities/_links.scss +22 -18
  123. package/src/utilities/_lists.scss +19 -14
  124. package/src/utilities/_manifest.scss +27 -27
  125. package/src/utilities/_margin.scss +20 -17
  126. package/src/utilities/_misc.scss +3 -2
  127. package/src/utilities/_padding.scss +18 -15
  128. package/src/utilities/_position.scss +3 -2
  129. package/src/utilities/_show.scss +7 -6
  130. package/src/utilities/_text.scss +1 -1
  131. package/src/utilities/_vertical-align.scss +1 -1
  132. package/src/utilities/_wrap.scss +1 -1
  133. package/src/utilities/_z-index.scss +7 -6
  134. package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
  135. package/src/vendor/baseline/_plumber.scss +14 -13
  136. package/src/vendor/grid/_breakpoints.scss +17 -13
  137. package/src/vendor/grid/_flex.scss +8 -4
  138. package/src/vendor/grid/_functions.scss +9 -6
  139. package/src/vendor/grid/_grid-framework.scss +14 -9
  140. package/src/vendor/grid/_grid.scss +19 -16
  141. package/src/vendor/grid/_spacing.scss +8 -3
  142. package/src/atoms/toggle-high-contrast/readme.md +0 -6
  143. package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
  144. package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
  145. package/src/molecules/modal/modal-graph.js +0 -40
@@ -1,50 +1,59 @@
1
- @charset 'UTF-8';
2
-
3
- @include molecule(cookie-disclaimer) {
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
+ @include mixin.molecule(cookie-disclaimer) {
4
13
  display: none;
5
14
  position: relative;
6
- z-index: z_index(foreground);
15
+ z-index: func.z_index(foreground);
7
16
 
8
17
  &.is-visible {
9
18
  display: block;
10
19
  }
11
20
 
12
- @include bp-up(lg) {
21
+ @include breakpoint.bp-up(lg) {
13
22
  position: fixed;
14
23
  right: 0;
15
24
  bottom: 0;
16
25
  left: 0;
17
26
  }
18
27
 
19
- @include e(wrapper) {
28
+ @include bem.e(wrapper) {
20
29
  width: 100%;
21
30
  margin-bottom: 0 !important;
22
- padding: rhythm(2) 0;
31
+ padding: func.rhythm(2) 0;
23
32
  }
24
33
 
25
- @include e(inner) {
34
+ @include bem.e(inner) {
26
35
  display: flex;
27
36
  flex-wrap: wrap;
28
37
  margin-right: auto;
29
38
  margin-left: auto;
30
39
 
31
- @include make-container-max-widths();
40
+ @include grid.make-container-max-widths();
32
41
 
33
- @include bp-down(xl) {
34
- padding-right: $grid-gutter-width;
35
- padding-left: $grid-gutter-width;
42
+ @include breakpoint.bp-down(xl) {
43
+ padding-right: var.$grid-gutter-width;
44
+ padding-left: var.$grid-gutter-width;
36
45
  }
37
46
  }
38
47
 
39
- @include e(inner-first) {
48
+ @include bem.e(inner-first) {
40
49
  display: flex;
41
50
  align-items: center;
42
51
  width: 100%;
43
52
 
44
53
  a {
45
54
  padding: 0 0.25rem;
46
- border-bottom: 0.11111rem solid $color-peacock;
47
- color: $color-black;
55
+ border-bottom: 0.11111rem solid colors.$color-peacock;
56
+ color: colors.$color-black;
48
57
  text-decoration: none;
49
58
 
50
59
  &:hover,
@@ -53,32 +62,32 @@
53
62
  }
54
63
  }
55
64
 
56
- @include bp-up(md) {
57
- @include make-col(12);
65
+ @include breakpoint.bp-up(md) {
66
+ @include grid.make-col(12);
58
67
 
59
- padding-right: rhythm(3);
68
+ padding-right: func.rhythm(3);
60
69
  }
61
70
  }
62
71
 
63
- @include e(inner-second) {
72
+ @include bem.e(inner-second) {
64
73
  display: flex;
65
74
  align-items: center;
66
75
  justify-content: flex-end;
67
76
  width: 100%;
68
- padding-top: rhythm(2);
77
+ padding-top: func.rhythm(2);
69
78
 
70
79
  button {
71
80
  font-size: 18px;
72
81
  }
73
82
 
74
- @include bp-up(md) {
75
- @include make-col(6);
83
+ @include breakpoint.bp-up(md) {
84
+ @include grid.make-col(6);
76
85
 
77
86
  padding-top: 0;
78
87
  }
79
88
  }
80
89
 
81
- @include e(text) {
90
+ @include bem.e(text) {
82
91
  margin-bottom: 0;
83
92
  }
84
93
  }
@@ -1,21 +1,29 @@
1
- @charset 'UTF-8';
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;
2
10
 
3
- @include molecule(download) {
11
+ @include mixin.molecule(download) {
4
12
  position: relative;
5
- padding: rhythm(2.5);
6
- border: 1px solid $color-peacock;
7
- border-radius: $border-radius;
13
+ padding: func.rhythm(2.5);
14
+ border: 1px solid colors.$color-peacock;
15
+ border-radius: var.$border-radius;
8
16
  background-color: var(--snow-color);
9
17
 
10
- @include e(link) {
18
+ @include bem.e(link) {
11
19
  display: block;
12
- margin-bottom: rhythm(1);
20
+ margin-bottom: func.rhythm(1);
13
21
  color: currentcolor;
14
22
  text-decoration: none;
15
23
 
16
24
  &:hover,
17
25
  &:focus {
18
- color: $color-peacock;
26
+ color: colors.$color-peacock;
19
27
  text-decoration: underline;
20
28
  }
21
29
 
@@ -23,7 +31,7 @@
23
31
  content: '';
24
32
  display: block;
25
33
  position: absolute;
26
- z-index: z_index(background);
34
+ z-index: func.z_index(background);
27
35
  top: 0;
28
36
  right: 0;
29
37
  bottom: 0;
@@ -31,52 +39,52 @@
31
39
  }
32
40
  }
33
41
 
34
- @include e(icon-file) {
35
- margin-bottom: rhythm(1);
42
+ @include bem.e(icon-file) {
43
+ margin-bottom: func.rhythm(1);
36
44
  line-height: 0;
37
45
 
38
- @include bp-up(sm) {
39
- margin-right: rhythm(0.5);
46
+ @include breakpoint.bp-up(sm) {
47
+ margin-right: func.rhythm(0.5);
40
48
  margin-bottom: 0;
41
49
  }
42
50
  }
43
51
 
44
- @include e(icon-download) {
52
+ @include bem.e(icon-download) {
45
53
  display: flex;
46
54
  align-items: center;
47
55
  justify-content: center;
48
- width: rhythm(3.5);
49
- height: rhythm(3.5);
50
- margin-left: rhythm(1);
51
- border-radius: $border-radius;
52
- background-color: $color-peacock-light;
56
+ width: func.rhythm(3.5);
57
+ height: func.rhythm(3.5);
58
+ margin-left: func.rhythm(1);
59
+ border-radius: var.$border-radius;
60
+ background-color: colors.$color-peacock-light;
53
61
  }
54
62
 
55
- @include e(text) {
63
+ @include bem.e(text) {
56
64
  white-space: nowrap;
57
65
  }
58
66
 
59
- @include b(icon) {
60
- width: rem(57px);
61
- height: rem(78px);
67
+ @include bem.b(icon) {
68
+ width: func.to_rem(57px);
69
+ height: func.to_rem(78px);
62
70
  color: var(--cyberspace-color);
63
71
  fill: currentColor;
64
72
  }
65
73
 
66
- @include e(trigger) {
67
- margin-top: rhythm(1);
74
+ @include bem.e(trigger) {
75
+ margin-top: func.rhythm(1);
68
76
  margin-left: 0;
69
77
 
70
- @include b(icon) {
71
- width: $icon-size-medium;
72
- height: $icon-size-medium;
78
+ @include bem.b(icon) {
79
+ width: var.$icon-size-medium;
80
+ height: var.$icon-size-medium;
73
81
  color: var(--dark-color);
74
82
  fill: currentColor;
75
83
  }
76
84
 
77
- @include bp-up(sm) {
85
+ @include breakpoint.bp-up(sm) {
78
86
  margin-top: 0;
79
- margin-left: rhythm(1);
87
+ margin-left: func.rhythm(1);
80
88
  }
81
89
  }
82
90
  }
@@ -1,56 +1,64 @@
1
- @charset 'UTF-8';
2
-
3
- @include molecule(form-control) {
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
+
11
+ @include mixin.molecule(form-control) {
4
12
 
5
13
  // Modifier for large form fields
6
- @include m(large) {
14
+ @include bem.m(large) {
7
15
  // Inputs
8
- @include atom(input) {
9
- padding-top: rhythm(1.85);
10
- padding-bottom: rhythm(1.85);
11
- padding-left: rhythm(2);
12
- font-size: rem(20px);
16
+ @include mixin.atom(input) {
17
+ padding-top: func.rhythm(1.85);
18
+ padding-bottom: func.rhythm(1.85);
19
+ padding-left: func.rhythm(2);
20
+ font-size: func.to_rem(20px);
13
21
 
14
22
  &.has-icon {
15
- padding-right: rhythm(6);
23
+ padding-right: func.rhythm(6);
16
24
  }
17
25
  }
18
26
 
19
27
  // Input icon
20
- @include b(input-icon) {
28
+ @include bem.b(input-icon) {
21
29
  > svg {
22
- transform: translateY(-#{rhythm(4.6)}) translateX(-#{rhythm(2)});
30
+ transform: translateY(-#{func.rhythm(4.6)}) translateX(-#{func.rhythm(2)});
23
31
  }
24
32
  }
25
33
 
26
34
  // Buttons
27
- @include atom(button) {
28
- padding: rhythm(1.6) rhythm(4);
35
+ @include mixin.atom(button) {
36
+ padding: func.rhythm(1.6) func.rhythm(4);
29
37
 
30
- @include b(a-button__text) {
31
- font-size: rem(24px);
38
+ @include bem.b(a-button__text) {
39
+ font-size: func.to_rem(24px);
32
40
  }
33
41
  }
34
42
 
35
43
  // Checkbox
36
- @include atom(checkbox) {
44
+ @include mixin.atom(checkbox) {
37
45
  + label {
38
- font-size: rem(20px);
46
+ font-size: func.to_rem(20px);
39
47
 
40
48
  &::before {
41
- width: $icon-size;
42
- height: $icon-size;
43
- margin-top: rem(3px);
49
+ width: var.$icon-size;
50
+ height: var.$icon-size;
51
+ margin-top: func.to_rem(3px);
44
52
  }
45
53
  }
46
54
 
47
55
  &:checked {
48
56
  + label {
49
57
  &::after {
50
- top: rem(10px);
51
- left: rem(8px);
52
- width: rem(8px);
53
- height: rem(15px);
58
+ top: func.to_rem(10px);
59
+ left: func.to_rem(8px);
60
+ width: func.to_rem(8px);
61
+ height: func.to_rem(15px);
54
62
  border-width: 0 4px 4px 0;
55
63
  }
56
64
  }
@@ -58,14 +66,14 @@
58
66
  }
59
67
 
60
68
  // Radiobutton
61
- @include atom(radio) {
69
+ @include mixin.atom(radio) {
62
70
  &[type='radio'] {
63
71
  + label {
64
- font-size: rem(20px);
72
+ font-size: func.to_rem(20px);
65
73
 
66
74
  &::before {
67
- width: $icon-size;
68
- height: $icon-size;
75
+ width: var.$icon-size;
76
+ height: var.$icon-size;
69
77
  border-width: 3px;
70
78
  }
71
79
  }
@@ -73,57 +81,57 @@
73
81
  }
74
82
 
75
83
  // Select
76
- @include atom(select) {
77
- padding-top: rhythm(1.85);
78
- padding-bottom: rhythm(1.85);
79
- padding-left: rhythm(2);
80
- background-position: calc(100% - #{rhythm(2)}) 50%;
81
- background-size: $icon-size $icon-size;
82
- font-size: rem(20px);
84
+ @include mixin.atom(select) {
85
+ padding-top: func.rhythm(1.85);
86
+ padding-bottom: func.rhythm(1.85);
87
+ padding-left: func.rhythm(2);
88
+ background-position: calc(100% - #{func.rhythm(2)}) 50%;
89
+ background-size: var.$icon-size var.$icon-size;
90
+ font-size: func.to_rem(20px);
83
91
  }
84
92
 
85
93
  // Textarea
86
- @include atom(textarea) {
87
- height: rhythm(15);
88
- font-size: rem(20px);
94
+ @include mixin.atom(textarea) {
95
+ height: func.rhythm(15);
96
+ font-size: func.to_rem(20px);
89
97
  }
90
98
  }
91
99
 
92
100
  // Modifier for small form fields
93
- @include m(small) {
101
+ @include bem.m(small) {
94
102
  // Inputs
95
- @include b(a-input) {
96
- padding-top: rhythm(0.5);
97
- padding-bottom: rhythm(0.8);
98
- font-size: rem(16px);
103
+ @include bem.b(a-input) {
104
+ padding-top: func.rhythm(0.5);
105
+ padding-bottom: func.rhythm(0.8);
106
+ font-size: func.to_rem(16px);
99
107
  }
100
108
 
101
109
  // Input icon
102
- @include b(input-icon) {
110
+ @include bem.b(input-icon) {
103
111
  > svg {
104
- width: $icon-size-medium;
105
- height: $icon-size-medium;
106
- transform: translateY(-#{rhythm(3.1)}) translateX(-#{rhythm(1)});
112
+ width: var.$icon-size-medium;
113
+ height: var.$icon-size-medium;
114
+ transform: translateY(-#{func.rhythm(3.1)}) translateX(-#{func.rhythm(1)});
107
115
  }
108
116
  }
109
117
 
110
118
  // Buttons
111
- @include atom(button) {
112
- padding: rhythm(0.6) rhythm(1.5);
119
+ @include mixin.atom(button) {
120
+ padding: func.rhythm(0.6) func.rhythm(1.5);
113
121
  }
114
122
 
115
123
  // Select
116
- @include atom(select) {
117
- padding-top: rhythm(0.5);
118
- padding-bottom: rhythm(0.8);
119
- background-size: $icon-size-small $icon-size-small;
120
- font-size: rem(16px);
124
+ @include mixin.atom(select) {
125
+ padding-top: func.rhythm(0.5);
126
+ padding-bottom: func.rhythm(0.8);
127
+ background-size: var.$icon-size-small var.$icon-size-small;
128
+ font-size: func.to_rem(16px);
121
129
  }
122
130
 
123
131
  // Textarea
124
- @include atom(textarea) {
125
- height: rhythm(12);
126
- font-size: rem(16px);
132
+ @include mixin.atom(textarea) {
133
+ height: func.rhythm(12);
134
+ font-size: func.to_rem(16px);
127
135
  }
128
136
  }
129
137
  }
@@ -1,4 +1,10 @@
1
1
  @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/bem' as bem;
4
+ @use '../../configurations/variables' as var;
5
+ @use '../../configurations/functions' as func;
6
+ @use '../../configurations/colors/colors' as colors;
7
+ @use '../../vendor/grid/breakpoints' as breakpoint;
2
8
 
3
9
  // NOTE: this compnent is dependant on the glider.scss component
4
10
  // The Glider components is dependant on JS-classes and is therefore not namespaced
@@ -8,13 +14,13 @@
8
14
  position: relative;
9
15
  align-items: center;
10
16
  margin-top: 0;
11
- margin-bottom: rhythm(2);
17
+ margin-bottom: func.rhythm(2);
12
18
  padding-left: 0;
13
19
  padding-right: 0;
14
20
  }
15
21
 
16
22
  .glider-slide {
17
- @include m(course) {
23
+ @include bem.m(course) {
18
24
  margin-left: 0;
19
25
  padding-left: 0;
20
26
  padding-right: 0;
@@ -23,21 +29,21 @@
23
29
  display: none;
24
30
  }
25
31
 
26
- @include e(navigation) {
32
+ @include bem.e(navigation) {
27
33
  display: flex;
28
34
  justify-content: space-between;
29
35
 
30
- @include bp-up(lg) {
36
+ @include breakpoint.bp-up(lg) {
31
37
  justify-content: flex-start;
32
38
  }
33
39
  }
34
40
 
35
- @include e(media) {
41
+ @include bem.e(media) {
36
42
 
37
43
  &.zoom {
38
44
  pointer-events: none;
39
45
 
40
- @include bp-up(lg) {
46
+ @include breakpoint.bp-up(lg) {
41
47
  pointer-events: auto;
42
48
  cursor: zoom-in;
43
49
  transition: all 0.15s ease-out;
@@ -45,21 +51,21 @@
45
51
 
46
52
  &::after {
47
53
  content: 'Förstora bilden';
48
- color: $color-snow;
49
- padding: rhythm(1) rhythm(2) rhythm(1) rhythm(4);
54
+ color: colors.$color-snow;
55
+ padding: func.rhythm(1) func.rhythm(2) func.rhythm(1) func.rhythm(4);
50
56
  display: block;
51
57
  position: absolute;
52
58
  top: 0;
53
59
  left: 0;
54
- border-top-left-radius: $border-radius;
55
- border-bottom-right-radius: $border-radius;
60
+ border-top-left-radius: var.$border-radius;
61
+ border-bottom-right-radius: var.$border-radius;
56
62
  width: auto;
57
63
  line-height: 1;
58
- height: $icon-size-large * 1.4;
59
- background-color: rgba($color-cyberspace, 0.8);
64
+ height: var.$icon-size-large * 1.4;
65
+ background-color: rgba(colors.$color-cyberspace, 0.8);
60
66
  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");
61
- background-position: rhythm(1) center;
62
- background-size: $icon-size-medium $icon-size-medium;
67
+ background-position: func.rhythm(1) center;
68
+ background-size: var.$icon-size-medium var.$icon-size-medium;
63
69
  background-repeat: no-repeat;
64
70
 
65
71
  }
@@ -76,11 +82,11 @@
76
82
  right: 0;
77
83
  top: 0;
78
84
  bottom: 0;
79
- z-index: z_index(foreground);
85
+ z-index: func.z_index(foreground);
80
86
  display: flex;
81
87
  align-items: center;
82
88
  justify-content: center;
83
- background-color: rgba($color-cyberspace, 0.8);
89
+ background-color: rgba(colors.$color-cyberspace, 0.8);
84
90
  flex-direction: column;
85
91
 
86
92
  &::after {
@@ -91,16 +97,16 @@
91
97
  cursor: zoom-out;
92
98
  max-width: 100%;
93
99
  max-height: 100vh;
94
- padding: rhythm(1);
100
+ padding: func.rhythm(1);
95
101
  height: auto;
96
102
  }
97
103
 
98
104
  figcaption {
99
- max-width: rem(612px);
105
+ max-width: func.to_rem(612px);
100
106
  text-align: center;
101
- color: $color-snow;
102
- padding-left: rhythm(2);
103
- padding-right: rhythm(2);
107
+ color: colors.$color-snow;
108
+ padding-left: func.rhythm(2);
109
+ padding-right: func.rhythm(2);
104
110
  margin-bottom: 0 !important;
105
111
  padding-bottom: 0 !important;
106
112
  }
@@ -109,9 +115,9 @@
109
115
  }
110
116
 
111
117
  figcaption {
112
- margin-top: rhythm(1);
118
+ margin-top: func.rhythm(1);
113
119
  }
114
- @include bp-up(lg) {
120
+ @include breakpoint.bp-up(lg) {
115
121
  display: flex;
116
122
  flex-direction: column-reverse;
117
123
  margin-top: 0;