@apolitical/component-library 1.18.8 → 2.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 (124) hide show
  1. package/communities/join-button/join-button.d.ts +1 -1
  2. package/context/user/index.d.ts +1 -1
  3. package/discussion/components/likes/likes.d.ts +1 -1
  4. package/discussion/feeds/activities-feed/activities-feed.d.ts +7 -0
  5. package/discussion/feeds/replies-feed/nested-replies-feed/nested-replies-feed.d.ts +6 -0
  6. package/discussion/feeds/replies-feed/replies-feed.d.ts +8 -0
  7. package/form/components/email-helper-text-box/email-helper-text-box.d.ts +1 -1
  8. package/form/components/form/components/field-wrapper/field-wrapper.d.ts +3 -0
  9. package/form/components/form/components/field-wrapper/index.d.ts +1 -0
  10. package/form/components/form/components/fields/checkbox/checkbox.d.ts +31 -0
  11. package/form/components/form/components/fields/checkbox/index.d.ts +1 -0
  12. package/form/components/form/components/fields/dropdown-menu/components/index.d.ts +1 -0
  13. package/form/components/form/components/fields/dropdown-menu/components/rotating-chevron/index.d.ts +1 -0
  14. package/form/components/form/components/fields/dropdown-menu/components/rotating-chevron/rotating-chevron.d.ts +6 -0
  15. package/form/components/form/components/fields/dropdown-menu/dropdown-menu.d.ts +3 -0
  16. package/form/components/form/components/fields/dropdown-menu/index.d.ts +1 -0
  17. package/form/components/form/components/fields/index.d.ts +5 -0
  18. package/form/components/form/components/fields/input/index.d.ts +1 -0
  19. package/form/components/form/components/fields/input/input.d.ts +39 -0
  20. package/form/components/form/components/fields/multiple-options/index.d.ts +1 -0
  21. package/form/components/form/components/fields/multiple-options/multiple-options.d.ts +3 -0
  22. package/form/components/form/components/fields/password/index.d.ts +1 -0
  23. package/form/components/form/components/fields/password/password.d.ts +3 -0
  24. package/form/components/form/components/index.d.ts +2 -0
  25. package/form/components/form/form.d.ts +3 -0
  26. package/form/components/form/form.mocks.d.ts +18 -0
  27. package/form/components/form/form.reducer.d.ts +3 -0
  28. package/form/components/form/form.types.d.ts +189 -0
  29. package/form/components/form/index.d.ts +1 -0
  30. package/form/components/index.d.ts +1 -0
  31. package/form/components/password-rules/password-rules.d.ts +1 -1
  32. package/form/components/rating/rating.d.ts +1 -1
  33. package/form/types/contact-form/contact-form.d.ts +12 -0
  34. package/form/types/contact-form/index.d.ts +1 -0
  35. package/form/types/index.d.ts +3 -1
  36. package/form/types/signup-form/components/index.d.ts +1 -0
  37. package/form/types/signup-form/components/success-message.d.ts +4 -0
  38. package/form/types/signup-form/index.d.ts +1 -0
  39. package/form/types/signup-form/signup-form.d.ts +25 -0
  40. package/form/types/signup-form/signup-form.helpers.d.ts +41 -0
  41. package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +56 -0
  42. package/general/buttons/button/button.d.ts +1 -1
  43. package/helpers/in-development.d.ts +1 -0
  44. package/helpers/index.d.ts +4 -3
  45. package/index.js +34 -15
  46. package/index.mjs +5422 -2940
  47. package/layout/content-layout/contact-footer/contact-footer.d.ts +5 -0
  48. package/layout/content-layout/contact-footer/index.d.ts +1 -0
  49. package/layout/content-layout/index.d.ts +1 -0
  50. package/mappers/index.d.ts +1 -1
  51. package/mappers/{mapGetSteamData.d.ts → map-get-steam-data.d.ts} +1 -1
  52. package/modals/index.d.ts +1 -1
  53. package/navigation/filters/filters.d.ts +1 -1
  54. package/navigation/more-menu/more-menu.d.ts +1 -1
  55. package/package.json +2 -1
  56. package/sections/full-width-section/full-width-section.d.ts +2 -0
  57. package/sections/logo-section/logo-section.d.ts +1 -1
  58. package/style.css +1 -1
  59. package/styles/README.md +28 -0
  60. package/styles/base/_accessibility.scss +21 -11
  61. package/styles/base/_blockquotes.scss +31 -20
  62. package/styles/base/_fonts.scss +10 -6
  63. package/styles/base/_hr.scss +9 -8
  64. package/styles/base/_index.scss +2 -13
  65. package/styles/base/_layout.scss +5 -4
  66. package/styles/base/_links.scss +11 -13
  67. package/styles/base/_lists.scss +26 -13
  68. package/styles/base/_overlays.scss +34 -32
  69. package/styles/base/_table.scss +40 -27
  70. package/styles/base/_text.scss +128 -63
  71. package/styles/base/_titles.scss +192 -114
  72. package/styles/base/buttons/_button-wrapper.scss +23 -18
  73. package/styles/base/buttons/_buttons.scss +246 -169
  74. package/styles/base/buttons/_icons.scss +26 -26
  75. package/styles/base/buttons/_index.scss +1 -2
  76. package/styles/base/buttons/_mixins.scss +9 -3
  77. package/styles/base/buttons/_sizes.scss +47 -8
  78. package/styles/base/form/_fields.scss +50 -41
  79. package/styles/base/form/_form.scss +26 -0
  80. package/styles/base/form/_index.scss +1 -2
  81. package/styles/base/form/_labels.scss +12 -0
  82. package/styles/base/form/_search-button.scss +17 -17
  83. package/styles/functions/_index.scss +1 -1
  84. package/styles/functions/_maps.scss +25 -0
  85. package/styles/functions/_size-conversions.scss +3 -3
  86. package/styles/index.scss +3 -5
  87. package/styles/mixins/_animations.scss +1 -1
  88. package/styles/mixins/_backgrounds.scss +8 -2
  89. package/styles/mixins/_breakpoints.scss +1 -1
  90. package/styles/mixins/_browsers.scss +4 -2
  91. package/styles/mixins/_containers.scss +0 -1
  92. package/styles/mixins/_index.scss +2 -8
  93. package/styles/mixins/_queries.scss +11 -0
  94. package/styles/mixins/_selectors.scss +1 -1
  95. package/styles/mixins/_styles.scss +23 -21
  96. package/styles/mixins/_transitions.scss +19 -15
  97. package/styles/reset/_index.scss +1 -1
  98. package/styles/reset/_reset.scss +104 -20
  99. package/styles/variables/_index.scss +1 -3
  100. package/styles/variables/assets/_assets.scss +0 -1
  101. package/styles/variables/assets/_index.scss +1 -1
  102. package/styles/variables/colors/_colors.scss +53 -53
  103. package/styles/variables/colors/_index.scss +1 -1
  104. package/styles/variables/colors/theme/_banners.scss +26 -0
  105. package/styles/variables/colors/theme/_base.scss +88 -0
  106. package/styles/variables/colors/theme/_cards.scss +24 -0
  107. package/styles/variables/colors/theme/_communities.scss +7 -0
  108. package/styles/variables/colors/theme/_discussion.scss +20 -0
  109. package/styles/variables/colors/theme/_form.scss +25 -0
  110. package/styles/variables/colors/theme/_general.scss +9 -0
  111. package/styles/variables/colors/theme/_index.scss +8 -0
  112. package/styles/variables/colors/theme/_layout.scss +50 -0
  113. package/styles/variables/colors/theme/_loaders.scss +20 -0
  114. package/styles/variables/colors/theme/_modals.scss +14 -0
  115. package/styles/variables/colors/theme/_navigation.scss +41 -0
  116. package/styles/variables/colors/theme/_pages.scss +9 -0
  117. package/styles/variables/colors/theme/_text.scss +47 -0
  118. package/styles/variables/colors/theme/_user.scss +16 -0
  119. package/styles/variables/sizes/_common.scss +1 -1
  120. package/styles/variables/sizes/_index.scss +1 -1
  121. package/text/helper-text-box/helper-text-box.d.ts +1 -1
  122. package/text/hide-show-text-box/hide-show-text-box.d.ts +1 -1
  123. package/types/index.d.ts +1 -0
  124. package/styles/variables/colors/_theme.scss +0 -312
