fomantic-ui 2.9.1-beta.2 → 2.9.1-beta.20

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 (339) hide show
  1. package/.eslintrc.js +110 -0
  2. package/.github/workflows/ci.yml +14 -4
  3. package/.stylelintrc.js +46 -0
  4. package/dist/components/accordion.css +19 -26
  5. package/dist/components/accordion.js +568 -595
  6. package/dist/components/accordion.min.css +1 -1
  7. package/dist/components/accordion.min.js +2 -2
  8. package/dist/components/ad.css +31 -41
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +1161 -1179
  11. package/dist/components/api.min.js +2 -2
  12. package/dist/components/breadcrumb.css +1 -1
  13. package/dist/components/breadcrumb.min.css +1 -1
  14. package/dist/components/button.css +71 -106
  15. package/dist/components/button.min.css +1 -1
  16. package/dist/components/calendar.css +18 -16
  17. package/dist/components/calendar.js +1895 -1809
  18. package/dist/components/calendar.min.css +2 -2
  19. package/dist/components/calendar.min.js +2 -2
  20. package/dist/components/card.css +83 -115
  21. package/dist/components/card.min.css +1 -1
  22. package/dist/components/checkbox.css +47 -64
  23. package/dist/components/checkbox.js +842 -841
  24. package/dist/components/checkbox.min.css +1 -1
  25. package/dist/components/checkbox.min.js +2 -2
  26. package/dist/components/comment.css +37 -51
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +6 -5
  29. package/dist/components/container.min.css +2 -2
  30. package/dist/components/dimmer.css +31 -41
  31. package/dist/components/dimmer.js +708 -737
  32. package/dist/components/dimmer.min.css +1 -1
  33. package/dist/components/dimmer.min.js +2 -2
  34. package/dist/components/divider.css +32 -44
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +129 -166
  37. package/dist/components/dropdown.js +4161 -4234
  38. package/dist/components/dropdown.min.css +2 -2
  39. package/dist/components/dropdown.min.js +2 -2
  40. package/dist/components/embed.css +13 -19
  41. package/dist/components/embed.js +651 -675
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +2 -2
  44. package/dist/components/emoji.css +7 -6
  45. package/dist/components/feed.css +24 -32
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +5 -3
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +44 -58
  50. package/dist/components/flyout.js +1464 -1465
  51. package/dist/components/flyout.min.css +2 -2
  52. package/dist/components/flyout.min.js +2 -2
  53. package/dist/components/form.css +85 -111
  54. package/dist/components/form.js +1979 -2004
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +2 -2
  57. package/dist/components/grid.css +70 -96
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +47 -65
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +45 -66
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +32 -42
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +182 -65
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +55 -77
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +68 -91
  70. package/dist/components/label.min.css +2 -2
  71. package/dist/components/list.css +44 -59
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +16 -22
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +126 -186
  76. package/dist/components/message.css +25 -35
  77. package/dist/components/message.min.css +1 -1
  78. package/dist/components/modal.css +39 -40
  79. package/dist/components/modal.js +1491 -1485
  80. package/dist/components/modal.min.css +2 -2
  81. package/dist/components/modal.min.js +2 -2
  82. package/dist/components/nag.css +21 -28
  83. package/dist/components/nag.js +518 -526
  84. package/dist/components/nag.min.css +2 -2
  85. package/dist/components/nag.min.js +2 -2
  86. package/dist/components/placeholder.css +10 -12
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +352 -59
  89. package/dist/components/popup.js +1437 -1456
  90. package/dist/components/popup.min.css +2 -2
  91. package/dist/components/popup.min.js +2 -2
  92. package/dist/components/progress.css +29 -39
  93. package/dist/components/progress.js +969 -997
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +2 -2
  96. package/dist/components/rail.css +15 -20
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +9 -13
  99. package/dist/components/rating.js +505 -523
  100. package/dist/components/rating.min.css +1 -1
  101. package/dist/components/rating.min.js +2 -2
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +19 -26
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +43 -58
  107. package/dist/components/search.js +1498 -1534
  108. package/dist/components/search.min.css +2 -2
  109. package/dist/components/search.min.js +2 -2
  110. package/dist/components/segment.css +64 -83
  111. package/dist/components/segment.min.css +2 -2
  112. package/dist/components/shape.css +10 -14
  113. package/dist/components/shape.js +792 -809
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +2 -2
  116. package/dist/components/sidebar.css +43 -58
  117. package/dist/components/sidebar.js +1071 -1098
  118. package/dist/components/sidebar.min.css +2 -2
  119. package/dist/components/sidebar.min.js +2 -2
  120. package/dist/components/site.css +5 -5
  121. package/dist/components/site.js +462 -476
  122. package/dist/components/site.min.css +1 -1
  123. package/dist/components/site.min.js +2 -2
  124. package/dist/components/slider.css +27 -37
  125. package/dist/components/slider.js +1287 -1306
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +639 -657
  128. package/dist/components/state.min.js +2 -2
  129. package/dist/components/statistic.css +32 -41
  130. package/dist/components/statistic.min.css +2 -2
  131. package/dist/components/step.css +26 -35
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +857 -902
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +2 -2
  137. package/dist/components/tab.css +6 -8
  138. package/dist/components/tab.js +922 -963
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +2 -2
  141. package/dist/components/table.css +93 -119
  142. package/dist/components/table.min.css +2 -2
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +4 -6
  146. package/dist/components/toast.js +886 -887
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +2 -2
  149. package/dist/components/transition.css +150 -3
  150. package/dist/components/transition.js +1041 -1077
  151. package/dist/components/transition.min.css +2 -2
  152. package/dist/components/transition.min.js +2 -2
  153. package/dist/components/visibility.js +1220 -1244
  154. package/dist/components/visibility.min.js +2 -2
  155. package/dist/semantic.css +2529 -1778
  156. package/dist/semantic.js +28928 -29383
  157. package/dist/semantic.min.css +2 -2
  158. package/dist/semantic.min.js +2 -2
  159. package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  160. package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  161. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  162. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  163. package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  164. package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  165. package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  166. package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  167. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  168. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  169. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  170. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  171. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  172. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  173. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  174. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  175. package/examples/assets/show-examples.js +13 -13
  176. package/gulpfile.js +9 -10
  177. package/package.json +13 -8
  178. package/scripts/nightly-version.js +81 -75
  179. package/src/definitions/behaviors/api.js +1162 -1180
  180. package/src/definitions/behaviors/form.js +1978 -2003
  181. package/src/definitions/behaviors/state.js +645 -663
  182. package/src/definitions/behaviors/visibility.js +1219 -1243
  183. package/src/definitions/collections/breadcrumb.less +41 -44
  184. package/src/definitions/collections/form.less +869 -879
  185. package/src/definitions/collections/grid.less +1690 -1695
  186. package/src/definitions/collections/menu.less +1493 -1503
  187. package/src/definitions/collections/message.less +292 -295
  188. package/src/definitions/collections/table.less +1616 -1620
  189. package/src/definitions/elements/button.less +1721 -1743
  190. package/src/definitions/elements/container.less +209 -209
  191. package/src/definitions/elements/divider.less +205 -206
  192. package/src/definitions/elements/emoji.less +38 -44
  193. package/src/definitions/elements/flag.less +44 -46
  194. package/src/definitions/elements/header.less +337 -345
  195. package/src/definitions/elements/icon.less +516 -443
  196. package/src/definitions/elements/image.less +221 -225
  197. package/src/definitions/elements/input.less +663 -659
  198. package/src/definitions/elements/label.less +803 -793
  199. package/src/definitions/elements/list.less +809 -809
  200. package/src/definitions/elements/loader.less +272 -266
  201. package/src/definitions/elements/placeholder.less +171 -168
  202. package/src/definitions/elements/rail.less +91 -91
  203. package/src/definitions/elements/reveal.less +192 -196
  204. package/src/definitions/elements/segment.less +743 -746
  205. package/src/definitions/elements/step.less +425 -433
  206. package/src/definitions/elements/text.less +32 -34
  207. package/src/definitions/globals/reset.less +9 -6
  208. package/src/definitions/globals/site.js +461 -475
  209. package/src/definitions/globals/site.less +106 -108
  210. package/src/definitions/modules/accordion.js +567 -594
  211. package/src/definitions/modules/accordion.less +242 -246
  212. package/src/definitions/modules/calendar.js +1894 -1808
  213. package/src/definitions/modules/calendar.less +98 -95
  214. package/src/definitions/modules/checkbox.js +841 -840
  215. package/src/definitions/modules/checkbox.less +536 -542
  216. package/src/definitions/modules/dimmer.js +707 -736
  217. package/src/definitions/modules/dimmer.less +300 -297
  218. package/src/definitions/modules/dropdown.js +4160 -4233
  219. package/src/definitions/modules/dropdown.less +1577 -1589
  220. package/src/definitions/modules/embed.js +650 -674
  221. package/src/definitions/modules/embed.less +81 -82
  222. package/src/definitions/modules/flyout.js +1463 -1464
  223. package/src/definitions/modules/flyout.less +445 -451
  224. package/src/definitions/modules/modal.js +1490 -1484
  225. package/src/definitions/modules/modal.less +459 -459
  226. package/src/definitions/modules/nag.js +517 -525
  227. package/src/definitions/modules/nag.less +134 -138
  228. package/src/definitions/modules/popup.js +1436 -1455
  229. package/src/definitions/modules/popup.less +742 -687
  230. package/src/definitions/modules/progress.js +968 -996
  231. package/src/definitions/modules/progress.less +521 -494
  232. package/src/definitions/modules/rating.js +504 -522
  233. package/src/definitions/modules/rating.less +94 -101
  234. package/src/definitions/modules/search.js +1497 -1533
  235. package/src/definitions/modules/search.less +375 -382
  236. package/src/definitions/modules/shape.js +791 -808
  237. package/src/definitions/modules/shape.less +71 -76
  238. package/src/definitions/modules/sidebar.js +1070 -1097
  239. package/src/definitions/modules/sidebar.less +463 -472
  240. package/src/definitions/modules/slider.js +1286 -1305
  241. package/src/definitions/modules/slider.less +307 -308
  242. package/src/definitions/modules/sticky.js +873 -918
  243. package/src/definitions/modules/sticky.less +21 -23
  244. package/src/definitions/modules/tab.js +921 -962
  245. package/src/definitions/modules/tab.less +51 -52
  246. package/src/definitions/modules/toast.js +885 -886
  247. package/src/definitions/modules/toast.less +584 -586
  248. package/src/definitions/modules/transition.js +1040 -1076
  249. package/src/definitions/modules/transition.less +62 -28
  250. package/src/definitions/views/ad.less +206 -206
  251. package/src/definitions/views/card.less +968 -970
  252. package/src/definitions/views/comment.less +190 -198
  253. package/src/definitions/views/feed.less +220 -224
  254. package/src/definitions/views/item.less +436 -446
  255. package/src/definitions/views/statistic.less +271 -277
  256. package/src/theme.less +29 -32
  257. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  258. package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  259. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  260. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  261. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  262. package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  263. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  264. package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  265. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  266. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  267. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  268. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  269. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  270. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  271. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  272. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  273. package/src/themes/default/elements/container.variables +0 -7
  274. package/src/themes/default/elements/icon.variables +18 -0
  275. package/src/themes/default/elements/segment.variables +0 -7
  276. package/src/themes/default/globals/colors.less +589 -589
  277. package/src/themes/default/globals/site.variables +8 -0
  278. package/src/themes/default/globals/variation.variables +13 -1
  279. package/src/themes/default/modules/calendar.variables +2 -0
  280. package/src/themes/default/modules/nag.variables +1 -1
  281. package/src/themes/default/modules/popup.variables +2 -0
  282. package/src/themes/default/modules/transition.variables +8 -1
  283. package/tasks/admin/components/create.js +274 -276
  284. package/tasks/admin/components/init.js +123 -130
  285. package/tasks/admin/components/update.js +149 -157
  286. package/tasks/admin/distributions/create.js +184 -187
  287. package/tasks/admin/distributions/init.js +123 -130
  288. package/tasks/admin/distributions/update.js +145 -152
  289. package/tasks/admin/publish.js +5 -7
  290. package/tasks/admin/register.js +36 -38
  291. package/tasks/admin/release.js +8 -10
  292. package/tasks/build/assets.js +42 -39
  293. package/tasks/build/css.js +225 -216
  294. package/tasks/build/javascript.js +118 -113
  295. package/tasks/build.js +10 -10
  296. package/tasks/check-install.js +14 -16
  297. package/tasks/clean.js +5 -5
  298. package/tasks/collections/admin.js +34 -36
  299. package/tasks/collections/build.js +18 -20
  300. package/tasks/collections/docs.js +9 -11
  301. package/tasks/collections/install.js +9 -11
  302. package/tasks/collections/rtl.js +9 -11
  303. package/tasks/collections/various.js +8 -10
  304. package/tasks/config/admin/github.js +17 -17
  305. package/tasks/config/admin/oauth.example.js +4 -4
  306. package/tasks/config/admin/release.js +98 -98
  307. package/tasks/config/admin/templates/component-package.js +9 -10
  308. package/tasks/config/admin/templates/css-package.js +18 -20
  309. package/tasks/config/admin/templates/less-package.js +11 -13
  310. package/tasks/config/defaults.js +116 -114
  311. package/tasks/config/docs.js +23 -23
  312. package/tasks/config/npm/gulpfile.js +8 -9
  313. package/tasks/config/project/config.js +127 -134
  314. package/tasks/config/project/install.js +715 -713
  315. package/tasks/config/project/release.js +32 -38
  316. package/tasks/config/tasks.js +165 -156
  317. package/tasks/config/user.js +23 -26
  318. package/tasks/docs/build.js +97 -95
  319. package/tasks/docs/metadata.js +90 -96
  320. package/tasks/docs/serve.js +80 -81
  321. package/tasks/install.js +370 -378
  322. package/tasks/rtl/build.js +2 -2
  323. package/tasks/rtl/watch.js +2 -2
  324. package/tasks/version.js +4 -4
  325. package/tasks/watch.js +28 -30
  326. package/test/meteor/assets.js +10 -13
  327. package/test/meteor/fonts.js +12 -13
  328. package/test/modules/accordion.spec.js +6 -8
  329. package/test/modules/checkbox.spec.js +5 -7
  330. package/test/modules/dropdown.spec.js +5 -7
  331. package/test/modules/modal.spec.js +6 -8
  332. package/test/modules/module.spec.js +158 -178
  333. package/test/modules/popup.spec.js +5 -7
  334. package/test/modules/search.spec.js +5 -7
  335. package/test/modules/shape.spec.js +5 -7
  336. package/test/modules/sidebar.spec.js +5 -7
  337. package/test/modules/tab.spec.js +6 -8
  338. package/test/modules/transition.spec.js +5 -7
  339. package/test/modules/video.spec.js +5 -7
