@qsxy/element-plus-react 1.0.0-next.12 → 1.0.0-next.15

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 (187) hide show
  1. package/dist/Dialog/Dialog.js +5 -6
  2. package/dist/Dialog/DialogContext.d.ts +1 -1
  3. package/dist/Dialog/DialogContext.js +1 -1
  4. package/dist/Drawer/Drawer.d.ts +2 -5
  5. package/dist/Drawer/Drawer.js +98 -35
  6. package/dist/Drawer/DrawerBody.js +6 -12
  7. package/dist/Drawer/DrawerContext.d.ts +1 -13
  8. package/dist/Drawer/DrawerContext.js +1 -11
  9. package/dist/Drawer/DrawerHeader.js +5 -18
  10. package/dist/Drawer/typings.d.ts +31 -10
  11. package/dist/InputNumber/InputNumber.d.ts +2 -2
  12. package/dist/InputNumber/InputNumber.js +3 -3
  13. package/dist/Loading/Loading.d.ts +7 -2
  14. package/dist/Loading/Loading.js +108 -57
  15. package/dist/Loading/typings.d.ts +7 -1
  16. package/dist/Message/Main.d.ts +0 -7
  17. package/dist/Message/Main.js +0 -7
  18. package/dist/Message/Message.d.ts +2 -2
  19. package/dist/Message/Message.js +4 -3
  20. package/dist/Message/index.d.ts +0 -8
  21. package/dist/Message/index.js +5 -9
  22. package/dist/MessageBox/MessageBox.js +2 -1
  23. package/dist/MessageBox/index.d.ts +5 -5
  24. package/dist/MessageBox/index.js +1 -0
  25. package/dist/Notification/Main.d.ts +0 -7
  26. package/dist/Notification/Main.js +0 -7
  27. package/dist/Popover/Popover.d.ts +3 -2
  28. package/dist/Popover/Popover.js +10 -5
  29. package/dist/Popover/typings.d.ts +0 -1
  30. package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
  31. package/dist/Skeleton/PlaceholderGraph.js +3 -3
  32. package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
  33. package/dist/Skeleton/PlaceholderGrid.js +3 -3
  34. package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
  35. package/dist/Skeleton/PlaceholderParagraph.js +13 -8
  36. package/dist/Skeleton/Skeleton.d.ts +2 -9
  37. package/dist/Skeleton/Skeleton.js +94 -7
  38. package/dist/Skeleton/SkeletonContext.d.ts +17 -0
  39. package/dist/Skeleton/SkeletonContext.js +5 -0
  40. package/dist/Skeleton/SkeletonItem.d.ts +4 -0
  41. package/dist/Skeleton/SkeletonItem.js +47 -0
  42. package/dist/Skeleton/index.d.ts +2 -3
  43. package/dist/Skeleton/index.js +2 -1
  44. package/dist/Skeleton/typings.d.ts +29 -0
  45. package/dist/Skeleton/typings.js +1 -0
  46. package/dist/Table/Table.d.ts +0 -1
  47. package/dist/Table/Table.js +1 -1
  48. package/dist/Table/hooks/useSelection.d.ts +1 -1
  49. package/dist/Tooltip/Tooltip.d.ts +3 -3
  50. package/dist/Tooltip/Tooltip.js +6 -6
  51. package/dist/index.css +1 -1
  52. package/dist/index.d.ts +2 -2
  53. package/dist/index.js +1 -1
  54. package/package.json +1 -1
  55. package/theme-chalk/drawer/index.scss +61 -65
  56. package/theme-chalk/message/index.scss +11 -3
  57. package/theme-chalk/placeholder/index.scss +22 -37
  58. package/dist/theme-chalk/avatar/index.scss +0 -50
  59. package/dist/theme-chalk/badge/index.scss +0 -63
  60. package/dist/theme-chalk/breadcrumb/index.scss +0 -65
  61. package/dist/theme-chalk/build.scss +0 -2
  62. package/dist/theme-chalk/button/_mixins.scss +0 -317
  63. package/dist/theme-chalk/button/button-group.scss +0 -83
  64. package/dist/theme-chalk/button/button.scss +0 -382
  65. package/dist/theme-chalk/button/index.scss +0 -2
  66. package/dist/theme-chalk/calendar/date-picker.scss +0 -112
  67. package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
  68. package/dist/theme-chalk/calendar/date-table.scss +0 -156
  69. package/dist/theme-chalk/calendar/index.scss +0 -6
  70. package/dist/theme-chalk/calendar/month-table.scss +0 -92
  71. package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
  72. package/dist/theme-chalk/calendar/year-table.scss +0 -107
  73. package/dist/theme-chalk/card/index.scss +0 -44
  74. package/dist/theme-chalk/carousel/index.scss +0 -237
  75. package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
  76. package/dist/theme-chalk/cascader/cascader.scss +0 -239
  77. package/dist/theme-chalk/cascader/index.scss +0 -2
  78. package/dist/theme-chalk/checkbox/index.scss +0 -255
  79. package/dist/theme-chalk/checkbox-button/index.scss +0 -117
  80. package/dist/theme-chalk/checkbox-group/index.scss +0 -33
  81. package/dist/theme-chalk/col/_mixins.scss +0 -62
  82. package/dist/theme-chalk/col/index.scss +0 -50
  83. package/dist/theme-chalk/collapse/index.scss +0 -84
  84. package/dist/theme-chalk/color-picker/index.scss +0 -340
  85. package/dist/theme-chalk/common/_var.scss +0 -6
  86. package/dist/theme-chalk/common/index.d.ts +0 -1
  87. package/dist/theme-chalk/common/index.js +0 -1
  88. package/dist/theme-chalk/common/index.scss +0 -222
  89. package/dist/theme-chalk/date-picker/index.scss +0 -253
  90. package/dist/theme-chalk/date-time-picker/index.scss +0 -3
  91. package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
  92. package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
  93. package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
  94. package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
  95. package/dist/theme-chalk/descriptions/index.scss +0 -2
  96. package/dist/theme-chalk/dev.scss +0 -2
  97. package/dist/theme-chalk/dialog/index.scss +0 -190
  98. package/dist/theme-chalk/display.scss +0 -46
  99. package/dist/theme-chalk/divider/index.scss +0 -51
  100. package/dist/theme-chalk/doc.scss +0 -2
  101. package/dist/theme-chalk/drawer/index.scss +0 -250
  102. package/dist/theme-chalk/dropdown/index.scss +0 -147
  103. package/dist/theme-chalk/empty/index.scss +0 -69
  104. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  105. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  106. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  107. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  108. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  109. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  110. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  111. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  112. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  113. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  114. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  115. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  116. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  117. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  118. package/dist/theme-chalk/form/index.scss +0 -378
  119. package/dist/theme-chalk/icon/fonts.scss +0 -9
  120. package/dist/theme-chalk/icon/index.scss +0 -44
  121. package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
  122. package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
  123. package/dist/theme-chalk/icon/scss/_core.scss +0 -33
  124. package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
  125. package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
  126. package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
  127. package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
  128. package/dist/theme-chalk/icon/scss/_list.scss +0 -20
  129. package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
  130. package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
  131. package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
  132. package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
  133. package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
  134. package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
  135. package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
  136. package/dist/theme-chalk/icon/scss/brands.scss +0 -27
  137. package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
  138. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
  139. package/dist/theme-chalk/icon/scss/index.scss +0 -15
  140. package/dist/theme-chalk/icon/scss/light.scss +0 -21
  141. package/dist/theme-chalk/icon/scss/regular.scss +0 -21
  142. package/dist/theme-chalk/icon/scss/solid.scss +0 -21
  143. package/dist/theme-chalk/icon/scss/thin.scss +0 -21
  144. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
  145. package/dist/theme-chalk/index.scss +0 -67
  146. package/dist/theme-chalk/input/_mixins.scss +0 -16
  147. package/dist/theme-chalk/input/index.scss +0 -3
  148. package/dist/theme-chalk/input/input-range.scss +0 -208
  149. package/dist/theme-chalk/input/input.scss +0 -577
  150. package/dist/theme-chalk/input-number/index.scss +0 -172
  151. package/dist/theme-chalk/link/index.scss +0 -99
  152. package/dist/theme-chalk/loading/index.scss +0 -94
  153. package/dist/theme-chalk/message/index.scss +0 -169
  154. package/dist/theme-chalk/message-box/index.scss +0 -184
  155. package/dist/theme-chalk/notification/index.scss +0 -155
  156. package/dist/theme-chalk/pagination/index.scss +0 -515
  157. package/dist/theme-chalk/placeholder/index.scss +0 -135
  158. package/dist/theme-chalk/popconfirm/index.scss +0 -35
  159. package/dist/theme-chalk/popover/index.scss +0 -54
  160. package/dist/theme-chalk/popper/index.scss +0 -86
  161. package/dist/theme-chalk/progress/index.scss +0 -155
  162. package/dist/theme-chalk/radio/index.scss +0 -2
  163. package/dist/theme-chalk/radio/radio-button.scss +0 -128
  164. package/dist/theme-chalk/radio/radio.scss +0 -171
  165. package/dist/theme-chalk/radio-group/index.scss +0 -31
  166. package/dist/theme-chalk/row/index.scss +0 -30
  167. package/dist/theme-chalk/scrollbar/index.scss +0 -103
  168. package/dist/theme-chalk/select/index.scss +0 -244
  169. package/dist/theme-chalk/select/option-group.scss +0 -54
  170. package/dist/theme-chalk/select/option.scss +0 -63
  171. package/dist/theme-chalk/select/select-dropdown.scss +0 -57
  172. package/dist/theme-chalk/switch/index.scss +0 -273
  173. package/dist/theme-chalk/table/index.scss +0 -714
  174. package/dist/theme-chalk/tabs/index.scss +0 -620
  175. package/dist/theme-chalk/tag/index.scss +0 -360
  176. package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
  177. package/dist/theme-chalk/time-line/_timeline.scss +0 -50
  178. package/dist/theme-chalk/time-line/index.scss +0 -2
  179. package/dist/theme-chalk/time-picker/index.scss +0 -109
  180. package/dist/theme-chalk/tooltip/index.scss +0 -13
  181. package/dist/theme-chalk/transfer/index.scss +0 -247
  182. package/dist/theme-chalk/transition/index.scss +0 -756
  183. package/dist/theme-chalk/tree/_directory.scss +0 -73
  184. package/dist/theme-chalk/tree/_tree.scss +0 -401
  185. package/dist/theme-chalk/tree/index.scss +0 -2
  186. package/dist/theme-chalk/tree-select/index.scss +0 -25
  187. package/dist/theme-chalk/upload/index.scss +0 -631