@@ -1,61 +1,115 @@
1
- @use 'sass:map';
2
- @import './../functions',
3
- './../mixins',
4
- './../variables';
5
-
6
- $default: ('font-size': 16, 'font-size_md': 18, 'line-height': 24, 'line-height_md': 28, 'margin-bottom': 20); // The default size is the 'large paragraph' in Figma
7
- $small: ('font-size': 12, 'font-size_md': 14, 'letter-spacing': 0.16, 'line-height': 16, 'margin-bottom': 16);
8
- $medium: ('font-size': 14, 'font-size_md': 16, 'line-height': 16, 'line-height_md': 20, 'margin-bottom': 18);
9
- $sup: ('font-size': 10);
1
+ @import './../functions', './../mixins', './../variables';
2
+
3
+ $default: (
4
+ 'font-size': 16,
5
+ 'font-size_md': 18,
6
+ 'line-height': 24,
7
+ 'line-height_md': 28,
8
+ 'margin-bottom': 20,
9
+ ); // The default size is the 'large paragraph' in Figma
10
+ $small: (
11
+ 'font-size': 12,
12
+ 'font-size_md': 14,
13
+ 'letter-spacing': 0.16,
14
+ 'line-height': 16,
15
+ 'margin-bottom': 16,
16
+ );
17
+ $medium: (
18
+ 'font-size': 14,
19
+ 'font-size_md': 16,
20
+ 'line-height': 16,
21
+ 'line-height_md': 20,
22
+ 'margin-bottom': 18,
23
+ );
24
+ $sup: (
25
+ 'font-size': 10,
26
+ );
10
27
  $standard-text-elements: p, li, dt, dd;