@@ -12,803 +12,807 @@
12
12
  Theme
13
13
  *******************************/
14
14
 
15
- @type : 'element';
15
+ @type : 'element';
16
16
  @element : 'input';
17
17
 
18
18
  @import (multiple) '../../theme.config';
19
19
 
20
-
21
20
  /*******************************
22
21
  Standard
23
22
  *******************************/
24
23
 
25
-
26
- /*--------------------
24
+ /* --------------------
27
25
  Inputs
28
- ---------------------*/
26
+ --------------------- */
29
27
 
30
28
  .ui.input {
31
- position: relative;
32
- font-weight: @normal;
33
- font-style: normal;
34
- display: inline-flex;
35
- color: @inputColor;
29
+ position: relative;
30
+ font-weight: @normal;
31
+ font-style: normal;
32
+ display: inline-flex;
33
+ color: @inputColor;
36
34
  }
37
35
  .ui.input > input {
38
- margin: 0;
39
- max-width: 100%;
40
- flex: 1 0 auto;
41
- outline: none;
42
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
43
- text-align: @textAlign;
44
- line-height: @lineHeight;
45
-
46
- font-family: @inputFont;
47
-
48
- background: @background;
49
- border: @border;
50
- color: @inputColor;
51
- border-radius: @borderRadius;
52
- transition: @transition;
53
-
54
- box-shadow: @boxShadow;
55
- &:not([type="color"]) {
56
- padding: @padding;
57
- }
58
- &::-webkit-calendar-picker-indicator {
59
- padding: 0;
60
- opacity: @iconOpacity;
61
- transition: @iconTransition;
62
- cursor: pointer;
63
- }
36
+ margin: 0;
37
+ max-width: 100%;
38
+ flex: 1 0 auto;
39
+ outline: none;
40
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
41
+ text-align: @textAlign;
42
+ line-height: @lineHeight;
43
+
44
+ font-family: @inputFont;
45
+
46
+ background: @background;
47
+ border: @border;
48
+ color: @inputColor;
49
+ border-radius: @borderRadius;
50
+ transition: @transition;
51
+
52
+ box-shadow: @boxShadow;
53
+ &:not([type="color"]) {
54
+ padding: @padding;
55
+ }
56
+ &::-webkit-calendar-picker-indicator {
57
+ padding: 0;
58
+ opacity: @iconOpacity;
59
+ transition: @iconTransition;
60
+ cursor: pointer;
61
+ }
64
62
  }
