@broxus/react-uikit 0.23.3 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/README.md +328 -1
  2. package/dist/assets/accordion.css +1 -4
  3. package/dist/assets/alert.css +28 -1
  4. package/dist/assets/align.css +5 -5
  5. package/dist/assets/animation.css +1 -1
  6. package/dist/assets/article.css +2 -3
  7. package/dist/assets/background.css +5 -5
  8. package/dist/assets/badge.css +1 -4
  9. package/dist/assets/base.css +2 -12
  10. package/dist/assets/breadcrumb.css +1 -5
  11. package/dist/assets/button.css +12 -37
  12. package/dist/assets/card.css +3 -5
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/close.css +1 -3
  15. package/dist/assets/column.css +7 -8
  16. package/dist/assets/comment.css +2 -2
  17. package/dist/assets/container.css +7 -7
  18. package/dist/assets/control.css +1 -16
  19. package/dist/assets/cover.css +1 -1
  20. package/dist/assets/custom-media.css +15 -0
  21. package/dist/assets/datepicker.css +5 -3
  22. package/dist/assets/description-list.css +1 -2
  23. package/dist/assets/divider.css +2 -5
  24. package/dist/assets/dotnav.css +1 -5
  25. package/dist/assets/drawer.css +1 -1
  26. package/dist/assets/drop.css +1 -1
  27. package/dist/assets/dropdown.css +1 -9
  28. package/dist/assets/flex.css +9 -9
  29. package/dist/assets/form.css +3 -11
  30. package/dist/assets/grid.css +7 -8
  31. package/dist/assets/heading.css +3 -6
  32. package/dist/assets/height.css +1 -1
  33. package/dist/assets/icon.css +1 -10
  34. package/dist/assets/iconnav.css +1 -4
  35. package/dist/assets/input-number.css +1 -1
  36. package/dist/assets/input-password.css +1 -1
  37. package/dist/assets/inverse.css +1 -1
  38. package/dist/assets/label.css +1 -3
  39. package/dist/assets/leader.css +1 -1
  40. package/dist/assets/link.css +1 -5
  41. package/dist/assets/list.css +1 -8
  42. package/dist/assets/margin.css +11 -11
  43. package/dist/assets/marker.css +1 -4
  44. package/dist/assets/modal.css +4 -4
  45. package/dist/assets/motion.css +3 -2
  46. package/dist/assets/nav.css +1 -18
  47. package/dist/assets/navbar.css +5 -23
  48. package/dist/assets/overlay.css +1 -1
  49. package/dist/assets/padding.css +3 -3
  50. package/dist/assets/pagination.css +1 -5
  51. package/dist/assets/placeholder.css +1 -1
  52. package/dist/assets/position.css +2 -2
  53. package/dist/assets/print.css +4 -4
  54. package/dist/assets/progress.css +1 -1
  55. package/dist/assets/radio.css +1 -1
  56. package/dist/assets/search.css +1 -10
  57. package/dist/assets/section.css +4 -4
  58. package/dist/assets/segmented.css +1 -1
  59. package/dist/assets/select.css +1 -1
  60. package/dist/assets/slider.css +1 -1
  61. package/dist/assets/spinner.css +1 -1
  62. package/dist/assets/sticky.css +1 -1
  63. package/dist/assets/subnav.css +1 -14
  64. package/dist/assets/svg.css +1 -1
  65. package/dist/assets/switch.css +1 -1
  66. package/dist/assets/table.css +2 -8
  67. package/dist/assets/tabs.css +1 -6
  68. package/dist/assets/text.css +5 -12
  69. package/dist/assets/textarea.css +1 -1
  70. package/dist/assets/thumbnav.css +1 -1
  71. package/dist/assets/tile.css +5 -5
  72. package/dist/assets/tooltip.css +1 -1
  73. package/dist/assets/totop.css +1 -4
  74. package/dist/assets/transition.css +1 -1
  75. package/dist/assets/uikit.min.css +1 -1
  76. package/dist/assets/utility.css +1 -3
  77. package/dist/assets/vars.css +72 -4
  78. package/dist/assets/visibility.css +9 -9
  79. package/dist/assets/width.css +9 -9
  80. package/dist/esm/components/Navbar/Nav.d.ts +1 -1
  81. package/package.json +321 -18
  82. package/styles/_components.scss +85 -0
  83. package/styles/_globals.scss +151 -0
  84. package/styles/_import.components.scss +508 -58
  85. package/styles/_import.scss +608 -83
  86. package/styles/_import.utilities.scss +162 -17
  87. package/styles/_mixins.scss +1865 -0
  88. package/styles/_tokens.scss +85 -0
  89. package/styles/{mixin.scss → _utils.scss} +8 -2
  90. package/styles/{variables.scss → _variables.scss} +40 -26
  91. package/styles/accordion/_accordion.scss +231 -0
  92. package/styles/accordion/_index.scss +11 -0
  93. package/styles/alert/_alert.scss +201 -0
  94. package/styles/alert/_index.scss +11 -0
  95. package/styles/align/_align.scss +153 -0
  96. package/styles/align/_index.scss +11 -0
  97. package/styles/animation/_animation.scss +353 -0
  98. package/styles/animation/_index.scss +11 -0
  99. package/styles/article/_article.scss +112 -0
  100. package/styles/article/_index.scss +11 -0
  101. package/styles/background/_background.scss +170 -0
  102. package/styles/background/_index.scss +11 -0
  103. package/styles/badge/_badge.scss +92 -0
  104. package/styles/badge/_index.scss +11 -0
  105. package/styles/base/_base.scss +661 -0
  106. package/styles/base/_index.scss +11 -0
  107. package/styles/breadcrumb/_breadcrumb.scss +133 -0
  108. package/styles/breadcrumb/_index.scss +11 -0
  109. package/styles/button/_button.scss +707 -0
  110. package/styles/button/_index.scss +11 -0
  111. package/styles/card/_card.scss +544 -0
  112. package/styles/card/_index.scss +11 -0
  113. package/styles/checkbox/_checkbox.scss +329 -0
  114. package/styles/checkbox/_index.scss +11 -0
  115. package/styles/close/_close.scss +69 -0
  116. package/styles/close/_index.scss +11 -0
  117. package/styles/column/_column.scss +159 -0
  118. package/styles/column/_index.scss +11 -0
  119. package/styles/comment/_comment.scss +195 -0
  120. package/styles/comment/_index.scss +11 -0
  121. package/styles/container/_container.scss +240 -0
  122. package/styles/container/_index.scss +11 -0
  123. package/styles/control/_control.scss +364 -0
  124. package/styles/control/_index.scss +11 -0
  125. package/styles/cover/_cover.scss +99 -0
  126. package/styles/cover/_index.scss +8 -0
  127. package/styles/custom-media.scss +17 -0
  128. package/styles/datepicker/_datepicker.scss +841 -0
  129. package/styles/datepicker/_index.scss +11 -0
  130. package/styles/description-list/_description-list.scss +96 -0
  131. package/styles/description-list/_index.scss +11 -0
  132. package/styles/divider/_divider.scss +168 -0
  133. package/styles/divider/_index.scss +11 -0
  134. package/styles/dotnav/_dotnav.scss +171 -0
  135. package/styles/dotnav/_index.scss +11 -0
  136. package/styles/drawer/_drawer.scss +588 -0
  137. package/styles/drawer/_index.scss +11 -0
  138. package/styles/drop/_drop.scss +97 -0
  139. package/styles/drop/_index.scss +11 -0
  140. package/styles/dropdown/_dropdown.scss +218 -0
  141. package/styles/dropdown/_index.scss +11 -0
  142. package/styles/flex/_flex.scss +338 -0
  143. package/styles/flex/_index.scss +8 -0
  144. package/styles/form/_form.scss +665 -0
  145. package/styles/form/_index.scss +11 -0
  146. package/styles/grid/_grid.scss +657 -0
  147. package/styles/grid/_index.scss +11 -0
  148. package/styles/heading/_heading.scss +265 -0
  149. package/styles/heading/_index.scss +11 -0
  150. package/styles/height/_height.scss +77 -0
  151. package/styles/height/_index.scss +11 -0
  152. package/styles/icon/_icon.scss +274 -0
  153. package/styles/icon/_index.scss +11 -0
  154. package/styles/iconnav/_iconnav.scss +149 -0
  155. package/styles/iconnav/_index.scss +11 -0
  156. package/styles/input-number/_index.scss +8 -0
  157. package/styles/input-number/_input-number.scss +115 -0
  158. package/styles/input-password/_index.scss +8 -0
  159. package/styles/input-password/_input-password.scss +52 -0
  160. package/styles/inverse/_index.scss +11 -0
  161. package/styles/inverse/_inverse.scss +68 -0
  162. package/styles/label/_index.scss +11 -0
  163. package/styles/label/_label.scss +132 -0
  164. package/styles/leader/_index.scss +11 -0
  165. package/styles/leader/_leader.scss +80 -0
  166. package/styles/link/_index.scss +11 -0
  167. package/styles/link/_link.scss +158 -0
  168. package/styles/list/_index.scss +11 -0
  169. package/styles/list/_list.scss +288 -0
  170. package/styles/margin/_index.scss +11 -0
  171. package/styles/margin/_margin.scss +312 -0
  172. package/styles/marker/_index.scss +11 -0
  173. package/styles/marker/_marker.scss +73 -0
  174. package/styles/modal/_index.scss +11 -0
  175. package/styles/modal/_modal.scss +374 -0
  176. package/styles/motion/_index.scss +8 -0
  177. package/styles/motion/_motion.scss +640 -0
  178. package/styles/nav/_index.scss +11 -0
  179. package/styles/nav/_nav.scss +583 -0
  180. package/styles/navbar/_index.scss +11 -0
  181. package/styles/navbar/_navbar.scss +694 -0
  182. package/styles/overlay/_index.scss +11 -0
  183. package/styles/overlay/_overlay.scss +115 -0
  184. package/styles/padding/_index.scss +11 -0
  185. package/styles/padding/_padding.scss +93 -0
  186. package/styles/pagination/_index.scss +11 -0
  187. package/styles/pagination/_pagination.scss +149 -0
  188. package/styles/placeholder/_index.scss +11 -0
  189. package/styles/placeholder/_placeholder.scss +60 -0
  190. package/styles/position/_index.scss +11 -0
  191. package/styles/position/_position.scss +257 -0
  192. package/styles/print.scss +8 -5
  193. package/styles/progress/_index.scss +11 -0
  194. package/styles/progress/_progress.scss +131 -0
  195. package/styles/radio/_index.scss +11 -0
  196. package/styles/radio/_radio.scss +272 -0
  197. package/styles/search/_index.scss +11 -0
  198. package/styles/search/_search.scss +353 -0
  199. package/styles/section/_index.scss +11 -0
  200. package/styles/section/_section.scss +293 -0
  201. package/styles/segmented/_index.scss +11 -0
  202. package/styles/segmented/_segmented.scss +275 -0
  203. package/styles/select/_index.scss +11 -0
  204. package/styles/select/_select.scss +641 -0
  205. package/styles/slider/_index.scss +11 -0
  206. package/styles/slider/_slider.scss +525 -0
  207. package/styles/spinner/_index.scss +11 -0
  208. package/styles/spinner/_spinner.scss +90 -0
  209. package/styles/sticky/_index.scss +11 -0
  210. package/styles/sticky/_sticky.scss +66 -0
  211. package/styles/subnav/_index.scss +11 -0
  212. package/styles/subnav/_subnav.scss +267 -0
  213. package/styles/svg/_index.scss +8 -0
  214. package/styles/svg/_svg.scss +64 -0
  215. package/styles/switch/_index.scss +11 -0
  216. package/styles/switch/_switch.scss +226 -0
  217. package/styles/table/_index.scss +11 -0
  218. package/styles/table/_table.scss +337 -0
  219. package/styles/tabs/_index.scss +11 -0
  220. package/styles/tabs/_tabs.scss +809 -0
  221. package/styles/text/_index.scss +11 -0
  222. package/styles/text/_text.scss +432 -0
  223. package/styles/textarea/_index.scss +11 -0
  224. package/styles/textarea/_textarea.scss +98 -0
  225. package/styles/thumbnav/_index.scss +11 -0
  226. package/styles/thumbnav/_thumbnav.scss +130 -0
  227. package/styles/tile/_index.scss +11 -0
  228. package/styles/tile/_tile.scss +313 -0
  229. package/styles/tooltip/_index.scss +11 -0
  230. package/styles/tooltip/_tooltip.scss +101 -0
  231. package/styles/totop/_index.scss +11 -0
  232. package/styles/totop/_totop.scss +80 -0
  233. package/styles/transition/_index.scss +11 -0
  234. package/styles/transition/_transition.scss +197 -0
  235. package/styles/utility/_index.scss +11 -0
  236. package/styles/utility/_utility.scss +642 -0
  237. package/styles/vars.scss +474 -139
  238. package/styles/visibility/_index.scss +8 -0
  239. package/styles/visibility/_visibility.scss +196 -0
  240. package/styles/width/_index.scss +11 -0
  241. package/styles/width/_width.scss +698 -0
  242. package/dist/assets/mixin.css +0 -1
  243. package/dist/assets/mixins.css +0 -1
  244. package/dist/assets/variables.css +0 -1
  245. package/styles/accordion.scss +0 -224
  246. package/styles/alert.scss +0 -197
  247. package/styles/align.scss +0 -149
  248. package/styles/animation.scss +0 -349
  249. package/styles/article.scss +0 -105
  250. package/styles/background.scss +0 -167
  251. package/styles/badge.scss +0 -85
  252. package/styles/base.scss +0 -656
  253. package/styles/breadcrumb.scss +0 -126
  254. package/styles/button.scss +0 -700
  255. package/styles/card.scss +0 -534
  256. package/styles/checkbox.scss +0 -325
  257. package/styles/close.scss +0 -62
  258. package/styles/column.scss +0 -152
  259. package/styles/comment.scss +0 -191
  260. package/styles/container.scss +0 -236
  261. package/styles/control.scss +0 -357
  262. package/styles/cover.scss +0 -81
  263. package/styles/datepicker.scss +0 -834
  264. package/styles/description-list.scss +0 -89
  265. package/styles/divider.scss +0 -161
  266. package/styles/dotnav.scss +0 -164
  267. package/styles/drawer.scss +0 -584
  268. package/styles/drop.scss +0 -93
  269. package/styles/dropdown.scss +0 -207
  270. package/styles/flex.scss +0 -326
  271. package/styles/form.scss +0 -658
  272. package/styles/grid.scss +0 -650
  273. package/styles/heading.scss +0 -258
  274. package/styles/height.scss +0 -73
  275. package/styles/icon.scss +0 -267
  276. package/styles/iconnav.scss +0 -142
  277. package/styles/input-number.scss +0 -98
  278. package/styles/input-password.scss +0 -35
  279. package/styles/inverse.scss +0 -65
  280. package/styles/label.scss +0 -125
  281. package/styles/leader.scss +0 -76
  282. package/styles/link.scss +0 -151
  283. package/styles/list.scss +0 -281
  284. package/styles/margin.scss +0 -308
  285. package/styles/marker.scss +0 -66
  286. package/styles/mixins.scss +0 -2555
  287. package/styles/modal.scss +0 -370
  288. package/styles/motion.scss +0 -627
  289. package/styles/nav.scss +0 -576
  290. package/styles/navbar.scss +0 -682
  291. package/styles/overlay.scss +0 -107
  292. package/styles/padding.scss +0 -89
  293. package/styles/pagination.scss +0 -142
  294. package/styles/placeholder.scss +0 -56
  295. package/styles/position.scss +0 -253
  296. package/styles/progress.scss +0 -127
  297. package/styles/radio.scss +0 -268
  298. package/styles/search.scss +0 -346
  299. package/styles/section.scss +0 -285
  300. package/styles/segmented.scss +0 -271
  301. package/styles/select.scss +0 -644
  302. package/styles/slider.scss +0 -521
  303. package/styles/spinner.scss +0 -86
  304. package/styles/sticky.scss +0 -62
  305. package/styles/subnav.scss +0 -260
  306. package/styles/svg.scss +0 -46
  307. package/styles/switch.scss +0 -218
  308. package/styles/table.scss +0 -330
  309. package/styles/tabs.scss +0 -802
  310. package/styles/text.scss +0 -425
  311. package/styles/textarea.scss +0 -94
  312. package/styles/thumbnav.scss +0 -126
  313. package/styles/tile.scss +0 -309
  314. package/styles/tooltip.scss +0 -94
  315. package/styles/totop.scss +0 -73
  316. package/styles/transition.scss +0 -193
  317. package/styles/utility.scss +0 -635
  318. package/styles/visibility.scss +0 -184
  319. package/styles/width.scss +0 -694
