@internetstiftelsen/styleguide 4.1.13 → 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 +18 -18
  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 +33 -28
  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,17 +1,24 @@
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 '../../configurations/colors/colors-functions' as colorFunc;
8
+ @use '../../vendor/grid/breakpoints' as breakpoint;
2
9
 
3
- @include atom(ribbon) {
10
+ @include mixin.atom(ribbon) {
4
11
  position: fixed;
5
12
  z-index: 100000; // Must be higher than WP's admin toolbar
6
13
  bottom: 0;
7
14
  left: 0;
8
- padding: rhythm(1) 0;
15
+ padding: func.rhythm(1) 0;
9
16
  transform: translateX(-33.33%) rotate(45deg);
10
17
  transform-origin: bottom right;
11
- background-color: #e0bff5;
12
- font-family: $font-family-headings;
18
+ background-color: colors.$color-peacock-light;
19
+ font-family: var.$font-family-headings;
13
20
  font-family: sans-serif;
14
- font-size: $size-small;
21
+ font-size: var.$size-small;
15
22
  text-align: center;
16
23
  text-transform: uppercase;
17
24
 
@@ -34,11 +41,11 @@
34
41
  left: 100%;
35
42
  }
36
43
 
37
- @include bp-up(sm) {
38
- font-size: $size-medium;
44
+ @include breakpoint.bp-up(sm) {
45
+ font-size: var.$size-medium;
39
46
  }
40
47
 
41
- @include bp-up(xxl) {
42
- font-size: $size-base;
48
+ @include breakpoint.bp-up(xxl) {
49
+ font-size: var.$size-base;
43
50
  }
44
51
  }
@@ -1,14 +1,22 @@
1
- @charset 'UTF-8';
2
-
3
- @include atom(select) {
1
+ @charset "UTF-8";
2
+ @use "sass:color";
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/extends';
5
+ @use '../../configurations/bem' as bem;
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
+
11
+ @include mixin.atom(select) {
4
12
  @extend %input;
5
13
 
6
14
  width: auto;
7
- padding-right: rhythm(5);
15
+ padding-right: func.rhythm(5);
8
16
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-arrow-down' viewBox='0 0 32 18.9' width='100%25' height='100%25'%3E%3Cpolygon points='32,2.9 16,18.9 0,2.9 2.9,0 16,13.1 29.1,0 '%3E%3C/polygon%3E%3C/svg%3E%0A");
9
17
  background-repeat: no-repeat;
10
- background-position: calc(100% - #{rhythm(1)}) 50%;
11
- background-size: $icon-size-medium $icon-size-medium;
18
+ background-position: calc(100% - #{func.rhythm(1)}) 50%;
19
+ background-size: var.$icon-size-medium var.$icon-size-medium;
12
20
 
13
21
  &:focus {
14
22
  @extend %input-focus;
@@ -22,7 +30,7 @@
22
30
  width: auto;
23
31
  }
24
32
 
25
- @include m(full-width) {
33
+ @include bem.m(full-width) {
26
34
  width: 100%;
27
35
 
28
36
  + .input-help {
@@ -30,13 +38,13 @@
30
38
  }
31
39
  }
32
40
 
33
- @include m(discreet) {
41
+ @include bem.m(discreet) {
34
42
  @extend %discreet;
35
43
  }
36
44
  }
37
45
 
38
- @include b(select) {
39
- @include m(transparent) {
46
+ @include bem.b(select) {
47
+ @include bem.m(transparent) {
40
48
  border-color: transparent;
41
49
  background-color: transparent;
42
50
  box-shadow: none;
@@ -1,6 +1,9 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use '../../configurations/bem' as bem;
3
+ @use '../../configurations/colors/colors' as colors;
4
+ @use '../../configurations/functions' as func;
2
5
 
3
- @include b(skip) {
6
+ @include bem.b(skip) {
4
7
  position: relative;
5
8
  z-index: 1001;
6
9
  height: 0;
@@ -27,10 +30,10 @@
27
30
  &:focus {
28
31
  width: 100%;
29
32
  height: auto;
30
- padding-top: rhythm(1);
31
- padding-bottom: rhythm(1.5);
32
- background-color: $color-cyberspace;
33
- color: $color-snow;
33
+ padding-top: func.rhythm(1);
34
+ padding-bottom: func.rhythm(1.5);
35
+ background-color: colors.$color-cyberspace;
36
+ color: colors.$color-snow;
34
37
  text-align: center;
35
38
  text-indent: 0;
36
39
  }
@@ -1,4 +1,5 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use '../../configurations/colors/colors' as colors;
2
3
 
3
4
  // IE Specific animation
4
5
  _:-ms-lang(x),
@@ -17,11 +18,11 @@ _:-ms-lang(x),
17
18
  }
18
19
 
19
20
  circle {
20
- stroke: $color-ocean;
21
+ stroke: colors.$color-ocean;
21
22
 
22
23
  + circle {
23
24
  stroke-dasharray: 100;
24
- stroke: $color-ocean-light;
25
+ stroke: colors.$color-ocean-light;
25
26
  }
26
27
  }
27
28
  }
@@ -1,7 +1,14 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/extends';
4
+ @use '../../configurations/bem' as bem;
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;
2
9
 
3
10
  /// @group Tags
4
- @include atom(tag) {
11
+ @include mixin.atom(tag) {
5
12
  @extend %normalize-links;
6
13
 
7
14
  @extend %tag;
@@ -9,56 +16,56 @@
9
16
  display: inline-flex;
10
17
  align-items: center;
11
18
  position: relative;
12
- z-index: z_index(middleground);
13
- margin-right: rhythm(1);
14
- margin-bottom: rhythm(1);
15
- padding: rhythm(1) rhythm(2);
16
- font-size: $small-text;
19
+ z-index: func.z_index(middleground);
20
+ margin-right: func.rhythm(1);
21
+ margin-bottom: func.rhythm(1);
22
+ padding: func.rhythm(1) func.rhythm(2);
23
+ font-size: var.$small-text;
17
24
  line-height: 1;
18
25
  text-decoration: none;
19
26
  text-transform: uppercase;
20
27
 
21
28
  &--background {
22
- @include color_values($colors, 'background-color', $separator: '-');
23
- @include color_values($colors, 'border-color', $separator: '-');
29
+ @include colorFunc.color_values(colorFunc.$colors, 'background-color', $separator: '-');
30
+ @include colorFunc.color_values(colorFunc.$colors, 'border-color', $separator: '-');
24
31
  }
25
32
 
26
- @include e(text) {
33
+ @include bem.e(text) {
27
34
  color: var(--cyberspace-color);
28
35
  letter-spacing: 0.025rem;
29
36
  }
30
37
 
31
- @include m(light) {
38
+ @include bem.m(light) {
32
39
  @extend %tag-light;
33
40
 
34
- @include e(text) {
35
- color: $color-snow;
41
+ @include bem.e(text) {
42
+ color: colors.$color-snow;
36
43
  }
37
44
  }
38
45
 
39
46
  > svg {
40
- width: $icon-size-small;
41
- height: $icon-size-small;
47
+ width: var.$icon-size-small;
48
+ height: var.$icon-size-small;
42
49
  }
43
50
 
44
- @include m(hover-light) {
51
+ @include bem.m(hover-light) {
45
52
  &:hover,
46
53
  &:focus {
47
54
  background-color: currentColor !important;
48
55
 
49
56
  [class*=text] {
50
- color: $color-snow;
57
+ color: colors.$color-snow;
51
58
  }
52
59
  }
53
60
  }
54
61
 
55
- @include m(hover-dark) {
62
+ @include bem.m(hover-dark) {
56
63
  &:hover,
57
64
  &:focus {
58
65
  background-color: currentColor !important;
59
66
 
60
67
  [class*=text] {
61
- color: $color-cyberspace;
68
+ color: colors.$color-cyberspace;
62
69
  }
63
70
  }
64
71
  }
@@ -1,11 +1,20 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use "sass:color";
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/extends';
5
+ @use '../../configurations/bem' as bem;
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/baseline/plumber' as plumber;
2
11
 
3
- @include atom(textarea) {
12
+ @include mixin.atom(textarea) {
4
13
  @extend %input;
5
14
 
6
15
  min-width: 100%;
7
16
  max-width: 100%;
8
- min-height: rhythm(12);
17
+ min-height: func.rhythm(12);
9
18
 
10
19
  &:focus {
11
20
  @extend %input-focus;
@@ -15,12 +24,12 @@
15
24
  @extend %disabled;
16
25
  }
17
26
 
18
- @include m(discreet) {
27
+ @include bem.m(discreet) {
19
28
  @extend %discreet;
20
29
  }
21
30
 
22
- @include m(hidden) {
23
- @include visuallyhidden;
31
+ @include bem.m(hidden) {
32
+ @include mixin.visuallyhidden;
24
33
 
25
34
  min-height: 0;
26
35
  min-width: 0;
@@ -28,17 +37,17 @@
28
37
  padding: 0;
29
38
  }
30
39
 
31
- @include m(rich-text) {
40
+ @include bem.m(rich-text) {
32
41
  min-height: auto;
33
42
 
34
43
  > div {
35
- min-height: rhythm(12);
44
+ min-height: func.rhythm(12);
36
45
 
37
46
  p,
38
47
  ul,
39
48
  ol {
40
- @include plumber(
41
- $font-size: 1.75,
49
+ @include plumber.plumber(
50
+ var.$font-size: 1.75,
42
51
  $leading-bottom: 2
43
52
  );
44
53
  }
@@ -49,12 +58,12 @@
49
58
  }
50
59
  }
51
60
 
52
- @include e(toolbar) {
61
+ @include bem.e(toolbar) {
53
62
  button {
54
63
  @extend %button-toolbar;
55
64
 
56
- margin-right: rhythm(0.5);
57
- margin-bottom: rhythm(1);
65
+ margin-right: func.rhythm(0.5);
66
+ margin-bottom: func.rhythm(1);
58
67
  }
59
68
  }
60
69
  }
@@ -1,21 +1,28 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use "sass:color";
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/bem' as bem;
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;
2
9
 
3
- @include atom(tooltip) {
10
+ @include mixin.atom(tooltip) {
4
11
  position: relative;
5
- width: $icon-size;
6
- height: $icon-size;
7
- margin-right: rhythm(1);
8
- margin-left: rhythm(1);
9
- padding: rhythm(1);
12
+ width: var.$icon-size;
13
+ height: var.$icon-size;
14
+ margin-right: func.rhythm(1);
15
+ margin-left: func.rhythm(1);
16
+ padding: func.rhythm(1);
10
17
  border-radius: 50%;
11
- box-shadow: 0 0 0 rem(5px) transparent;
18
+ box-shadow: 0 0 0 func.to_rem(5px) transparent;
12
19
  overflow: visible;
13
20
 
14
21
  &:focus,
15
22
  &:hover {
16
23
  overflow: visible;
17
24
  clip: auto;
18
- box-shadow: 0 0 0 rem(5px) $color-ocean-light;
25
+ box-shadow: 0 0 0 func.to_rem(5px) colors.$color-ocean-light;
19
26
 
20
27
  [class*='text'] {
21
28
  overflow: visible;
@@ -36,27 +43,27 @@
36
43
  fill: currentColor;
37
44
  }
38
45
 
39
- @include e(text) {
46
+ @include bem.e(text) {
40
47
  display: block;
41
48
  position: absolute;
42
- z-index: z_index(foreground);
49
+ z-index: func.z_index(foreground);
43
50
  top: auto;
44
51
  bottom: 130%;
45
52
  left: 50%;
46
- width: rem(300px);
53
+ width: func.to_rem(300px);
47
54
  height: auto;
48
- margin: 0 0 rem(5px) 0;
49
- padding: rhythm(1);
55
+ margin: 0 0 func.to_rem(5px) 0;
56
+ padding: func.rhythm(1);
50
57
  transform: rotateX(90deg) scale(0.2) translateX(-100%);
51
58
  transform-origin: bottom center;
52
59
  -webkit-backface-visibility: hidden;
53
60
  transition: transform 0.3s cubic-bezier(0.3, 0, 0, 1);
54
- border-radius: $border-radius;
61
+ border-radius: var.$border-radius;
55
62
  opacity: 0;
56
- background-color: $color-cyberspace;
57
- color: $color-snow;
58
- font-family: $font-family-base;
59
- font-size: $size-small;
63
+ background-color: colors.$color-cyberspace;
64
+ color: colors.$color-snow;
65
+ font-family: var.$font-family-base;
66
+ font-size: var.$size-small;
60
67
  text-align: left;
61
68
  user-select: none;
62
69
 
@@ -72,7 +79,7 @@
72
79
  border: solid transparent;
73
80
  border-width: 15px;
74
81
  border-color: rgba(31, 42, 54, 0);
75
- border-top-color: $color-cyberspace;
82
+ border-top-color: colors.$color-cyberspace;
76
83
  border-bottom-color: transparent;
77
84
  pointer-events: none;
78
85
  }
@@ -86,7 +93,7 @@
86
93
  top: auto;
87
94
  bottom: calc(100% - 1px);
88
95
  border-top-color: transparent;
89
- border-bottom-color: $color-cyberspace;
96
+ border-bottom-color: colors.$color-cyberspace;
90
97
  }
91
98
  }
92
99
  }
@@ -1,10 +1,10 @@
1
1
  // Inspired by https://github.com/fractures/fractures
2
- @include b(grid) {
2
+ @include bem.b(grid) {
3
3
  display: grid;
4
4
 
5
- &-gap { grid-gap: $grid-gutter-width; }
6
- &-gap-y { grid-row-gap: $grid-gutter-width; }
7
- &-gap-x { grid-column-gap: $grid-gutter-width; }
5
+ &-gap { grid-gap: var.$grid-gutter-width; }
6
+ &-gap-y { grid-row-gap: var.$grid-gutter-width; }
7
+ &-gap-x { grid-column-gap: var.$grid-gutter-width; }
8
8
 
9
9
  &-cols {
10
10
  @for $i from 2 through $grid-columns {
@@ -1,17 +1,19 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
 
3
3
  @use "sass:math";
4
-
5
- @import '../configurations/colors/colors';
4
+ @use '../configurations/colors/colors' as colors;
5
+ @use '../configurations/variables' as var;
6
+ @use '../configurations/functions' as func;
7
+ @use '../theme/theme' as theme;
6
8
 
7
9
  html {
8
10
  box-sizing: border-box;
9
11
  height: 100%;
10
12
  min-height: 100%;
11
- background-color: theme_palette('background');
13
+ background-color: theme.theme_palette('background');
12
14
  color: var(--cyberspace-color);
13
15
  font-family: sans-serif;
14
- font-size: percentage(math.div($size-base, 16px));
16
+ font-size: math.percentage(math.div(var.$size-base, 16px));
15
17
  font-variant-ligatures: no-common-ligatures;
16
18
  -ms-overflow-style: scrollbar;
17
19
  -webkit-text-size-adjust: 100%;
@@ -27,7 +29,7 @@ body {
27
29
  padding-right: env(safe-area-inset-right);
28
30
  padding-left: env(safe-area-inset-left);
29
31
  overflow-x: hidden;
30
- font-family: $font-family-base;
32
+ font-family: var.$font-family-base;
31
33
  -ms-overflow-style: auto;
32
34
  -webkit-overflow-scrolling: touch;
33
35
  }
@@ -187,8 +189,8 @@ h6 {
187
189
  //
188
190
 
189
191
  mark {
190
- background: $color-lemon-light;
191
- color: $color-black;
192
+ background: colors.$color-lemon-light;
193
+ color: colors.$color-black;
192
194
  }
193
195
 
194
196
  //
@@ -283,10 +285,10 @@ hr.wp-block-separator {
283
285
  box-sizing: content-box;
284
286
  width: 100%;
285
287
  height: 0;
286
- margin-top: rhythm(2);
287
- margin-bottom: rhythm(2);
288
+ margin-top: func.rhythm(2);
289
+ margin-bottom: func.rhythm(2);
288
290
  border: 0;
289
- border-bottom: 1px solid $color-concrete;
291
+ border-bottom: 1px solid colors.$color-concrete;
290
292
  }
291
293
 
292
294
  //
@@ -296,13 +298,13 @@ hr.wp-block-separator {
296
298
  pre {
297
299
  width: 100%;
298
300
  max-height: 80vh;
299
- margin-bottom: rhythm(4);
300
- padding: rhythm(2);
301
+ margin-bottom: func.rhythm(4);
302
+ padding: func.rhythm(2);
301
303
  overflow: auto;
302
- border-top: rem(4px) solid $color-sandstone;
303
- border-radius: $border-radius;
304
- background-color: $color-snow;
305
- font-size: $size-medium;
304
+ border-top: func.to_rem(4px) solid colors.$color-sandstone;
305
+ border-radius: var.$border-radius;
306
+ background-color: colors.$color-snow;
307
+ font-size: var.$size-medium;
306
308
 
307
309
  code {
308
310
  padding: 0;
@@ -312,9 +314,9 @@ pre {
312
314
  code {
313
315
  display: block;
314
316
  width: 100%;
315
- padding: rhythm(2);
316
- font-size: $size-medium;
317
- color: $color-cyberspace;
317
+ padding: func.rhythm(2);
318
+ font-size: var.$size-medium;
319
+ color: colors.$color-cyberspace;
318
320
  }
319
321
 
320
322
  //
@@ -325,7 +327,7 @@ code,
325
327
  kbd,
326
328
  pre,
327
329
  samp {
328
- font-family: $font-family-mono;
330
+ font-family: var.$font-family-mono;
329
331
  }
330
332
 
331
333
  // Forms
@@ -470,27 +472,27 @@ input[type='search']::-webkit-search-decoration {
470
472
  // Style placeholders
471
473
  ::-webkit-input-placeholder {
472
474
  opacity: 1;
473
- color: $color-granit;
475
+ color: colors.$color-granit;
474
476
  }
475
477
 
476
478
  ::-moz-placeholder {
477
479
  opacity: 1;
478
- color: $color-granit;
480
+ color: colors.$color-granit;
479
481
  }
480
482
 
481
483
  :-ms-input-placeholder {
482
484
  opacity: 1;
483
- color: $color-granit;
485
+ color: colors.$color-granit;
484
486
  }
485
487
 
486
488
  :-moz-placeholder {
487
489
  opacity: 1;
488
- color: $color-granit;
490
+ color: colors.$color-granit;
489
491
  }
490
492
 
491
493
  ::placeholder {
492
494
  opacity: 1;
493
- color: $color-granit;
495
+ color: colors.$color-granit;
494
496
  }
495
497
 
496
498
  // Remove spinner from fields in Chrome
@@ -527,7 +529,7 @@ fieldset {
527
529
  //
528
530
 
529
531
  legend {
530
- margin-bottom: rhythm(1);
532
+ margin-bottom: func.rhythm(1);
531
533
  padding: 0; // 2
532
534
  border: 0; // 1
533
535
  font-weight: 700;
@@ -1,4 +1,4 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
 
3
3
  // Fonts
4
4
  @font-face {
package/src/components.js CHANGED
@@ -11,7 +11,6 @@ import './organisms/mega-menu/mega-menu';
11
11
  import './molecules/share/share';
12
12
  import './molecules/natural-language-form/natural-language-form';
13
13
  import './atoms/tooltip/tooltip';
14
- import './atoms/toggle-high-contrast/toggle-high-contrast';
15
14
  import './atoms/height-limiter/height-limiter';
16
15
  import './atoms/file/file';
17
16
  import './atoms/file/filePreview';
@@ -23,7 +22,6 @@ import './molecules/glider/glider-course';
23
22
  import './molecules/glider/glider-hero';
24
23
  import './molecules/context-menu/context-menu';
25
24
  import './molecules/alert/alert';
26
- import './molecules/modal/modal-graph';
27
25
  import './molecules/continue-video-guide/continue-video-guide';
28
26
  import './organisms/video-guide/video-guide';
29
27
  import './organisms/timeline/timeline';
@@ -1,4 +1,7 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
+ @use "sass:meta";
3
+ @use "sass:string";
4
+ @use '../configurations/variables' as var;
2
5
 
3
6
  /// Element class separator
4
7
  /// @group BEM
@@ -15,8 +18,8 @@ $state-prefix: 'is';
15
18
  /// Converts selector to string
16
19
  /// @group BEM
17
20
  @function selector_to_string($selector) {
18
- $selector: inspect($selector); //cast to string
19
- $selector: str-slice($selector, 2, -2); //remove brackets
21
+ $selector: meta.inspect($selector); //cast to string
22
+ $selector: string.slice($selector, 2, -2); //remove brackets
20
23
  @return $selector;
21
24
  }
22
25
 
@@ -24,7 +27,7 @@ $state-prefix: 'is';
24
27
  /// @group BEM
25
28
  @function contains_modifier($selector) {
26
29
  $selector: selector_to_string($selector);
27
- @if str-index($selector, $modifier-separator) {
30
+ @if string.index($selector, $modifier-separator) {
28
31
  @return true;
29
32
  } @else {
30
33
  @return false;
@@ -35,14 +38,14 @@ $state-prefix: 'is';
35
38
  /// @group BEM
36
39
  @function get_block($selector) {
37
40
  $selector: selector_to_string($selector);
38
- $modifier-start: str-index($selector, $modifier-separator) - 1;
39
- @return str-slice($selector, 0, $modifier-start);
41
+ $modifier-start: string.index($selector, $modifier-separator) - 1;
42
+ @return string.slice($selector, 0, $modifier-start);
40
43
  }
41
44
 
42
45
  /// Encapsulates a standalone entity that is meaningful on its own.
43
46
  /// @group BEM
44
47
  @mixin b($name) {
45
- .#{$namespace}#{$name} {
48
+ .#{var.$namespace}#{$name} {
46
49
  @content;
47
50
  }
48
51
  }
@@ -1,7 +1,8 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
 
3
- @import '../configurations/colors/colors';
4
- @import '../configurations/colors/colors-functions';
3
+ @use '../configurations/functions' as func;
4
+ @use '../configurations/colors/colors' as colors;
5
+ @use '../configurations/colors/colors-functions' as colorFunc;
5
6
 
6
7
  /// Namespace
7
8
  /// Prepended to all outputted classes
@@ -26,24 +27,24 @@ $breakpoints: (
26
27
  /// Default margin and padding
27
28
  ///
28
29
  /// @group Config
29
- $default-margin: rhythm(2) !default;
30
- $default-padding: rhythm(2) !default;
30
+ $default-margin: func.rhythm(2) !default;
31
+ $default-padding: func.rhythm(2) !default;
31
32
 
32
33
  /// Theme colors
33
34
  ///
34
35
  /// @group Config
35
36
  $theme-colors: (
36
- primary: $color-ruby,
37
- secondary: $color-jade,
38
- subtle: $color-granit
37
+ primary: colors.$color-ruby,
38
+ secondary: colors.$color-jade,
39
+ subtle: colors.$color-granit
39
40
  );
40
41
 
41
42
  /// Text colors
42
43
  ///
43
44
  /// @group Config
44
45
  .color {
45
- @include color_values($theme-colors, 'color', $separator: '-');
46
+ @include colorFunc.color_values($theme-colors, 'color', $separator: '-');
46
47
  }
47
48
 
48
49
  // Default text-shadow
49
- $text-shadow: 0 0 rhythm(2) rgba($color-black, 0.5);
50
+ $text-shadow: 0 0 func.rhythm(2) rgba(colors.$color-black, 0.5);