65
63
 
66
-
67
- /*--------------------
64
+ /* --------------------
68
65
  Placeholder
69
- ---------------------*/
66
+ --------------------- */
70
67
 
71
68
  /* browsers require these rules separate */
72
69
 
73
70
  .ui.input > input::-webkit-input-placeholder {
74
- color: @placeholderColor;
71
+ color: @placeholderColor;
75
72
  }
76
73
  .ui.input > input::-moz-placeholder {
77
- color: @placeholderColor;
78
- opacity: 1;
74
+ color: @placeholderColor;
75
+ opacity: 1;
79
76
  }
80
- .ui.input > input:-ms-input-placeholder when (@supportIE){
81
- color: @placeholderColor;
77
+ .ui.input > input:-ms-input-placeholder when (@supportIE) {
78
+ color: @placeholderColor;
82
79
  }
83
80
 
84
-
85
81
  /*******************************
86
82
  States
87
83
  *******************************/
88
84
  & when (@variationInputDisabled) {
89
- /*--------------------
90
- Disabled
91
- ---------------------*/
85
+ /* --------------------
86
+ Disabled
87
+ --------------------- */
92
88
 
93
- .ui.disabled.input,
94
- .ui.input:not(.disabled) input[disabled] {
95
- opacity: @disabledOpacity;
96
- }
89
+ .ui.disabled.input,
90
+ .ui.input:not(.disabled) input[disabled] {
91
+ opacity: @disabledOpacity;
92
+ }
97
93
 
98
- .ui.disabled.input > input,
99
- .ui.input:not(.disabled) input[disabled] {
100
- pointer-events: none;
101
- }
94
+ .ui.disabled.input > input,
95
+ .ui.input:not(.disabled) input[disabled] {
96
+ pointer-events: @disabledPointerEvents;
97
+ }
102
98
  }
103
99
 
104
- /*--------------------
100
+ /* --------------------
105
101
  Active
106
- ---------------------*/
102
+ --------------------- */
107
103
 
108
104
  .ui.input > input:active,
109
105
  .ui.input.down input {
110
- border-color: @downBorderColor;
111
- background: @downBackground;
112
- color: @downColor;
113
- box-shadow: @downBoxShadow;
106
+ border-color: @downBorderColor;
107
+ background: @downBackground;
108
+ color: @downColor;
109
+ box-shadow: @downBoxShadow;
114
110
  }
115
111
 
116
112
  & when (@variationInputLoading) {
117
- /*--------------------
118
- Loading
119
- ---------------------*/
120
-
121
- .ui.loading.loading.input > i.icon::before {
122
- position: absolute;
123
- content: '';
124
- top: 50%;
125
- left: 50%;
126
-
127
- margin: @loaderMargin;
128
- width: @loaderSize;
129
- height: @loaderSize;
130
-
131
- border-radius: @circularRadius;
132
- border: @loaderLineWidth solid @loaderFillColor;
133
- }
134
- .ui.loading.loading.input > i.icon::after {
135
- position: absolute;
136
- content: '';
137
- top: 50%;
138
- left: 50%;
113
+ /* --------------------
114
+ Loading
115
+ --------------------- */
139
116
 
140
- margin: @loaderMargin;
141
- width: @loaderSize;
142
- height: @loaderSize;
117
+ .ui.loading.loading.input > i.icon::before {
118
+ position: absolute;
119
+ content: '';
120
+ top: 50%;
121
+ left: 50%;
143
122
 
144
- animation: loader @loaderSpeed infinite linear;
123
+ margin: @loaderMargin;
124
+ width: @loaderSize;
125
+ height: @loaderSize;
145
126
 
146
- border: @loaderLineWidth solid @loaderLineColor;
147
- border-radius: @circularRadius;
127
+ border-radius: @circularRadius;
128
+ border: @loaderLineWidth solid @loaderFillColor;
129
+ }
130
+ .ui.loading.loading.input > i.icon::after {
131
+ position: absolute;
132
+ content: '';
133
+ top: 50%;
134
+ left: 50%;
148
135
 
149
- box-shadow: 0 0 0 1px transparent;
150
- }
151
- }
136
+ margin: @loaderMargin;
137
+ width: @loaderSize;
138
+ height: @loaderSize;
139
+
140
+ animation: loader @loaderSpeed infinite linear;
152
141
 
142
+ border: @loaderLineWidth solid @loaderLineColor;
143
+ border-radius: @circularRadius;
144
+
145
+ box-shadow: 0 0 0 1px transparent;
146
+ }
147
+ }
153
148
 
154
- /*--------------------
149
+ /* --------------------
155
150
  Focus
156
- ---------------------*/
151
+ --------------------- */
157
152
 
158
153
  .ui.input.focus > input,
159
- .ui.input > input:focus {
160
- border-color: @focusBorderColor;
161
- background: @focusBackground;
162
- color: @focusColor;
163
- box-shadow: @focusBoxShadow;
154
+ .ui.input > input:focus {
155
+ border-color: @focusBorderColor;
156
+ background: @focusBackground;
157
+ color: @focusColor;
158
+ box-shadow: @focusBoxShadow;
164
159
  }
165
160
  .ui.input.focus > input::-webkit-input-placeholder,
166
161
  .ui.input > input:focus::-webkit-input-placeholder {
167
- color: @placeholderFocusColor;
162
+ color: @placeholderFocusColor;
168
163
  }
169
164
  .ui.input.focus > input::-moz-placeholder,
170
165
  .ui.input > input:focus::-moz-placeholder {
171
- color: @placeholderFocusColor;
166
+ color: @placeholderFocusColor;
172
167
  }
173
168
  & when (@supportIE) {
174
- .ui.input.focus > input:-ms-input-placeholder,
175
- .ui.input > input:focus:-ms-input-placeholder {
176
- color: @placeholderFocusColor;
177
- }
169
+ .ui.input.focus > input:-ms-input-placeholder,
170
+ .ui.input > input:focus:-ms-input-placeholder {
171
+ color: @placeholderFocusColor;
172
+ }
178
173
  }
179
174
 
180
-
181
175
  & when not (@variationInputStates = false) {
182
- /*--------------------
183
- States
184
- ---------------------*/
185
- each(@variationInputStates, {
186
- @state: @value;
187
-
188
- .ui.input.@{state} > input {
189
- background-color: @formStates[@@state][background];
190
- border-color: @formStates[@@state][borderColor];
191
- color: @formStates[@@state][color];
192
- box-shadow: @formStates[@@state][boxShadow];
193
- }
194
- & when (@state=error) {
195
- .ui.input > input:not(:placeholder-shown):invalid {
196
- background-color: @formStates[@@state][background];
197
- border-color: @formStates[@@state][borderColor];
198
- color: @formStates[@@state][color];
199
- box-shadow: @formStates[@@state][boxShadow];
200
- }
201
- .ui.input > input:not(:-ms-input-placeholder):invalid when (@supportIE){
202
- background-color: @formStates[@@state][background];
203
- border-color: @formStates[@@state][borderColor];
204
- color: @formStates[@@state][color];
205
- box-shadow: @formStates[@@state][boxShadow];
206
- }
207
- }
208
-
209
- /* Placeholder */
210
- .ui.input.@{state} > input::-webkit-input-placeholder {
211
- color: @formStates[@@state][inputPlaceholderColor];
212
- }
213
- .ui.input.@{state} > input::-moz-placeholder {
214
- color: @formStates[@@state][inputPlaceholderColor];
215
- }
216
- .ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
217
- color: @formStates[@@state][inputPlaceholderColor] !important;
218
- }
219
-
220
- /* Focused Placeholder */
221
- .ui.input.@{state} > input:focus::-webkit-input-placeholder {
222
- color: @formStates[@@state][inputPlaceholderFocusColor];
223
- }
224
- .ui.input.@{state} > input:focus::-moz-placeholder {
225
- color: @formStates[@@state][inputPlaceholderFocusColor];
226
- }
227
- .ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
228
- color: @formStates[@@state][inputPlaceholderFocusColor] !important;
229
- }
230
- })
176
+ /* --------------------
177
+ States
178
+ --------------------- */
179
+ each(@variationInputStates, {
180
+ @state: @value;
181
+
182
+ .ui.input.@{state} > input {
183
+ background-color: @formStates[@@state][background];
184
+ border-color: @formStates[@@state][borderColor];
185
+ color: @formStates[@@state][color];
186
+ box-shadow: @formStates[@@state][boxShadow];
187
+ }
188
+ & when (@state=error) and (@variationInputInvalid) {
189
+ .ui.input > input:not(:placeholder-shown):invalid {
190
+ background-color: @formStates[@@state][background];
191
+ border-color: @formStates[@@state][borderColor];
192
+ color: @formStates[@@state][color];
193
+ box-shadow: @formStates[@@state][boxShadow];
194
+ }
195
+ .ui.input > input:not(:-ms-input-placeholder):invalid when (@supportIE){
196
+ background-color: @formStates[@@state][background];
197
+ border-color: @formStates[@@state][borderColor];
198
+ color: @formStates[@@state][color];
199
+ box-shadow: @formStates[@@state][boxShadow];
200
+ }
201
+ }
202
+
203
+ /* Placeholder */
204
+ .ui.input.@{state} > input::-webkit-input-placeholder {
205
+ color: @formStates[@@state][inputPlaceholderColor];
206
+ }
207
+ .ui.input.@{state} > input::-moz-placeholder {
208
+ color: @formStates[@@state][inputPlaceholderColor];
209
+ }
210
+ .ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
211
+ color: @formStates[@@state][inputPlaceholderColor] !important;
212
+ }
213
+
214
+ /* Focused Placeholder */
215
+ .ui.input.@{state} > input:focus::-webkit-input-placeholder {
216
+ color: @formStates[@@state][inputPlaceholderFocusColor];
217
+ }
218
+ .ui.input.@{state} > input:focus::-moz-placeholder {
219
+ color: @formStates[@@state][inputPlaceholderFocusColor];
220
+ }
221
+ .ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
222
+ color: @formStates[@@state][inputPlaceholderFocusColor] !important;
223
+ }
224
+ })
231
225
  }