11
28
  $special-text-elements: h1, h2, h3, h4, h5, h6, a;
12
29
 
13
30
  @layer base {
14
- p, li, small {
15
- color: map.get($theme, 'text');
31
+ p,
32
+ li,
33
+ small {
34
+ color: get-map($theme, 'text');
16
35
  font-weight: 500;
17
36
 
18
- .error &, &.error { color: map.get($theme, 'text_error'); }
37
+ .error &,
38
+ &.error {
39
+ color: get-map($theme, 'text_error');
40
+ }
19
41
  }
20
42
 
21
43
  #{$standard-text-elements} {
22
- font-size: px-to-rem(map.get($default, 'font-size'));
23
- line-height: px-to-rem(map.get($default, 'line-height'));
44
+ font-size: px-to-rem(get-map($default, 'font-size'));
45
+ line-height: px-to-rem(get-map($default, 'line-height'));
46
+
47
+ // These have been split out to allow us to overwrite with a direct class on the element.
48
+ .text-small & {
49
+ font-size: px-to-rem(get-map($small, 'font-size'));
50
+ line-height: px-to-rem(get-map($small, 'line-height'));
51
+ letter-spacing: px-to-rem(get-map($small, 'letter-spacing'));
52
+ }
24
53
 
25
- .text-small &, &.text-small {
26
- font-size: px-to-rem(map.get($small, 'font-size'));
27
- line-height: px-to-rem(map.get($small, 'line-height'));
28
- letter-spacing: px-to-rem(map.get($small, 'letter-spacing'));
29
- }
54
+ .text-medium & {
55
+ font-size: px-to-rem(get-map($medium, 'font-size'));
56
+ line-height: px-to-rem(get-map($medium, 'line-height'));
57
+ }
30
58
 
31
- .text-medium &, &.text-medium {
32
- font-size: px-to-rem(map.get($medium, 'font-size'));
33
- line-height: px-to-rem(map.get($medium, 'line-height'));
34
- }
59
+ &.text-small {
60
+ font-size: px-to-rem(get-map($small, 'font-size'));
61
+ line-height: px-to-rem(get-map($small, 'line-height'));
62
+ letter-spacing: px-to-rem(get-map($small, 'letter-spacing'));
63
+ }
64
+
65
+ &.text-medium {
66
+ font-size: px-to-rem(get-map($medium, 'font-size'));
67
+ line-height: px-to-rem(get-map($medium, 'line-height'));
68
+ }
35
69
  }
36
70
 
37
71
  p {
38
- margin-bottom: px-to-rem(map.get($default, 'margin-bottom'));
72
+ margin-bottom: px-to-rem(get-map($default, 'margin-bottom'));
39
73
 
40
- .text-small &, &.text-small { margin-bottom: px-to-rem(map.get($small, 'margin-bottom')); }
74
+ // These have been split out to allow us to overwrite with a direct class on the element.
75
+ .text-small & {
76
+ margin-bottom: px-to-rem(get-map($small, 'margin-bottom'));
77
+ }
41
78
 
42
- .text-medium &, &.text-medium { margin-bottom: px-to-rem(map.get($medium, 'margin-bottom')); }
79
+ .text-medium & {
80
+ margin-bottom: px-to-rem(get-map($medium, 'margin-bottom'));
81
+ }
82
+
83
+ &.text-small {
84
+ margin-bottom: px-to-rem(get-map($small, 'margin-bottom'));
85
+ }
86
+
87
+ &.text-medium {
88
+ margin-bottom: px-to-rem(get-map($medium, 'margin-bottom'));
89
+ }
43
90
  }
44
91
 
45
92
  small {
46
- font-size: px-to-rem(map.get($small, 'font-size'));
47
- line-height: px-to-rem(map.get($small, 'line-height'));
93
+ font-size: px-to-rem(get-map($small, 'font-size'));
94
+ line-height: px-to-rem(get-map($small, 'line-height'));
48
95
 
49
- @include breakpoint('min-width', 'md') {
50
- font-size: px-to-rem(map.get($small, 'font-size_md'));
51
- }
96
+ @include breakpoint('min-width', 'md') {
97
+ font-size: px-to-rem(get-map($small, 'font-size_md'));
98
+ }
52
99
  }
53
100
 
54
- strong { font-weight: 900; }
55
- em, i { font-style: italic; }
101
+ strong {
102
+ font-weight: 900;
103
+ }
56
104
 
57
- sup, sub {
58
- font-size: px-to-rem(map.get($sup, 'font-size'));
105
+ em,
106
+ i {
107
+ font-style: italic;
108
+ }
109
+
110
+ sup,
111
+ sub {
112
+ font-size: px-to-rem(get-map($sup, 'font-size'));
59
113
  line-height: normal;
60
114
  }
61
115
 
@@ -67,45 +121,56 @@ $special-text-elements: h1, h2, h3, h4, h5, h6, a;
67
121
  vertical-align: sub;
68
122
  }
69
123
 
70
- address { font-style: normal; }
124
+ address {
125
+ font-style: normal;
126
+ }
71
127
 
72
128
  #{$special-text-elements} {
73
- &.text-small {
74
- font-size: px-to-rem(map.get($small, 'font-size'));
75
- line-height: px-to-rem(map.get($small, 'line-height'));
76
- }
129
+ &.text-small {
130
+ font-size: px-to-rem(get-map($small, 'font-size'));
131
+ line-height: px-to-rem(get-map($small, 'line-height'));
132
+ }
77
133
 
78
- &.text-medium {
79
- font-size: px-to-rem(map.get($medium, 'font-size'));
80
- line-height: px-to-rem(map.get($medium, 'line-height'));
81
- }
134
+ &.text-medium {
135
+ font-size: px-to-rem(get-map($medium, 'font-size'));
136
+ line-height: px-to-rem(get-map($medium, 'line-height'));
137
+ }
82
138
  }