@@ -1,205 +0,0 @@
1
- // animating icons
2
- // --------------------------
3
-
4
- .#{$fa-css-prefix}-beat {
5
- animation-name: #{$fa-css-prefix}-beat;
6
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
7
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
8
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
9
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
10
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
11
- }
12
-
13
- .#{$fa-css-prefix}-bounce {
14
- animation-name: #{$fa-css-prefix}-bounce;
15
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
16
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
17
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
18
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
19
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
20
- }
21
-
22
- .#{$fa-css-prefix}-fade {
23
- animation-name: #{$fa-css-prefix}-fade;
24
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
25
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
26
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
27
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
28
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
29
- }
30
-
31
- .#{$fa-css-prefix}-beat-fade {
32
- animation-name: #{$fa-css-prefix}-beat-fade;
33
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
34
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
35
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
36
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
37
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
38
- }
39
-
40
- .#{$fa-css-prefix}-flip {
41
- animation-name: #{$fa-css-prefix}-flip;
42
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
43
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
44
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
45
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
46
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
47
- }
48
-
49
- .#{$fa-css-prefix}-shake {
50
- animation-name: #{$fa-css-prefix}-shake;
51
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
52
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
53
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
54
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
55
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
56
- }
57
-
58
- .#{$fa-css-prefix}-spin {
59
- animation-name: #{$fa-css-prefix}-spin;
60
- animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0);
61
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
62
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 2s);
63
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
64
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
65
- }
66
-
67
- .#{$fa-css-prefix}-spin-reverse {
68
- --#{$fa-css-prefix}-animation-direction: reverse;
69
- }
70
-
71
- .#{$fa-css-prefix}-pulse,
72
- .#{$fa-css-prefix}-spin-pulse {
73
- animation-name: #{$fa-css-prefix}-spin;
74
- animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
75
- animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
76
- animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
77
- animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, steps(8));
78
- }
79
-
80
- // if agent or operating system prefers reduced motion, disable animations
81
- // see: https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/
82
- // see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
83
- @media (prefers-reduced-motion: reduce) {
84
- .#{$fa-css-prefix}-beat,
85
- .#{$fa-css-prefix}-bounce,
86
- .#{$fa-css-prefix}-fade,
87
- .#{$fa-css-prefix}-beat-fade,
88
- .#{$fa-css-prefix}-flip,
89
- .#{$fa-css-prefix}-pulse,
90
- .#{$fa-css-prefix}-shake,
91
- .#{$fa-css-prefix}-spin,
92
- .#{$fa-css-prefix}-spin-pulse {
93
- animation-delay: -1ms;
94
- animation-duration: 1ms;
95
- animation-iteration-count: 1;
96
- transition-delay: 0s;
97
- transition-duration: 0s;
98
- }
99
- }
100
-
101
- @keyframes #{$fa-css-prefix}-beat {
102
- 0%,
103
- 90% {
104
- transform: scale(1);
105
- }
106
- 45% {
107
- transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25));
108
- }
109
- }
110
-
111
- @keyframes #{$fa-css-prefix}-bounce {
112
- 0% {
113
- transform: scale(1, 1) translateY(0);
114
- }
115
- 10% {
116
- transform: scale(var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1), var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)) translateY(0);
117
- }
118
- 30% {
119
- transform: scale(var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9), var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1))
120
- translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em));
121
- }
122
- 50% {
123
- transform: scale(var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05), var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)) translateY(0);
124
- }
125
- 57% {
126
- transform: scale(1, 1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em));
127
- }
128
- 64% {
129
- transform: scale(1, 1) translateY(0);
130
- }
131
- 100% {
132
- transform: scale(1, 1) translateY(0);
133
- }
134
- }
135
-
136
- @keyframes #{$fa-css-prefix}-fade {
137
- 50% {
138
- opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4);
139
- }
140
- }
141
-
142
- @keyframes #{$fa-css-prefix}-beat-fade {
143
- 0%,
144
- 100% {
145
- opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
146
- transform: scale(1);
147
- }
148
- 50% {
149
- opacity: 1;
150
- transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
151
- }
152
- }
153
-
154
- @keyframes #{$fa-css-prefix}-flip {
155
- 50% {
156
- transform: rotate3d(
157
- var(--#{$fa-css-prefix}-flip-x, 0),
158
- var(--#{$fa-css-prefix}-flip-y, 1),
159
- var(--#{$fa-css-prefix}-flip-z, 0),
160
- var(--#{$fa-css-prefix}-flip-angle, -180deg)
161
- );
162
- }
163
- }
164
-
165
- @keyframes #{$fa-css-prefix}-shake {
166
- 0% {
167
- transform: rotate(-15deg);
168
- }
169
- 4% {
170
- transform: rotate(15deg);
171
- }
172
- 8%,
173
- 24% {
174
- transform: rotate(-18deg);
175
- }
176
- 12%,
177
- 28% {
178
- transform: rotate(18deg);
179
- }
180
- 16% {
181
- transform: rotate(-22deg);
182
- }
183
- 20% {
184
- transform: rotate(22deg);
185
- }
186
- 32% {
187
- transform: rotate(-12deg);
188
- }
189
- 36% {
190
- transform: rotate(12deg);
191
- }
192
- 40%,
193
- 100% {
194
- transform: rotate(0deg);
195
- }
196
- }
197
-
198
- @keyframes #{$fa-css-prefix}-spin {
199
- 0% {
200
- transform: rotate(0deg);
201
- }
202
- 100% {
203
- transform: rotate(360deg);
204
- }
205
- }
@@ -1,20 +0,0 @@
1
- // bordered + pulled icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-border {
5
- border-color: var(--#{$fa-css-prefix}-border-color, #{$fa-border-color});
6
- border-radius: var(--#{$fa-css-prefix}-border-radius, #{$fa-border-radius});
7
- border-style: var(--#{$fa-css-prefix}-border-style, #{$fa-border-style});
8
- border-width: var(--#{$fa-css-prefix}-border-width, #{$fa-border-width});
9
- padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
10
- }
11
-
12
- .#{$fa-css-prefix}-pull-left {
13
- float: left;
14
- margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
15
- }
16
-
17
- .#{$fa-css-prefix}-pull-right {
18
- float: right;
19
- margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
20
- }
@@ -1,33 +0,0 @@
1
- // base icon class definition
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix} {
5
- font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
6
- font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
7
- }
8
-
9
- .#{$fa-css-prefix},
10
- .fas,
11
- .#{$fa-css-prefix}-solid,
12
- .far,
13
- .#{$fa-css-prefix}-regular,
14
- .fal,
15
- .#{$fa-css-prefix}-light,
16
- .fat,
17
- .#{$fa-css-prefix}-thin,
18
- .fad,
19
- .#{$fa-css-prefix}-duotone,
20
- .fab,
21
- .#{$fa-css-prefix}-brands {
22
- -moz-osx-font-smoothing: grayscale;
23
- -webkit-font-smoothing: antialiased;
24
- display: var(--#{$fa-css-prefix}-display, #{$fa-display});
25
- font-style: normal;
26
- font-variant: normal;
27
- line-height: 1;
28
- text-rendering: auto;
29
- }
30
-
31
- %fa-icon {
32
- @include fa-icon;
33
- }
@@ -1,12 +0,0 @@
1
- // specific duotone icon class definition
2
- // -------------------------
3
-
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
- @each $name, $icon in $fa-icons {
8
- .fad.#{$fa-css-prefix}-#{$name}::after,
9
- .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-#{$name}::after {
10
- content: unquote('"#{ $icon }#{ $icon }"');
11
- }
12
- }
@@ -1,7 +0,0 @@
1
- // fixed-width icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-fw {
5
- text-align: center;
6
- width: $fa-fw-width;
7
- }
@@ -1,57 +0,0 @@
1
- // functions
2
- // --------------------------
3
-
4
- // fa-content: convenience function used to set content property
5
- @function fa-content($fa-var) {
6
- @return unquote('"#{ $fa-var }"');
7
- }
8
-
9
- // fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
10
- //
11
- // Licensed under: The MIT License (MIT)
12
- //
13
- // Copyright (c) 2011-2021 Twitter, Inc.
14
- // Copyright (c) 2011-2021 The Bootstrap Authors
15
- //
16
- // Permission is hereby granted, free of charge, to any person obtaining a copy
17
- // of this software and associated documentation files (the "Software"), to deal
18
- // in the Software without restriction, including without limitation the rights
19
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- // copies of the Software, and to permit persons to whom the Software is
21
- // furnished to do so, subject to the following conditions:
22
- //
23
- // The above copyright notice and this permission notice shall be included in
24
- // all copies or substantial portions of the Software.
25
- //
26
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32
- // THE SOFTWARE.
33
-
34
- @function fa-divide($dividend, $divisor, $precision: 10) {
35
- $sign: if($dividend > 0 and $divisor > 0, 1, -1);
36
- $dividend: abs($dividend);
37
- $divisor: abs($divisor);
38
- $quotient: 0;
39
- $remainder: $dividend;
40
- @if $dividend == 0 {
41
- @return 0;
42
- }
43
- @if $divisor == 0 {
44
- @error "Cannot divide by 0";
45
- }
46
- @if $divisor == 1 {
47
- @return $dividend;
48
- }
49
- @while $remainder >= $divisor {
50
- $quotient: $quotient + 1;
51
- $remainder: $remainder - $divisor;
52
- }
53
- @if $remainder > 0 and $precision > 0 {
54
- $remainder: fa-divide($remainder * 10, $divisor, $precision - 1) * 0.1;
55
- }
56
- @return ($quotient + $remainder) * $sign;
57
- }
@@ -1,11 +0,0 @@
1
- // specific icon class definition
2
- // -------------------------
3
-
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
- @each $name, $icon in $fa-icons {
8
- .#{$fa-css-prefix}-#{$name}::before {
9
- content: unquote('"#{ $icon }"');
10
- }
11
- }
@@ -1,20 +0,0 @@
1
- // icons in a list
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-ul {
5
- list-style-type: none;
6
- margin-left: var(--#{$fa-css-prefix}-li-margin, #{$fa-li-margin});
7
- padding-left: 0;
8
-
9
- > li {
10
- position: relative;
11
- }
12
- }
13
-
14
- .#{$fa-css-prefix}-li {
15
- left: calc(var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}) * -1);
16
- position: absolute;
17
- text-align: center;
18
- width: var(--#{$fa-css-prefix}-li-width, #{$fa-li-width});
19
- line-height: inherit;
20
- }
@@ -1,102 +0,0 @@
1
- // mixins
2
- // --------------------------
3
-
4
- // base rendering for an icon
5
- @mixin fa-icon {
6
- -webkit-font-smoothing: antialiased;
7
- -moz-osx-font-smoothing: grayscale;
8
- display: inline-block;
9
- font-style: normal;
10
- font-variant: normal;
11
- font-weight: normal;
12
- line-height: 1;
13
- }
14
-
15
- // sets relative font-sizing and alignment (in _sizing)
16
- @mixin fa-size($font-size) {
17
- font-size: fa-divide($font-size, $fa-size-scale-base) * 1em; // converts step in sizing scale into an em-based value that's relative to the scale's base
18
- line-height: fa-divide(1, $font-size) * 1em; // sets the line-height of the icon back to that of it's parent
19
- vertical-align: (fa-divide(6, $font-size) - fa-divide(3, 8)) * 1em; // vertically centers the icon taking into account the surrounding text's descender
20
- }
21
-
22
- // only display content to screen readers
23
- // see: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
24
- // see: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
25
- @mixin fa-sr-only() {
26
- position: absolute;
27
- width: 1px;
28
- height: 1px;
29
- padding: 0;
30
- margin: -1px;
31
- overflow: hidden;
32
- clip: rect(0, 0, 0, 0);
33
- white-space: nowrap;
34
- border-width: 0;
35
- }
36
-
37
- // use in conjunction with .sr-only to only display content when it's focused
38
- @mixin fa-sr-only-focusable() {
39
- &:not(:focus) {
40
- @include fa-sr-only();
41
- }
42
- }
43
-
44
- // convenience mixins for declaring pseudo-elements by CSS variable,
45
- // including all style-specific font properties, and both the ::before
46
- // and ::after elements in the duotone case.
47
- @mixin fa-icon-solid($fa-var) {
48
- @extend %fa-icon;
49
- @extend .fa-solid;
50
-
51
- &::before {
52
- content: unquote('"#{ $fa-var }"');
53
- }
54
- }
55
-
56
- @mixin fa-icon-regular($fa-var) {
57
- @extend %fa-icon;
58
- @extend .fa-regular;
59
-
60
- &::before {
61
- content: unquote('"#{ $fa-var }"');
62
- }
63
- }
64
-
65
- @mixin fa-icon-light($fa-var) {
66
- @extend %fa-icon;
67
- @extend .fa-light;
68
-
69
- &::before {
70
- content: unquote('"#{ $fa-var }"');
71
- }
72
- }
73
-
74
- @mixin fa-icon-thin($fa-var) {
75
- @extend %fa-icon;
76
- @extend .fa-thin;
77
-
78
- &::before {
79
- content: unquote('"#{ $fa-var }"');
80
- }
81
- }
82
-
83
- @mixin fa-icon-duotone($fa-var) {
84
- @extend %fa-icon;
85
- @extend .fa-duotone;
86
-
87
- &::before {
88
- content: unquote('"#{ $fa-var }"');
89
- }
90
- &::after {
91
- content: unquote('"#{ $fa-var }#{ $fa-var }"');
92
- }
93
- }
94
-
95
- @mixin fa-icon-brands($fa-var) {
96
- @extend %fa-icon;
97
- @extend .fa-brands;
98
-
99
- &::before {
100
- content: unquote('"#{ $fa-var }"');
101
- }
102
- }
@@ -1,31 +0,0 @@
1
- // rotating + flipping icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-rotate-90 {
5
- transform: rotate(90deg);
6
- }
7
-
8
- .#{$fa-css-prefix}-rotate-180 {
9
- transform: rotate(180deg);
10
- }
11
-
12
- .#{$fa-css-prefix}-rotate-270 {
13
- transform: rotate(270deg);
14
- }
15
-
16
- .#{$fa-css-prefix}-flip-horizontal {
17
- transform: scale(-1, 1);
18
- }
19
-
20
- .#{$fa-css-prefix}-flip-vertical {
21
- transform: scale(1, -1);
22
- }
23
-
24
- .#{$fa-css-prefix}-flip-both,
25
- .#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
26
- transform: scale(-1, -1);
27
- }
28
-
29
- .#{$fa-css-prefix}-rotate-by {
30
- transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, none));
31
- }
@@ -1,14 +0,0 @@
1
- // screen-reader utilities
2
- // -------------------------
3
-
4
- // only display content to screen readers
5
- .sr-only,
6
- .#{$fa-css-prefix}-sr-only {
7
- @include fa-sr-only;
8
- }
9
-
10
- // use in conjunction with .sr-only to only display content when it's focused
11
- .sr-only-focusable,
12
- .#{$fa-css-prefix}-sr-only-focusable {
13
- @include fa-sr-only-focusable;
14
- }