226
+
232
227
  /*******************************
233
228
  Variations
234
229
  *******************************/
235
230
 
236
231
  & when (@variationInputTransparent) {
237
- /*--------------------
238
- Transparent
239
- ---------------------*/
240
-
241
-
242
- .ui.transparent.input > textarea,
243
- .ui.transparent.input > input {
244
- border-color: transparent !important;
245
- background-color: transparent !important;
246
- padding: 0;
247
- box-shadow: none !important;
248
- border-radius: 0 !important;
249
- }
250
- .field .ui.transparent.input > textarea {
251
- padding: @padding;
252
- }
253
-
254
- /* Transparent Icon */
255
- :not(.field) > .ui.transparent.icon.input > i.icon {
256
- width: @transparentIconWidth;
257
- }
258
- :not(.field) > .ui.ui.ui.transparent.icon.input > input {
259
- padding-left: 0;
260
- padding-right: @transparentIconMargin;
261
- }
262
- :not(.field) > .ui.ui.ui.transparent[class*="left icon"].input > input {
263
- padding-left: @transparentIconMargin;
264
- padding-right: 0;
265
- }
266
- & when (@variationInputInverted) {
267
- /* Transparent Inverted */
268
- .ui.transparent.inverted.input {
269
- color: @transparentInvertedColor;
270
- }
271
- .ui.ui.transparent.inverted.input > textarea,
272
- .ui.ui.transparent.inverted.input > input {
273
- color: inherit;
274
- }
232
+ /* --------------------
233
+ Transparent
234
+ --------------------- */
235
+
236
+ .ui.transparent.input > textarea,
237
+ .ui.transparent.input > input {
238
+ border-color: transparent !important;
239
+ background-color: transparent !important;
240
+ padding: 0;
241
+ box-shadow: none !important;
242
+ border-radius: 0 !important;
243
+ }
244
+ .field .ui.transparent.input > textarea {
245
+ padding: @padding;
246
+ }
247
+
248
+ /* Transparent Icon */
249
+ :not(.field) > .ui.transparent.icon.input > i.icon {
250
+ width: @transparentIconWidth;
251
+ }
252
+ :not(.field) > .ui.ui.ui.transparent.icon.input > input {
253
+ padding-left: 0;
254
+ padding-right: @transparentIconMargin;
255
+ }
256
+ :not(.field) > .ui.ui.ui.transparent[class*="left icon"].input > input {
257
+ padding-left: @transparentIconMargin;
258
+ padding-right: 0;
259
+ }
260
+ & when (@variationInputInverted) {
261
+ /* Transparent Inverted */
262
+ .ui.transparent.inverted.input {
263
+ color: @transparentInvertedColor;
264
+ }
265
+ .ui.ui.transparent.inverted.input > textarea,
266
+ .ui.ui.transparent.inverted.input > input {
267
+ color: inherit;
268
+ }
275
269
 
276
- .ui.transparent.inverted.input > input::-webkit-input-placeholder {
277
- color: @transparentInvertedPlaceholderColor;
278
- }
279
- .ui.transparent.inverted.input > input::-moz-placeholder {
280
- color: @transparentInvertedPlaceholderColor;
281
- }
282
- .ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
283
- color: @transparentInvertedPlaceholderColor;
270
+ .ui.transparent.inverted.input > input::-webkit-input-placeholder {
271
+ color: @transparentInvertedPlaceholderColor;
272
+ }
273
+ .ui.transparent.inverted.input > input::-moz-placeholder {
274
+ color: @transparentInvertedPlaceholderColor;
275
+ }
276
+ .ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
277
+ color: @transparentInvertedPlaceholderColor;
278
+ }
284
279
  }
285
- }
286
280
  }
287
281
 
288
282
  & when (@variationInputIcon) {
289
- /*--------------------
290
- Icon
291
- ---------------------*/
292
-
293
- .ui.icon.input > i.icon {
294
- cursor: default;
295
- position: absolute;
296
- line-height: 1;
297
- text-align: center;
298
- top: 0;
299
- right: 0;
300
- margin: 0;
301
- height: 100%;
302
-
303
- width: @iconWidth;
304
- opacity: @iconOpacity;
305
- border-radius: 0 @borderRadius @borderRadius 0;
306
- transition: @iconTransition;
307
- }
308
- .ui.icon.input > i.icon:not(.link) {
309
- pointer-events: none;
310
- }
311
- .ui.ui.ui.ui.icon.input:not(.corner) > textarea,
312
- .ui.ui.ui.ui.icon.input:not(.corner) > input {
313
- padding-right: @iconMargin;
314
- }
315
-
316
- .ui.icon.input > i.icon::before,
317
- .ui.icon.input > i.icon::after {
318
- left: 0;
319
- position: absolute;
320
- text-align: center;
321
- top: 50%;
322
- width: 100%;
323
- margin-top: @iconOffset;
324
- }
325
- .ui.icon.input > i.link.icon {
326
- cursor: pointer;
327
- }
328
- .ui.icon.input > i.circular.icon {
329
- top: @circularIconVerticalOffset;
330
- right: @circularIconHorizontalOffset;
331
- }
332
-
333
- /* Left Icon Input */
334
- .ui[class*="left icon"].input > i.icon {
335
- right: auto;
336
- left: @borderWidth;
337
- border-radius: @borderRadius 0 0 @borderRadius;
338
- }
339
- .ui[class*="left icon"].input > i.circular.icon {
340
- right: auto;
341
- left: @circularIconHorizontalOffset;
342
- }
343
- .ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > textarea,
344
- .ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > input {
345
- padding-left: @iconMargin;
346
- }
347
- .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > textarea,
348
- .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > input {
349
- padding-right: @horizontalPadding;
350
- }
351
-
352
- /* Focus */
353
- .ui.input > input:focus::-webkit-calendar-picker-indicator,
354
- .ui.icon.input > textarea:focus ~ i.icon,
355
- .ui.icon.input > input:focus ~ i.icon {
356
- opacity: @iconFocusOpacity;
357
- }
283
+ /* --------------------
284
+ Icon
285
+ --------------------- */
286
+
287
+ .ui.icon.input > i.icon {
288
+ cursor: default;
289
+ position: absolute;
290
+ line-height: 1;
291
+ text-align: center;
292
+ top: 0;
293
+ right: 0;
294
+ margin: 0;
295
+ height: 100%;
296
+
297
+ width: @iconWidth;
298
+ opacity: @iconOpacity;
299
+ border-radius: 0 @borderRadius @borderRadius 0;
300
+ transition: @iconTransition;
301
+ }
302
+ .ui.icon.input > i.icon:not(.link) {
303
+ pointer-events: none;
304
+ }
305
+ .ui.ui.ui.ui.icon.input:not(.corner) > textarea,
306
+ .ui.ui.ui.ui.icon.input:not(.corner) > input {
307
+ padding-right: @iconMargin;
308
+ }
309
+
310
+ .ui.icon.input > i.icon::before,
311
+ .ui.icon.input > i.icon::after {
312
+ left: 0;
313
+ position: absolute;
314
+ text-align: center;
315
+ top: 50%;
316
+ width: 100%;
317
+ margin-top: @iconOffset;
318
+ }
319
+ .ui.icon.input > i.link.icon {
320
+ cursor: pointer;
321
+ }
322
+ .ui.icon.input > i.circular.icon {
323
+ top: @circularIconVerticalOffset;
324
+ right: @circularIconHorizontalOffset;
325
+ }
326
+
327
+ /* Left Icon Input */
328
+ .ui[class*="left icon"].input > i.icon {
329
+ right: auto;
330
+ left: @borderWidth;
331
+ border-radius: @borderRadius 0 0 @borderRadius;
332
+ }
333
+ .ui[class*="left icon"].input > i.circular.icon {
334
+ right: auto;
335
+ left: @circularIconHorizontalOffset;
336
+ }
337
+ .ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > textarea,
338
+ .ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > input {
339
+ padding-left: @iconMargin;
340
+ }
341
+ .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > textarea,
342
+ .ui.ui.ui.ui[class*="left icon"]:not(.corner).input > input {
343
+ padding-right: @horizontalPadding;
344
+ }
345
+
346
+ /* Focus */
347
+ .ui.input > input:focus::-webkit-calendar-picker-indicator,
348
+ .ui.icon.input > textarea:focus ~ i.icon,
349
+ .ui.icon.input > input:focus ~ i.icon {
350
+ opacity: @iconFocusOpacity;
351
+ }
358
352
  }
