@madj2k/fe-frontend-kit 2.0.1 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madj2k/fe-frontend-kit",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Shared frontend utilities, menus and mixins for projects",
5
5
  "main": "index.js",
6
6
  "style": "index.scss",
@@ -27,7 +27,7 @@
27
27
  /// @author Steffen Kroggel <developer@steffenkroggel>
28
28
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
29
29
  ///
30
- @mixin accessibility-outline ($color: $color-outline, $width: 3px) {
30
+ @mixin accessibility-outline ($color: var(--bs-primary), $width: 3px) {
31
31
 
32
32
  &:focus,
33
33
  &:focus-within {
@@ -23,7 +23,7 @@
23
23
  /// @author Steffen Kroggel <developer@steffenkroggel>
24
24
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
25
25
  ///
26
- @mixin background-color-classes($map: $color-map) {
26
+ @mixin background-color-classes($map) {
27
27
  @each $key, $value in $map {
28
28
  &-#{$key} {
29
29
  background-color: $value;
@@ -67,7 +67,7 @@
67
67
  /// @author Steffen Kroggel <developer@steffenkroggel>
68
68
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
69
69
  ///
70
- @mixin font-color-classes($map: $color-map) {
70
+ @mixin font-color-classes($map) {
71
71
  @each $key, $value in $map {
72
72
  &-#{$key} {
73
73
  color: $value !important;
@@ -37,9 +37,11 @@
37
37
  /// @license
38
38
  /// GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
39
39
  ///
40
+ $color-secondary: #00ff00 !default; // Fallback
41
+ $color-primary: #ff0000 !default; // Fallback
40
42
  @mixin checkbox(
41
43
  $size: 16px,
42
- $default-bg-color: $color-white,
44
+ $default-bg-color: $color-secondary,
43
45
  $default-border-color: $color-secondary,
44
46
  $default-icon: null,
45
47
  $active-bg-color: $color-primary,
@@ -133,11 +135,11 @@
133
135
  ///
134
136
  @mixin radio(
135
137
  $size: 16px,
136
- $default-bg-color: $color-white,
137
- $default-border-color: $color-secondary,
138
+ $default-bg-color: var(--bs-secondary),
139
+ $default-border-color: var(--bs-secondary),
138
140
  $default-icon: null,
139
- $active-bg-color: $color-primary,
140
- $active-border-color: $color-primary,
141
+ $active-bg-color: var(--bs-primary),
142
+ $active-border-color: var(--bs-primary),
141
143
  $active-icon: '../Images/input-radio-active.svg'
142
144
  ) {
143
145
  @include checkbox(
@@ -0,0 +1,88 @@
1
+ /// Applies responsive font-size and line-height for a given font style from the `$font-formats` map.
2
+ ///
3
+ /// Supports multiple breakpoints: mobile, tablet, and desktop. default is the fallback
4
+ /// Used as a base mixin for semantic text styles like `h1`, `copy`, etc.
5
+ ///
6
+ /// $font-formats: (
7
+ //// 'h1': (
8
+ //// 'breakpoint': (
9
+ //// 'font-family': <font-family>,
10
+ //// 'font-weight': <font-weight>,
11
+ //// 'font-size': rem-calc(<size in px>),
12
+ //// 'line-height': rem-calc(<line height in px>)
13
+ //// ),
14
+ //// ...
15
+ //// ),
16
+ //// ...
17
+ //// )
18
+ ///
19
+ /// @group Typography
20
+ /// @param {Map} $font-formats - A map of font style definitions. Defaults to the global `$font-formats` map.
21
+ /// @param {String} $font-format - The key name of the format to apply (e.g., 'h1', 'copy-small').
22
+ ///
23
+ /// @author Steffen Kroggel <developer@steffenkroggel>
24
+ /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
25
+ ///
26
+ @mixin font-format($font-formats, $font-format: 'h1') {
27
+ $format-data: map-get($font-formats, $font-format);
28
+ $mobile-data: map-get($format-data, 'mobile');
29
+ $default-data: map-get($format-data, 'default');
30
+ $keys: map-keys(if($mobile-data, $mobile-data, $default-data));
31
+
32
+ @each $key in $keys {
33
+ $value: if($mobile-data,
34
+ map-get($mobile-data, $key),
35
+ map-get($default-data, $key)
36
+ );
37
+ #{$key}: $value;
38
+ }
39
+
40
+ @if map-has-key($format-data, 'tablet') {
41
+ @include media-breakpoint-up(lg) {
42
+ @each $key in $keys {
43
+ #{$key}: map-get(map-get($format-data, 'tablet'), $key);
44
+ }
45
+ }
46
+ }
47
+
48
+ @if map-has-key($format-data, 'desktop') {
49
+ @include media-breakpoint-up(xl) {
50
+ @each $key in $keys {
51
+ #{$key}: map-get(map-get($format-data, 'desktop'), $key);
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ /// Enables word breaking and hyphenation for improved long text handling.
58
+ ///
59
+ /// Works across modern and legacy browsers.
60
+ ///
61
+ /// @group Utilities
62
+ ///
63
+ /// @author Steffen Kroggel <developer@steffenkroggel>
64
+ /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
65
+ ///
66
+ @mixin hyphenate() {
67
+ overflow-wrap: break-word;
68
+ word-break: break-word;
69
+ -webkit-hyphens: auto;
70
+ -ms-hyphens: auto;
71
+ -moz-hyphens: auto;
72
+ hyphens: auto;
73
+ }
74
+
75
+ /// Resets list styles: removes bullets and spacing.
76
+ ///
77
+ /// Useful for unstyled lists or when customizing lists from scratch.
78
+ ///
79
+ /// @group Utilities
80
+ ///
81
+ /// @author Steffen Kroggel <developer@steffenkroggel>
82
+ /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
83
+ ///
84
+ @mixin list-reset {
85
+ list-style: none;
86
+ margin: 0;
87
+ padding: 0;
88
+ }
@@ -31,12 +31,12 @@
31
31
  /// @author Steffen Kroggel <developer@steffenkroggel>
32
32
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
33
33
  @mixin nav-block(
34
- $link-color: $color-secondary,
35
- $active-color: $color-primary
34
+ $link-color: var(--bs-secondary),
35
+ $active-color: var(--bs-primary)
36
36
  ) {
37
37
 
38
38
  &-list {
39
- @include list-reset;
39
+ @include list-reset();
40
40
  display: block;
41
41
  }
42
42
 
@@ -94,11 +94,11 @@
94
94
  ///
95
95
  @mixin nav-inline(
96
96
  $list-gap: $spacer,
97
- $link-color: $color-secondary,
98
- $link-active-color: $color-primary
97
+ $link-color: var(--bs-secondary),
98
+ $link-active-color: var(--bs-primary)
99
99
  ) {
100
100
  &-list {
101
- @include list-reset;
101
+ @include list-reset();
102
102
  display: flex;
103
103
  gap: rem-calc($list-gap);
104
104
  }
@@ -168,13 +168,13 @@
168
168
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
169
169
  ///
170
170
  @mixin nav-pulldown(
171
- $pad-x: $spacer,
171
+ $pad-x: 16px,
172
172
  $pad-y: 0,
173
173
  $item-y: 10,
174
174
  $item-gap: 12,
175
- $bg-color: $color-primary,
176
- $text-color: $color-white,
177
- $border-color: $color-white,
175
+ $bg-color: var(--bs-primary),
176
+ $text-color: var(--bs-secondary),
177
+ $border-color: var(--bs-secondary),
178
178
  $border-width: 1px
179
179
  ) {
180
180
 
@@ -187,7 +187,7 @@
187
187
  border: rem-calc($border-width) solid $border-color;
188
188
 
189
189
  &-list {
190
- @include list-reset;
190
+ @include list-reset();
191
191
 
192
192
  &-item {
193
193
  @include copy;
@@ -244,7 +244,7 @@
244
244
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
245
245
  ///
246
246
  @mixin nav-toggle-group(
247
- $gap: $spacer
247
+ $gap: 16px
248
248
  ) {
249
249
  display: flex;
250
250
  align-items: center;
@@ -289,11 +289,11 @@
289
289
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
290
290
  ///
291
291
  @mixin nav-toggle(
292
- $icon-size: $spacer,
293
- $icon-color: $color-primary,
292
+ $icon-size: 16px,
293
+ $icon-color: var(--bs-primary),
294
294
  $icon-mappings: (
295
- "icon-hamburger": $icon-close,
296
- "icon-plus": $icon-minus
295
+ "icon-hamburger": unquote('"\\e905"'),
296
+ "icon-plus": unquote('"\\e908"')
297
297
  )
298
298
  ) {
299
299
  background-color: transparent;
@@ -76,6 +76,13 @@
76
76
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
77
77
  ///
78
78
  @mixin page-padding(
79
+ $page-padding: (
80
+ 'sm': 16px,
81
+ 'md': 24px,
82
+ 'lg': 32px,
83
+ 'xl': 48px,
84
+ 'xxl': 60px
85
+ ),
79
86
  $page-wrap-class: '.page',
80
87
  $wrap-class: '.fullwidth',
81
88
  $default-padding: 16px
@@ -56,8 +56,37 @@
56
56
  $block-class: 'csp-block',
57
57
  $not-last-class: 'csp-not-last',
58
58
  $utility-append-class: 'sp',
59
- $csp-blocks: $content-spacers-blocks,
60
- $content-spacers: $content-spacers
59
+ $csp-blocks: (
60
+ 'text',
61
+ 'text-image',
62
+ 'text-video'
63
+ ),
64
+ $content-spacers: (
65
+ 'xs': (
66
+ 'section': 48px, // space between different sections
67
+ 'block': 16px // space between content blocks
68
+ ),
69
+ 'sm': (
70
+ 'section': 48px,
71
+ 'block': 16px
72
+ ),
73
+ 'md': (
74
+ 'section': 48px,
75
+ 'block': 16px
76
+ ),
77
+ 'lg': (
78
+ 'section': 48px,
79
+ 'block': 16px
80
+ ),
81
+ 'xl': (
82
+ 'section': 48px,
83
+ 'block': 16px
84
+ ),
85
+ 'xxl': (
86
+ 'section': 48px,
87
+ 'block': 16px
88
+ )
89
+ ),
61
90
  ) {
62
91
  @each $breakpoint, $values in $grid-breakpoints {
63
92
  $spacer-section: map-get(map-get($content-spacers, $breakpoint), 'section');
@@ -56,15 +56,15 @@
56
56
  /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
57
57
  ///
58
58
  @mixin toggle-list(
59
- $padding-y: $spacer,
60
- $border-color: $color-primary,
59
+ $padding-y: 16px,
60
+ $border-color: var(--bs-primary),
61
61
  $border-size: 1px,
62
- $font-color: $color-secondary,
63
- $font-color-active: $color-primary,
62
+ $font-color: var(--bs-secondary),
63
+ $font-color-active: var(--bs-primary),
64
64
  $icon-size: 30px,
65
- $icon-style: $icon-arrow-right
65
+ $icon-style: ''
66
66
  ) {
67
- @include list-reset;
67
+ @include list-reset();
68
68
  display: flex;
69
69
  flex-direction: column;
70
70
 
@@ -128,6 +128,4 @@
128
128
  }
129
129
  }
130
130
  }
131
-
132
-
133
131
  }
@@ -0,0 +1,11 @@
1
+ @import './accessibility';
2
+ @import './colors';
3
+ @import './flex-box';
4
+ @import './form';
5
+ @import './format';
6
+ @import './icons';
7
+ @import './nav';
8
+ @import './page';
9
+ @import './section';
10
+ @import './toggle-list';
11
+ @import './unit';
@@ -1,20 +1 @@
1
- @use "bootstrap/scss/functions";
2
- @use "bootstrap/scss/variables";
3
- @use "bootstrap/scss/mixins";
4
-
5
- @forward '00_mixins/accessibility';
6
- @forward '00_mixins/colors';
7
- @forward '00_mixins/effects';
8
- @forward '00_mixins/flex-box';
9
- @forward '00_mixins/form';
10
- @forward '00_mixins/format';
11
- @forward '00_mixins/icons';
12
- @forward '00_mixins/nav';
13
- @forward '00_mixins/page';
14
- @forward '00_mixins/section';
15
- @forward '00_mixins/toggle-list';
16
- @forward '00_mixins/unit';
17
-
18
- @forward '10_config/colors';
19
- @forward '10_config/font';
20
- @forward '10_config/maps';
1
+ @import '10_mixins/index';
@@ -1,45 +0,0 @@
1
- /// Adds a custom underline to text elements using a pseudo-element.
2
- ///
3
- /// This mixin creates a visual underline using `::after`, which allows
4
- /// for more control than `text-decoration`. It supports customizable
5
- /// color and thickness, and adjusts vertical spacing responsively.
6
- ///
7
- /// Useful for link-like text styling or emphasis elements.
8
- ///
9
- /// @group Effects
10
- ///
11
- /// @param {Color} $color - The underline color. Default: `$color-primary`.
12
- /// @param {Length} $width - Thickness of the underline (in px, converted to `rem`). Default: `2px`.
13
- ///
14
- /// @example scss
15
- /// .highlighted-text {
16
- /// @include underline($color-tertiary, 3px);
17
- /// }
18
- ///
19
- /// @example css
20
- /// .highlighted-text::after {
21
- /// border-bottom: 0.1875rem solid #cc0000;
22
- /// bottom: -0.09em;
23
- /// }
24
- ///
25
- /// @author Steffen Kroggel <developer@steffenkroggel>
26
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
27
- ///
28
- @mixin underline ($color: $color-primary, $width: 2px) {
29
-
30
- position: relative;
31
- display: inline-block;
32
-
33
- &::after {
34
- content: '';
35
- position: absolute;
36
- left: 0;
37
- right: 0;
38
- bottom: -0.09em;
39
- border-bottom: rem-calc($width) solid $color;
40
-
41
- @include media-breakpoint-up(xl) {
42
- bottom: -0.15em;
43
- }
44
- }
45
- }
@@ -1,208 +0,0 @@
1
- /// Applies responsive font-size and line-height for a given font style from the `$font-formats` map.
2
- ///
3
- /// Supports multiple breakpoints: mobile, tablet, and desktop. default is the fallback
4
- /// Used as a base mixin for semantic text styles like `h1`, `copy`, etc.
5
- ///
6
- /// @group Typography
7
- /// @param {String} $font-format - The key name of the format to apply (e.g., 'h1', 'copy-small').
8
- /// @param {Map} $font-formats - A map of font style definitions. Defaults to the global `$font-formats` map.
9
- ///
10
- /// @author Steffen Kroggel <developer@steffenkroggel>
11
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
12
- ///
13
- @mixin font-format($font-format: 'h1', $font-formats: $font-formats) {
14
- $format-data: map-get($font-formats, $font-format);
15
- $mobile-data: map-get($format-data, 'mobile');
16
- $default-data: map-get($format-data, 'default');
17
- $keys: map-keys(if($mobile-data, $mobile-data, $default-data));
18
-
19
- @each $key in $keys {
20
- $value: if($mobile-data,
21
- map-get($mobile-data, $key),
22
- map-get($default-data, $key)
23
- );
24
- #{$key}: $value;
25
- }
26
-
27
- @if map-has-key($format-data, 'tablet') {
28
- @include media-breakpoint-up(lg) {
29
- @each $key in $keys {
30
- #{$key}: map-get(map-get($format-data, 'tablet'), $key);
31
- }
32
- }
33
- }
34
-
35
- @if map-has-key($format-data, 'desktop') {
36
- @include media-breakpoint-up(xl) {
37
- @each $key in $keys {
38
- #{$key}: map-get(map-get($format-data, 'desktop'), $key);
39
- }
40
- }
41
- }
42
- }
43
-
44
- /// Typography style for `<h1>` elements.
45
- ///
46
- /// @group Typography
47
- ///
48
- /// @author Steffen Kroggel <developer@steffenkroggel>
49
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
50
- ///
51
- @mixin h1 {
52
- @include font-format('h1');
53
- }
54
-
55
- /// Typography style for `<h2>` elements.
56
- ///
57
- /// @group Typography
58
- ///
59
- /// @author Steffen Kroggel <developer@steffenkroggel>
60
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
61
- ///
62
- @mixin h2 {
63
- @include font-format('h2');
64
- }
65
-
66
- /// Typography style for `<h3>` elements.
67
- ///
68
- /// @group Typography
69
- ///
70
- /// @author Steffen Kroggel <developer@steffenkroggel>
71
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
72
- ///
73
- @mixin h3 {
74
- @include font-format('h3');
75
- }
76
-
77
- /// Typography style for `<h4>` elements.
78
- ///
79
- /// @group Typography
80
- ///
81
- /// @author Steffen Kroggel <developer@steffenkroggel>
82
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
83
- ///
84
- @mixin h4 {
85
- @include font-format('h4');
86
- }
87
-
88
- /// Typography style for `<h5>` elements.
89
- ///
90
- /// @group Typography
91
- ///
92
- /// @author Steffen Kroggel <developer@steffenkroggel>
93
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
94
- ///
95
- @mixin h5 {
96
- @include font-format('h5');
97
- }
98
-
99
- /// Typography style for `<h6>` elements.
100
- ///
101
- /// @group Typography
102
- ///
103
- /// @author Steffen Kroggel <developer@steffenkroggel>
104
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
105
- ///
106
- @mixin h6 {
107
- @include font-format('h6');
108
- }
109
-
110
-
111
- /// Typography style for body copy text.
112
- ///
113
- /// @group Typography
114
- ///
115
- /// @author Steffen Kroggel <developer@steffenkroggel>
116
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
117
- ///
118
- @mixin copy {
119
- @include font-format('copy');
120
- }
121
-
122
- /// Typography style for small body copy.
123
- ///
124
- /// @group Typography
125
- ///
126
- /// @author Steffen Kroggel <developer@steffenkroggel>
127
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
128
- ///
129
- @mixin copy-small {
130
- @include font-format('copy-small');
131
- }
132
-
133
- /// Typography style for links (without additional decoration).
134
- ///
135
- /// @group Typography
136
- ///
137
- /// @author Steffen Kroggel <developer@steffenkroggel>
138
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
139
- ///
140
- @mixin link {
141
- @include font-format('link');
142
- }
143
-
144
- /// Typography style for overline/captions.
145
- ///
146
- /// @group Typography
147
- ///
148
- /// @author Steffen Kroggel <developer@steffenkroggel>
149
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
150
- ///
151
- @mixin overline {
152
- @include font-format('overline');
153
- }
154
-
155
- /// Typography style for subheaders.
156
- ///
157
- /// @group Typography
158
- ///
159
- /// @author Steffen Kroggel <developer@steffenkroggel>
160
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
161
- ///
162
- @mixin subheader {
163
- @include font-format('subheader');
164
- }
165
-
166
- /// Applies typographic styles for bold text using the bold font family.
167
- ///
168
- /// @group Utilities
169
- ///
170
- /// @author Steffen Kroggel <developer@steffenkroggel>
171
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
172
- ///
173
- @mixin bold {
174
- @include font-format('bold');
175
- }
176
-
177
- /// Enables word breaking and hyphenation for improved long text handling.
178
- ///
179
- /// Works across modern and legacy browsers.
180
- ///
181
- /// @group Utilities
182
- ///
183
- /// @author Steffen Kroggel <developer@steffenkroggel>
184
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
185
- ///
186
- @mixin hyphenate() {
187
- overflow-wrap: break-word;
188
- word-break: break-word;
189
- -webkit-hyphens: auto;
190
- -ms-hyphens: auto;
191
- -moz-hyphens: auto;
192
- hyphens: auto;
193
- }
194
-
195
- /// Resets list styles: removes bullets and spacing.
196
- ///
197
- /// Useful for unstyled lists or when customizing lists from scratch.
198
- ///
199
- /// @group Utilities
200
- ///
201
- /// @author Steffen Kroggel <developer@steffenkroggel>
202
- /// @license GNU General Public License v3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
203
- ///
204
- @mixin list-reset {
205
- list-style: none;
206
- margin: 0;
207
- padding: 0;
208
- }
@@ -1,17 +0,0 @@
1
- /* ==================================================
2
- * Basic variables
3
- * ================================================== */
4
- $color-map: (
5
- 'red': #ff0000,
6
- 'primary': #00ff00,
7
- 'secondary': #0000ff,
8
- ) !default;
9
-
10
- // some basic variables
11
- $color-white: #fff !default;
12
- $color-black: #000000 !default;
13
- $color-primary: map-get($color-map, 'primary') !default;
14
- $color-secondary: map-get($color-map, 'secondary') !default;
15
- $color-text: map-get($color-map, 'secondary') !default;
16
- $color-error: map-get($color-map, 'primary') !default;
17
- $color-outline: map-get($color-map, 'primary') !default;
@@ -1,228 +0,0 @@
1
- /* ==================================================
2
- * Font variables
3
- * ================================================== */
4
- // fonts
5
- $font-family-sans: "Verdana", "Arial", sans-serif !default;
6
- $font-family-sans-bold: "Verdana", "Arial", sans-serif !default;
7
-
8
- $font-weight-lighter: lighter !default;
9
- $font-weight-light: 300 !default;
10
- $font-weight-normal: 400 !default;
11
- $font-weight-medium: 500 !default;
12
- $font-weight-semibold: 600 !default;
13
- $font-weight-bold: 700 !default;
14
- $font-weight-bolder: bolder !default;
15
-
16
- $font-formats: (
17
- 'h1': (
18
- 'desktop': (
19
- 'font-family': $font-family-sans,
20
- 'font-weight': $font-weight-normal,
21
- 'font-size': rem-calc(104),
22
- 'line-height': rem-calc(100)
23
- ),
24
- 'tablet': (
25
- 'font-family': $font-family-sans,
26
- 'font-weight': $font-weight-normal,
27
- 'font-size': rem-calc(40),
28
- 'line-height': rem-calc(40)
29
- ),
30
- 'mobile': (
31
- 'font-family': $font-family-sans,
32
- 'font-weight': $font-weight-normal,
33
- 'font-size': rem-calc(40),
34
- 'line-height': rem-calc(40)
35
- )
36
- ),
37
- 'h2': (
38
- 'desktop': (
39
- 'font-family': $font-family-sans,
40
- 'font-weight': $font-weight-normal,
41
- 'font-size': rem-calc(62),
42
- 'line-height': rem-calc(60)
43
- ),
44
- 'tablet': (
45
- 'font-family': $font-family-sans,
46
- 'font-weight': $font-weight-normal,
47
- 'font-size': rem-calc(32),
48
- 'line-height': rem-calc(32)
49
- ),
50
- 'mobile': (
51
- 'font-family': $font-family-sans,
52
- 'font-weight': $font-weight-normal,
53
- 'font-size': rem-calc(32),
54
- 'line-height': rem-calc(32)
55
- )
56
- ),
57
- 'h3': (
58
- 'desktop': (
59
- 'font-family': $font-family-sans,
60
- 'font-weight': $font-weight-normal,
61
- 'font-size': rem-calc(48),
62
- 'line-height': rem-calc(48)
63
- ),
64
- 'tablet': (
65
- 'font-family': $font-family-sans,
66
- 'font-weight': $font-weight-normal,
67
- 'font-size': rem-calc(26),
68
- 'line-height': rem-calc(26)
69
- ),
70
- 'mobile': (
71
- 'font-family': $font-family-sans,
72
- 'font-weight': $font-weight-normal,
73
- 'font-size': rem-calc(26),
74
- 'line-height': rem-calc(26)
75
- )
76
- ),
77
- 'h4': (
78
- 'desktop': (
79
- 'font-family': $font-family-sans,
80
- 'font-weight': $font-weight-normal,
81
- 'font-size': rem-calc(36),
82
- 'line-height': rem-calc(36)
83
- ),
84
- 'tablet': (
85
- 'font-family': $font-family-sans,
86
- 'font-weight': $font-weight-normal,
87
- 'font-size': rem-calc(22),
88
- 'line-height': rem-calc(22)
89
- ),
90
- 'mobile': (
91
- 'font-family': $font-family-sans,
92
- 'font-weight': $font-weight-normal,
93
- 'font-size': rem-calc(22),
94
- 'line-height': rem-calc(22)
95
- )
96
- ),
97
- 'h5': (
98
- 'desktop': (
99
- 'font-family': $font-family-sans,
100
- 'font-weight': $font-weight-normal,
101
- 'font-size': rem-calc(28),
102
- 'line-height': rem-calc(28)
103
- ),
104
- 'tablet': (
105
- 'font-family': $font-family-sans,
106
- 'font-weight': $font-weight-normal,
107
- 'font-size': rem-calc(18),
108
- 'line-height': rem-calc(18)
109
- ),
110
- 'mobile': (
111
- 'font-family': $font-family-sans,
112
- 'font-weight': $font-weight-normal,
113
- 'font-size': rem-calc(18),
114
- 'line-height': rem-calc(18)
115
- )
116
- ),
117
- 'h6': (
118
- 'desktop': (
119
- 'font-family': $font-family-sans,
120
- 'font-weight': $font-weight-normal,
121
- 'font-size': rem-calc(22),
122
- 'line-height': rem-calc(22)
123
- ),
124
- 'tablet': (
125
- 'font-family': $font-family-sans,
126
- 'font-weight': $font-weight-normal,
127
- 'font-size': rem-calc(16),
128
- 'line-height': rem-calc(16)
129
- ),
130
- 'mobile': (
131
- 'font-family': $font-family-sans,
132
- 'font-weight': $font-weight-normal,
133
- 'font-size': rem-calc(16),
134
- 'line-height': rem-calc(16)
135
- )
136
- ),
137
- 'copy': (
138
- 'desktop': (
139
- 'font-family': $font-family-sans,
140
- 'font-weight': $font-weight-normal,
141
- 'font-size': rem-calc(20),
142
- 'line-height': rem-calc(27)
143
- ),
144
- 'tablet': (
145
- 'font-family': $font-family-sans,
146
- 'font-weight': $font-weight-normal,
147
- 'font-size': rem-calc(16),
148
- 'line-height': rem-calc(24)
149
- ),
150
- 'mobile': (
151
- 'font-family': $font-family-sans,
152
- 'font-weight': $font-weight-normal,
153
- 'font-size': rem-calc(16),
154
- 'line-height': rem-calc(24)
155
- )
156
- ),
157
- 'copy-small': (
158
- 'desktop': (
159
- 'font-family': $font-family-sans,
160
- 'font-weight': $font-weight-normal,
161
- 'font-size': rem-calc(16),
162
- 'line-height': rem-calc(16)
163
- ),
164
- 'tablet': (
165
- 'font-family': $font-family-sans,
166
- 'font-weight': $font-weight-normal,
167
- 'font-size': rem-calc(14),
168
- 'line-height': rem-calc(14)
169
- ),
170
- 'mobile': (
171
- 'font-family': $font-family-sans,
172
- 'font-weight': $font-weight-normal,
173
- 'font-size': rem-calc(14),
174
- 'line-height': rem-calc(14)
175
- )
176
- ),
177
- 'overline': (
178
- 'desktop': (
179
- 'font-family': $font-family-sans,
180
- 'font-weight': $font-weight-normal,
181
- 'font-size': rem-calc(28),
182
- 'line-height': rem-calc(28)
183
- ),
184
- 'tablet': (
185
- 'font-family': $font-family-sans,
186
- 'font-weight': $font-weight-normal,
187
- 'font-size': rem-calc(18),
188
- 'line-height': rem-calc(18)
189
- ),
190
- 'mobile': (
191
- 'font-family': $font-family-sans,
192
- 'font-weight': $font-weight-normal,
193
- 'font-size': rem-calc(18),
194
- 'line-height': rem-calc(18)
195
- )
196
- ),
197
- 'subheader': (
198
- 'desktop': (
199
- 'font-family': $font-family-sans,
200
- 'font-weight': $font-weight-normal,
201
- 'font-size': rem-calc(28),
202
- 'line-height': rem-calc(28)
203
- ),
204
- 'tablet': (
205
- 'font-family': $font-family-sans,
206
- 'font-weight': $font-weight-normal,
207
- 'font-size': rem-calc(18),
208
- 'line-height': rem-calc(18)
209
- ),
210
- 'mobile': (
211
- 'font-family': $font-family-sans,
212
- 'font-weight': $font-weight-normal,
213
- 'font-size': rem-calc(18),
214
- 'line-height': rem-calc(18)
215
- )
216
- ),
217
- 'link': (
218
- 'default': (
219
- 'font-family': $font-family-sans,
220
- ),
221
- ),
222
- 'bold': (
223
- 'default': (
224
- 'font-family': $font-family-sans-bold,
225
- 'font-weight': 500
226
- ),
227
- ),
228
- ) !default;
@@ -1,51 +0,0 @@
1
- /* ==================================================
2
- * Basic maps
3
- * ================================================== */
4
- @use 'sass:math';
5
-
6
- $page-padding: (
7
- xs: $spacer,
8
- sm: $spacer, // mobile
9
- md: $spacer,
10
- lg: $spacer, // tablet
11
- xl: $spacer,
12
- xxl: $spacer,
13
- xxxl: $spacer
14
- ) !default;
15
-
16
- $content-spacers-blocks: (
17
- 'text',
18
- 'text-image',
19
- 'text-video'
20
- ) !default;
21
-
22
- $content-spacers: (
23
- 'xs': (
24
- 'section': map-get($spacers, 6), // space between different sections
25
- 'block': map-get($spacers, 3), // space between content blocks
26
- ),
27
- 'sm': (
28
- 'section': map-get($spacers, 6), // space between different sections
29
- 'block': map-get($spacers, 3), // space between content blocks
30
- ),
31
- 'md': (
32
- 'section': map-get($spacers, 6), // space between different sections
33
- 'block': map-get($spacers, 3), // space between content blocks
34
- ),
35
- 'lg': (
36
- 'section': map-get($spacers, 7), // space between different sections
37
- 'block': map-get($spacers, 6), // space between content blocks
38
- ),
39
- 'xl': (
40
- 'section': map-get($spacers, 7), // space between different sections
41
- 'block': map-get($spacers, 6), // space between content blocks
42
- ),
43
- 'xxl': (
44
- 'section': map-get($spacers, 7), // space between different sections
45
- 'block': map-get($spacers, 6), // space between content blocks
46
- ),
47
- 'xxxl': (
48
- 'section': map-get($spacers, 7), // space between different sections
49
- 'block': map-get($spacers, 6), // space between content blocks
50
- )
51
- ) !default;