@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.
- package/communities/join-button/join-button.d.ts +1 -1
- package/context/user/index.d.ts +1 -1
- package/discussion/components/likes/likes.d.ts +1 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +7 -0
- package/discussion/feeds/replies-feed/nested-replies-feed/nested-replies-feed.d.ts +6 -0
- package/discussion/feeds/replies-feed/replies-feed.d.ts +8 -0
- package/form/components/email-helper-text-box/email-helper-text-box.d.ts +1 -1
- package/form/components/form/components/field-wrapper/field-wrapper.d.ts +3 -0
- package/form/components/form/components/field-wrapper/index.d.ts +1 -0
- package/form/components/form/components/fields/checkbox/checkbox.d.ts +31 -0
- package/form/components/form/components/fields/checkbox/index.d.ts +1 -0
- package/form/components/form/components/fields/dropdown-menu/components/index.d.ts +1 -0
- package/form/components/form/components/fields/dropdown-menu/components/rotating-chevron/index.d.ts +1 -0
- package/form/components/form/components/fields/dropdown-menu/components/rotating-chevron/rotating-chevron.d.ts +6 -0
- package/form/components/form/components/fields/dropdown-menu/dropdown-menu.d.ts +3 -0
- package/form/components/form/components/fields/dropdown-menu/index.d.ts +1 -0
- package/form/components/form/components/fields/index.d.ts +5 -0
- package/form/components/form/components/fields/input/index.d.ts +1 -0
- package/form/components/form/components/fields/input/input.d.ts +39 -0
- package/form/components/form/components/fields/multiple-options/index.d.ts +1 -0
- package/form/components/form/components/fields/multiple-options/multiple-options.d.ts +3 -0
- package/form/components/form/components/fields/password/index.d.ts +1 -0
- package/form/components/form/components/fields/password/password.d.ts +3 -0
- package/form/components/form/components/index.d.ts +2 -0
- package/form/components/form/form.d.ts +3 -0
- package/form/components/form/form.mocks.d.ts +18 -0
- package/form/components/form/form.reducer.d.ts +3 -0
- package/form/components/form/form.types.d.ts +189 -0
- package/form/components/form/index.d.ts +1 -0
- package/form/components/index.d.ts +1 -0
- package/form/components/password-rules/password-rules.d.ts +1 -1
- package/form/components/rating/rating.d.ts +1 -1
- package/form/types/contact-form/contact-form.d.ts +12 -0
- package/form/types/contact-form/index.d.ts +1 -0
- package/form/types/index.d.ts +3 -1
- package/form/types/signup-form/components/index.d.ts +1 -0
- package/form/types/signup-form/components/success-message.d.ts +4 -0
- package/form/types/signup-form/index.d.ts +1 -0
- package/form/types/signup-form/signup-form.d.ts +25 -0
- package/form/types/signup-form/signup-form.helpers.d.ts +41 -0
- package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +56 -0
- package/general/buttons/button/button.d.ts +1 -1
- package/helpers/in-development.d.ts +1 -0
- package/helpers/index.d.ts +4 -3
- package/index.js +34 -15
- package/index.mjs +5422 -2940
- package/layout/content-layout/contact-footer/contact-footer.d.ts +5 -0
- package/layout/content-layout/contact-footer/index.d.ts +1 -0
- package/layout/content-layout/index.d.ts +1 -0
- package/mappers/index.d.ts +1 -1
- package/mappers/{mapGetSteamData.d.ts → map-get-steam-data.d.ts} +1 -1
- package/modals/index.d.ts +1 -1
- package/navigation/filters/filters.d.ts +1 -1
- package/navigation/more-menu/more-menu.d.ts +1 -1
- package/package.json +2 -1
- package/sections/full-width-section/full-width-section.d.ts +2 -0
- package/sections/logo-section/logo-section.d.ts +1 -1
- package/style.css +1 -1
- package/styles/README.md +28 -0
- package/styles/base/_accessibility.scss +21 -11
- package/styles/base/_blockquotes.scss +31 -20
- package/styles/base/_fonts.scss +10 -6
- package/styles/base/_hr.scss +9 -8
- package/styles/base/_index.scss +2 -13
- package/styles/base/_layout.scss +5 -4
- package/styles/base/_links.scss +11 -13
- package/styles/base/_lists.scss +26 -13
- package/styles/base/_overlays.scss +34 -32
- package/styles/base/_table.scss +40 -27
- package/styles/base/_text.scss +128 -63
- package/styles/base/_titles.scss +192 -114
- package/styles/base/buttons/_button-wrapper.scss +23 -18
- package/styles/base/buttons/_buttons.scss +246 -169
- package/styles/base/buttons/_icons.scss +26 -26
- package/styles/base/buttons/_index.scss +1 -2
- package/styles/base/buttons/_mixins.scss +9 -3
- package/styles/base/buttons/_sizes.scss +47 -8
- package/styles/base/form/_fields.scss +50 -41
- package/styles/base/form/_form.scss +26 -0
- package/styles/base/form/_index.scss +1 -2
- package/styles/base/form/_labels.scss +12 -0
- package/styles/base/form/_search-button.scss +17 -17
- package/styles/functions/_index.scss +1 -1
- package/styles/functions/_maps.scss +25 -0
- package/styles/functions/_size-conversions.scss +3 -3
- package/styles/index.scss +3 -5
- package/styles/mixins/_animations.scss +1 -1
- package/styles/mixins/_backgrounds.scss +8 -2
- package/styles/mixins/_breakpoints.scss +1 -1
- package/styles/mixins/_browsers.scss +4 -2
- package/styles/mixins/_containers.scss +0 -1
- package/styles/mixins/_index.scss +2 -8
- package/styles/mixins/_queries.scss +11 -0
- package/styles/mixins/_selectors.scss +1 -1
- package/styles/mixins/_styles.scss +23 -21
- package/styles/mixins/_transitions.scss +19 -15
- package/styles/reset/_index.scss +1 -1
- package/styles/reset/_reset.scss +104 -20
- package/styles/variables/_index.scss +1 -3
- package/styles/variables/assets/_assets.scss +0 -1
- package/styles/variables/assets/_index.scss +1 -1
- package/styles/variables/colors/_colors.scss +53 -53
- package/styles/variables/colors/_index.scss +1 -1
- package/styles/variables/colors/theme/_banners.scss +26 -0
- package/styles/variables/colors/theme/_base.scss +88 -0
- package/styles/variables/colors/theme/_cards.scss +24 -0
- package/styles/variables/colors/theme/_communities.scss +7 -0
- package/styles/variables/colors/theme/_discussion.scss +20 -0
- package/styles/variables/colors/theme/_form.scss +25 -0
- package/styles/variables/colors/theme/_general.scss +9 -0
- package/styles/variables/colors/theme/_index.scss +8 -0
- package/styles/variables/colors/theme/_layout.scss +50 -0
- package/styles/variables/colors/theme/_loaders.scss +20 -0
- package/styles/variables/colors/theme/_modals.scss +14 -0
- package/styles/variables/colors/theme/_navigation.scss +41 -0
- package/styles/variables/colors/theme/_pages.scss +9 -0
- package/styles/variables/colors/theme/_text.scss +47 -0
- package/styles/variables/colors/theme/_user.scss +16 -0
- package/styles/variables/sizes/_common.scss +1 -1
- package/styles/variables/sizes/_index.scss +1 -1
- package/text/helper-text-box/helper-text-box.d.ts +1 -1
- package/text/hide-show-text-box/hide-show-text-box.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/styles/variables/colors/_theme.scss +0 -312
package/styles/base/_text.scss
CHANGED
|
@@ -1,61 +1,115 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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,
|
|
15
|
-
|
|
31
|
+
p,
|
|
32
|
+
li,
|
|
33
|
+
small {
|
|
34
|
+
color: get-map($theme, 'text');
|
|
16
35
|
font-weight: 500;
|
|
17
36
|
|
|
18
|
-
.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
|
|
23
|
-
line-height: px-to-rem(map
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
72
|
+
margin-bottom: px-to-rem(get-map($default, 'margin-bottom'));
|
|
39
73
|
|
|
40
|
-
|
|
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
|
-
|
|
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
|
|
47
|
-
line-height: px-to-rem(map
|
|
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
|
-
|
|
50
|
-
|
|
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 {
|
|
55
|
-
|
|
101
|
+
strong {
|
|
102
|
+
font-weight: 900;
|
|
103
|
+
}
|
|
56
104
|
|
|
57
|
-
|
|
58
|
-
|
|
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 {
|
|
124
|
+
address {
|
|
125
|
+
font-style: normal;
|
|
126
|
+
}
|
|
71
127
|
|
|
72
128
|
#{$special-text-elements} {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
87
|
-
line-height: px-to-rem(map
|
|
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
|
-
|
|
90
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
}
|
package/styles/base/_titles.scss
CHANGED
|
@@ -1,159 +1,237 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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(
|
|
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
|
-
|
|
24
|
-
|
|
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
|
|
37
|
-
font-size: px-to-rem(map
|
|
38
|
-
color: map
|
|
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
|
|
41
|
-
letter-spacing: px-to-rem(map
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
|
52
|
-
font-size: px-to-rem(map
|
|
53
|
-
color: map
|
|
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
|
|
56
|
-
letter-spacing: px-to-rem(map
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
66
|
-
font-size: px-to-rem(map
|
|
67
|
-
color: map
|
|
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
|
|
71
|
-
letter-spacing: px-to-rem(map
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
81
|
-
|
|
82
|
-
|
|
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
|
|
160
|
+
line-height: px-to-rem(get-map($h2, 'line-height'));
|
|
86
161
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|
95
|
-
|
|
96
|
-
|
|
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
|
|
175
|
+
line-height: px-to-rem(get-map($h3, 'line-height'));
|
|
100
176
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
109
|
-
|
|
110
|
-
|
|
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
|
|
190
|
+
line-height: px-to-rem(get-map($h4, 'line-height'));
|
|
114
191
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|
205
|
+
line-height: px-to-rem(get-map($h5, 'line-height'));
|
|
128
206
|
|
|
129
|
-
|
|
130
|
-
|
|
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
|
|
136
|
-
color: map
|
|
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
|
|
217
|
+
line-height: px-to-rem(get-map($h6, 'line-height'));
|
|
140
218
|
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
148
|
-
font-size: px-to-rem(map
|
|
149
|
-
color: map
|
|
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
|
|
229
|
+
line-height: px-to-rem(get-map($subtitle, 'line-height'));
|
|
152
230
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
@
|
|
2
|
-
@import './../../functions',
|
|
3
|
-
'./../../mixins',
|
|
4
|
-
'./../../variables';
|
|
1
|
+
@import './../../functions', './../../mixins', './../../variables';
|
|
5
2
|
|
|
6
|
-
$button-wrapper-button: (
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
li {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-content: center;
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
&:last-child {
|
|
29
|
+
margin-bottom: px-to-rem(get-map($button-wrapper-button, 'margin'));
|
|
26
30
|
}
|
|
31
|
+
}
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
button,
|
|
34
|
+
.button {
|
|
35
|
+
margin-top: auto;
|
|
36
|
+
margin-bottom: auto;
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
|
-
|
|
34
|
-
}
|
|
39
|
+
}
|