83
139
 
84
140
  @include breakpoint('min-width', 'md') {
85
141
  #{$standard-text-elements} {
86
- font-size: px-to-rem(map.get($default, 'font-size_md'));
87
- line-height: px-to-rem(map.get($default, 'line-height_md'));
142
+ font-size: px-to-rem(get-map($default, 'font-size_md'));
143
+ line-height: px-to-rem(get-map($default, 'line-height_md'));
88
144
 
89
- .text-small &, &.text-small {
90
- font-size: px-to-rem(map.get($small, 'font-size_md'));
91
- }
145
+ // These have been split out to allow us to overwrite with a direct class on the element.
146
+ .text-small & {
147
+ font-size: px-to-rem(get-map($small, 'font-size_md'));
148
+ }
92
149
 
93
- .text-medium &, &.text-medium {
94
- font-size: px-to-rem(map.get($medium, 'font-size_md'));
95
- line-height: px-to-rem(map.get($medium, 'line-height_md'));
96
- }
150
+ .text-medium & {
151
+ font-size: px-to-rem(get-map($medium, 'font-size_md'));
152
+ line-height: px-to-rem(get-map($medium, 'line-height_md'));
153
+ }
154
+
155
+ &.text-small {
156
+ font-size: px-to-rem(get-map($small, 'font-size_md'));
157
+ }
158
+
159
+ &.text-medium {
160
+ font-size: px-to-rem(get-map($medium, 'font-size_md'));
161
+ line-height: px-to-rem(get-map($medium, 'line-height_md'));
162
+ }
97
163
  }
98
164
 
99
165
  #{$special-text-elements} {
100
- &.text-small {
101
- font-size: px-to-rem(map.get($small, 'font-size_md'));
102
- }
103
-
104
- &.text-medium {
105
- font-size: px-to-rem(map.get($medium, 'font-size_md'));
106
- line-height: px-to-rem(map.get($medium, 'line-height_md'));
107
- }
166
+ &.text-small {
167
+ font-size: px-to-rem(get-map($small, 'font-size_md'));
168
+ }
169
+
170
+ &.text-medium {
171
+ font-size: px-to-rem(get-map($medium, 'font-size_md'));
172
+ line-height: px-to-rem(get-map($medium, 'line-height_md'));
173
+ }
108
174
  }
109
175
  }