359
353
 
360
354
  & when (@variationInputLabeled) {
361
- /*--------------------
362
- Labeled
363
- ---------------------*/
355
+ /* --------------------
356
+ Labeled
357
+ --------------------- */
364
358
 
365
- /* Adjacent Label */
366
- .ui.labeled.input > .label {
367
- flex: 0 0 auto;
368
- margin: 0;
369
- font-size: @relativeMedium;
370
- }
371
- .ui.labeled.input > .label:not(.corner) {
372
- padding-top: @verticalPadding;
373
- padding-bottom: @verticalPadding;
374
- }
375
-
376
- /* Regular Label on Left */
377
- .ui.labeled.input:not([class*="corner labeled"]) .label:first-child {
378
- border-top-right-radius: 0;
379
- border-bottom-right-radius: 0;
380
- }
381
- .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input {
382
- border-top-left-radius: 0;
383
- border-bottom-left-radius: 0;
384
- border-left-color: transparent;
385
- }
386
- .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input:focus {
387
- border-left-color: @focusBorderColor;
388
- }
389
-
390
- /* Regular Label on Right */
391
- .ui[class*="right labeled"].input > input {
392
- border-top-right-radius: 0 !important;
393
- border-bottom-right-radius: 0 !important;
394
- border-right-color: transparent !important;
395
- }
396
- .ui[class*="right labeled"].input > input + .label {
397
- border-top-left-radius: 0;
398
- border-bottom-left-radius: 0;
399
- }
400
-
401
- .ui[class*="right labeled"].input > input:focus {
402
- border-right-color: @focusBorderColor !important;
403
- }
404
- }
405
-
406
- & when (@variationInputCorner) {
407
- /* Corner Label */
408
- .ui.labeled.input .corner.label {
409
- top: @labelCornerTop;
410
- right: @labelCornerRight;
411
- font-size: @labelCornerSize;
412
- border-radius: 0 @borderRadius 0 0;
413
- }
414
-
415
- /* Spacing with corner label */
416
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown,
417
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > textarea,
418
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > input {
419
- padding-right: @labeledMargin;
420
- }
421
- .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > .ui.dropdown,
422
- .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > textarea,
423
- .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > input {
424
- padding-right: @labeledIconInputMargin;
425
- }
426
- .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > i.icon {
427
- margin-right: @labeledIconMargin;
428
- }
359
+ /* Adjacent Label */
360
+ .ui.labeled.input > .label {
361
+ flex: 0 0 auto;
362
+ margin: 0;
363
+ font-size: @relativeMedium;
364
+ }
365
+ .ui.labeled.input > .label:not(.corner) {
366
+ padding-top: @verticalPadding;
367
+ padding-bottom: @verticalPadding;
368
+ }
429
369
 
430
- /* Left Labeled */
431
- .ui[class*="left icon"].input > .ui.dropdown,
432
- .ui[class*="left corner labeled"].input > .ui.dropdown,
433
- .ui[class*="left corner labeled"].input > textarea,
434
- .ui[class*="left corner labeled"].input > input {
435
- padding-left: @labeledMargin;
436
- }
437
- & when (@variationInputIcon) {
438
- .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > .ui.dropdown,
439
- .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > textarea,
440
- .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > input {
441
- padding-right: @labeledIconInputMargin;
370
+ /* Regular Label on Left */
371
+ .ui.labeled.input:not([class*="corner labeled"]) .label:first-child {
372
+ border-top-right-radius: 0;
373
+ border-bottom-right-radius: 0;
442
374
  }
443
- .ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown,
444
- .ui[class*="left corner labeled"][class*="left icon"].input > textarea,
445
- .ui[class*="left corner labeled"][class*="left icon"].input > input {
446
- padding-left: @labeledAndIconMargin;
375
+ .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input {
376
+ border-top-left-radius: 0;
377
+ border-bottom-left-radius: 0;
378
+ border-left-color: transparent;
447
379
  }
448
- .ui[class*="left corner labeled"].icon.input > i.icon {
449
- margin-left: @labeledIconMargin;
380
+ .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input:focus {
381
+ border-left-color: @focusBorderColor;
450
382
  }
451
- .ui[class*="left corner labeled"].icon:not([class*="left icon"]).input > input {
452
- padding-right: @labeledMargin;
383
+
384
+ /* Regular Label on Right */
385
+ .ui[class*="right labeled"].input > input {
386
+ border-top-right-radius: 0 !important;
387
+ border-bottom-right-radius: 0 !important;
388
+ border-right-color: transparent !important;
453
389
  }
454
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > input {
455
- padding-right: @labeledMargin * 2;
390
+ .ui[class*="right labeled"].input > input + .label {
391
+ border-top-left-radius: 0;
392
+ border-bottom-left-radius: 0;
456
393
  }
457
- }
458
394
 
459
- .ui[class*="left icon"].input > .ui.dropdown,
460
- .ui[class*="left corner labeled"].input > .ui.dropdown {
461
- & > .search {
462
- padding-left: @labeledMargin;
395
+ .ui[class*="right labeled"].input > input:focus {
396
+ border-right-color: @focusBorderColor !important;
463
397
  }
464
- & > .menu {
465
- padding-left: @labeledIconMargin;
466
- & > .item {
398
+ }
399
+
400
+ & when (@variationInputCorner) {
401
+ /* Corner Label */
402
+ .ui.labeled.input .corner.label {
403
+ top: @labelCornerTop;
404
+ right: @labelCornerRight;
405
+ font-size: @labelCornerSize;
406
+ border-radius: 0 @borderRadius 0 0;
407
+ }
408
+
409
+ /* Spacing with corner label */
410
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown,
411
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > textarea,
412
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > input {
413
+ padding-right: @labeledMargin;
414
+ }
415
+ .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > .ui.dropdown,
416
+ .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > textarea,
417
+ .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > input {
418
+ padding-right: @labeledIconInputMargin;
419
+ }
420
+ .ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > i.icon {
421
+ margin-right: @labeledIconMargin;
422
+ }
423
+
424
+ /* Left Labeled */
425
+ .ui[class*="left icon"].input > .ui.dropdown:first-child,
426
+ .ui[class*="left icon"].input > i.icon + .ui.dropdown,
427
+ .ui[class*="left corner labeled"].input > .ui.dropdown,
428
+ .ui[class*="left corner labeled"].input > textarea,
429
+ .ui[class*="left corner labeled"].input > input {
467
430
  padding-left: @labeledMargin;
468
- margin-left: -@labeledIconMargin;
469
- }
470
431
  }
471
- }
472
- .ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown {
473
- & > .search {
474
- padding-left: @labeledAndIconMargin;
432
+ & when (@variationInputIcon) {
433
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > .ui.dropdown,
434
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > textarea,
435
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > input {
436
+ padding-right: @labeledIconInputMargin;
437
+ }
438
+ .ui.ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown,
439
+ .ui.ui[class*="left corner labeled"][class*="left icon"].input > textarea,
440
+ .ui.ui[class*="left corner labeled"][class*="left icon"].input > input {
441
+ padding-left: @labeledAndIconMargin;
442
+ }
443
+ .ui[class*="left corner labeled"].icon.input > i.icon {
444
+ margin-left: @labeledIconMargin;
445
+ }
446
+ .ui[class*="left corner labeled"].icon:not([class*="left icon"]).input > input {
447
+ padding-right: @labeledMargin;
448
+ }
449
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > input {
450
+ padding-right: @labeledMargin * 2;
451
+ }
475
452
  }
476
- & > .menu > .item {
477
- padding-left: @labeledAndIconMargin;
453
+
454
+ .ui[class*="left icon"].input > .ui.dropdown,
455
+ .ui[class*="left corner labeled"].input > .ui.dropdown {
456
+ & > .search {
457
+ padding-left: @labeledMargin;
458
+ }
459
+ & > .menu {
460
+ padding-left: @labeledIconMargin;
461
+ & > .item {
462
+ padding-left: @labeledMargin;
463
+ margin-left: -@labeledIconMargin;
464
+ }
465
+ }
478
466
  }
479
- }
480
- .ui.icon.input:not([class*="left icon"]) > .ui.dropdown,
481
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown {
482
- & > .search {
483
- padding-right: @labeledMargin + @labeledIconInputMargin;
467
+ .ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown {
468
+ & > .search {
469
+ padding-left: @labeledAndIconMargin;
470
+ }
471
+ & > .menu > .item {
472
+ padding-left: @labeledAndIconMargin;
473
+ }
484
474
  }
485
- & > .remove.icon,
486
- > .dropdown.icon {
487
- padding-right: @labeledMargin;
475
+ .ui.icon.input:not([class*="left icon"]) > .ui.dropdown,
476
+ .ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown {
477
+ & > .search {
478
+ padding-right: @labeledMargin + @labeledIconInputMargin;
479
+ }
480
+ & > .remove.icon,
481
+ > .dropdown.icon {
482
+ padding-right: @labeledMargin;
483
+ }
488
484
  }
489
- }
490
- .ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > .ui.dropdown {
491
- & > .search {
492
- padding-right: @labeledAndIconMargin + @labeledIconInputMargin;
485
+ @supports selector(:has(.f)) {
486
+ .ui.icon.input:not([class*="left icon"]) > .ui.dropdown > .dropdown.icon {
487
+ padding-right: initial;
488
+ }
489
+ .ui.icon.input:not([class*="left icon"]):not(:has(.ui.dropdown~input)) > .ui.dropdown > .dropdown.icon {
490
+ padding-right: @labeledMargin;
491
+ }
493
492
  }
494
- & > .remove.icon,
495
- > .dropdown.icon {
496
- padding-right: @labeledAndIconMargin;
493
+ .ui.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > .ui.dropdown {
494
+ & > .search {
495
+ padding-right: @labeledAndIconMargin + @labeledIconInputMargin;
496
+ }
497
+ & > .remove.icon,
498
+ > .dropdown.icon {
499
+ padding-right: @labeledAndIconMargin;
500
+ }
501
+ }
502
+ .ui.icon.input > .ui.visible.dropdown ~ i.icon,
503
+ .ui.icon.input > .ui.active.dropdown ~ i.icon,
504
+ .ui[class*="corner labeled"].input > .ui.visible.dropdown ~ .ui.corner.label,
505
+ .ui[class*="corner labeled"].input > .ui.active.dropdown ~ .ui.corner.label {
506
+ z-index: @labeledDropdownZIndex;
497
507
  }
498
- }
499
- .ui.icon.input > .ui.visible.dropdown ~ i.icon,
500
- .ui.icon.input > .ui.active.dropdown ~ i.icon,
501
- .ui[class*="corner labeled"].input > .ui.visible.dropdown ~ .ui.corner.label,
502
- .ui[class*="corner labeled"].input > .ui.active.dropdown ~ .ui.corner.label {
503
- z-index: @labeledDropdownZIndex;
504
- }
505
508
  }
506
509
  & when (@variationInputIcon) {
507
- .ui.icon.input > textarea ~ i.icon {
508
- height: @textareaIconHeight;
509
- }
510
- :not(.field) > .ui.transparent.icon.input > textarea ~ i.icon {
511
- height: @transparentTextareaIconHeight;
512
- }
510
+ .ui.icon.input > textarea ~ i.icon {
511
+ height: @textareaIconHeight;
512
+ }
513
+ :not(.field) > .ui.transparent.icon.input > textarea ~ i.icon {
514
+ height: @transparentTextareaIconHeight;
515
+ }
513
516
  }
514
517
  & when (@variationInputCorner) {
515
- /* Corner Label Position */
516
- .ui.input > .ui.corner.label {
517
- top: @borderWidth;
518
- right: @borderWidth;
519
- }
520
- .ui.input > .ui.left.corner.label {
521
- right: auto;
522
- left: @borderWidth;
523
- }
518
+ /* Corner Label Position */
519
+ .ui.input > .ui.corner.label {
520
+ top: @borderWidth;
521
+ right: @borderWidth;
522
+ }
523
+ .ui.input > .ui.left.corner.label {
524
+ right: auto;
525
+ left: @borderWidth;
526
+ }
524
527
  }
525
528
 
526
529
  & when ((@variationInputLabeled) or (@variationInputAction)) and not (@variationInputStates = false) {
527
- /* Labeled and action input states */
528
- each(@variationInputStates, {
529
- @state: @value;
530
- @borderColor: @formStates[@@state][borderColor];
531
-
532
- .ui.form .field.@{state} > .ui.action.input > .ui.button,
533
- .ui.form .field.@{state} > .ui.labeled.input:not([class*="corner labeled"]) > .ui.label,
534
- .ui.action.input.@{state} > .ui.button,
535
- .ui.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label {
536
- border-top: @borderWidth solid @borderColor;
537
- border-bottom: @borderWidth solid @borderColor;
538
- }
539
- .ui.form .field.@{state} > .ui[class*="left action"].input > .ui.button,
540
- .ui.form .field.@{state} > .ui.labeled.input:not(.right):not([class*="corner labeled"]) > .ui.label,
541
- .ui[class*="left action"].input.@{state} > .ui.button,
542
- .ui.labeled.input.@{state}:not(.right):not([class*="corner labeled"]) > .ui.label {
543
- border-left: @borderWidth solid @borderColor;
544
- }
545
- .ui.form .field.@{state} > .ui.action.input:not([class*="left action"]) > input + .ui.button,
546
- .ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > input + .ui.label,
547
- .ui.action.input.@{state}:not([class*="left action"]) > input + .ui.button,
548
- .ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > input + .ui.label {
549
- border-right: @borderWidth solid @borderColor;
550
- }
551
- .ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > .ui.label:first-child,
552
- .ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label:first-child {
553
- border-left: @borderWidth solid @borderColor;
554
- }
555
- })
530
+ /* Labeled and action input states */
531
+ each(@variationInputStates, {
532
+ @state: @value;
533
+ @borderColor: @formStates[@@state][borderColor];
534
+
535
+ .ui.form .field.@{state} > .ui.action.input > .ui.button,
536
+ .ui.form .field.@{state} > .ui.labeled.input:not([class*="corner labeled"]) > .ui.label,
537
+ .ui.action.input.@{state} > .ui.button,
538
+ .ui.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label {
539
+ border-top: @borderWidth solid @borderColor;
540
+ border-bottom: @borderWidth solid @borderColor;
541
+ }
542
+ .ui.form .field.@{state} > .ui[class*="left action"].input > .ui.button,
543
+ .ui.form .field.@{state} > .ui.labeled.input:not(.right):not([class*="corner labeled"]) > .ui.label,
544
+ .ui[class*="left action"].input.@{state} > .ui.button,
545
+ .ui.labeled.input.@{state}:not(.right):not([class*="corner labeled"]) > .ui.label {
546
+ border-left: @borderWidth solid @borderColor;
547
+ }
548
+ .ui.form .field.@{state} > .ui.action.input:not([class*="left action"]) > input + .ui.button,
549
+ .ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > input + .ui.label,
550
+ .ui.action.input.@{state}:not([class*="left action"]) > input + .ui.button,
551
+ .ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > input + .ui.label {
552
+ border-right: @borderWidth solid @borderColor;
553
+ }
554
+ .ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > .ui.label:first-child,
555
+ .ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label:first-child {
556
+ border-left: @borderWidth solid @borderColor;
557
+ }
558
+ })
556
559
  }
557
560
 
558
561
  & when (@variationInputAction) {
559
- /*--------------------
560
- Action
561
- ---------------------*/
562
-
563
- .ui.action.input > .button,
564
- .ui.action.input > .buttons {
565
- display: flex;
566
- align-items: center;
567
- flex: 0 0 auto;
568
- }
569
- .ui.action.input > .button,
570
- .ui.action.input > .buttons > .button {
571
- padding-top: @verticalPadding;
572
- padding-bottom: @verticalPadding;
573
- margin: 0;
574
- }
562
+ /* --------------------
563
+ Action
564
+ --------------------- */
575
565
 
576
- /* Input when ui Left*/
577
- .ui[class*="left action"].input > input {
578
- border-top-left-radius: 0;
579
- border-bottom-left-radius: 0;
580
- border-left-color: transparent;
581
- }
566
+ .ui.action.input > .button,
567
+ .ui.action.input > .buttons {
568
+ display: flex;
569
+ align-items: center;
570
+ flex: 0 0 auto;
571
+ }
572
+ .ui.action.input > .button,
573
+ .ui.action.input > .buttons > .button {
574
+ padding-top: @verticalPadding;
575
+ padding-bottom: @verticalPadding;
576
+ margin: 0;
577
+ }
582
578
 
583
- /* Input when ui Right*/
584
- .ui.action.input:not([class*="left action"]) > input {
585
- border-top-right-radius: 0;
586
- border-bottom-right-radius: 0;
587
- border-right-color: transparent;
588
- }
579
+ /* Input when ui Left */
580
+ .ui[class*="left action"].input > input {
581
+ border-top-left-radius: 0;
582
+ border-bottom-left-radius: 0;
583
+ border-left-color: transparent;
584
+ }
589
585
 
590
- /* Button and Dropdown */
591
- .ui.action.input > .dropdown:first-child,
592
- .ui.action.input > .button:first-child,
593
- .ui.action.input > .buttons:first-child > .button {
594
- border-radius: @borderRadius 0 0 @borderRadius;
595
- }
596
- .ui.action.input > .dropdown:not(:first-child),
597
- .ui.action.input > .button:not(:first-child),
598
- .ui.action.input > .buttons:not(:first-child) > .button {
599
- border-radius: 0;
600
- }
601
- .ui.action.input > .dropdown:last-child,
602
- .ui.action.input > .button:last-child,
603
- .ui.action.input > .buttons:last-child > .button {
604
- border-radius: 0 @borderRadius @borderRadius 0;
605
- }
586
+ /* Input when ui Right */
587
+ .ui.action.input:not([class*="left action"]) > input {
588
+ border-top-right-radius: 0;
589
+ border-bottom-right-radius: 0;
590
+ border-right-color: transparent;
591
+ }
606
592
 
607
- /* Input Focus */
608
- .ui.action.input:not([class*="left action"]) > input:focus {
609
- border-right-color: @focusBorderColor;
610
- }
593
+ /* Button and Dropdown */
594
+ .ui.action.input > .dropdown:first-child,
595
+ .ui.action.input > .button:first-child,
596
+ .ui.action.input > .buttons:first-child > .button {
597
+ border-radius: @borderRadius 0 0 @borderRadius;
598
+ }
599
+ .ui.action.input > .dropdown:not(:first-child),
600
+ .ui.action.input > .button:not(:first-child),
601
+ .ui.action.input > .buttons:not(:first-child) > .button {
602
+ border-radius: 0;
603
+ }
604
+ .ui.action.input > .dropdown:last-child,
605
+ .ui.action.input > .button:last-child,
606
+ .ui.action.input > .buttons:last-child > .button {
607
+ border-radius: 0 @borderRadius @borderRadius 0;
608
+ }
611
609
 
612
- .ui.ui[class*="left action"].input > input:focus {
613
- border-left-color: @focusBorderColor;
614
- }
610
+ /* Input Focus */
611
+ .ui.action.input:not([class*="left action"]) > input:focus {
612
+ border-right-color: @focusBorderColor;
613
+ }
614
+
615
+ .ui.ui[class*="left action"].input > input:focus {
616
+ border-left-color: @focusBorderColor;
617
+ }
615
618
  }
616
619
 
617
620
  & when (@variationInputInverted) {
618
- /*--------------------
619
- Inverted
620
- ---------------------*/
621
+ /* --------------------
622
+ Inverted
623
+ --------------------- */
621
624
 
622
- /* Standard */
623
- .ui.inverted.input > input {
624
- border: none;
625
- }
625
+ /* Standard */
626
+ .ui.inverted.input > input {
627
+ border: none;
628
+ }
626
629
  }
627
630
 
628
631
  & when (@variationInputFluid) {
629
- /*--------------------
630
- Fluid
631
- ---------------------*/
632
+ /* --------------------
633
+ Fluid
634
+ --------------------- */
632
635
 
633
- .ui.fluid.input {
634
- display: flex;
635
- }
636
- .ui.fluid.input > input {
637
- width: 0 !important;
638
- }
636
+ .ui.fluid.input {
637
+ display: flex;
638
+ }
639
+ .ui.fluid.input > input {
640
+ width: 0 !important;
641
+ }
639
642
  }
640
643
 
641
-
642
644
  & when (@variationInputFile) {
643
- /*--------------------
644
- File
645
- ---------------------*/
646
-
647
- /* width hack for chrome/edge */
648
- .ui.file.input {
649
- width: 100%;
650
- & input[type="file"] {
651
- width: 0;
645
+ /* --------------------
646
+ File
647
+ --------------------- */
648
+
649
+ /* width hack for chrome/edge */
650
+ .ui.file.input {
651
+ width: 100%;
652
+ & input[type="file"] {
653
+ width: 0;
654
+ }
652
655
  }
653
- }
654
656
 
655
- .ui.form .field > input[type="file"],
656
- .ui.file.input:not(.action) input[type="file"] {
657
- padding: 0;
658
- }
657
+ .ui.form .field > input[type="file"],
658
+ .ui.file.input:not(.action) input[type="file"] {
659
+ padding: 0;
660
+ }
659
661
 
660
- .ui.action.file.input input[type="file"]::-webkit-file-upload-button {
661
- display: none;
662
- }
663
- .ui.form .field input[type="file"]::-webkit-file-upload-button,
664
- .ui.file.input input[type="file"]::-webkit-file-upload-button {
665
- border: none;
666
- cursor: pointer;
667
- padding: @padding;
668
- margin-right: @fileButtonMargin;
669
- background: @fileButtonBackground;
670
- font-weight: @fileButtonFontWeight;
671
- color: @fileButtonTextColor;
672
- &:hover {
673
- background: @fileButtonBackgroundHover;
674
- color: @fileButtonTextColor;
662
+ .ui.action.file.input input[type="file"]::-webkit-file-upload-button {
663
+ display: none;
675
664
  }
676
- }
677
- & when (@supportIE) {
678
- .ui.action.file.input input[type="file"]::-ms-browse {
679
- display: none;
680
- }
681
- .ui.form .field input[type="file"]::-ms-browse,
682
- .ui.file.input input[type="file"]::-ms-browse {
683
- border: none;
684
- cursor: pointer;
685
- padding: @padding;
686
- margin: 0;
687
- background: @fileButtonBackground;
688
- font-weight: @fileButtonFontWeight;
689
- color: @fileButtonTextColor;
690
- &:hover {
691
- background: @fileButtonBackgroundHover;
665
+ .ui.form .field input[type="file"]::-webkit-file-upload-button,
666
+ .ui.file.input input[type="file"]::-webkit-file-upload-button {
667
+ border: none;
668
+ cursor: pointer;
669
+ padding: @padding;
670
+ margin-right: @fileButtonMargin;
671
+ background: @fileButtonBackground;
672
+ font-weight: @fileButtonFontWeight;
692
673
  color: @fileButtonTextColor;
693
- }
694
- }
695
- /* IE needs additional styling for input field :S */
696
- @media all and (-ms-high-contrast: none) {
697
- .ui.file.input > input[type="file"],
698
- input[type="file"].ui.file.input {
699
- padding: 0 !important;
700
- }
674
+ &:hover {
675
+ background: @fileButtonBackgroundHover;
676
+ color: @fileButtonTextColor;
677
+ }
701
678
  }
702
- }
679
+ & when (@supportIE) {
680
+ .ui.action.file.input input[type="file"]::-ms-browse {
681
+ display: none;
682
+ }
683
+ .ui.form .field input[type="file"]::-ms-browse,
684
+ .ui.file.input input[type="file"]::-ms-browse {
685
+ border: none;
686
+ cursor: pointer;
687
+ padding: @padding;
688
+ margin: 0;
689
+ background: @fileButtonBackground;
690
+ font-weight: @fileButtonFontWeight;
691
+ color: @fileButtonTextColor;
692
+ &:hover {
693
+ background: @fileButtonBackgroundHover;
694
+ color: @fileButtonTextColor;
695
+ }
696
+ }
703
697
 
704
- .ui.action.file.input input[type="file"]::file-selector-button {
705
- display: none;
706
- }
707
- .ui.form .field input[type="file"]::file-selector-button,
708
- .ui.file.input input[type="file"]::file-selector-button {
709
- border: none;
710
- cursor: pointer;
711
- padding: @padding;
712
- margin-right: @fileButtonMargin;
713
- background: @fileButtonBackground;
714
- font-weight: @fileButtonFontWeight;
715
- color: @fileButtonTextColor;
716
- &:hover {
717
- background: @fileButtonBackgroundHover;
718
- color: @fileButtonTextColor;
698
+ /* IE needs additional styling for input field :S */
699
+ @media all and (-ms-high-contrast: none) {
700
+ .ui.file.input > input[type="file"],
701
+ input[type="file"].ui.file.input {
702
+ padding: 0 !important;
703
+ }
704
+ }
719
705
  }
720
- }
721
706
 
722
- .ui.form .field input[type="file"]:required:invalid,
723
- .ui.file.input input[type="file"]:required:invalid {
724
- color: @negativeTextColor;
725
- background: @negativeBackgroundColor ;
726
- border-color: @negativeBorderColor;
727
- }
728
-
729
- input[type="file"].ui.invisible.file.input,
730
- .ui.invisible.file.input input[type="file"] {
731
- left: -99999px;
732
- position: absolute;
733
- }
734
-
735
- input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
736
- .ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
737
- background: @fileButtonBackgroundHover;
738
- color: @hoveredTextColor;
739
- &.inverted {
740
- background: @fileButtonInvertedBackgroundHover;
707
+ .ui.action.file.input input[type="file"]::file-selector-button {
708
+ display: none;
709
+ }
710
+ .ui.form .field input[type="file"]::file-selector-button,
711
+ .ui.file.input input[type="file"]::file-selector-button {
712
+ border: none;
713
+ cursor: pointer;
714
+ padding: @padding;
715
+ margin-right: @fileButtonMargin;
716
+ background: @fileButtonBackground;
717
+ font-weight: @fileButtonFontWeight;
718
+ color: @fileButtonTextColor;
719
+ &:hover {
720
+ background: @fileButtonBackgroundHover;
721
+ color: @fileButtonTextColor;
722
+ }
723
+ }
724
+ & when (@variationInputInvalid) {
725
+ .ui.form .field input[type="file"]:required:invalid,
726
+ .ui.file.input input[type="file"]:required:invalid {
727
+ color: @negativeTextColor;
728
+ background: @negativeBackgroundColor;
729
+ border-color: @negativeBorderColor;
730
+ }
741
731
  }
742
- }
743
-
744
- /* this is related to existing buttons, so the button color variable is used here! */
745
- & when not (@variationButtonColors = false) {
746
- each(@variationButtonColors, {
747
- @color: @value;
748
- @h: @colors[@@color][hover];
749
- @lh: @colors[@@color][lightHover];
750
-
751
- input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
752
- .ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
753
- background-color: @h;
754
- color: @white;
755
- &.inverted when (@variationButtonInverted) {
756
- background-color: @lh;
757
- }
758
- }
759
- })
760
- }
761
732
 
762
- & when not (@variationInputColors = false) {
763
- each(@variationInputColors, {
764
- @color: @value;
765
- @c: @colors[@@color][color];
766
- @h: @colors[@@color][hover];
733
+ input[type="file"].ui.invisible.file.input,
734
+ .ui.invisible.file.input input[type="file"] {
735
+ left: -99999px;
736
+ position: absolute;
737
+ }
767
738
 
768
- input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
769
- .ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
770
- background: @c;
771
- color: @white;
772
- &:hover {
773
- background: @h;
774
- }
775
- }
776
- & when (@supportIE) {
777
- input[type="file"].ui.@{color}.file.input::-ms-browse,
778
- .ui.@{color}.file.input input[type="file"]::-ms-browse {
779
- background: @c;
780
- color: @white;
781
- &:hover {
782
- background: @h;
783
- }
784
- }
785
- }
786
- input[type="file"].ui.@{color}.file.input::file-selector-button,
787
- .ui.@{color}.file.input input[type="file"]::file-selector-button {
788
- background: @c;
789
- color: @white;
790
- &:hover {
791
- background: @h;
739
+ input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
740
+ .ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
741
+ background: @fileButtonBackgroundHover;
742
+ color: @hoveredTextColor;
743
+ &.inverted {
744
+ background: @fileButtonInvertedBackgroundHover;
792
745
  }
793
- }
794
- })
746
+ }
747
+
748
+ /* this is related to existing buttons, so the button color variable is used here! */
749
+ & when not (@variationButtonColors = false) {
750
+ each(@variationButtonColors, {
751
+ @color: @value;
752
+ @h: @colors[@@color][hover];
753
+ @lh: @colors[@@color][lightHover];
754
+
755
+ input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
756
+ .ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
757
+ background-color: @h;
758
+ color: @white;
759
+ &.inverted when (@variationButtonInverted) {
760
+ background-color: @lh;
761
+ }
762
+ }
763
+ })
764
+ }
765
+
766
+ & when not (@variationInputColors = false) {
767
+ each(@variationInputColors, {
768
+ @color: @value;
769
+ @c: @colors[@@color][color];
770
+ @h: @colors[@@color][hover];
771
+
772
+ input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
773
+ .ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
774
+ background: @c;
775
+ color: @white;
776
+ &:hover {
777
+ background: @h;
778
+ }
779
+ }
780
+ & when (@supportIE) {
781
+ input[type="file"].ui.@{color}.file.input::-ms-browse,
782
+ .ui.@{color}.file.input input[type="file"]::-ms-browse {
783
+ background: @c;
784
+ color: @white;
785
+ &:hover {
786
+ background: @h;
787
+ }
788
+ }
789
+ }
790
+ input[type="file"].ui.@{color}.file.input::file-selector-button,
791
+ .ui.@{color}.file.input input[type="file"]::file-selector-button {
792
+ background: @c;
793
+ color: @white;
794
+ &:hover {
795
+ background: @h;
796
+ }
797
+ }
798
+ })
795
799
  }
796
800
  }
797
801
 
798
- /*--------------------
802
+ /* --------------------
799
803
  Size
800
- ---------------------*/
804
+ --------------------- */
801
805
 
802
806
  .ui.input {
803
- font-size: @relativeMedium;
807
+ font-size: @relativeMedium;
804
808
  }
805
809
  & when not (@variationInputSizes = false) {
806
- each(@variationInputSizes, {
807
- @s: @{value}InputSize;
808
- .ui.@{value}.input {
809
- font-size: @@s;
810
- }
811
- })
810
+ each(@variationInputSizes, {
811
+ @s: @{value}InputSize;
812
+ .ui.@{value}.input {
813
+ font-size: @@s;
814
+ }
815
+ })
812
816
  }
813
817
 
814
818
  .loadUIOverrides();