@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21
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/README.md +12 -39
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
- package/dist/Switch/Switch.js +50 -17
- package/dist/Switch/typings.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -2
- package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
- package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
- package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
- package/theme-chalk/build.scss +1 -1
- package/theme-chalk/button/_mixins.scss +3 -3
- package/theme-chalk/button/button-group.scss +1 -1
- package/theme-chalk/button/button.scss +2 -2
- package/theme-chalk/button/index.scss +2 -2
- package/theme-chalk/button--bak/_mixins.scss +317 -0
- package/theme-chalk/button--bak/button-group.scss +83 -0
- package/theme-chalk/button--bak/button.scss +382 -0
- package/theme-chalk/button--bak/index.scss +2 -0
- package/theme-chalk/button-group.scss +80 -0
- package/theme-chalk/button.scss +304 -0
- package/theme-chalk/calendar/date-picker.scss +1 -1
- package/theme-chalk/calendar/date-range-picker.scss +1 -1
- package/theme-chalk/calendar/date-table.scss +164 -156
- package/theme-chalk/calendar/date-table.scss--bak +156 -0
- package/theme-chalk/calendar/index.scss +6 -6
- package/theme-chalk/calendar/month-table.scss +1 -1
- package/theme-chalk/calendar/picker-panel.scss +1 -1
- package/theme-chalk/calendar/year-table.scss +1 -1
- package/theme-chalk/{card/index.scss → card.scss} +1 -1
- package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
- package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
- package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
- package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
- package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
- package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
- package/theme-chalk/col/_mixins.scss +5 -3
- package/theme-chalk/col/index.scss +2 -2
- package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
- package/theme-chalk/color/index.scss +20 -0
- package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
- package/theme-chalk/common/index.scss +127 -178
- package/theme-chalk/common/var.scss +1632 -0
- package/theme-chalk/dark/css-vars.scss +39 -0
- package/theme-chalk/dark/var.scss +225 -0
- package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
- package/theme-chalk/dev.scss +2 -2
- package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
- package/theme-chalk/display.scss +1 -1
- package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
- package/theme-chalk/doc.scss +2 -2
- package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
- package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
- package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
- package/theme-chalk/{form/index.scss → form.scss} +1 -1
- package/theme-chalk/icon/fonts.scss +9 -9
- package/theme-chalk/icon/index.scss +1 -1
- package/theme-chalk/icon/scss/_animated.scss +1 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
- package/theme-chalk/icon/scss/_core.scss +2 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
- package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
- package/theme-chalk/icon/scss/_functions.scss +2 -1
- package/theme-chalk/icon/scss/_icons.scss +3 -4
- package/theme-chalk/icon/scss/_list.scss +1 -0
- package/theme-chalk/icon/scss/_mixins.scss +10 -7
- package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
- package/theme-chalk/icon/scss/_shims.scss +292 -290
- package/theme-chalk/icon/scss/_sizing.scss +2 -0
- package/theme-chalk/icon/scss/_stacked.scss +1 -0
- package/theme-chalk/icon/scss/brands.scss +8 -6
- package/theme-chalk/icon/scss/duotone.scss +6 -5
- package/theme-chalk/icon/scss/fontawesome.scss +13 -13
- package/theme-chalk/icon/scss/index.scss +12 -15
- package/theme-chalk/icon/scss/light.scss +3 -2
- package/theme-chalk/icon/scss/regular.scss +3 -2
- package/theme-chalk/icon/scss/solid.scss +3 -2
- package/theme-chalk/icon/scss/thin.scss +3 -2
- package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
- package/theme-chalk/index.scss +63 -57
- package/theme-chalk/input/_mixins.scss +1 -1
- package/theme-chalk/input/index.scss +2 -3
- package/theme-chalk/input/input-range.scss +2 -1
- package/theme-chalk/input/input.scss +2 -1
- package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
- package/theme-chalk/{link/index.scss → link.scss} +1 -1
- package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
- package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
- package/theme-chalk/{message/index.scss → message.scss} +2 -1
- package/theme-chalk/mixins/_button.scss +224 -0
- package/theme-chalk/mixins/_col.scss +33 -0
- package/theme-chalk/mixins/_var.scss +67 -0
- package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
- package/theme-chalk/mixins/function.scss +99 -0
- package/theme-chalk/mixins/mixins.scss +240 -0
- package/theme-chalk/mixins/utils.scss +39 -0
- package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
- package/theme-chalk/pagination.scss +303 -0
- package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
- package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
- package/theme-chalk/popper.scss +104 -0
- package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
- package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
- package/theme-chalk/radio-button.scss +169 -0
- package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
- package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
- package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
- package/theme-chalk/{row/index.scss → row.scss} +1 -1
- package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
- package/theme-chalk/select/index.scss +1 -1
- package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
- package/theme-chalk/switch.scss +300 -0
- package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
- package/theme-chalk/{table/index.scss → table.scss} +1 -1
- package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
- package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
- package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
- package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
- package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
- package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
- package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
- package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
- package/theme-chalk/tree/_directory.scss +1 -1
- package/theme-chalk/tree/_tree.scss +1 -1
- package/theme-chalk/tree/index.scss +2 -2
- package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
- package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
- package/theme-chalk/var.scss +83 -0
- package/theme-chalk/cascader/index.scss +0 -2
- package/theme-chalk/common/index.ts +0 -1
- package/theme-chalk/date-time-picker/index.scss +0 -3
- package/theme-chalk/descriptions/index.scss +0 -2
- package/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/theme-chalk/pagination/index.scss +0 -303
- package/theme-chalk/placeholder/index.scss +0 -120
- package/theme-chalk/radio/index.scss +0 -2
- package/theme-chalk/time-line/index.scss +0 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// CSS3 var
|
|
2
|
+
@use './var' as *;
|
|
3
|
+
@use '../mixins/_var.scss' as *;
|
|
4
|
+
@use '../mixins/mixins.scss' as *;
|
|
5
|
+
|
|
6
|
+
html.dark {
|
|
7
|
+
color-scheme: dark;
|
|
8
|
+
|
|
9
|
+
// hex colors
|
|
10
|
+
@each $type in (primary, success, warning, danger, error, info) {
|
|
11
|
+
@include set-css-color-type($colors, $type);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// --el-box-shadow-#{$type}
|
|
15
|
+
@include set-component-css-var('box-shadow', $box-shadow);
|
|
16
|
+
|
|
17
|
+
// color-scheme
|
|
18
|
+
// Background --el-bg-color-#{$type}
|
|
19
|
+
@include set-component-css-var('bg-color', $bg-color);
|
|
20
|
+
// --el-text-color-#{$type}
|
|
21
|
+
@include set-component-css-var('text-color', $text-color);
|
|
22
|
+
// --el-border-color-#{$type}
|
|
23
|
+
@include set-component-css-var('border-color', $border-color);
|
|
24
|
+
// Fill --el-fill-color-#{$type}
|
|
25
|
+
@include set-component-css-var('fill-color', $fill-color);
|
|
26
|
+
@include set-component-css-var('mask-color', $mask-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include dark(button) {
|
|
30
|
+
@include set-component-css-var('button', $button);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include dark(card) {
|
|
34
|
+
@include set-component-css-var('card', $card);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include dark(empty) {
|
|
38
|
+
@include set-component-css-var('empty', $empty);
|
|
39
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:color';
|
|
4
|
+
|
|
5
|
+
@use '../common/var.scss' as common;
|
|
6
|
+
@use '../mixins/mixins.scss' as *;
|
|
7
|
+
@use '../color/index.scss' as *;
|
|
8
|
+
@use '../mixins/function.scss' as *;
|
|
9
|
+
|
|
10
|
+
$colors: () !default;
|
|
11
|
+
@each $type in common.$types {
|
|
12
|
+
$colors: map.deep-merge(
|
|
13
|
+
(
|
|
14
|
+
$type: (
|
|
15
|
+
'base': map.get(common.$colors, $type, 'base'),
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
$colors
|
|
19
|
+
) !global;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// https://sass-lang.com/documentation/values/maps#immutability
|
|
23
|
+
// mix colors with white/black to generate light/dark level
|
|
24
|
+
@mixin set-color-mix-level(
|
|
25
|
+
$type,
|
|
26
|
+
$number,
|
|
27
|
+
$mode: 'light',
|
|
28
|
+
$mix-color: $color-white
|
|
29
|
+
) {
|
|
30
|
+
// hex mix color
|
|
31
|
+
$colors: map.deep-merge(
|
|
32
|
+
(
|
|
33
|
+
$type: (
|
|
34
|
+
'#{$mode}-#{$number}':
|
|
35
|
+
roundColor(
|
|
36
|
+
color.mix(
|
|
37
|
+
$mix-color,
|
|
38
|
+
map.get($colors, $type, 'base'),
|
|
39
|
+
math.percentage(math.div($number, 10))
|
|
40
|
+
)
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
),
|
|
44
|
+
$colors
|
|
45
|
+
) !global;
|
|
46
|
+
|
|
47
|
+
// for designer to view transparent
|
|
48
|
+
// $colors: map.deep-merge(
|
|
49
|
+
// (
|
|
50
|
+
// $type: (
|
|
51
|
+
// '#{$mode}-#{$number}':
|
|
52
|
+
// rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
|
|
53
|
+
// ),
|
|
54
|
+
// ),
|
|
55
|
+
// $colors
|
|
56
|
+
// ) !global;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Background
|
|
60
|
+
$bg-color: () !default;
|
|
61
|
+
$bg-color: map.merge(
|
|
62
|
+
(
|
|
63
|
+
'page': #0a0a0a,
|
|
64
|
+
'': #141414,
|
|
65
|
+
'overlay': #1d1e1f,
|
|
66
|
+
),
|
|
67
|
+
$bg-color
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
// dark-mode
|
|
71
|
+
@each $type in common.$types {
|
|
72
|
+
@for $i from 1 through 9 {
|
|
73
|
+
@include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@each $type in common.$types {
|
|
77
|
+
@include set-color-mix-level($type, 2, 'dark', common.$color-white);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// border
|
|
81
|
+
$border-color-base: #f5f8ff;
|
|
82
|
+
$border-color: () !default;
|
|
83
|
+
$border-color: map.merge(
|
|
84
|
+
(
|
|
85
|
+
'darker': rgba($border-color-base, 0.35),
|
|
86
|
+
'dark': rgba($border-color-base, 0.3),
|
|
87
|
+
'': rgba($border-color-base, 0.25),
|
|
88
|
+
'light': rgba($border-color-base, 0.2),
|
|
89
|
+
'lighter': rgba($border-color-base, 0.15),
|
|
90
|
+
'extra-light': rgba($border-color-base, 0.1),
|
|
91
|
+
),
|
|
92
|
+
$border-color
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
// mix to hex to avoid overlay issues
|
|
96
|
+
@each $key, $val in $border-color {
|
|
97
|
+
$border-color: map.merge(
|
|
98
|
+
$border-color,
|
|
99
|
+
(
|
|
100
|
+
$key: mix-overlay-color($val, map.get($bg-color, '')),
|
|
101
|
+
)
|
|
102
|
+
) !global;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Box-shadow
|
|
106
|
+
$box-shadow: () !default;
|
|
107
|
+
$box-shadow: map.merge(
|
|
108
|
+
(
|
|
109
|
+
'': (
|
|
110
|
+
0px 12px 32px 4px rgba(0, 0, 0, 0.36),
|
|
111
|
+
0px 8px 20px rgba(0, 0, 0, 0.72),
|
|
112
|
+
),
|
|
113
|
+
'light': (
|
|
114
|
+
0px 0px 12px rgba(0, 0, 0, 0.72),
|
|
115
|
+
),
|
|
116
|
+
'lighter': (
|
|
117
|
+
0px 0px 6px rgba(0, 0, 0, 0.72),
|
|
118
|
+
),
|
|
119
|
+
'dark': (
|
|
120
|
+
0px 16px 48px 16px rgba(0, 0, 0, 0.72),
|
|
121
|
+
0px 12px 32px #000000,
|
|
122
|
+
0px 8px 16px -8px #000000,
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
$box-shadow
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// fill
|
|
129
|
+
$fill-color-base: #fafcff;
|
|
130
|
+
$fill-color: () !default;
|
|
131
|
+
$fill-color: map.merge(
|
|
132
|
+
(
|
|
133
|
+
'darker': rgba($fill-color-base, 0.2),
|
|
134
|
+
'dark': rgba($fill-color-base, 0.16),
|
|
135
|
+
'': rgba($fill-color-base, 0.12),
|
|
136
|
+
'light': rgba($fill-color-base, 0.08),
|
|
137
|
+
'lighter': rgba($fill-color-base, 0.04),
|
|
138
|
+
'extra-light': rgba($fill-color-base, 0.02),
|
|
139
|
+
'blank': transparent,
|
|
140
|
+
),
|
|
141
|
+
$fill-color
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
// mix to hex to avoid overlay issues
|
|
145
|
+
@each $key, $val in $fill-color {
|
|
146
|
+
@if ($key != 'blank') {
|
|
147
|
+
$fill-color: map.merge(
|
|
148
|
+
$fill-color,
|
|
149
|
+
(
|
|
150
|
+
$key: mix-overlay-color($val, map.get($bg-color, '')),
|
|
151
|
+
)
|
|
152
|
+
) !global;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// text
|
|
157
|
+
$text-color-base: #f0f5ff;
|
|
158
|
+
$text-color: () !default;
|
|
159
|
+
$text-color: map.merge(
|
|
160
|
+
(
|
|
161
|
+
'primary': rgba($text-color-base, 0.95),
|
|
162
|
+
'regular': rgba($text-color-base, 0.85),
|
|
163
|
+
'secondary': rgba($text-color-base, 0.65),
|
|
164
|
+
'placeholder': rgba($text-color-base, 0.55),
|
|
165
|
+
'disabled': rgba($text-color-base, 0.4),
|
|
166
|
+
),
|
|
167
|
+
$text-color
|
|
168
|
+
);
|
|
169
|
+
// mix to hex to avoid overlay issues
|
|
170
|
+
@each $key, $val in $text-color {
|
|
171
|
+
$text-color: map.merge(
|
|
172
|
+
$text-color,
|
|
173
|
+
(
|
|
174
|
+
$key: mix-overlay-color($val, map.get($bg-color, '')),
|
|
175
|
+
)
|
|
176
|
+
) !global;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// mask
|
|
180
|
+
$mask-color: () !default;
|
|
181
|
+
$mask-color: map.merge(
|
|
182
|
+
(
|
|
183
|
+
'': rgba(0, 0, 0, 0.8),
|
|
184
|
+
'extra-light': rgba(0, 0, 0, 0.3),
|
|
185
|
+
),
|
|
186
|
+
$mask-color
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
// Button
|
|
190
|
+
// css3 var in packages/theme-chalk/src/button.scss
|
|
191
|
+
$button: () !default;
|
|
192
|
+
$button: map.merge(
|
|
193
|
+
(
|
|
194
|
+
'disabled-text-color': rgba(255, 255, 255, 0.5),
|
|
195
|
+
),
|
|
196
|
+
$button
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
// card
|
|
200
|
+
$card: () !default;
|
|
201
|
+
$card: map.merge(
|
|
202
|
+
(
|
|
203
|
+
'bg-color': getCssVar('bg-color', 'overlay'),
|
|
204
|
+
),
|
|
205
|
+
$card
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
// Empty
|
|
209
|
+
// css3 var in packages/theme-chalk/src/empty.scss
|
|
210
|
+
$empty: () !default;
|
|
211
|
+
$empty: map.merge(
|
|
212
|
+
(
|
|
213
|
+
'fill-color-0': getCssVar('color-black'),
|
|
214
|
+
'fill-color-1': #4b4b52,
|
|
215
|
+
'fill-color-2': #36383d,
|
|
216
|
+
'fill-color-3': #1e1e20,
|
|
217
|
+
'fill-color-4': #262629,
|
|
218
|
+
'fill-color-5': #202124,
|
|
219
|
+
'fill-color-6': #212224,
|
|
220
|
+
'fill-color-7': #1b1c1f,
|
|
221
|
+
'fill-color-8': #1c1d1f,
|
|
222
|
+
'fill-color-9': #18181a,
|
|
223
|
+
),
|
|
224
|
+
$empty
|
|
225
|
+
);
|
package/theme-chalk/dev.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
$fa-font-path: '/fonts'
|
|
2
|
-
@
|
|
1
|
+
@use './common/var' with($fa-font-path: '/fonts');
|
|
2
|
+
@use './index.scss';
|
package/theme-chalk/display.scss
CHANGED
package/theme-chalk/doc.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
$fa-font-path: '/element-plus-react/fonts'
|
|
2
|
-
@
|
|
1
|
+
@use './common/var' with($fa-font-path: '/element-plus-react/fonts');
|
|
2
|
+
@use './index.scss';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
1
|
+
@use './scss/index.scss';
|
|
2
|
+
@use './scss/shims.scss';
|
|
3
|
+
|
|
4
|
+
@use './scss/regular.scss';
|
|
5
|
+
@use './scss/light.scss';
|
|
6
|
+
@use './scss/thin.scss';
|
|
7
|
+
@use './scss/duotone.scss';
|
|
8
|
+
@use './scss/brands.scss';
|
|
9
|
+
@use './scss/solid.scss';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
@use 'variables' as *;
|
|
2
|
+
@use 'sass:string';
|
|
1
3
|
// specific duotone icon class definition
|
|
2
4
|
// -------------------------
|
|
3
5
|
|
|
4
|
-
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
|
5
|
-
readers do not read off random characters that represent icons */
|
|
6
|
-
|
|
7
6
|
@each $name, $icon in $fa-icons {
|
|
8
7
|
.fad.#{$fa-css-prefix}-#{$name}::after,
|
|
9
8
|
.#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-#{$name}::after {
|
|
10
|
-
content: unquote('"#{ $icon }#{ $icon }"');
|
|
9
|
+
content: string.unquote('"#{ $icon }#{ $icon }"');
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
1
2
|
// functions
|
|
2
3
|
// --------------------------
|
|
3
4
|
|
|
4
5
|
// fa-content: convenience function used to set content property
|
|
5
6
|
@function fa-content($fa-var) {
|
|
6
|
-
@return unquote('"#{ $fa-var }"');
|
|
7
|
+
@return string.unquote('"#{ $fa-var }"');
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
// fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use 'variables' as *;
|
|
1
3
|
// specific icon class definition
|
|
2
4
|
// -------------------------
|
|
3
5
|
|
|
4
|
-
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
|
5
|
-
readers do not read off random characters that represent icons */
|
|
6
|
-
|
|
7
6
|
@each $name, $icon in $fa-icons {
|
|
8
7
|
.#{$fa-css-prefix}-#{$name}::before {
|
|
9
|
-
content: unquote('"#{ $icon }"');
|
|
8
|
+
content: string.unquote('"#{ $icon }"');
|
|
10
9
|
}
|
|
11
10
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use 'variables' as *;
|
|
3
|
+
@use 'functions' as *;
|
|
1
4
|
// mixins
|
|
2
5
|
// --------------------------
|
|
3
6
|
|
|
@@ -49,7 +52,7 @@
|
|
|
49
52
|
@extend .fa-solid;
|
|
50
53
|
|
|
51
54
|
&::before {
|
|
52
|
-
content: unquote('"#{ $fa-var }"');
|
|
55
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
@extend .fa-regular;
|
|
59
62
|
|
|
60
63
|
&::before {
|
|
61
|
-
content: unquote('"#{ $fa-var }"');
|
|
64
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
|
|
@@ -67,7 +70,7 @@
|
|
|
67
70
|
@extend .fa-light;
|
|
68
71
|
|
|
69
72
|
&::before {
|
|
70
|
-
content: unquote('"#{ $fa-var }"');
|
|
73
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
|
|
@@ -76,7 +79,7 @@
|
|
|
76
79
|
@extend .fa-thin;
|
|
77
80
|
|
|
78
81
|
&::before {
|
|
79
|
-
content: unquote('"#{ $fa-var }"');
|
|
82
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
|
|
@@ -85,10 +88,10 @@
|
|
|
85
88
|
@extend .fa-duotone;
|
|
86
89
|
|
|
87
90
|
&::before {
|
|
88
|
-
content: unquote('"#{ $fa-var }"');
|
|
91
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
89
92
|
}
|
|
90
93
|
&::after {
|
|
91
|
-
content: unquote('"#{ $fa-var }#{ $fa-var }"');
|
|
94
|
+
content: string.unquote('"#{ $fa-var }#{ $fa-var }"');
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
|
|
@@ -97,6 +100,6 @@
|
|
|
97
100
|
@extend .fa-brands;
|
|
98
101
|
|
|
99
102
|
&::before {
|
|
100
|
-
content: unquote('"#{ $fa-var }"');
|
|
103
|
+
content: string.unquote('"#{ $fa-var }"');
|
|
101
104
|
}
|
|
102
105
|
}
|