110
-
111
- }
176
+ }
@@ -1,159 +1,237 @@
1
- @use 'sass:map';
2
- @import './../functions',
3
- './../mixins',
4
- './../variables';
5
-
6
- $highlight: ('width': 64, 'height': 4, 'margin-top': 12, 'border-radius': 8);
7
- $pre-title: ('font-size': 14, 'font-size_md': 16, 'letter-spacing': 1.28, 'line-height': 16, 'line-height_md': 20, 'margin-bottom': 24);
8
- $title: ('font-size': 32, 'font-size_md': 52, 'letter-spacing': -0.16, 'line-height': 40, 'line-height_md': 64, 'margin-bottom': 16, 'margin-bottom_md': 32);
9
- $h1: ('font-size': 28, 'font-size_md': 40, 'line-height': 32, 'line-height_md': 48, 'letter-spacing': -0.16, 'margin-bottom': 16);
10
- $h2: ('font-size': 24, 'font-size_md': 28, 'line-height': 32, 'line-height_md': 40, 'margin-top': 40, 'margin-bottom': 16);
11
- $h3: ('font-size': 20, 'font-size_md': 24, 'line-height': 28, 'line-height_md': 32, 'margin-top': 60, 'margin-bottom': 20);
12
- $h4: ('font-size': 18, 'font-size_md': 20, 'line-height': 24, 'line-height_md': 28, 'margin-top': 40, 'margin-bottom': 20);
13
- $h5: ('font-size': 12, 'font-size_md': 14, 'line-height': 16, 'margin-top': 16, 'margin-bottom': 16);
14
- $h6: ('font-size': 12, 'font-size_md': 11, 'line-height': 16);
15
- $subtitle: ('font-size': 20, 'font-size_md': 24, 'line-height': 28, 'line-height_md': 32, 'margin-bottom': 20);
16
- $count-icon: ('width': 15, 'margin-horizontal': 8, 'offset': 1);
17
-
18
- @mixin highlight {
1
+ @import './../functions', './../mixins', './../variables';
2
+
3
+ $highlight: (
4
+ 'width': 64,
5
+ 'height': 4,
6
+ 'margin-top': 12,
7
+ 'border-radius': 8,
8
+ );
9
+ $pre-title: (
10
+ 'font-size': 14,
11
+ 'font-size_md': 16,
12
+ 'letter-spacing': 1.28,
13
+ 'line-height': 16,
14
+ 'line-height_md': 20,
15
+ 'margin-bottom': 24,
16
+ );
17
+ $title: (
18
+ 'font-size': 32,
19
+ 'font-size_md': 52,
20
+ 'letter-spacing': -0.16,
21
+ 'line-height': 40,
22
+ 'line-height_md': 64,
23
+ 'margin-bottom': 16,
24
+ 'margin-bottom_md': 32,
25
+ );
26
+ $h1: (
27
+ 'font-size': 28,
28
+ 'font-size_md': 40,
29
+ 'line-height': 32,
30
+ 'line-height_md': 48,
31
+ 'letter-spacing': -0.16,
32
+ 'margin-bottom': 16,
33
+ );
34
+ $h2: (
35
+ 'font-size': 24,
36
+ 'font-size_md': 28,
37
+ 'line-height': 32,
38
+ 'line-height_md': 40,
39
+ 'margin-top': 40,
40
+ 'margin-bottom': 16,
41
+ );
42
+ $h3: (
43
+ 'font-size': 20,
44
+ 'font-size_md': 24,
45
+ 'line-height': 28,
46
+ 'line-height_md': 32,
47
+ 'margin-top': 60,
48
+ 'margin-bottom': 20,
49
+ );
50
+ $h4: (
51
+ 'font-size': 18,
52
+ 'font-size_md': 20,
53
+ 'line-height': 24,
54
+ 'line-height_md': 28,
55
+ 'margin-top': 40,
56
+ 'margin-bottom': 20,
57
+ );
58
+ $h5: (
59
+ 'font-size': 12,
60
+ 'font-size_md': 14,
61
+ 'line-height': 16,
62
+ 'margin-top': 16,
63
+ 'margin-bottom': 16,
64
+ );
65
+ $h6: (
66
+ 'font-size': 12,
67
+ 'font-size_md': 11,
68
+ 'line-height': 16,
69
+ );
70
+ $subtitle: (
71
+ 'font-size': 20,
72
+ 'font-size_md': 24,
73
+ 'line-height': 28,
74
+ 'line-height_md': 32,
75
+ 'margin-bottom': 20,
76
+ );
77
+ $count-icon: (
78
+ 'width': 15,
79
+ 'margin-horizontal': 8,
80
+ 'offset': 1,
81
+ );
82
+
83
+ @mixin highlight($align: 'left') {
19
84
  position: relative;
20
- padding-bottom: px-to-rem(map.get($highlight, 'height') + map.get($highlight, 'margin-top'));
85
+ padding-bottom: px-to-rem(
86
+ get-map($highlight, 'height') + get-map($highlight, 'margin-top')
87
+ );
88
+
89
+ &::after {
90
+ content: '';
91
+ width: px-to-rem(get-map($highlight, 'width'));
92
+ height: px-to-rem(get-map($highlight, 'height'));
93
+ background: get-map($theme, 'highlight_bg');
94
+ position: absolute;
95
+ bottom: 0;
96
+ left: 0;
97
+ border-radius: px-to-rem(get-map($highlight, 'border-radius'));
98
+ display: block;
99
+ }
21
100
 
101
+ @if $align == 'center' {
22
102
  &::after {
23
- content: '';
24
- width: px-to-rem(map.get($highlight, 'width'));
25
- height: px-to-rem(map.get($highlight, 'height'));
26
- background: map.get($theme, 'highlight_bg');
27
- position: absolute;
28
- bottom: 0;
29
- left: 0;
30
- border-radius: px-to-rem(map.get($highlight, 'border-radius'));
31
- display: block;
103
+ left: 50%;
104
+ transform: translateX(-50%);
32
105
  }
106
+ }
33
107
  }
34
108
 
35
109
  @mixin pre-title {
36
- margin-bottom: px-to-rem(map.get($pre-title, 'margin-bottom'));
37
- font-size: px-to-rem(map.get($pre-title, 'font-size'));
38
- color: map.get($theme, 'title');
110
+ margin-bottom: px-to-rem(get-map($pre-title, 'margin-bottom'));
111
+ font-size: px-to-rem(get-map($pre-title, 'font-size'));
112
+ color: get-map($theme, 'title');
39
113
  font-weight: 700;
40
- line-height: px-to-rem(map.get($pre-title, 'line-height'));
41
- letter-spacing: px-to-rem(map.get($pre-title, 'letter-spacing'));
114
+ line-height: px-to-rem(get-map($pre-title, 'line-height'));
115
+ letter-spacing: px-to-rem(get-map($pre-title, 'letter-spacing'));
42
116
  text-transform: uppercase;
43
117
 
44
- @include breakpoint('min-width', 'md') {
45
- font-size: px-to-rem(map.get($pre-title, 'font-size_md'));
46
- line-height: px-to-rem(map.get($pre-title, 'line-height_md'));
47
- }
118
+ @include breakpoint('min-width', 'md') {
119
+ font-size: px-to-rem(get-map($pre-title, 'font-size_md'));
120
+ line-height: px-to-rem(get-map($pre-title, 'line-height_md'));
121
+ }
48
122
  }
49
123
 
50
124
  @mixin title {
51
- margin-bottom: px-to-rem(map.get($title, 'margin-bottom'));
52
- font-size: px-to-rem(map.get($title, 'font-size'));
53
- color: map.get($theme, 'title');
125
+ margin-bottom: px-to-rem(get-map($title, 'margin-bottom'));
126
+ font-size: px-to-rem(get-map($title, 'font-size'));
127
+ color: get-map($theme, 'title');
54
128
  font-weight: 900;
55
- line-height: px-to-rem(map.get($title, 'line-height'));
56
- letter-spacing: px-to-rem(map.get($title, 'letter-spacing'));
129
+ line-height: px-to-rem(get-map($title, 'line-height'));
130
+ letter-spacing: px-to-rem(get-map($title, 'letter-spacing'));
57
131
 
58
- @include breakpoint('min-width', 'md') {
59
- font-size: px-to-rem(map.get($title, 'font-size_md'));
60
- line-height: px-to-rem(map.get($title, 'line-height_md'));
61
- }
132
+ @include breakpoint('min-width', 'md') {
133
+ font-size: px-to-rem(get-map($title, 'font-size_md'));
134
+ line-height: px-to-rem(get-map($title, 'line-height_md'));
135
+ }
62
136
  }
63
137
 
64
138
  @mixin h1 {
65
- margin-bottom: px-to-rem(map.get($h1, 'margin-bottom'));
66
- font-size: px-to-rem(map.get($h1, 'font-size'));
67
- color: map.get($theme, 'title');
139
+ margin-bottom: px-to-rem(get-map($h1, 'margin-bottom'));
140
+ font-size: px-to-rem(get-map($h1, 'font-size'));
141
+ color: get-map($theme, 'title');
68
142
  text-transform: none;
69
143
  font-weight: 900;
70
- line-height: px-to-rem(map.get($h1, 'line-height'));
71
- letter-spacing: px-to-rem(map.get($h1, 'letter-spacing'));
144
+ line-height: px-to-rem(get-map($h1, 'line-height'));
145
+ letter-spacing: px-to-rem(get-map($h1, 'letter-spacing'));
72
146
 
73
- @include breakpoint('min-width', 'md') {
74
- font-size: px-to-rem(map.get($h1, 'font-size_md'));
75
- line-height: px-to-rem(map.get($h1, 'line-height_md'));
76
- }
147
+ @include breakpoint('min-width', 'md') {
148
+ font-size: px-to-rem(get-map($h1, 'font-size_md'));
149
+ line-height: px-to-rem(get-map($h1, 'line-height_md'));
150
+ }
77
151
  }
78
152
 
79
153
  @mixin h2 {
80
- margin: px-to-rem(map.get($h2, 'margin-top')) 0 px-to-rem(map.get($h2, 'margin-bottom')) 0;
81
- font-size: px-to-rem(map.get($h2, 'font-size'));
82
- color: map.get($theme, 'title');
154
+ margin: px-to-rem(get-map($h2, 'margin-top')) 0 px-to-rem(get-map($h2, 'margin-bottom'))
155
+ 0;
156
+ font-size: px-to-rem(get-map($h2, 'font-size'));
157
+ color: get-map($theme, 'title');
83
158
  text-transform: none;
84
159
  font-weight: 900;
85
- line-height: px-to-rem(map.get($h2, 'line-height'));
160
+ line-height: px-to-rem(get-map($h2, 'line-height'));
86
161
 
87
- @include breakpoint('min-width', 'md') {
88
- font-size: px-to-rem(map.get($h2, 'font-size_md'));
89
- line-height: px-to-rem(map.get($h2, 'line-height_md'));
90
- }
162
+ @include breakpoint('min-width', 'md') {
163
+ font-size: px-to-rem(get-map($h2, 'font-size_md'));
164
+ line-height: px-to-rem(get-map($h2, 'line-height_md'));
165
+ }
91
166
  }
92
167
 
93
168
  @mixin h3 {
94
- margin: px-to-rem(map.get($h3, 'margin-top')) 0 px-to-rem(map.get($h3, 'margin-bottom')) 0;
95
- font-size: px-to-rem(map.get($h3, 'font-size'));
96
- color: map.get($theme, 'title');
169
+ margin: px-to-rem(get-map($h3, 'margin-top')) 0 px-to-rem(get-map($h3, 'margin-bottom'))
170
+ 0;
171
+ font-size: px-to-rem(get-map($h3, 'font-size'));
172
+ color: get-map($theme, 'title');
97
173
  text-transform: none;
98
174
  font-weight: 900;
99
- line-height: px-to-rem(map.get($h3, 'line-height'));
175
+ line-height: px-to-rem(get-map($h3, 'line-height'));
100
176
 
101
- @include breakpoint('min-width', 'md') {
102
- font-size: px-to-rem(map.get($h3, 'font-size_md'));
103
- line-height: px-to-rem(map.get($h3, 'line-height_md'));
104
- }
177
+ @include breakpoint('min-width', 'md') {
178
+ font-size: px-to-rem(get-map($h3, 'font-size_md'));
179
+ line-height: px-to-rem(get-map($h3, 'line-height_md'));
180
+ }
105
181
  }
106
182
 
107
183
  @mixin h4 {
108
- margin: px-to-rem(map.get($h4, 'margin-top')) 0 px-to-rem(map.get($h4, 'margin-bottom')) 0;
109
- font-size: px-to-rem(map.get($h4, 'font-size'));
110
- color: map.get($theme, 'title');
184
+ margin: px-to-rem(get-map($h4, 'margin-top')) 0 px-to-rem(get-map($h4, 'margin-bottom'))
185
+ 0;
186
+ font-size: px-to-rem(get-map($h4, 'font-size'));
187
+ color: get-map($theme, 'title');
111
188
  text-transform: none;
112
189
  font-weight: 900;
113
- line-height: px-to-rem(map.get($h4, 'line-height'));
190
+ line-height: px-to-rem(get-map($h4, 'line-height'));
114
191
 
115
- @include breakpoint('min-width', 'md') {
116
- font-size: px-to-rem(map.get($h4, 'font-size_md'));
117
- line-height: px-to-rem(map.get($h4, 'line-height_md'));
118
- }
192
+ @include breakpoint('min-width', 'md') {
193
+ font-size: px-to-rem(get-map($h4, 'font-size_md'));
194
+ line-height: px-to-rem(get-map($h4, 'line-height_md'));
195
+ }
119
196
  }
120
197
 
121
198
  @mixin h5 {
122
- margin: px-to-rem(map.get($h5, 'margin-top')) 0 px-to-rem(map.get($h5, 'margin-bottom')) 0;
123
- font-size: px-to-rem(map.get($h5, 'font-size'));
124
- color: map.get($theme, 'title');
199
+ margin: px-to-rem(get-map($h5, 'margin-top')) 0 px-to-rem(get-map($h5, 'margin-bottom'))
200
+ 0;
201
+ font-size: px-to-rem(get-map($h5, 'font-size'));
202
+ color: get-map($theme, 'title');
125
203
  text-transform: uppercase;
126
204
  font-weight: 700;
127
- line-height: px-to-rem(map.get($h5, 'line-height'));
205
+ line-height: px-to-rem(get-map($h5, 'line-height'));
128
206
 
129
- @include breakpoint('min-width', 'md') {
130
- font-size: px-to-rem(map.get($h5, 'font-size_md'));
131
- }
207
+ @include breakpoint('min-width', 'md') {
208
+ font-size: px-to-rem(get-map($h5, 'font-size_md'));
209
+ }
132
210
  }
133
211
 
134
212
  @mixin h6 {
135
- font-size: px-to-rem(map.get($h6, 'font-size'));
136
- color: map.get($theme, 'title');
213
+ font-size: px-to-rem(get-map($h6, 'font-size'));
214
+ color: get-map($theme, 'title');
137
215
  text-transform: uppercase;
138
216
  font-weight: 700;
139
- line-height: px-to-rem(map.get($h6, 'line-height'));
217
+ line-height: px-to-rem(get-map($h6, 'line-height'));
140
218
 
141
- @include breakpoint('min-width', 'md') {
142
- font-size: px-to-rem(map.get($h6, 'font-size_md'));
143
- }
219
+ @include breakpoint('min-width', 'md') {
220
+ font-size: px-to-rem(get-map($h6, 'font-size_md'));
221
+ }
144
222
  }
145
223
 
146
224
  @mixin subtitle {
147
- margin-bottom: px-to-rem(map.get($subtitle, 'margin-bottom'));
148
- font-size: px-to-rem(map.get($subtitle, 'font-size'));
149
- color: map.get($theme, 'subtitle');
225
+ margin-bottom: px-to-rem(get-map($subtitle, 'margin-bottom'));
226
+ font-size: px-to-rem(get-map($subtitle, 'font-size'));
227
+ color: get-map($theme, 'subtitle');
150
228
  font-weight: 400;
151
- line-height: px-to-rem(map.get($subtitle, 'line-height'));
229
+ line-height: px-to-rem(get-map($subtitle, 'line-height'));
152
230
 
153
- @include breakpoint('min-width', 'md') {
154
- font-size: px-to-rem(map.get($subtitle, 'font-size_md'));
155
- line-height: px-to-rem(map.get($subtitle, 'line-height_md'));
156
- }
231
+ @include breakpoint('min-width', 'md') {
232
+ font-size: px-to-rem(get-map($subtitle, 'font-size_md'));
233
+ line-height: px-to-rem(get-map($subtitle, 'line-height_md'));
234
+ }
157
235
  }
158
236
 
159
237
  @layer base {
@@ -198,17 +276,17 @@ $count-icon: ('width': 15, 'margin-horizontal': 8, 'offset': 1);
198
276
  }
199
277
 
200
278
  .count {
201
- &::before {
202
- @include image('icons/middot.svg', true);
203
-
204
- content: '';
205
- width: px-to-rem(map.get($count-icon, 'width'));
206
- height: px-to-rem(map.get($count-icon, 'width'));
207
- background: currentcolor;
208
- position: relative;
209
- top: px-to-rem(map.get($count-icon, 'offset'));
210
- margin: 0 px-to-rem(map.get($count-icon, 'margin-horizontal'));
211
- display: inline-block;
212
- }
213
- }
214
- }
279
+ &::before {
280
+ @include image('icons/middot.svg', true);
281
+
282
+ content: '';
283
+ width: px-to-rem(get-map($count-icon, 'width'));
284
+ height: px-to-rem(get-map($count-icon, 'width'));
285
+ background: currentcolor;
286
+ position: relative;
287
+ top: px-to-rem(get-map($count-icon, 'offset'));
288
+ margin: 0 px-to-rem(get-map($count-icon, 'margin-horizontal'));
289
+ display: inline-block;
290
+ }
291
+ }
292
+ }
@@ -1,9 +1,8 @@
1
- @use 'sass:map';
2
- @import './../../functions',
3
- './../../mixins',
4
- './../../variables';
1
+ @import './../../functions', './../../mixins', './../../variables';
5
2
 