@@ -1,700 +0,0 @@
1
- // Name: Button
2
- // Description: Styles for buttons
3
- //
4
- // Component: `uk-button`
5
- //
6
- // Sub-objects: `uk-button-group`
7
- //
8
- // Modifiers: `uk-button-default`
9
- // `uk-button-primary`
10
- // `uk-button-secondary`
11
- // `uk-button-tertiary`
12
- // `uk-button-danger`
13
- // `uk-button-text`
14
- // `uk-button-link`
15
- // `uk-button-xsmall`
16
- // `uk-button-small`
17
- // `uk-button-medium`
18
- // `uk-button-large`
19
- // `uk-button-xlarge`
20
- // `uk-button-circle`
21
- // `uk-button-round`
22
- // `uk-button-ghost`
23
- //
24
- // States: `uk-active`
25
- //
26
- // ========================================================================
27
-
28
- @use 'sass:meta';
29
-
30
-
31
- // Variables
32
- // ========================================================================
33
-
34
- @use 'variables' as *;
35
-
36
-
37
- /* ========================================================================
38
- Component: Button
39
- ========================================================================== */
40
-
41
- /*
42
- * 1. Remove margins in Chrome, Safari and Opera.
43
- * 2. Remove borders for `button`.
44
- * 3. Address `overflow` set to `hidden` in IE.
45
- * 4. Correct `font` properties and `color` not being inherited for `button`.
46
- * 5. Remove the inheritance of text transform in Edge, Firefox, and IE.
47
- * 6. Remove default style for `input type="submit"`in iOS.
48
- * 7. Style
49
- * 8. `line-height` is used to create a height because it also centers the text vertically for `a` elements.
50
- * Better would be to use height and flexbox to center the text vertically but flexbox doesn't work in Firefox on `button` elements.
51
- * 9. Align text if button has a width
52
- * 10. Required for `a`.
53
- */
54
-
55
- .uk-button {
56
- -webkit-appearance: none; /* 6 */
57
- appearance: none; /* 6 */
58
- border: none; /* 2 */
59
- border-radius: 0;
60
- box-sizing: border-box;
61
- color: inherit;
62
- display: inline-block; /* 7 */
63
- font: inherit; /* 4 */
64
- font-size: var(--button-font-size); /* 7 */
65
- line-height: var(--button-line-height); /* 8 */
66
- margin: 0; /* 1 */
67
- overflow: visible; /* 3 */
68
- padding: 0 var(--button-padding-horizontal); /* 7 */
69
- text-align: center; /* 9 */
70
- text-decoration: none; /* 10 */
71
- text-transform: none; /* 5 */
72
- vertical-align: middle; /* 7 */
73
- @if meta.mixin-exists('hook-button') {
74
- @include hook-button;
75
- }
76
- }
77
-
78
- .uk-button:not(:disabled) { cursor: pointer; }
79
-
80
- /*
81
- * Remove the inner border and padding in Firefox.
82
- */
83
-
84
- .uk-button::-moz-focus-inner {
85
- border: 0;
86
- padding: 0;
87
- }
88
-
89
- /* Hover */
90
- .uk-button:hover {
91
- /* 9 */
92
- text-decoration: none;
93
- @if meta.mixin-exists('hook-button-hover') {
94
- @include hook-button-hover;
95
- }
96
- }
97
-
98
- /* OnClick + Active */
99
- .uk-button:active,
100
- .uk-button.uk-active {
101
- @if meta.mixin-exists('hook-button-active') {
102
- @include hook-button-active;
103
- }
104
- }
105
-
106
-
107
- /* Style modifiers
108
- ========================================================================== */
109
-
110
- /*
111
- * Default
112
- */
113
-
114
- .uk-button-default {
115
- background-color: var(--button-default-background);
116
- color: var(--button-default-color);
117
- @if meta.mixin-exists('hook-button-default') {
118
- @include hook-button-default;
119
- }
120
- }
121
-
122
- /* Hover */
123
- .uk-button-default:hover {
124
- background-color: var(--button-default-hover-background);
125
- color: var(--button-default-hover-color);
126
- @if meta.mixin-exists('hook-button-default-hover') {
127
- @include hook-button-default-hover;
128
- }
129
- }
130
-
131
- /* OnClick + Active */
132
- .uk-button-default:active,
133
- .uk-button-default.uk-active {
134
- background-color: var(--button-default-active-background);
135
- color: var(--button-default-active-color);
136
- @if meta.mixin-exists('hook-button-default-active') {
137
- @include hook-button-default-active;
138
- }
139
- }
140
-
141
- /*
142
- * Primary
143
- */
144
-
145
- .uk-button-primary {
146
- background-color: var(--button-primary-background);
147
- color: var(--button-primary-color);
148
- @if meta.mixin-exists('hook-button-primary') {
149
- @include hook-button-primary;
150
- }
151
- }
152
-
153
- /* Hover */
154
- .uk-button-primary:hover {
155
- background-color: var(--button-primary-hover-background);
156
- color: var(--button-primary-hover-color);
157
- @if meta.mixin-exists('hook-button-primary-hover') {
158
- @include hook-button-primary-hover;
159
- }
160
- }
161
-
162
- /* OnClick + Active */
163
- .uk-button-primary:active,
164
- .uk-button-primary.uk-active {
165
- background-color: var(--button-primary-active-background);
166
- color: var(--button-primary-active-color);
167
- @if meta.mixin-exists('hook-button-primary-active') {
168
- @include hook-button-primary-active;
169
- }
170
- }
171
-
172
- /*
173
- * Secondary
174
- */
175
-
176
- .uk-button-secondary {
177
- background-color: var(--button-secondary-background);
178
- color: var(--button-secondary-color);
179
- @if meta.mixin-exists('hook-button-secondary') {
180
- @include hook-button-secondary;
181
- }
182
- }
183
-
184
- /* Hover */
185
- .uk-button-secondary:hover {
186
- background-color: var(--button-secondary-hover-background);
187
- color: var(--button-secondary-hover-color);
188
- @if meta.mixin-exists('hook-button-secondary-hover') {
189
- @include hook-button-secondary-hover;
190
- }
191
- }
192
-
193
- /* OnClick + Active */
194
- .uk-button-secondary:active,
195
- .uk-button-secondary.uk-active {
196
- background-color: var(--button-secondary-active-background);
197
- color: var(--button-secondary-active-color);
198
- @if meta.mixin-exists('hook-button-secondary-active') {
199
- @include hook-button-secondary-active;
200
- }
201
- }
202
-
203
- /*
204
- * Tertiary
205
- */
206
-
207
- .uk-button-tertiary {
208
- background-color: var(--button-tertiary-background);
209
- color: var(--button-tertiary-color);
210
- @if meta.mixin-exists('hook-button-tertiary') {
211
- @include hook-button-tertiary;
212
- }
213
- }
214
-
215
- /* Hover */
216
- .uk-button-tertiary:hover {
217
- background-color: var(--button-tertiary-hover-background);
218
- color: var(--button-tertiary-hover-color);
219
- @if meta.mixin-exists('hook-button-tertiary-hover') {
220
- @include hook-button-tertiary-hover;
221
- }
222
- }
223
-
224
- /* OnClick + Active */
225
- .uk-button-tertiary:active,
226
- .uk-button-tertiary.uk-active {
227
- background-color: var(--button-tertiary-active-background);
228
- color: var(--button-tertiary-active-color);
229
- @if meta.mixin-exists('hook-button-tertiary-active') {
230
- @include hook-button-tertiary-active;
231
- }
232
- }
233
-
234
- /*
235
- * Danger
236
- */
237
-
238
- .uk-button-danger {
239
- background-color: var(--button-danger-background);
240
- color: var(--button-danger-color);
241
- @if meta.mixin-exists('hook-button-danger') {
242
- @include hook-button-danger;
243
- }
244
- }
245
-
246
- /* Hover */
247
- .uk-button-danger:hover {
248
- background-color: var(--button-danger-hover-background);
249
- color: var(--button-danger-hover-color);
250
- @if meta.mixin-exists('hook-button-danger-hover') {
251
- @include hook-button-danger-hover;
252
- }
253
- }
254
-
255
- /* OnClick + Active */
256
- .uk-button-danger:active,
257
- .uk-button-danger.uk-active {
258
- background-color: var(--button-danger-active-background);
259
- color: var(--button-danger-active-color);
260
- @if meta.mixin-exists('hook-button-danger-active') {
261
- @include hook-button-danger-active;
262
- }
263
- }
264
-
265
- /*
266
- * Disabled
267
- * The same for all style modifiers
268
- */
269
-
270
- @if $button-disabled-mode == same {
271
- .uk-button-default:disabled,
272
- .uk-button-primary:disabled,
273
- .uk-button-secondary:disabled,
274
- .uk-button-tertiary:disabled,
275
- .uk-button-danger:disabled {
276
- background-color: var(--button-disabled-background);
277
- color: var(--button-disabled-color);
278
- @if meta.mixin-exists('hook-button-disabled') {
279
- @include hook-button-disabled;
280
- }
281
- }
282
- }
283
-
284
- @if $button-disabled-mode == separate {
285
- .uk-button-default:disabled {
286
- background-color: var(--button-default-disabled-background);
287
- color: var(--button-default-disabled-color);
288
- @if meta.mixin-exists('hook-button-default-disabled') {
289
- @include hook-button-default-disabled;
290
- }
291
- }
292
-
293
- .uk-button-primary:disabled {
294
- background-color: var(--button-primary-disabled-background);
295
- color: var(--button-primary-disabled-color);
296
- @if meta.mixin-exists('hook-button-primary-disabled') {
297
- @include hook-button-primary-disabled;
298
- }
299
- }
300
-
301
- .uk-button-secondary:disabled {
302
- background-color: var(--button-secondary-disabled-background);
303
- color: var(--button-secondary-disabled-color);
304
- @if meta.mixin-exists('hook-button-secondary-disabled') {
305
- @include hook-button-secondary-disabled;
306
- }
307
- }
308
-
309
- .uk-button-tertiary:disabled {
310
- background-color: var(--button-tertiary-disabled-background);
311
- color: var(--button-tertiary-disabled-color);
312
- @if meta.mixin-exists('hook-button-tertiary-disabled') {
313
- @include hook-button-tertiary-disabled;
314
- }
315
- }
316
-
317
- .uk-button-danger:disabled {
318
- background-color: var(--button-danger-disabled-background);
319
- color: var(--button-danger-disabled-color);
320
- @if meta.mixin-exists('hook-button-danger-disabled') {
321
- @include hook-button-danger-disabled;
322
- }
323
- }
324
- }
325
-
326
- /* Size modifiers
327
- ========================================================================== */
328
-
329
- .uk-button-xsmall {
330
- font-size: var(--button-xsmall-font-size);
331
- line-height: var(--button-xsmall-line-height);
332
- padding: 0 var(--button-xsmall-padding-horizontal);
333
- @if meta.mixin-exists('hook-button-xsmall') {
334
- @include hook-button-xsmall;
335
- }
336
- }
337
-
338
- .uk-button-small {
339
- font-size: var(--button-small-font-size);
340
- line-height: var(--button-small-line-height);
341
- padding: 0 var(--button-small-padding-horizontal);
342
- @if meta.mixin-exists('hook-button-small') {
343
- @include hook-button-small;
344
- }
345
- }
346
-
347
- .uk-button-medium {
348
- font-size: var(--button-medium-font-size);
349
- line-height: var(--button-medium-line-height);
350
- padding: 0 var(--button-medium-padding-horizontal);
351
- @if meta.mixin-exists('hook-button-medium') {
352
- @include hook-button-medium;
353
- }
354
- }
355
-
356
- .uk-button-large {
357
- font-size: var(--button-large-font-size);
358
- line-height: var(--button-large-line-height);
359
- padding: 0 var(--button-large-padding-horizontal);
360
- @if meta.mixin-exists('hook-button-large') {
361
- @include hook-button-large;
362
- }
363
- }
364
-
365
- .uk-button-xlarge {
366
- font-size: var(--button-xlarge-font-size);
367
- line-height: var(--button-xlarge-line-height);
368
- padding: 0 var(--button-xlarge-padding-horizontal);
369
- @if meta.mixin-exists('hook-button-xlarge') {
370
- @include hook-button-xlarge;
371
- }
372
- }
373
-
374
-
375
- /* Text modifiers
376
- ========================================================================== */
377
-
378
- /*
379
- * Text
380
- * 1. Reset
381
- * 2. Style
382
- */
383
-
384
- .uk-button-text {
385
- background: none; /* 1 */
386
- color: var(--button-text-color); /* 2 */
387
- line-height: var(--button-text-line-height); /* 1 */
388
- padding: 0; /* 1 */
389
- @if meta.mixin-exists('hook-button-text') {
390
- @include hook-button-text;
391
- }
392
- }
393
-
394
- /* Hover */
395
- .uk-button-text:hover {
396
- color: var(--button-text-hover-color);
397
- @if meta.mixin-exists('hook-button-text-hover') {
398
- @include hook-button-text-hover;
399
- }
400
- }
401
-
402
- /* Disabled */
403
- .uk-button-text:disabled {
404
- color: var(--button-text-disabled-color);
405
- @if meta.mixin-exists('hook-button-text-disabled') {
406
- @include hook-button-text-disabled;
407
- }
408
- }
409
-
410
- /*
411
- * Link
412
- * 1. Reset
413
- * 2. Style
414
- */
415
-
416
- .uk-button-link {
417
- background: none; /* 1 */
418
- color: var(--button-link-color); /* 2 */
419
- line-height: var(--button-link-line-height); /* 1 */
420
- padding: 0; /* 1 */
421
- @if meta.mixin-exists('hook-button-link') {
422
- @include hook-button-link;
423
- }
424
- }
425
-
426
- /* Hover */
427
- .uk-button-link:hover {
428
- color: var(--button-link-hover-color);
429
- text-decoration: var(--button-link-hover-text-decoration);
430
- @if meta.mixin-exists('hook-button-link-hover') {
431
- @include hook-button-link-hover;
432
- }
433
- }
434
-
435
- /* Disabled */
436
- .uk-button-link:disabled {
437
- color: var(--button-link-disabled-color);
438
- text-decoration: none;
439
- @if meta.mixin-exists('hook-button-link-disabled') {
440
- @include hook-button-link-disabled;
441
- }
442
- }
443
-
444
-
445
- /* Ghost modifiers
446
- ========================================================================== */
447
-
448
- .uk-button.uk-button-ghost {
449
- background-color: transparent;
450
- border: var(--button-ghost-border-width) var(--button-ghost-border-style);
451
- }
452
-
453
- .uk-button-default.uk-button-ghost {
454
- background-color: transparent;
455
- border-color: var(--button-ghost-default-border);
456
- color: var(--button-ghost-default-color);
457
- }
458
-
459
- .uk-button-default.uk-button-ghost:hover {
460
- background-color: transparent;
461
- border-color: var(--button-ghost-default-hover-border);
462
- }
463
-
464
- .uk-button-default.uk-button-ghost:active,
465
- .uk-button-default.uk-button-ghost.active {
466
- background-color: transparent;
467
- border-color: var(--button-ghost-default-active-border);
468
- }
469
-
470
- .uk-button-primary.uk-button-ghost {
471
- background-color: transparent;
472
- border-color: var(--button-ghost-primary-border);
473
- color: var(--button-ghost-primary-color);
474
- }
475
-
476
- .uk-button-primary.uk-button-ghost:hover {
477
- background-color: transparent;
478
- border-color: var(--button-ghost-primary-hover-border);
479
- }
480
-
481
- .uk-button-primary.uk-button-ghost:active,
482
- .uk-button-primary.uk-button-ghost.active {
483
- background-color: transparent;
484
- border-color: var(--button-ghost-primary-active-border);
485
- }
486
-
487
- .uk-button-secondary.uk-button-ghost {
488
- background-color: transparent;
489
- border-color: var(--button-ghost-secondary-border);
490
- color: var(--button-ghost-secondary-color);
491
- }
492
-
493
- .uk-button-secondary.uk-button-ghost:hover {
494
- background-color: transparent;
495
- border-color: var(--button-ghost-secondary-hover-border);
496
- }
497
-
498
- .uk-button-secondary.uk-button-ghost:active,
499
- .uk-button-secondary.uk-button-ghost.active {
500
- background-color: transparent;
501
- border-color: var(--button-ghost-secondary-active-border);
502
- }
503
-
504
- .uk-button-tertiary.uk-button-ghost {
505
- background-color: transparent;
506
- border-color: var(--button-ghost-tertiary-border);
507
- color: var(--button-ghost-tertiary-color);
508
- }
509
-
510
- .uk-button-tertiary.uk-button-ghost:hover {
511
- background-color: transparent;
512
- border-color: var(--button-ghost-tertiary-hover-border);
513
- }
514
-
515
- .uk-button-tertiary.uk-button-ghost:active,
516
- .uk-button-tertiary.uk-button-ghost.active {
517
- background-color: transparent;
518
- border-color: var(--button-ghost-tertiary-active-border);
519
- }
520
-
521
- .uk-button-danger.uk-button-ghost {
522
- background-color: transparent;
523
- border-color: var(--button-ghost-danger-border);
524
- color: var(--button-ghost-danger-color);
525
- }
526
-
527
- .uk-button-danger.uk-button-ghost:hover {
528
- background-color: transparent;
529
- border-color: var(--button-ghost-danger-hover-border);
530
- }
531
-
532
- .uk-button-danger.uk-button-ghost:active,
533
- .uk-button-danger.uk-button-ghost.active {
534
- background-color: transparent;
535
- border-color: var(--button-ghost-danger-active-border);
536
- }
537
-
538
-
539
- /* Shape modifiers
540
- ========================================================================== */
541
-
542
- .uk-button-circle {
543
- border-radius: var(--button-circle-border-radius);
544
- }
545
-
546
- .uk-button-round {
547
- border-radius: var(--button-round-border-radius);
548
- }
549
-
550
-
551
- /* Group
552
- ========================================================================== */
553
-
554
- /*
555
- * 1. Using `flex` instead of `inline-block` to prevent whitespace between child elements
556
- * 2. Behave like button
557
- * 3. Create position context
558
- */
559
-
560
- .uk-button-group {
561
- display: inline-flex; /* 1 */
562
- position: relative; /* 3 */
563
- vertical-align: middle; /* 2 */
564
- }
565
-
566
-
567
- // Hooks
568
- // ========================================================================
569
-
570
- @if meta.mixin-exists('hook-button-misc') {
571
- @include hook-button-misc;
572
- }
573
-
574
-
575
- // Vars
576
- // ========================================================================
577
-
578
- :root {
579
- --button-line-height: var(--global-control-height);
580
- --button-xsmall-line-height: var(--global-control-xsmall-height);
581
- --button-small-line-height: var(--global-control-small-height);
582
- --button-medium-line-height: var(--global-control-medium-height);
583
- --button-large-line-height: var(--global-control-large-height);
584
- --button-xlarge-line-height: var(--global-control-xlarge-height);
585
- --button-font-size: var(--global-font-size);
586
- --button-xsmall-font-size: var(--global-2xsmall-font-size);
587
- --button-small-font-size: var(--global-small-font-size);
588
- --button-medium-font-size: var(--global-font-size);
589
- --button-large-font-size: var(--global-medium-font-size);
590
- --button-xlarge-font-size: var(--global-large-font-size);
591
- --button-padding-horizontal: var(--global-gutter);
592
- --button-xsmall-padding-horizontal: var(--global-xsmall-gutter);
593
- --button-small-padding-horizontal: var(--global-small-gutter);
594
- --button-medium-padding-horizontal: var(--global-gutter);
595
- --button-large-padding-horizontal: var(--global-medium-gutter);
596
- --button-xlarge-padding-horizontal: var(--global-large-gutter);
597
- --button-default-background: var(--global-muted-background);
598
- --button-default-color: var(--global-emphasis-color);
599
- --button-default-hover-background: #{$button-default-hover-background};
600
- --button-default-hover-color: var(--global-emphasis-color);
601
- --button-default-active-background: #{$button-default-active-background};
602
- --button-default-active-color: var(--global-emphasis-color);
603
- --button-primary-background: var(--global-primary-background);
604
- --button-primary-color: var(--global-inverse-color);
605
- --button-primary-hover-background: #{$button-primary-hover-background};
606
- --button-primary-hover-color: var(--global-inverse-color);
607
- --button-primary-active-background: #{$button-primary-active-background};
608
- --button-primary-active-color: var(--global-inverse-color);
609
- --button-secondary-background: var(--global-secondary-background);
610
- --button-secondary-color: var(--global-inverse-color);
611
- --button-secondary-hover-background: #{$button-secondary-hover-background};
612
- --button-secondary-hover-color: var(--global-inverse-color);
613
- --button-secondary-active-background: #{$button-secondary-active-background};
614
- --button-secondary-active-color: var(--global-inverse-color);
615
- --button-tertiary-background: var(--global-tertiary-background);
616
- --button-tertiary-color: var(--global-inverse-color);
617
- --button-tertiary-hover-background: #{$button-tertiary-hover-background};
618
- --button-tertiary-hover-color: var(--global-inverse-color);
619
- --button-tertiary-active-background: #{$button-tertiary-active-background};
620
- --button-tertiary-active-color: var(--global-inverse-color);
621
- --button-danger-background: var(--global-danger-background);
622
- --button-danger-color: var(--global-inverse-color);
623
- --button-danger-hover-background: #{$button-danger-hover-background};
624
- --button-danger-hover-color: var(--global-inverse-color);
625
- --button-danger-active-background: #{$button-danger-active-background};
626
- --button-danger-active-color: var(--global-inverse-color);
627
- --button-ghost-border-width: var(--global-border-width);
628
- --button-ghost-border-style: var(--global-border-style);
629
- --button-ghost-default-color: var(--button-default-background);
630
- --button-ghost-default-border: var(--button-default-background);
631
- --button-ghost-default-hover-border: var(--button-default-hover-background);
632
- --button-ghost-default-active-border: var(--button-default-active-background);
633
- --button-ghost-primary-color: var(--button-primary-background);
634
- --button-ghost-primary-border: var(--button-primary-background);
635
- --button-ghost-primary-hover-border: var(--button-primary-hover-background);
636
- --button-ghost-primary-active-border: var(--button-primary-active-background);
637
- --button-ghost-secondary-color: var(--button-secondary-background);
638
- --button-ghost-secondary-border: var(--button-secondary-background);
639
- --button-ghost-secondary-hover-border: var(--button-secondary-hover-background);
640
- --button-ghost-secondary-active-border: var(--button-secondary-active-background);
641
- --button-ghost-tertiary-color: var(--button-tertiary-background);
642
- --button-ghost-tertiary-border: var(--button-tertiary-background);
643
- --button-ghost-tertiary-hover-border: var(--button-tertiary-hover-background);
644
- --button-ghost-tertiary-active-border: var(--button-tertiary-active-background);
645
- --button-ghost-danger-color: var(--button-danger-background);
646
- --button-ghost-danger-border: var(--button-danger-background);
647
- --button-ghost-danger-hover-border: var(--button-danger-hover-background);
648
- --button-ghost-danger-active-border: var(--button-danger-active-background);
649
- --button-circle-border-radius: #{$button-circle-border-radius};
650
- --button-round-border-radius: #{$button-round-border-radius};
651
- --button-disabled-background: var(--global-muted-background);
652
- --button-disabled-color: var(--global-muted-color);
653
- --button-text-line-height: var(--global-line-height);
654
- --button-text-color: var(--global-muted-color);
655
- --button-text-hover-color: var(--global-color);
656
- --button-text-disabled-color: var(--global-muted-color);
657
- --button-link-line-height: var(--global-line-height);
658
- --button-link-color: var(--global-link-color);
659
- --button-link-hover-color: var(--global-link-hover-color);
660
- --button-link-hover-text-decoration: #{$button-link-hover-text-decoration};
661
- --button-link-disabled-color: var(--global-muted-color);
662
-
663
- // Inverse
664
- --inverse-button-color: var(--inverse-global-inverse-color);
665
- --inverse-button-default-background: var(--inverse-global-primary-background);
666
- --inverse-button-default-color: var(--inverse-global-inverse-color);
667
- --inverse-button-default-hover-background: #{$inverse-button-default-hover-background};
668
- --inverse-button-default-hover-color: var(--inverse-global-inverse-color);
669
- --inverse-button-default-active-background: #{$inverse-button-default-active-background};
670
- --inverse-button-default-active-color: var(--inverse-global-inverse-color);
671
- --inverse-button-primary-background: var(--inverse-global-primary-background);
672
- --inverse-button-primary-color: var(--inverse-global-inverse-color);
673
- --inverse-button-primary-hover-background: #{$inverse-button-primary-hover-background};
674
- --inverse-button-primary-hover-color: var(--inverse-global-inverse-color);
675
- --inverse-button-primary-active-background: #{$inverse-button-primary-active-background};
676
- --inverse-button-primary-active-color: var(--inverse-global-inverse-color);
677
- --inverse-button-secondary-background: var(--inverse-global-primary-background);
678
- --inverse-button-secondary-color: var(--inverse-global-inverse-color);
679
- --inverse-button-secondary-hover-background: #{$inverse-button-secondary-hover-background};
680
- --inverse-button-secondary-hover-color: var(--inverse-global-inverse-color);
681
- --inverse-button-secondary-active-background: #{$inverse-button-secondary-active-background};
682
- --inverse-button-secondary-active-color: var(--inverse-global-inverse-color);
683
- --inverse-button-tertiary-background: var(--inverse-global-primary-background);
684
- --inverse-button-tertiary-color: var(--inverse-global-inverse-color);
685
- --inverse-button-tertiary-hover-background: #{$inverse-button-tertiary-hover-background};
686
- --inverse-button-tertiary-hover-color: var(--inverse-global-inverse-color);
687
- --inverse-button-tertiary-active-background: #{$inverse-button-tertiary-active-background};
688
- --inverse-button-tertiary-active-color: var(--inverse-global-inverse-color);
689
- --inverse-button-danger-background: var(--button-danger-background);
690
- --inverse-button-danger-color: var(--button-danger-color);
691
- --inverse-button-danger-hover-background: var(--button-danger-hover-background);
692
- --inverse-button-danger-hover-color: var(--button-danger-hover-color);
693
- --inverse-button-danger-active-background: var(--button-danger-active-background);
694
- --inverse-button-danger-active-color: var(--button-danger-active-color);
695
- --inverse-button-text-color: var(--inverse-global-emphasis-color);
696
- --inverse-button-text-hover-color: var(--inverse-global-muted-color);
697
- --inverse-button-text-disabled-color: var(--inverse-global-muted-color);
698
- --inverse-button-link-color: var(--inverse-global-emphasis-color);
699
- --inverse-button-link-hover-color: var(--inverse-global-muted-color);
700
- }