6
- $button-wrapper-button: ('margin': 12);
3
+ $button-wrapper-button: (
4
+ 'margin': 12,
5
+ );
7
6
 
8
7
  @layer base {
9
8
  .button-wrapper {
@@ -14,21 +13,27 @@ $button-wrapper-button: ('margin': 12);
14
13
  flex-flow: row wrap;
15
14
  place-content: center;
16
15
 
17
- li, > button, > .button {
18
- margin: 0 px-to-rem(map.get($button-wrapper-button, 'margin')) px-to-rem(map.get($button-wrapper-button, 'margin')) px-to-rem(map.get($button-wrapper-button, 'margin'));
19
- }
16
+ li,
17
+ > button,
18
+ > .button {
19
+ margin: 0 px-to-rem(get-map($button-wrapper-button, 'margin'))
20
+ px-to-rem(get-map($button-wrapper-button, 'margin'))
21
+ px-to-rem(get-map($button-wrapper-button, 'margin'));
22
+ }
20
23
 
21
- li {
22
- display: flex;
23
- align-content: center;
24
+ li {
25
+ display: flex;
26
+ align-content: center;
24
27
 
25
- &:last-child { margin-bottom: px-to-rem(map.get($button-wrapper-button, 'margin')); }
28
+ &:last-child {
29
+ margin-bottom: px-to-rem(get-map($button-wrapper-button, 'margin'));
26
30
  }
31
+ }
27
32
 
28
- button, .button {
29
- margin-top: auto;
30
- margin-bottom: auto;
31
- }
33
+ button,
34
+ .button {
35
+ margin-top: auto;
36
+ margin-bottom: auto;
37
+ }
32
38
  }
33
-
34
- }
39
+ }