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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/.eslintrc.js +111 -0
  2. package/.github/workflows/ci.yml +14 -4
  3. package/.stylelintrc.js +59 -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 +1156 -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 +1902 -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 +179 -42
  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 +2558 -1807
  156. package/dist/semantic.js +28960 -29413
  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/_site/collections/menu.overrides +1 -1
  180. package/src/_site/elements/flag.variables +2 -2
  181. package/src/_site/globals/site.variables +1 -1
  182. package/src/definitions/behaviors/api.js +1157 -1180
  183. package/src/definitions/behaviors/form.js +1978 -2003
  184. package/src/definitions/behaviors/state.js +645 -663
  185. package/src/definitions/behaviors/visibility.js +1219 -1243
  186. package/src/definitions/collections/breadcrumb.less +41 -45
  187. package/src/definitions/collections/form.less +864 -882
  188. package/src/definitions/collections/grid.less +1689 -1697
  189. package/src/definitions/collections/menu.less +1490 -1508
  190. package/src/definitions/collections/message.less +292 -295
  191. package/src/definitions/collections/table.less +1616 -1620
  192. package/src/definitions/elements/button.less +1710 -1754
  193. package/src/definitions/elements/container.less +209 -209
  194. package/src/definitions/elements/divider.less +200 -209
  195. package/src/definitions/elements/emoji.less +38 -45
  196. package/src/definitions/elements/flag.less +44 -46
  197. package/src/definitions/elements/header.less +337 -345
  198. package/src/definitions/elements/icon.less +516 -451
  199. package/src/definitions/elements/image.less +219 -225
  200. package/src/definitions/elements/input.less +657 -663
  201. package/src/definitions/elements/label.less +783 -804
  202. package/src/definitions/elements/list.less +808 -812
  203. package/src/definitions/elements/loader.less +269 -266
  204. package/src/definitions/elements/placeholder.less +171 -168
  205. package/src/definitions/elements/rail.less +91 -91
  206. package/src/definitions/elements/reveal.less +190 -196
  207. package/src/definitions/elements/segment.less +738 -747
  208. package/src/definitions/elements/step.less +424 -435
  209. package/src/definitions/elements/text.less +32 -34
  210. package/src/definitions/globals/reset.less +9 -6
  211. package/src/definitions/globals/site.js +461 -475
  212. package/src/definitions/globals/site.less +106 -108
  213. package/src/definitions/modules/accordion.js +567 -594
  214. package/src/definitions/modules/accordion.less +242 -246
  215. package/src/definitions/modules/calendar.js +1901 -1808
  216. package/src/definitions/modules/calendar.less +98 -95
  217. package/src/definitions/modules/checkbox.js +841 -840
  218. package/src/definitions/modules/checkbox.less +524 -545
  219. package/src/definitions/modules/dimmer.js +707 -736
  220. package/src/definitions/modules/dimmer.less +300 -303
  221. package/src/definitions/modules/dropdown.js +4160 -4233
  222. package/src/definitions/modules/dropdown.less +1570 -1596
  223. package/src/definitions/modules/embed.js +650 -674
  224. package/src/definitions/modules/embed.less +80 -82
  225. package/src/definitions/modules/flyout.js +1463 -1464
  226. package/src/definitions/modules/flyout.less +444 -454
  227. package/src/definitions/modules/modal.js +1490 -1484
  228. package/src/definitions/modules/modal.less +459 -465
  229. package/src/definitions/modules/nag.js +517 -525
  230. package/src/definitions/modules/nag.less +134 -147
  231. package/src/definitions/modules/popup.js +1436 -1455
  232. package/src/definitions/modules/popup.less +733 -690
  233. package/src/definitions/modules/progress.js +968 -996
  234. package/src/definitions/modules/progress.less +521 -497
  235. package/src/definitions/modules/rating.js +504 -522
  236. package/src/definitions/modules/rating.less +94 -101
  237. package/src/definitions/modules/search.js +1497 -1533
  238. package/src/definitions/modules/search.less +373 -392
  239. package/src/definitions/modules/shape.js +791 -808
  240. package/src/definitions/modules/shape.less +68 -77
  241. package/src/definitions/modules/sidebar.js +1070 -1097
  242. package/src/definitions/modules/sidebar.less +462 -474
  243. package/src/definitions/modules/slider.js +1286 -1305
  244. package/src/definitions/modules/slider.less +307 -308
  245. package/src/definitions/modules/sticky.js +873 -918
  246. package/src/definitions/modules/sticky.less +22 -23
  247. package/src/definitions/modules/tab.js +921 -962
  248. package/src/definitions/modules/tab.less +46 -52
  249. package/src/definitions/modules/toast.js +885 -886
  250. package/src/definitions/modules/toast.less +584 -586
  251. package/src/definitions/modules/transition.js +1040 -1076
  252. package/src/definitions/modules/transition.less +62 -28
  253. package/src/definitions/views/ad.less +205 -206
  254. package/src/definitions/views/card.less +963 -969
  255. package/src/definitions/views/comment.less +190 -198
  256. package/src/definitions/views/feed.less +220 -224
  257. package/src/definitions/views/item.less +435 -446
  258. package/src/definitions/views/statistic.less +271 -277
  259. package/src/theme.less +29 -32
  260. package/src/themes/amazon/elements/button.overrides +23 -24
  261. package/src/themes/amazon/elements/button.variables +11 -11
  262. package/src/themes/amazon/globals/site.variables +2 -3
  263. package/src/themes/basic/collections/table.overrides +0 -1
  264. package/src/themes/basic/collections/table.variables +3 -3
  265. package/src/themes/basic/elements/button.overrides +0 -1
  266. package/src/themes/basic/elements/button.variables +2 -2
  267. package/src/themes/basic/elements/icon.overrides +12 -13
  268. package/src/themes/basic/elements/icon.variables +13 -13
  269. package/src/themes/basic/elements/step.overrides +2 -2
  270. package/src/themes/basic/elements/step.variables +2 -2
  271. package/src/themes/basic/globals/reset.overrides +1 -1
  272. package/src/themes/basic/globals/reset.variables +1 -1
  273. package/src/themes/basic/views/card.overrides +0 -1
  274. package/src/themes/basic/views/card.variables +3 -3
  275. package/src/themes/bookish/elements/header.overrides +3 -3
  276. package/src/themes/bookish/elements/header.variables +2 -2
  277. package/src/themes/bootstrap3/elements/button.variables +7 -8
  278. package/src/themes/chubby/collections/form.overrides +9 -9
  279. package/src/themes/chubby/collections/form.variables +3 -3
  280. package/src/themes/chubby/collections/menu.variables +1 -1
  281. package/src/themes/chubby/elements/button.overrides +7 -9
  282. package/src/themes/chubby/elements/button.variables +2 -2
  283. package/src/themes/chubby/elements/header.variables +3 -3
  284. package/src/themes/chubby/modules/accordion.overrides +2 -2
  285. package/src/themes/chubby/modules/accordion.variables +3 -3
  286. package/src/themes/chubby/views/comment.overrides +5 -5
  287. package/src/themes/chubby/views/comment.variables +4 -4
  288. package/src/themes/classic/collections/table.variables +2 -2
  289. package/src/themes/classic/elements/button.variables +20 -21
  290. package/src/themes/classic/elements/header.variables +3 -3
  291. package/src/themes/classic/modules/progress.variables +1 -1
  292. package/src/themes/classic/views/card.overrides +14 -14
  293. package/src/themes/classic/views/card.variables +4 -4
  294. package/src/themes/colored/modules/checkbox.variables +1 -1
  295. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  296. package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  297. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  298. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  299. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  300. package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  301. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  302. package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  303. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  304. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  305. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  306. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  307. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  308. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  309. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  310. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  311. package/src/themes/default/collections/breadcrumb.variables +4 -4
  312. package/src/themes/default/collections/form.variables +12 -12
  313. package/src/themes/default/collections/grid.overrides +0 -1
  314. package/src/themes/default/collections/grid.variables +14 -16
  315. package/src/themes/default/collections/menu.variables +19 -31
  316. package/src/themes/default/collections/message.variables +83 -84
  317. package/src/themes/default/collections/table.variables +16 -18
  318. package/src/themes/default/elements/button.variables +30 -31
  319. package/src/themes/default/elements/container.variables +4 -12
  320. package/src/themes/default/elements/divider.overrides +8 -9
  321. package/src/themes/default/elements/divider.variables +4 -5
  322. package/src/themes/default/elements/emoji.overrides +0 -1
  323. package/src/themes/default/elements/emoji.variables +3555 -3555
  324. package/src/themes/default/elements/flag.variables +1594 -1594
  325. package/src/themes/default/elements/header.overrides +0 -1
  326. package/src/themes/default/elements/header.variables +16 -16
  327. package/src/themes/default/elements/icon.variables +2017 -2001
  328. package/src/themes/default/elements/image.variables +6 -7
  329. package/src/themes/default/elements/input.variables +10 -10
  330. package/src/themes/default/elements/label.variables +19 -20
  331. package/src/themes/default/elements/list.variables +16 -16
  332. package/src/themes/default/elements/loader.variables +15 -16
  333. package/src/themes/default/elements/placeholder.variables +6 -7
  334. package/src/themes/default/elements/rail.variables +4 -5
  335. package/src/themes/default/elements/segment.variables +18 -29
  336. package/src/themes/default/elements/step.overrides +4 -4
  337. package/src/themes/default/elements/step.variables +14 -16
  338. package/src/themes/default/elements/text.variables +2 -3
  339. package/src/themes/default/globals/colors.less +588 -588
  340. package/src/themes/default/globals/reset.overrides +57 -57
  341. package/src/themes/default/globals/reset.variables +1 -1
  342. package/src/themes/default/globals/site.variables +869 -875
  343. package/src/themes/default/globals/variation.variables +13 -4
  344. package/src/themes/default/modules/accordion.overrides +11 -11
  345. package/src/themes/default/modules/accordion.variables +14 -15
  346. package/src/themes/default/modules/calendar.variables +2 -0
  347. package/src/themes/default/modules/chatroom.variables +1 -1
  348. package/src/themes/default/modules/checkbox.overrides +6 -7
  349. package/src/themes/default/modules/checkbox.variables +17 -22
  350. package/src/themes/default/modules/dimmer.variables +7 -8
  351. package/src/themes/default/modules/dropdown.overrides +17 -17
  352. package/src/themes/default/modules/dropdown.variables +20 -21
  353. package/src/themes/default/modules/embed.variables +9 -10
  354. package/src/themes/default/modules/flyout.variables +6 -6
  355. package/src/themes/default/modules/modal.variables +18 -18
  356. package/src/themes/default/modules/nag.variables +11 -14
  357. package/src/themes/default/modules/popup.variables +14 -13
  358. package/src/themes/default/modules/progress.variables +10 -11
  359. package/src/themes/default/modules/rating.variables +10 -11
  360. package/src/themes/default/modules/search.variables +9 -11
  361. package/src/themes/default/modules/shape.variables +6 -6
  362. package/src/themes/default/modules/sidebar.variables +4 -4
  363. package/src/themes/default/modules/slider.variables +48 -49
  364. package/src/themes/default/modules/sticky.variables +1 -1
  365. package/src/themes/default/modules/toast.variables +1 -1
  366. package/src/themes/default/modules/transition.overrides +936 -915
  367. package/src/themes/default/modules/transition.variables +8 -1
  368. package/src/themes/default/views/card.variables +20 -22
  369. package/src/themes/default/views/comment.variables +6 -8
  370. package/src/themes/default/views/feed.variables +6 -6
  371. package/src/themes/default/views/item.variables +6 -9
  372. package/src/themes/default/views/statistic.variables +8 -8
  373. package/src/themes/duo/elements/loader.variables +1 -1
  374. package/src/themes/famfamfam/elements/flag.overrides +263 -268
  375. package/src/themes/famfamfam/elements/flag.variables +3 -3
  376. package/src/themes/fixed-width/collections/grid.variables +1 -1
  377. package/src/themes/fixed-width/modules/modal.variables +3 -5
  378. package/src/themes/flat/collections/form.overrides +9 -9
  379. package/src/themes/flat/collections/form.variables +4 -5
  380. package/src/themes/flat/globals/site.variables +61 -66
  381. package/src/themes/github/collections/breadcrumb.variables +0 -1
  382. package/src/themes/github/collections/form.overrides +7 -8
  383. package/src/themes/github/collections/form.variables +12 -13
  384. package/src/themes/github/collections/grid.variables +1 -2
  385. package/src/themes/github/collections/menu.overrides +2 -2
  386. package/src/themes/github/collections/menu.variables +11 -12
  387. package/src/themes/github/collections/message.overrides +3 -3
  388. package/src/themes/github/collections/message.variables +5 -5
  389. package/src/themes/github/collections/table.variables +1 -1
  390. package/src/themes/github/elements/button.overrides +0 -1
  391. package/src/themes/github/elements/button.variables +14 -14
  392. package/src/themes/github/elements/header.variables +2 -2
  393. package/src/themes/github/elements/icon.overrides +179 -179
  394. package/src/themes/github/elements/icon.variables +10 -10
  395. package/src/themes/github/elements/image.variables +1 -1
  396. package/src/themes/github/elements/input.overrides +16 -16
  397. package/src/themes/github/elements/input.variables +3 -3
  398. package/src/themes/github/elements/label.overrides +3 -3
  399. package/src/themes/github/elements/label.variables +0 -1
  400. package/src/themes/github/elements/segment.variables +2 -3
  401. package/src/themes/github/elements/step.overrides +13 -13
  402. package/src/themes/github/elements/step.variables +2 -2
  403. package/src/themes/github/globals/site.variables +2 -2
  404. package/src/themes/github/modules/dropdown.overrides +18 -19
  405. package/src/themes/github/modules/dropdown.variables +1 -1
  406. package/src/themes/github/modules/popup.variables +0 -2
  407. package/src/themes/instagram/views/card.overrides +3 -4
  408. package/src/themes/instagram/views/card.variables +3 -4
  409. package/src/themes/joypixels/elements/emoji.overrides +0 -2
  410. package/src/themes/joypixels/elements/emoji.variables +3554 -3554
  411. package/src/themes/material/collections/menu.variables +1 -1
  412. package/src/themes/material/elements/button.overrides +6 -8
  413. package/src/themes/material/elements/button.variables +28 -28
  414. package/src/themes/material/elements/header.overrides +2 -2
  415. package/src/themes/material/elements/header.variables +2 -4
  416. package/src/themes/material/elements/icon.overrides +932 -932
  417. package/src/themes/material/elements/icon.variables +11 -11
  418. package/src/themes/material/globals/site.variables +78 -79
  419. package/src/themes/material/modules/dropdown.overrides +1 -1
  420. package/src/themes/material/modules/dropdown.variables +1 -1
  421. package/src/themes/material/modules/modal.overrides +2 -2
  422. package/src/themes/material/modules/modal.variables +1 -2
  423. package/src/themes/pulsar/elements/loader.overrides +58 -58
  424. package/src/themes/raised/elements/button.variables +8 -8
  425. package/src/themes/resetcss/globals/reset.overrides +115 -33
  426. package/src/themes/resetcss/globals/reset.variables +1 -1
  427. package/src/themes/round/elements/button.variables +11 -14
  428. package/src/themes/rtl/globals/site.variables +5 -6
  429. package/src/themes/striped/modules/progress.overrides +20 -16
  430. package/src/themes/systemfont/globals/reset.overrides +1 -1
  431. package/src/themes/systemfont/globals/site.variables +5 -5
  432. package/src/themes/timeline/views/feed.overrides +12 -12
  433. package/src/themes/timeline/views/feed.variables +4 -4
  434. package/src/themes/twitter/elements/button.overrides +4 -5
  435. package/src/themes/twitter/elements/button.variables +6 -7
  436. package/src/themes/twitter/elements/emoji.variables +3555 -3555
  437. package/tasks/admin/components/create.js +274 -276
  438. package/tasks/admin/components/init.js +123 -130
  439. package/tasks/admin/components/update.js +149 -157
  440. package/tasks/admin/distributions/create.js +184 -187
  441. package/tasks/admin/distributions/init.js +123 -130
  442. package/tasks/admin/distributions/update.js +145 -152
  443. package/tasks/admin/publish.js +5 -7
  444. package/tasks/admin/register.js +36 -38
  445. package/tasks/admin/release.js +8 -10
  446. package/tasks/build/assets.js +42 -39
  447. package/tasks/build/css.js +225 -216
  448. package/tasks/build/javascript.js +118 -113
  449. package/tasks/build.js +10 -10
  450. package/tasks/check-install.js +14 -16
  451. package/tasks/clean.js +5 -5
  452. package/tasks/collections/admin.js +34 -36
  453. package/tasks/collections/build.js +18 -20
  454. package/tasks/collections/docs.js +9 -11
  455. package/tasks/collections/install.js +9 -11
  456. package/tasks/collections/rtl.js +9 -11
  457. package/tasks/collections/various.js +8 -10
  458. package/tasks/config/admin/github.js +17 -17
  459. package/tasks/config/admin/oauth.example.js +4 -4
  460. package/tasks/config/admin/release.js +98 -98
  461. package/tasks/config/admin/templates/component-package.js +9 -10
  462. package/tasks/config/admin/templates/css-package.js +18 -20
  463. package/tasks/config/admin/templates/less-package.js +11 -13
  464. package/tasks/config/defaults.js +116 -114
  465. package/tasks/config/docs.js +23 -23
  466. package/tasks/config/npm/gulpfile.js +8 -9
  467. package/tasks/config/project/config.js +127 -134
  468. package/tasks/config/project/install.js +715 -713
  469. package/tasks/config/project/release.js +32 -38
  470. package/tasks/config/tasks.js +165 -156
  471. package/tasks/config/user.js +23 -26
  472. package/tasks/docs/build.js +97 -95
  473. package/tasks/docs/metadata.js +90 -96
  474. package/tasks/docs/serve.js +80 -81
  475. package/tasks/install.js +370 -378
  476. package/tasks/rtl/build.js +2 -2
  477. package/tasks/rtl/watch.js +2 -2
  478. package/tasks/version.js +4 -4
  479. package/tasks/watch.js +28 -30
  480. package/test/meteor/assets.js +10 -13
  481. package/test/meteor/fonts.js +12 -13
  482. package/test/modules/accordion.spec.js +6 -8
  483. package/test/modules/checkbox.spec.js +5 -7
  484. package/test/modules/dropdown.spec.js +5 -7
  485. package/test/modules/modal.spec.js +6 -8
  486. package/test/modules/module.spec.js +158 -178
  487. package/test/modules/popup.spec.js +5 -7
  488. package/test/modules/search.spec.js +5 -7
  489. package/test/modules/shape.spec.js +5 -7
  490. package/test/modules/sidebar.spec.js +5 -7
  491. package/test/modules/tab.spec.js +6 -8
  492. package/test/modules/transition.spec.js +5 -7
  493. package/test/modules/video.spec.js +5 -7
@@ -8,12 +8,11 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'module';
15
+ @type : 'module';
17
16
  @element : 'dropdown';
18
17
 
19
18
  @import (multiple) '../../theme.config';
@@ -23,249 +22,240 @@
23
22
  *******************************/
24
23
 
25
24
  .ui.dropdown {
26
- cursor: pointer;
27
- position: relative;
28
- display: inline-block;
29
- outline: none;
30
- text-align: left;
31
- transition: @transition;
32
- user-select: none;
33
-
34
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
25
+ cursor: pointer;
26
+ position: relative;
27
+ display: inline-block;
28
+ outline: none;
29
+ text-align: left;
30
+ transition: @transition;
31
+ user-select: none;
32
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
35
33
  }
36
34
 
37
35
  /*******************************
38
36
  Content
39
37
  *******************************/
40
38
 
41
- /*--------------
39
+ /* --------------
42
40
  Menu
43
- ---------------*/
41
+ --------------- */
44
42
 
45
43
  .ui.dropdown .menu {
46
- cursor: auto;
47
- position: absolute;
48
- display: none;
49
- outline: none;
50
- top: 100%;
51
- min-width: max-content;
52
-
53
- margin: @menuMargin;
54
- padding: @menuPadding;
55
- background: @menuBackground;
56
-
57
- font-size: @relativeMedium;
58
- text-shadow: none;
59
- text-align: @menuTextAlign;
60
-
61
- box-shadow: @menuBoxShadow;
62
- border: @menuBorder;
63
- border-radius: @menuBorderRadius;
64
- transition: @menuTransition;
65
- z-index: @menuZIndex;
66
- will-change: transform, opacity;
44
+ cursor: auto;
45
+ position: absolute;
46
+ display: none;
47
+ outline: none;
48
+ top: 100%;
49
+ min-width: max-content;
50
+ margin: @menuMargin;
51
+ padding: @menuPadding;
52
+ background: @menuBackground;
53
+ font-size: @relativeMedium;
54
+ text-shadow: none;
55
+ text-align: @menuTextAlign;
56
+ box-shadow: @menuBoxShadow;
57
+ border: @menuBorder;
58
+ border-radius: @menuBorderRadius;
59
+ transition: @menuTransition;
60
+ z-index: @menuZIndex;
61
+ will-change: transform, opacity;
67
62
  }
68
63
 
69
64
  .ui.dropdown .menu > * {
70
- white-space: nowrap;
65
+ white-space: nowrap;
71
66
  }
72
67
 
73
-
74
- /*--------------
68
+ /* --------------
75
69
  Hidden Input
76
- ---------------*/
70
+ --------------- */
77
71
 
78
72
  .ui.dropdown > input:not(.search):first-child,
79
73
  .ui.dropdown > select {
80
- display: none !important;
74
+ display: none !important;
81
75
  }
82
76
 
83
- /*--------------
77
+ /* --------------
84
78
  Dropdown Icon
85
- ---------------*/
79
+ --------------- */
86
80
 
87
81
  .ui.dropdown:not(.labeled) > .dropdown.icon {
88
- position: relative;
89
- width: auto;
90
- min-width: @dropdownIconMinWidth;
91
- font-size: @dropdownIconSize;
92
- margin: @dropdownIconMargin;
82
+ position: relative;
83
+ width: auto;
84
+ min-width: @dropdownIconMinWidth;
85
+ font-size: @dropdownIconSize;
86
+ margin: @dropdownIconMargin;
93
87
  }
94
88
  .ui.dropdown .menu > .item .dropdown.icon {
95
- width: auto;
96
- float: @itemDropdownIconFloat;
97
- margin: @itemDropdownIconMargin;
89
+ width: auto;
90
+ float: @itemDropdownIconFloat;
91
+ margin: @itemDropdownIconMargin;
98
92
  }
99
93
  .ui.dropdown .menu > .item .dropdown.icon + .text {
100
- margin-right: @itemDropdownIconDistance;
94
+ margin-right: @itemDropdownIconDistance;
101
95
  }
102
96
 
103
-
104
- /*--------------
97
+ /* --------------
105
98
  Text
106
- ---------------*/
99
+ --------------- */
107
100
 
108
101
  .ui.dropdown > .text {
109
- display: inline-block;
110
- transition: @textTransition;
102
+ display: inline-block;
103
+ transition: @textTransition;
111
104
  }
112
105
 
113
- /*--------------
106
+ /* --------------
114
107
  Menu Item
115
- ---------------*/
108
+ --------------- */
116
109
 
117
110
  .ui.dropdown .menu > .item {
118
- position: relative;
119
- cursor: pointer;
120
- display: block;
121
- border: @itemBorder;
122
- height: @itemHeight;
123
- min-height: @itemMinHeight;
124
- text-align: @itemTextAlign;
125
-
126
- border-top: @itemDivider;
127
- line-height: @itemLineHeight;
128
- font-size: @itemFontSize;
129
- color: @itemColor;
130
-
131
- padding: @itemPadding;
132
- text-transform: @itemTextTransform;
133
- font-weight: @itemFontWeight;
134
- box-shadow: @itemBoxShadow;
135
- -webkit-touch-callout: none;
111
+ position: relative;
112
+ cursor: pointer;
113
+ display: block;
114
+ border: @itemBorder;
115
+ height: @itemHeight;
116
+ min-height: @itemMinHeight;
117
+ text-align: @itemTextAlign;
118
+ border-top: @itemDivider;
119
+ line-height: @itemLineHeight;
120
+ font-size: @itemFontSize;
121
+ color: @itemColor;
122
+ padding: @itemPadding;
123
+ text-transform: @itemTextTransform;
124
+ font-weight: @itemFontWeight;
125
+ box-shadow: @itemBoxShadow;
126
+ -webkit-touch-callout: none;
136
127
  }
137
128
  .ui.dropdown .menu > .item:first-child {
138
- border-top-width: 0;
129
+ border-top-width: 0;
139
130
  }
140
131
 
141
132
  .ui.dropdown .menu > .item.vertical {
142
- display: flex;
143
- flex-direction: column-reverse;
133
+ display: flex;
134
+ flex-direction: column-reverse;
144
135
  }
145
136
 
146
- /*--------------
137
+ /* --------------
147
138
  Floated Content
148
- ---------------*/
139
+ --------------- */
149
140
 
150
141
  .ui.dropdown > .text > [class*="right floated"],
151
142
  .ui.dropdown .menu .item > [class*="right floated"] {
152
- float: right !important;
153
- margin-right: 0 !important;
154
- margin-left: @floatedDistance !important;
143
+ float: right !important;
144
+ margin-right: 0 !important;
145
+ margin-left: @floatedDistance !important;
155
146
  }
156
147
  .ui.dropdown > .text > [class*="left floated"],
157
148
  .ui.dropdown .menu .item > [class*="left floated"] {
158
- float: left !important;
159
- margin-left: 0 !important;
160
- margin-right: @floatedDistance !important;
149
+ float: left !important;
150
+ margin-left: 0 !important;
151
+ margin-right: @floatedDistance !important;
161
152
  }
162
153
 
163
154
  .ui.dropdown .menu .item > i.icon.floated,
164
155
  .ui.dropdown .menu .item > .flag.floated,
165
156
  .ui.dropdown .menu .item > .image.floated,
166
157
  .ui.dropdown .menu .item > img.floated {
167
- margin-top: @itemLineHeightOffset;
158
+ margin-top: @itemLineHeightOffset;
168
159
  }
169
160
 
170
-
171
- /*--------------
161
+ /* --------------
172
162
  Menu Divider
173
- ---------------*/
163
+ --------------- */
174
164
 
175
165
  .ui.dropdown .menu > .header {
176
- margin: @menuHeaderMargin;
177
- padding: @menuHeaderPadding;
178
- font-weight: @menuHeaderFontWeight;
179
- text-transform: @menuHeaderTextTransform;
166
+ margin: @menuHeaderMargin;
167
+ padding: @menuHeaderPadding;
168
+ font-weight: @menuHeaderFontWeight;
169
+ text-transform: @menuHeaderTextTransform;
180
170
  }
181
171
  .ui.dropdown .menu > .header:not(.ui) {
182
- color: @menuHeaderColor;
183
- font-size: @menuHeaderFontSize;
172
+ color: @menuHeaderColor;
173
+ font-size: @menuHeaderFontSize;
184
174
  }
185
175
  .ui.dropdown .menu > .divider {
186
- border-top: @menuDividerBorder;
187
- height: 0;
188
- margin: @menuDividerMargin;
176
+ border-top: @menuDividerBorder;
177
+ height: 0;
178
+ margin: @menuDividerMargin;
189
179
  }
190
180
  .ui.dropdown .menu > .horizontal.divider {
191
- border-top: none;
181
+ border-top: none;
192
182
  }
193
183
 
194
184
  .ui.ui.ui.dropdown .menu > .input {
195
- width: auto;
196
- display: flex;
197
- margin: @menuInputMargin;
198
- min-width: @menuInputMinWidth;
185
+ width: auto;
186
+ display: flex;
187
+ margin: @menuInputMargin;
188
+ min-width: @menuInputMinWidth;
199
189
  }
200
190
  .ui.dropdown .menu > .header + .input {
201
- margin-top: 0;
191
+ margin-top: 0;
202
192
  }
203
193
  .ui.dropdown .menu > .input:not(.transparent) input {
204
- padding: @menuInputPadding;
194
+ padding: @menuInputPadding;
205
195
  }
206
196
  .ui.dropdown .menu > .input:not(.transparent) .button,
207
197
  .ui.dropdown .menu > .input:not(.transparent) i.icon,
208
198
  .ui.dropdown .menu > .input:not(.transparent) .label {
209
- padding-top: @menuInputVerticalPadding;
210
- padding-bottom: @menuInputVerticalPadding;
199
+ padding-top: @menuInputVerticalPadding;
200
+ padding-bottom: @menuInputVerticalPadding;
211
201
  }
212
202
 
213
- /*-----------------
203
+ /* -----------------
214
204
  Item Description
215
- -------------------*/
205
+ ------------------- */
216
206
 
217
207
  .ui.dropdown > .text > .description,
218
208
  .ui.dropdown .menu > .item > .description {
219
- float: @itemDescriptionFloat;
220
- margin: @itemDescriptionMargin;
221
- color: @itemDescriptionColor;
209
+ float: @itemDescriptionFloat;
210
+ margin: @itemDescriptionMargin;
211
+ color: @itemDescriptionColor;
222
212
  }
223
213
 
224
214
  .ui.dropdown .menu > .item.vertical > .description {
225
- margin: 0;
215
+ margin: 0;
226
216
  }
227
217
 
228
- /*-----------------
218
+ /* -----------------
229
219
  Item Text
230
- -------------------*/
220
+ ------------------- */
231
221
 
232
222
  .ui.dropdown .menu > .item.vertical > .text {
233
- margin-bottom: @verticalItemMargin;
223
+ margin-bottom: @verticalItemMargin;
234
224
  }
235
225
 
236
- /*-----------------
226
+ /* -----------------
237
227
  Message
238
- -------------------*/
228
+ ------------------- */
239
229
 
240
230
  .ui.dropdown .menu > .message {
241
- padding: @messagePadding;
242
- font-weight: @messageFontWeight;
231
+ padding: @messagePadding;
232
+ font-weight: @messageFontWeight;
243
233
  }
244
234
  .ui.dropdown .menu > .message:not(.ui) {
245
- color: @messageColor;
235
+ color: @messageColor;
246
236
  }
247
237
 
248
- /*--------------
238
+ /* --------------
249
239
  Sub Menu
250
- ---------------*/
240
+ --------------- */
251
241
 
252
242
  .ui.dropdown .menu .menu {
253
- top: @subMenuTop;
254
- left: @subMenuLeft;
255
- right: @subMenuRight;
256
- margin: @subMenuMargin !important;
257
- border-radius: @subMenuBorderRadius !important;
258
- z-index: @subMenuZIndex !important;
243
+ top: @subMenuTop;
244
+ left: @subMenuLeft;
245
+ right: @subMenuRight;
246
+ margin: @subMenuMargin !important;
247
+ border-radius: @subMenuBorderRadius !important;
248
+ z-index: @subMenuZIndex !important;
259
249
  }
260
250
 
261
251
  /* Hide Arrow */
262
252
  .ui.dropdown .menu .menu::after {
263
- display: none;
253
+ display: none;
264
254
  }
265
255
 
266
- /*--------------
256
+ /* --------------
267
257
  Sub Elements
268
- ---------------*/
258
+ --------------- */
269
259
 
270
260
  /* Icons / Flags / Labels / Image */
271
261
  .ui.dropdown > .text > i.icons,
@@ -274,15 +264,15 @@
274
264
  .ui.dropdown > .text > .flag,
275
265
  .ui.dropdown > .text > img,
276
266
  .ui.dropdown > .text > .image {
277
- margin-top: @textLineHeightOffset;
267
+ margin-top: @textLineHeightOffset;
278
268
  }
279
269
  .ui.dropdown .menu > .item > i.icons,
280
270
  .ui.dropdown .menu > .item > i.icon,
281
271
  .ui.dropdown .menu > .item > .label,
282
272
  .ui.dropdown .menu > .item > .flag,
283
273
  .ui.dropdown .menu > .item > .image,
284
- .ui.dropdown .menu > .item > img {
285
- margin-top: @itemLineHeightOffset;
274
+ .ui.dropdown .menu > .item > img {
275
+ margin-top: @itemLineHeightOffset;
286
276
  }
287
277
 
288
278
  .ui.dropdown > .text > i.icons,
@@ -296,1693 +286,1677 @@
296
286
  .ui.dropdown .menu > .item > .label,
297
287
  .ui.dropdown .menu > .item > .flag,
298
288
  .ui.dropdown .menu > .item > .image,
299
- .ui.dropdown .menu > .item > img {
300
- margin-left: 0;
301
- float: @itemElementFloat;
302
- margin-right: @itemElementDistance;
289
+ .ui.dropdown .menu > .item > img {
290
+ margin-left: 0;
291
+ float: @itemElementFloat;
292
+ margin-right: @itemElementDistance;
303
293
  }
304
294
 
305
- /*--------------
295
+ /* --------------
306
296
  Image
307
- ---------------*/
297
+ --------------- */
308
298
 
309
299
  .ui.dropdown > .text > img,
310
300
  .ui.dropdown > .text > .image:not(.icon),
311
301
  .ui.dropdown .menu > .item > .image:not(.icon),
312
302
  .ui.dropdown .menu > .item > img {
313
- display: inline-block;
314
- vertical-align: top;
315
- width: auto;
316
- margin-top: @menuImageVerticalMargin;
317
- margin-bottom: @menuImageVerticalMargin;
318
- max-height: @menuImageMaxHeight;
303
+ display: inline-block;
304
+ vertical-align: top;
305
+ width: auto;
306
+ margin-top: @menuImageVerticalMargin;
307
+ margin-bottom: @menuImageVerticalMargin;
308
+ max-height: @menuImageMaxHeight;
319
309
  }
320
310
 
321
-
322
311
  /*******************************
323
312
  Coupling
324
313
  *******************************/
325
314
 
326
-
327
- /*--------------
315
+ /* --------------
328
316
  Menu
329
- ---------------*/
317
+ --------------- */
330
318
 
331
319
  /* Remove Menu Item Divider */
332
320
  .ui.dropdown .ui.menu > .item::before,
333
321
  .ui.menu .ui.dropdown .menu > .item::before {
334
- display: none;
322
+ display: none;
335
323
  }
336
324
 
337
325
  /* Prevent Menu Item Border */
338
326
  .ui.menu .ui.dropdown .menu .active.item {
339
- border-left: none;
327
+ border-left: none;
340
328
  }
341
329
 
342
330
  /* Automatically float dropdown menu right on last menu item */
343
331
  .ui.menu .right.menu .dropdown:last-child > .menu:not(.left),
344
332
  .ui.menu .right.dropdown.item > .menu:not(.left),
345
333
  .ui.buttons > .ui.dropdown:last-child > .menu:not(.left) {
346
- left: auto;
347
- right: 0;
334
+ left: auto;
335
+ right: 0;
348
336
  }
349
337
 
350
338
  & when (@variationDropdownLabel) {
351
- /*--------------
352
- Label
353
- ---------------*/
339
+ /* --------------
340
+ Label
341
+ --------------- */
354
342
 
355
- /* Dropdown Menu */
356
- .ui.label.dropdown .menu {
357
- min-width: 100%;
358
- }
343
+ /* Dropdown Menu */
344
+ .ui.label.dropdown .menu {
345
+ min-width: 100%;
346
+ }
359
347
  }
360
348
 
361
349
  & when (@variationDropdownButton) {
362
- /*--------------
363
- Button
364
- ---------------*/
350
+ /* --------------
351
+ Button
352
+ --------------- */
365
353
 
366
- /* No Margin On Icon Button */
367
- .ui.dropdown.icon.button > .dropdown.icon {
368
- margin: 0;
369
- }
370
- .ui.dropdown.button .menu {
371
- min-width: 100%;
372
- }
373
- .ui.dropdown.button:not(.pointing):not(.floating).active {
374
- border-radius: @borderRadius @borderRadius 0 0;
375
- }
376
- .ui.dropdown.button:not(.pointing):not(.floating) > .menu {
377
- border-radius: 0 0 @borderRadius @borderRadius;
378
- }
354
+ /* No Margin On Icon Button */
355
+ .ui.dropdown.icon.button > .dropdown.icon {
356
+ margin: 0;
357
+ }
358
+ .ui.dropdown.button .menu {
359
+ min-width: 100%;
360
+ }
361
+ .ui.dropdown.button:not(.pointing):not(.floating).active {
362
+ border-radius: @borderRadius @borderRadius 0 0;
363
+ }
364
+ .ui.dropdown.button:not(.pointing):not(.floating) > .menu {
365
+ border-radius: 0 0 @borderRadius @borderRadius;
366
+ }
379
367
  }
380
368
 
381
-
382
-
383
369
  /*******************************
384
370
  Types
385
371
  *******************************/
386
372
  select.ui.dropdown {
387
- height: @selectHeight;
388
- padding: @selectPadding;
389
- border: @selectBorder;
390
- visibility: @selectVisibility;
373
+ height: @selectHeight;
374
+ padding: @selectPadding;
375
+ border: @selectBorder;
376
+ visibility: @selectVisibility;
391
377
  }
392
378
 
393
379
  & when (@variationDropdownSelection) {
394
- /*--------------
395
- Selection
396
- ---------------*/
397
-
398
- /* Displays like a select box */
399
- .ui.selection.dropdown {
400
- cursor: pointer;
401
- word-wrap: break-word;
402
- line-height: 1em;
403
- white-space: normal;
404
- outline: 0;
405
- transform: rotateZ(0deg);
406
-
407
- min-width: @selectionMinWidth;
408
- min-height: @selectionMinHeight;
409
-
410
- background: @selectionBackground;
411
- display: @selectionDisplay;
412
- padding: @selectionPadding;
413
- color: @selectionTextColor;
414
- box-shadow: @selectionBoxShadow;
415
- border: @selectionBorder;
416
- border-radius: @selectionBorderRadius;
417
- transition: @selectionTransition;
418
- }
419
- .ui.selection.dropdown.visible,
420
- .ui.selection.dropdown.active {
421
- z-index: @selectionZIndex;
422
- }
423
-
424
- .ui.selection.dropdown > .search.icon,
425
- .ui.selection.dropdown > .delete.icon,
426
- .ui.selection.dropdown > .dropdown.icon {
427
- cursor: pointer;
428
- position: absolute;
429
- width: auto;
430
- height: auto;
431
- line-height: @searchSelectionLineHeight;
432
- top: @selectionVerticalPadding;
433
- right: @selectionHorizontalPadding;
434
- z-index: @selectionIconZIndex;
435
- margin: @selectionIconMargin;
436
- padding: @selectionIconPadding;
437
- opacity: @selectionIconOpacity;
438
- transition: @selectionIconTransition;
439
- }
440
- & when (@variationDropdownCompact) {
441
- /* Compact */
442
- .ui.compact.selection.dropdown {
443
- min-width: 0;
444
- }
445
- }
446
-
447
- /* Selection Menu */
448
- .ui.selection.dropdown .menu {
449
- overflow-x: hidden;
450
- overflow-y: auto;
451
- backface-visibility: hidden;
452
- -webkit-overflow-scrolling: touch;
453
- border-top-width: 0 !important;
454
- width: auto;
455
- outline: none;
456
- margin: 0 -@menuBorderWidth;
457
- min-width: @menuMinWidth;
458
- width: @menuMinWidth;
459
-
460
- border-radius: @selectionMenuBorderRadius;
461
- box-shadow: @selectionMenuBoxShadow;
462
- transition: @selectionMenuTransition;
463
- }
464
- .ui.selection.dropdown .menu::after,
465
- .ui.selection.dropdown .menu::before {
466
- display: none;
467
- }
468
-
469
- /*--------------
470
- Message
471
- ---------------*/
472
-
473
- .ui.selection.dropdown .menu > .message {
474
- padding: @selectionMessagePadding;
475
- }
476
-
477
- @media only screen and (max-width : @largestMobileScreen) {
478
- & when (@variationDropdownShort) {
479
- .ui.selection.dropdown.short .menu {
480
- max-height: @selectionMobileMaxMenuHeight * 0.75;
481
- }
482
- .ui.selection.dropdown[class*="very short"] .menu {
483
- max-height: @selectionMobileMaxMenuHeight * 0.5;
484
- }
380
+ /* --------------
381
+ Selection
382
+ --------------- */
383
+
384
+ /* Displays like a select box */
385
+ .ui.selection.dropdown {
386
+ cursor: pointer;
387
+ word-wrap: break-word;
388
+ line-height: 1em;
389
+ white-space: normal;
390
+ outline: 0;
391
+ transform: rotateZ(0deg);
392
+ min-width: @selectionMinWidth;
393
+ min-height: @selectionMinHeight;
394
+ background: @selectionBackground;
395
+ display: @selectionDisplay;
396
+ padding: @selectionPadding;
397
+ color: @selectionTextColor;
398
+ box-shadow: @selectionBoxShadow;
399
+ border: @selectionBorder;
400
+ border-radius: @selectionBorderRadius;
401
+ transition: @selectionTransition;
402
+ }
403
+ .ui.selection.dropdown.visible,
404
+ .ui.selection.dropdown.active {
405
+ z-index: @selectionZIndex;
406
+ }
407
+
408
+ .ui.selection.dropdown > .search.icon,
409
+ .ui.selection.dropdown > .delete.icon,
410
+ .ui.selection.dropdown > .dropdown.icon {
411
+ cursor: pointer;
412
+ position: absolute;
413
+ width: auto;
414
+ height: auto;
415
+ line-height: @searchSelectionLineHeight;
416
+ top: @selectionVerticalPadding;
417
+ right: @selectionHorizontalPadding;
418
+ z-index: @selectionIconZIndex;
419
+ margin: @selectionIconMargin;
420
+ padding: @selectionIconPadding;
421
+ opacity: @selectionIconOpacity;
422
+ transition: @selectionIconTransition;
423
+ }
424
+ & when (@variationDropdownCompact) {
425
+ /* Compact */
426
+ .ui.compact.selection.dropdown {
427
+ min-width: 0;
428
+ }
485
429
  }
430
+
431
+ /* Selection Menu */
486
432
  .ui.selection.dropdown .menu {
487
- max-height: @selectionMobileMaxMenuHeight;
488
- }
489
- & when (@variationDropdownLong) {
490
- .ui.selection.dropdown.long .menu {
491
- max-height: @selectionMobileMaxMenuHeight * 2;
492
- }
493
- .ui.selection.dropdown[class*="very long"] .menu {
494
- max-height: @selectionMobileMaxMenuHeight * 3;
495
- }
496
- }
497
- }
498
- @media only screen and (min-width: @tabletBreakpoint) {
499
- & when (@variationDropdownShort) {
500
- .ui.selection.dropdown.short .menu {
501
- max-height: @selectionTabletMaxMenuHeight * 0.75;
502
- }
503
- .ui.selection.dropdown[class*="very short"] .menu {
504
- max-height: @selectionTabletMaxMenuHeight * 0.5;
505
- }
433
+ overflow-x: hidden;
434
+ overflow-y: auto;
435
+ overscroll-behavior: @overscrollBehavior;
436
+ backface-visibility: hidden;
437
+ -webkit-overflow-scrolling: touch;
438
+ border-top-width: 0 !important;
439
+ width: auto;
440
+ outline: none;
441
+ margin: 0 -@menuBorderWidth;
442
+ min-width: @menuMinWidth;
443
+ width: @menuMinWidth;
444
+ border-radius: @selectionMenuBorderRadius;
445
+ box-shadow: @selectionMenuBoxShadow;
446
+ transition: @selectionMenuTransition;
447
+ }
448
+ .ui.selection.dropdown .menu::after,
449
+ .ui.selection.dropdown .menu::before {
450
+ display: none;
451
+ }
452
+
453
+ /* --------------
454
+ Message
455
+ --------------- */
456
+
457
+ .ui.selection.dropdown .menu > .message {
458
+ padding: @selectionMessagePadding;
459
+ }
460
+
461
+ @media only screen and (max-width: @largestMobileScreen) {
462
+ & when (@variationDropdownShort) {
463
+ .ui.selection.dropdown.short .menu {
464
+ max-height: @selectionMobileMaxMenuHeight * 0.75;
465
+ }
466
+ .ui.selection.dropdown[class*="very short"] .menu {
467
+ max-height: @selectionMobileMaxMenuHeight * 0.5;
468
+ }
469
+ }
470
+ .ui.selection.dropdown .menu {
471
+ max-height: @selectionMobileMaxMenuHeight;
472
+ }
473
+ & when (@variationDropdownLong) {
474
+ .ui.selection.dropdown.long .menu {
475
+ max-height: @selectionMobileMaxMenuHeight * 2;
476
+ }
477
+ .ui.selection.dropdown[class*="very long"] .menu {
478
+ max-height: @selectionMobileMaxMenuHeight * 3;
479
+ }
480
+ }
506
481
  }
507
- .ui.selection.dropdown .menu {
508
- max-height: @selectionTabletMaxMenuHeight;
509
- }
510
- & when (@variationDropdownLong) {
511
- .ui.selection.dropdown.long .menu {
512
- max-height: @selectionTabletMaxMenuHeight * 2;
513
- }
514
- .ui.selection.dropdown[class*="very long"] .menu {
515
- max-height: @selectionTabletMaxMenuHeight * 3;
516
- }
517
- }
518
- }
519
- @media only screen and (min-width: @computerBreakpoint) {
520
- & when (@variationDropdownShort) {
521
- .ui.selection.dropdown.short .menu {
522
- max-height: @selectionComputerMaxMenuHeight * 0.75;
523
- }
524
- .ui.selection.dropdown[class*="very short"] .menu {
525
- max-height: @selectionComputerMaxMenuHeight * 0.5;
526
- }
482
+ @media only screen and (min-width: @tabletBreakpoint) {
483
+ & when (@variationDropdownShort) {
484
+ .ui.selection.dropdown.short .menu {
485
+ max-height: @selectionTabletMaxMenuHeight * 0.75;
486
+ }
487
+ .ui.selection.dropdown[class*="very short"] .menu {
488
+ max-height: @selectionTabletMaxMenuHeight * 0.5;
489
+ }
490
+ }
491
+ .ui.selection.dropdown .menu {
492
+ max-height: @selectionTabletMaxMenuHeight;
493
+ }
494
+ & when (@variationDropdownLong) {
495
+ .ui.selection.dropdown.long .menu {
496
+ max-height: @selectionTabletMaxMenuHeight * 2;
497
+ }
498
+ .ui.selection.dropdown[class*="very long"] .menu {
499
+ max-height: @selectionTabletMaxMenuHeight * 3;
500
+ }
501
+ }
527
502
  }
528
- .ui.selection.dropdown .menu {
529
- max-height: @selectionComputerMaxMenuHeight;
530
- }
531
- & when (@variationDropdownLong) {
532
- .ui.selection.dropdown.long .menu {
533
- max-height: @selectionComputerMaxMenuHeight * 2;
534
- }
535
- .ui.selection.dropdown[class*="very long"] .menu {
536
- max-height: @selectionComputerMaxMenuHeight * 3;
537
- }
538
- }
539
- }
540
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
541
- & when (@variationDropdownShort) {
542
- .ui.selection.dropdown.short .menu {
543
- max-height: @selectionWidescreenMaxMenuHeight * 0.75;
544
- }
545
- .ui.selection.dropdown[class*="very short"] .menu {
546
- max-height: @selectionWidescreenMaxMenuHeight * 0.5;
547
- }
503
+ @media only screen and (min-width: @computerBreakpoint) {
504
+ & when (@variationDropdownShort) {
505
+ .ui.selection.dropdown.short .menu {
506
+ max-height: @selectionComputerMaxMenuHeight * 0.75;
507
+ }
508
+ .ui.selection.dropdown[class*="very short"] .menu {
509
+ max-height: @selectionComputerMaxMenuHeight * 0.5;
510
+ }
511
+ }
512
+ .ui.selection.dropdown .menu {
513
+ max-height: @selectionComputerMaxMenuHeight;
514
+ }
515
+ & when (@variationDropdownLong) {
516
+ .ui.selection.dropdown.long .menu {
517
+ max-height: @selectionComputerMaxMenuHeight * 2;
518
+ }
519
+ .ui.selection.dropdown[class*="very long"] .menu {
520
+ max-height: @selectionComputerMaxMenuHeight * 3;
521
+ }
522
+ }
548
523
  }
549
- .ui.selection.dropdown .menu {
550
- max-height: @selectionWidescreenMaxMenuHeight;
551
- }
552
- & when (@variationDropdownLong) {
553
- .ui.selection.dropdown.long .menu {
554
- max-height: @selectionWidescreenMaxMenuHeight * 2;
555
- }
556
- .ui.selection.dropdown[class*="very long"] .menu {
557
- max-height: @selectionWidescreenMaxMenuHeight * 3;
558
- }
559
- }
560
- }
561
-
562
- /* Menu Item */
563
- .ui.selection.dropdown .menu > .item {
564
- border-top: @selectionItemDivider;
565
- padding: @selectionItemPadding;
566
- white-space: normal;
567
- word-wrap: normal;
568
- }
569
-
570
- /* User Item */
571
- .ui.selection.dropdown .menu > .hidden.addition.item {
572
- display: none;
573
- }
574
-
575
- /* User addition item */
576
- .ui.dropdown > .menu > .stuck.addition.item:first-child {
577
- position: -webkit-sticky;
578
- position: sticky;
579
- top: 0;
580
- box-shadow: @selectionVisibleBoxShadow;
581
- background: @menuBackground;
582
- z-index: @additionZIndex;
583
- }
584
-
585
- /* Hover */
586
- .ui.selection.dropdown:hover {
587
- border-color: @selectionHoverBorderColor;
588
- box-shadow: @selectionHoverBoxShadow;
589
- }
590
-
591
- /* Active */
592
- .ui.selection.simple.dropdown:hover,
593
- .ui.selection.active.dropdown {
594
- border-color: @selectionVisibleBorderColor;
595
- box-shadow: @selectionVisibleBoxShadow;
596
- }
597
- .ui.selection.simple.dropdown:hover .menu,
598
- .ui.selection.active.dropdown .menu {
599
- border-color: @selectionVisibleBorderColor;
600
- box-shadow: @selectionVisibleMenuBoxShadow;
601
- }
602
-
603
- /* Focus */
604
- .ui.selection.dropdown:focus {
605
- border-color: @selectionFocusBorderColor;
606
- box-shadow: @selectionFocusBoxShadow;
607
- }
608
- .ui.selection.dropdown:focus .menu {
609
- border-color: @selectionFocusBorderColor;
610
- box-shadow: @selectionFocusMenuBoxShadow;
611
- }
612
-
613
- /* Visible */
614
- .ui.selection.visible.dropdown > .text:not(.default) {
615
- font-weight: @selectionVisibleTextFontWeight;
616
- color: @selectionVisibleTextColor;
617
- }
618
-
619
- /* Visible Hover */
620
- .ui.selection.active.dropdown:hover {
621
- border-color: @selectionActiveHoverBorderColor;
622
- box-shadow: @selectionActiveHoverBoxShadow;
623
- }
624
- .ui.selection.active.dropdown:hover .menu {
625
- border-color: @selectionActiveHoverBorderColor;
626
- box-shadow: @selectionActiveHoverMenuBoxShadow;
627
- }
628
-
629
- /* Dropdown Icon */
630
- .ui.active.selection.dropdown > .dropdown.icon,
631
- .ui.visible.selection.dropdown > .dropdown.icon {
632
- opacity: @selectionVisibleIconOpacity;
633
- z-index: 3;
634
- }
635
-
636
- /* Connecting Border */
637
- .ui.active.selection.dropdown {
638
- border-bottom-left-radius: @selectionVisibleConnectingBorder !important;
639
- border-bottom-right-radius: @selectionVisibleConnectingBorder !important;
640
- }
641
-
642
- /* Empty Connecting Border */
643
- .ui.active.empty.selection.dropdown {
644
- border-radius: @selectionBorderRadius !important;
645
- box-shadow: @selectionBoxShadow !important;
646
- }
647
- .ui.active.empty.selection.dropdown .menu {
648
- border: none !important;
649
- box-shadow: none !important;
650
- }
651
- & when (@variationDropdownScrollhint) {
652
- /* CSS specific to iOS devices or firefox mobile only */
653
- @supports (-webkit-touch-callout: none) or (-webkit-overflow-scrolling: touch) or (-moz-appearance:none) {
654
- @media (-moz-touch-enabled), (pointer: coarse) {
655
- .ui.dropdown .scrollhint.menu:not(.hidden)::before {
656
- animation: scrollhint @scrollhintDuration @scrollhintEasing @scrollhintIteration;
657
- content: '';
658
- z-index: @scrollhintZIndex;
659
- display: block;
660
- position: absolute;
661
- opacity: 0;
662
- right: @scrollhintOffsetRight;
663
- top: 0;
664
- height: 100%;
665
- border-right: @scrollhintRightBorder;
666
- border-left: @scrollhintLeftBorder;
667
- border-image: linear-gradient(to bottom, @scrollhintStartColor, @scrollhintEndColor) 1 100%;
668
- }
669
-
670
- .ui.inverted.dropdown .scrollhint.menu:not(.hidden)::before {
671
- border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor) 1 100%;
672
- }
673
-
674
- @keyframes scrollhint {
675
- 0% {
676
- opacity: 1;
677
- top: 100%;
678
- }
679
- 100% {
680
- opacity: 0;
681
- top: 0;
682
- }
524
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
525
+ & when (@variationDropdownShort) {
526
+ .ui.selection.dropdown.short .menu {
527
+ max-height: @selectionWidescreenMaxMenuHeight * 0.75;
528
+ }
529
+ .ui.selection.dropdown[class*="very short"] .menu {
530
+ max-height: @selectionWidescreenMaxMenuHeight * 0.5;
531
+ }
532
+ }
533
+ .ui.selection.dropdown .menu {
534
+ max-height: @selectionWidescreenMaxMenuHeight;
535
+ }
536
+ & when (@variationDropdownLong) {
537
+ .ui.selection.dropdown.long .menu {
538
+ max-height: @selectionWidescreenMaxMenuHeight * 2;
539
+ }
540
+ .ui.selection.dropdown[class*="very long"] .menu {
541
+ max-height: @selectionWidescreenMaxMenuHeight * 3;
542
+ }
543
+ }
544
+ }
545
+
546
+ /* Menu Item */
547
+ .ui.selection.dropdown .menu > .item {
548
+ border-top: @selectionItemDivider;
549
+ padding: @selectionItemPadding;
550
+ white-space: normal;
551
+ word-wrap: normal;
552
+ }
553
+
554
+ /* User Item */
555
+ .ui.selection.dropdown .menu > .hidden.addition.item {
556
+ display: none;
557
+ }
558
+
559
+ /* User addition item */
560
+ .ui.dropdown > .menu > .stuck.addition.item:first-child {
561
+ position: -webkit-sticky;
562
+ position: sticky;
563
+ top: 0;
564
+ box-shadow: @selectionVisibleBoxShadow;
565
+ background: @menuBackground;
566
+ z-index: @additionZIndex;
567
+ }
568
+
569
+ /* Hover */
570
+ .ui.selection.dropdown:hover {
571
+ border-color: @selectionHoverBorderColor;
572
+ box-shadow: @selectionHoverBoxShadow;
573
+ }
574
+
575
+ /* Active */
576
+ .ui.selection.simple.dropdown:hover,
577
+ .ui.selection.active.dropdown {
578
+ border-color: @selectionVisibleBorderColor;
579
+ box-shadow: @selectionVisibleBoxShadow;
580
+ }
581
+ .ui.selection.simple.dropdown:hover .menu,
582
+ .ui.selection.active.dropdown .menu {
583
+ border-color: @selectionVisibleBorderColor;
584
+ box-shadow: @selectionVisibleMenuBoxShadow;
585
+ }
586
+
587
+ /* Focus */
588
+ .ui.selection.dropdown:focus {
589
+ border-color: @selectionFocusBorderColor;
590
+ box-shadow: @selectionFocusBoxShadow;
591
+ }
592
+ .ui.selection.dropdown:focus .menu {
593
+ border-color: @selectionFocusBorderColor;
594
+ box-shadow: @selectionFocusMenuBoxShadow;
595
+ }
596
+
597
+ /* Visible */
598
+ .ui.selection.visible.dropdown > .text:not(.default) {
599
+ font-weight: @selectionVisibleTextFontWeight;
600
+ color: @selectionVisibleTextColor;
601
+ }
602
+
603
+ /* Visible Hover */
604
+ .ui.selection.active.dropdown:hover {
605
+ border-color: @selectionActiveHoverBorderColor;
606
+ box-shadow: @selectionActiveHoverBoxShadow;
607
+ }
608
+ .ui.selection.active.dropdown:hover .menu {
609
+ border-color: @selectionActiveHoverBorderColor;
610
+ box-shadow: @selectionActiveHoverMenuBoxShadow;
611
+ }
612
+
613
+ /* Dropdown Icon */
614
+ .ui.active.selection.dropdown > .dropdown.icon,
615
+ .ui.visible.selection.dropdown > .dropdown.icon {
616
+ opacity: @selectionVisibleIconOpacity;
617
+ z-index: 3;
618
+ }
619
+
620
+ /* Connecting Border */
621
+ .ui.active.selection.dropdown {
622
+ border-bottom-left-radius: @selectionVisibleConnectingBorder !important;
623
+ border-bottom-right-radius: @selectionVisibleConnectingBorder !important;
624
+ }
625
+
626
+ /* Empty Connecting Border */
627
+ .ui.active.empty.selection.dropdown {
628
+ border-radius: @selectionBorderRadius !important;
629
+ box-shadow: @selectionBoxShadow !important;
630
+ }
631
+ .ui.active.empty.selection.dropdown .menu {
632
+ border: none !important;
633
+ box-shadow: none !important;
634
+ }
635
+ & when (@variationDropdownScrollhint) {
636
+ /* CSS specific to iOS devices or firefox mobile only */
637
+ @supports (-webkit-touch-callout: none) or (-webkit-overflow-scrolling: touch) or (-moz-appearance:none) {
638
+ @media (-moz-touch-enabled), (pointer: coarse) {
639
+ .ui.dropdown .scrollhint.menu:not(.hidden)::before {
640
+ animation: scrollhint @scrollhintDuration @scrollhintEasing @scrollhintIteration;
641
+ content: '';
642
+ z-index: @scrollhintZIndex;
643
+ display: block;
644
+ position: absolute;
645
+ opacity: 0;
646
+ right: @scrollhintOffsetRight;
647
+ top: 0;
648
+ height: 100%;
649
+ border-right: @scrollhintRightBorder;
650
+ border-left: @scrollhintLeftBorder;
651
+ border-image: linear-gradient(to bottom, @scrollhintStartColor, @scrollhintEndColor) 1 100%;
652
+ }
653
+
654
+ .ui.inverted.dropdown .scrollhint.menu:not(.hidden)::before {
655
+ border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor) 1 100%;
656
+ }
657
+
658
+ @keyframes scrollhint {
659
+ 0% {
660
+ opacity: 1;
661
+ top: 100%;
662
+ }
663
+ 100% {
664
+ opacity: 0;
665
+ top: 0;
666
+ }
667
+ }
668
+ }
683
669
  }
684
- }
685
670
  }
686
- }
687
671
  }
688
672
 
689
673
  & when (@variationDropdownSearch) {
690
- /*--------------
691
- Searchable
692
- ---------------*/
693
-
694
- /* Search Selection */
695
- .ui.search.dropdown {
696
- min-width: @searchMinWidth;
697
- }
698
-
699
- /* Search Dropdown */
700
- .ui.search.dropdown > input.search {
701
- background: none transparent !important;
702
- border: none !important;
703
- box-shadow: none !important;
704
- cursor: text;
705
- top: 0;
706
- left: @textCursorSpacing;
707
- width: 100%;
708
- outline: none;
709
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
710
- padding: inherit;
711
- }
674
+ /* --------------
675
+ Searchable
676
+ --------------- */
712
677
 
713
- /* Text Layering */
714
- .ui.search.dropdown > input.search {
715
- position: absolute;
716
- z-index: 2;
717
- }
718
- .ui.search.dropdown > .text {
719
- cursor: text;
720
- position: relative;
721
- left: @textCursorSpacing;
722
- z-index: auto;
723
- }
724
-
725
- & when (@variationDropdownSelection) {
726
678
  /* Search Selection */
727
- .ui.search.selection.dropdown > input.search {
728
- line-height: @searchSelectionLineHeight;
729
- padding: @searchSelectionInputPadding;
679
+ .ui.search.dropdown {
680
+ min-width: @searchMinWidth;
730
681
  }
731
682
 
732
- /* Used to size multi select input to character width */
733
- .ui.search.selection.dropdown > span.sizer {
734
- line-height: @searchSelectionLineHeight;
735
- padding: @searchSelectionInputPadding;
736
- display: none;
737
- white-space: pre;
683
+ /* Search Dropdown */
684
+ .ui.search.dropdown > input.search {
685
+ background: none transparent !important;
686
+ border: none !important;
687
+ box-shadow: none !important;
688
+ cursor: text;
689
+ top: 0;
690
+ left: @textCursorSpacing;
691
+ width: 100%;
692
+ outline: none;
693
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
694
+ padding: inherit;
738
695
  }
739
- }
740
696
 
741
- /* Active/Visible Search */
742
- .ui.search.dropdown.active > input.search,
743
- .ui.search.dropdown.visible > input.search {
744
- cursor: auto;
745
- }
746
- .ui.search.dropdown.active > .text,
747
- .ui.search.dropdown.visible > .text {
748
- pointer-events: none;
749
- }
750
-
751
- /* Filtered Text */
752
- .ui.active.search.dropdown input.search:focus + .text i.icon,
753
- .ui.active.search.dropdown input.search:focus + .text .flag {
754
- opacity: @selectionTextUnderlayIconOpacity;
755
- }
756
- .ui.active.search.dropdown input.search:focus + .text {
757
- color: @selectionTextUnderlayColor !important;
758
- }
759
-
760
- .ui.search.dropdown.button > span.sizer {
761
- display: none;
762
- }
763
-
764
- /* Search Menu */
765
- .ui.search.dropdown .menu {
766
- overflow-x: hidden;
767
- overflow-y: auto;
768
- backface-visibility: hidden;
769
- -webkit-overflow-scrolling: touch;
770
- }
771
- @media only screen and (max-width : @largestMobileScreen) {
772
- .ui.search.dropdown .menu {
773
- max-height: @searchMobileMaxMenuHeight;
697
+ /* Text Layering */
698
+ .ui.search.dropdown > input.search {
699
+ position: absolute;
700
+ z-index: 2;
774
701
  }
775
- }
776
- @media only screen and (min-width: @tabletBreakpoint) {
777
- .ui.search.dropdown .menu {
778
- max-height: @searchTabletMaxMenuHeight;
702
+ .ui.search.dropdown > .text {
703
+ cursor: text;
704
+ position: relative;
705
+ left: @textCursorSpacing;
706
+ z-index: auto;
779
707
  }
780
- }
781
- @media only screen and (min-width: @computerBreakpoint) {
782
- .ui.search.dropdown .menu {
783
- max-height: @searchComputerMaxMenuHeight;
708
+
709
+ & when (@variationDropdownSelection) {
710
+ /* Search Selection */
711
+ .ui.search.selection.dropdown > input.search {
712
+ line-height: @searchSelectionLineHeight;
713
+ padding: @searchSelectionInputPadding;
714
+ }
715
+
716
+ /* Used to size multi select input to character width */
717
+ .ui.search.selection.dropdown > span.sizer {
718
+ line-height: @searchSelectionLineHeight;
719
+ padding: @searchSelectionInputPadding;
720
+ display: none;
721
+ white-space: pre;
722
+ }
723
+ }
724
+
725
+ /* Active/Visible Search */
726
+ .ui.search.dropdown.active > input.search,
727
+ .ui.search.dropdown.visible > input.search {
728
+ cursor: auto;
729
+ }
730
+ .ui.search.dropdown.active > .text,
731
+ .ui.search.dropdown.visible > .text {
732
+ pointer-events: none;
733
+ }
734
+
735
+ /* Filtered Text */
736
+ .ui.active.search.dropdown input.search:focus + .text i.icon,
737
+ .ui.active.search.dropdown input.search:focus + .text .flag {
738
+ opacity: @selectionTextUnderlayIconOpacity;
739
+ }
740
+ .ui.active.search.dropdown input.search:focus + .text {
741
+ color: @selectionTextUnderlayColor !important;
784
742
  }
785
- }
786
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
743
+
744
+ .ui.search.dropdown.button > span.sizer {
745
+ display: none;
746
+ }
747
+
748
+ /* Search Menu */
787
749
  .ui.search.dropdown .menu {
788
- max-height: @searchWidescreenMaxMenuHeight;
750
+ overflow-x: hidden;
751
+ overflow-y: auto;
752
+ overscroll-behavior: @overscrollBehavior;
753
+ backface-visibility: hidden;
754
+ -webkit-overflow-scrolling: touch;
755
+ }
756
+ @media only screen and (max-width: @largestMobileScreen) {
757
+ .ui.search.dropdown .menu {
758
+ max-height: @searchMobileMaxMenuHeight;
759
+ }
760
+ }
761
+ @media only screen and (min-width: @tabletBreakpoint) {
762
+ .ui.search.dropdown .menu {
763
+ max-height: @searchTabletMaxMenuHeight;
764
+ }
765
+ }
766
+ @media only screen and (min-width: @computerBreakpoint) {
767
+ .ui.search.dropdown .menu {
768
+ max-height: @searchComputerMaxMenuHeight;
769
+ }
770
+ }
771
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
772
+ .ui.search.dropdown .menu {
773
+ max-height: @searchWidescreenMaxMenuHeight;
774
+ }
789
775
  }
790
- }
791
776
  }
792
777
 
793
778
  & when (@variationDropdownClear) {
794
- /* Clearable Selection */
795
- .ui.dropdown > .remove.icon {
796
- cursor: pointer;
797
- font-size: @dropdownIconSize;
798
- margin: @selectionIconMargin;
799
- padding: @selectionIconPadding;
800
- right: @clearableIconPosition;
801
- top: @selectionVerticalPadding;
802
- position: absolute;
803
- opacity: @clearableIconOpacity;
804
- z-index: @selectionIconZIndex;
805
- }
806
- & when (@variationDropdownSelection) {
807
- .ui.selection.dropdown > .remove.icon {
808
- right: @clearableIconSelectionPosition;
809
- }
810
- }
811
- & when (@variationDropdownInline) {
812
- .ui.inline.dropdown > .remove.icon {
813
- right: @clearableIconInlinePosition;
814
- }
815
- }
816
-
817
- .ui.clearable.dropdown .text,
818
- .ui.clearable.dropdown a:last-of-type {
819
- margin-right: @clearableTextMargin;
820
- }
821
-
822
- .ui.dropdown select.noselection ~ .remove.icon,
823
- .ui.dropdown input[value=''] ~ .remove.icon,
824
- .ui.dropdown input:not([value]) ~ .remove.icon,
825
- .ui.dropdown.loading > .remove.icon {
826
- display: none;
827
- }
779
+ /* Clearable Selection */
780
+ .ui.dropdown > .remove.icon {
781
+ cursor: pointer;
782
+ font-size: @dropdownIconSize;
783
+ margin: @selectionIconMargin;
784
+ padding: @selectionIconPadding;
785
+ right: @clearableIconPosition;
786
+ top: @selectionVerticalPadding;
787
+ position: absolute;
788
+ opacity: @clearableIconOpacity;
789
+ z-index: @selectionIconZIndex;
790
+ }
791
+ & when (@variationDropdownSelection) {
792
+ .ui.selection.dropdown > .remove.icon {
793
+ right: @clearableIconSelectionPosition;
794
+ }
795
+ }
796
+ & when (@variationDropdownInline) {
797
+ .ui.inline.dropdown > .remove.icon {
798
+ right: @clearableIconInlinePosition;
799
+ }
800
+ }
801
+
802
+ .ui.clearable.dropdown .text,
803
+ .ui.clearable.dropdown a:last-of-type {
804
+ margin-right: @clearableTextMargin;
805
+ }
828
806
 
829
- .ui.dropdown:not(.selection) > .remove.icon ~ .dropdown.icon {
830
- margin-left: @clearableIconMargin;
831
- }
832
- .ui.dropdown:not(.selection) > .remove.icon {
833
- margin-top: -@clearableIconMarginTop;
834
- }
807
+ .ui.dropdown select.noselection ~ .remove.icon,
808
+ .ui.dropdown input[value=''] ~ .remove.icon,
809
+ .ui.dropdown input:not([value]) ~ .remove.icon,
810
+ .ui.dropdown.loading > .remove.icon {
811
+ display: none;
812
+ }
813
+
814
+ .ui.dropdown:not(.selection) > .remove.icon ~ .dropdown.icon {
815
+ margin-left: @clearableIconMargin;
816
+ }
817
+ .ui.dropdown:not(.selection) > .remove.icon {
818
+ margin-top: -@clearableIconMarginTop;
819
+ }
835
820
  }
836
821
 
837
822
  & when (@variationDropdownMultiple) {
838
- /*--------------
839
- Multiple
840
- ---------------*/
841
-
842
- /* Multiple Selection */
843
- .ui.ui.multiple.dropdown {
844
- padding: @multipleSelectionPadding;
845
- }
846
- .ui.multiple.dropdown .menu {
847
- cursor: auto;
848
- }
849
-
850
- /* Selection Label */
851
- .ui.multiple.dropdown > .label {
852
- display: inline-block;
853
- white-space: normal;
854
- font-size: @labelSize;
855
- padding: @labelPadding;
856
- margin: @labelMargin;
857
- box-shadow: @labelBoxShadow;
858
- }
859
-
860
- /* Dropdown Icon */
861
- .ui.multiple.dropdown .dropdown.icon {
862
- margin: @multipleSelectionDropdownIconMargin;
863
- padding: @multipleSelectionDropdownIconPadding;
864
- }
865
-
866
- /* Text */
867
- .ui.multiple.dropdown > .text {
868
- position: static;
869
- padding: 0;
870
- max-width: 100%;
871
- margin: @multipleSelectionChildMargin;
872
- line-height: @multipleSelectionChildLineHeight;
873
- &.default {
874
- white-space: nowrap;
875
- overflow: hidden;
876
- text-overflow: ellipsis;
877
- }
878
- }
879
- .ui.multiple.dropdown > .label ~ input.search {
880
- margin-left: @multipleSelectionSearchAfterLabelDistance !important;
881
- }
882
- .ui.multiple.dropdown > .label ~ .text {
883
- display: none;
884
- }
885
- .ui.multiple.dropdown > .label:not(.image) > img:not(.centered) {
886
- margin-right: @itemElementDistance;
887
- }
888
- .ui.multiple.dropdown > .label:not(.image) > img.ui:not(.avatar) {
889
- margin-bottom: @itemElementBottomDistance;
890
- }
891
- .ui.multiple.dropdown > .image.label img {
892
- margin: @imageLabelImageMargin;
893
- height: @imageLabelHeight;
894
- }
823
+ /* --------------
824
+ Multiple
825
+ --------------- */
826
+
827
+ /* Multiple Selection */
828
+ .ui.ui.multiple.dropdown {
829
+ padding: @multipleSelectionPadding;
830
+ }
831
+ .ui.multiple.dropdown .menu {
832
+ cursor: auto;
833
+ }
834
+
835
+ /* Selection Label */
836
+ .ui.multiple.dropdown > .label {
837
+ display: inline-block;
838
+ white-space: normal;
839
+ font-size: @labelSize;
840
+ padding: @labelPadding;
841
+ margin: @labelMargin;
842
+ box-shadow: @labelBoxShadow;
843
+ }
844
+
845
+ /* Dropdown Icon */
846
+ .ui.multiple.dropdown .dropdown.icon {
847
+ margin: @multipleSelectionDropdownIconMargin;
848
+ padding: @multipleSelectionDropdownIconPadding;
849
+ }
850
+
851
+ /* Text */
852
+ .ui.multiple.dropdown > .text {
853
+ position: static;
854
+ padding: 0;
855
+ max-width: 100%;
856
+ margin: @multipleSelectionChildMargin;
857
+ line-height: @multipleSelectionChildLineHeight;
858
+ &.default {
859
+ white-space: nowrap;
860
+ overflow: hidden;
861
+ text-overflow: ellipsis;
862
+ }
863
+ }
864
+ .ui.multiple.dropdown > .label ~ input.search {
865
+ margin-left: @multipleSelectionSearchAfterLabelDistance !important;
866
+ }
867
+ .ui.multiple.dropdown > .label ~ .text {
868
+ display: none;
869
+ }
870
+ .ui.multiple.dropdown > .label:not(.image) > img:not(.centered) {
871
+ margin-right: @itemElementDistance;
872
+ }
873
+ .ui.multiple.dropdown > .label:not(.image) > img.ui:not(.avatar) {
874
+ margin-bottom: @itemElementBottomDistance;
875
+ }
876
+ .ui.multiple.dropdown > .image.label img {
877
+ margin: @imageLabelImageMargin;
878
+ height: @imageLabelHeight;
879
+ }
895
880
 
896
- & when (@variationDropdownSearch) {
897
- /*-----------------
898
- Multiple Search
899
- -----------------*/
881
+ & when (@variationDropdownSearch) {
882
+ /* -----------------
883
+ Multiple Search
884
+ ----------------- */
900
885
 
901
- /* Multiple Search Selection */
902
- .ui.multiple.search.dropdown,
903
- .ui.multiple.search.dropdown > input.search {
904
- cursor: text;
905
- }
886
+ /* Multiple Search Selection */
887
+ .ui.multiple.search.dropdown,
888
+ .ui.multiple.search.dropdown > input.search {
889
+ cursor: text;
890
+ }
906
891
 
907
- /* Prompt Text */
908
- .ui.multiple.search.dropdown > .text {
909
- display: inline-block;
910
- position: absolute;
911
- top: 0;
912
- left: 0;
913
- padding: inherit;
914
- margin: @multipleSelectionChildMargin;
915
- line-height: @multipleSelectionChildLineHeight;
916
- }
892
+ /* Prompt Text */
893
+ .ui.multiple.search.dropdown > .text {
894
+ display: inline-block;
895
+ position: absolute;
896
+ top: 0;
897
+ left: 0;
898
+ padding: inherit;
899
+ margin: @multipleSelectionChildMargin;
900
+ line-height: @multipleSelectionChildLineHeight;
901
+ }
917
902
 
918
- .ui.multiple.search.dropdown > .label ~ .text {
919
- display: none;
920
- }
903
+ .ui.multiple.search.dropdown > .label ~ .text {
904
+ display: none;
905
+ }
921
906
 
922
- /* Search */
923
- .ui.multiple.search.dropdown > input.search {
924
- position: static;
925
- padding: 0;
926
- max-width: 100%;
927
- margin: @multipleSelectionChildMargin;
928
- width: @multipleSelectionSearchStartWidth;
929
- line-height: @multipleSelectionChildLineHeight;
930
- }
907
+ /* Search */
908
+ .ui.multiple.search.dropdown > input.search {
909
+ position: static;
910
+ padding: 0;
911
+ max-width: 100%;
912
+ margin: @multipleSelectionChildMargin;
913
+ width: @multipleSelectionSearchStartWidth;
914
+ line-height: @multipleSelectionChildLineHeight;
915
+ }
931
916
 
932
- .ui.multiple.search.dropdown.button {
933
- min-width: @selectionMinWidth;
917
+ .ui.multiple.search.dropdown.button {
918
+ min-width: @selectionMinWidth;
919
+ }
934
920
  }
935
- }
936
921
  }
937
922
 
938
923
  & when (@variationDropdownInline) {
939
- /*--------------
940
- Inline
941
- ---------------*/
924
+ /* --------------
925
+ Inline
926
+ --------------- */
942
927
 
943
- .ui.inline.dropdown {
944
- cursor: pointer;
945
- display: inline-block;
946
- color: @inlineTextColor;
947
- }
948
- .ui.inline.dropdown .dropdown.icon {
949
- margin: @inlineIconMargin;
950
- vertical-align: baseline;
951
- }
952
- .ui.inline.dropdown > .text {
953
- font-weight: @inlineTextFontWeight;
954
- }
955
- .ui.inline.dropdown .menu {
956
- cursor: auto;
957
- margin-top: @inlineMenuDistance;
958
- border-radius: @inlineMenuBorderRadius;
959
- }
928
+ .ui.inline.dropdown {
929
+ cursor: pointer;
930
+ display: inline-block;
931
+ color: @inlineTextColor;
932
+ }
933
+ .ui.inline.dropdown .dropdown.icon {
934
+ margin: @inlineIconMargin;
935
+ vertical-align: baseline;
936
+ }
937
+ .ui.inline.dropdown > .text {
938
+ font-weight: @inlineTextFontWeight;
939
+ }
940
+ .ui.inline.dropdown .menu {
941
+ cursor: auto;
942
+ margin-top: @inlineMenuDistance;
943
+ border-radius: @inlineMenuBorderRadius;
944
+ }
960
945
  }
961
946
 
962
-
963
947
  /*******************************
964
948
  States
965
949
  *******************************/
966
950
 
967
-
968
- /*--------------------
951
+ /* --------------------
969
952
  Active
970
- ----------------------*/
953
+ ---------------------- */
971
954
 
972
955
  /* Menu Item Active */
973
956
  .ui.dropdown .menu .active.item {
974
- background: @activeItemBackground;
975
- font-weight: @activeItemFontWeight;
976
- color: @activeItemColor;
977
- box-shadow: @activeItemBoxShadow;
978
- z-index: @activeItemZIndex;
957
+ background: @activeItemBackground;
958
+ font-weight: @activeItemFontWeight;
959
+ color: @activeItemColor;
960
+ box-shadow: @activeItemBoxShadow;
961
+ z-index: @activeItemZIndex;
979
962
  }
980
963
 
981
-
982
- /*--------------------
964
+ /* --------------------
983
965
  Hover
984
- ----------------------*/
966
+ ---------------------- */
985
967
 
986
968
  /* Menu Item Hover */
987
969
  .ui.dropdown .menu > .item:hover {
988
- background: @hoveredItemBackground;
989
- color: @hoveredItemColor;
990
- z-index: @hoveredZIndex;
970
+ background: @hoveredItemBackground;
971
+ color: @hoveredItemColor;
972
+ z-index: @hoveredZIndex;
991
973
  }
992
974
 
993
- /*--------------------
975
+ /* --------------------
994
976
  Default Text
995
- ----------------------*/
977
+ ---------------------- */
996
978
 
997
979
  .ui.dropdown:not(.button) > .default.text,
998
980
  .ui.default.dropdown:not(.button) > .text {
999
- color: @defaultTextColor;
981
+ color: @defaultTextColor;
1000
982
  }
1001
983
  .ui.dropdown:not(.button) > input:focus ~ .default.text,
1002
984
  .ui.default.dropdown:not(.button) > input:focus ~ .text {
1003
- color: @defaultTextFocusColor;
985
+ color: @defaultTextFocusColor;
1004
986
  }
1005
987
 
1006
988
  & when (@variationDropdownLoading) {
989
+ /* --------------------
990
+ Loading
991
+ --------------------- */
1007
992
 
1008
- /*--------------------
1009
- Loading
1010
- ---------------------*/
1011
-
1012
- .ui.loading.dropdown > i.icon {
1013
- height: @relative14px !important;
1014
- }
1015
- .ui.loading.selection.dropdown > i.icon {
1016
- padding: @relative21px @relative18px !important;
1017
- }
1018
- .ui.loading.dropdown > i.icon::before {
1019
- position: absolute;
1020
- content: '';
1021
- top: 50%;
1022
- left: 50%;
1023
-
1024
- margin: @loaderMargin;
1025
- width: @loaderSize;
1026
- height: @loaderSize;
1027
-
1028
- border-radius: @circularRadius;
1029
- border: @loaderLineWidth solid @loaderFillColor;
1030
- }
1031
- .ui.loading.dropdown > i.icon::after {
1032
- position: absolute;
1033
- content: '';
1034
- top: 50%;
1035
- left: 50%;
1036
- box-shadow: 0 0 0 1px transparent;
1037
-
1038
- margin: @loaderMargin;
1039
- width: @loaderSize;
1040
- height: @loaderSize;
1041
-
1042
- animation: loader @loaderSpeed infinite linear;
1043
- border: @loaderLineWidth solid @loaderLineColor;
1044
- border-radius: @circularRadius;
1045
-
1046
- }
993
+ .ui.loading.dropdown > i.icon {
994
+ height: @relative14px !important;
995
+ }
996
+ .ui.loading.selection.dropdown > i.icon {
997
+ padding: @relative21px @relative18px !important;
998
+ }
999
+ .ui.loading.dropdown > i.icon::before {
1000
+ position: absolute;
1001
+ content: '';
1002
+ top: 50%;
1003
+ left: 50%;
1004
+ margin: @loaderMargin;
1005
+ width: @loaderSize;
1006
+ height: @loaderSize;
1007
+ border-radius: @circularRadius;
1008
+ border: @loaderLineWidth solid @loaderFillColor;
1009
+ }
1010
+ .ui.loading.dropdown > i.icon::after {
1011
+ position: absolute;
1012
+ content: '';
1013
+ top: 50%;
1014
+ left: 50%;
1015
+ box-shadow: 0 0 0 1px transparent;
1016
+ margin: @loaderMargin;
1017
+ width: @loaderSize;
1018
+ height: @loaderSize;
1019
+ animation: loader @loaderSpeed infinite linear;
1020
+ border: @loaderLineWidth solid @loaderLineColor;
1021
+ border-radius: @circularRadius;
1022
+ }
1047
1023
 
1048
- /* Coupling */
1049
- .ui.loading.dropdown.button > i.icon::before,
1050
- .ui.loading.dropdown.button > i.icon::after {
1051
- display: none;
1052
- }
1024
+ /* Coupling */
1025
+ .ui.loading.dropdown.button > i.icon::before,
1026
+ .ui.loading.dropdown.button > i.icon::after {
1027
+ display: none;
1028
+ }
1053
1029
 
1054
- .ui.loading.dropdown > .text {
1055
- transition: none;
1056
- }
1030
+ .ui.loading.dropdown > .text {
1031
+ transition: none;
1032
+ }
1057
1033
 
1058
- /* Used To Check Position */
1059
- .ui.dropdown .loading.menu {
1060
- display: block;
1061
- visibility: hidden;
1062
- z-index: @loadingZIndex;
1063
- }
1064
- .ui.dropdown > .loading.menu {
1065
- left: 0 !important;
1066
- right: auto !important;
1067
- }
1068
- .ui.dropdown > .menu .loading.menu {
1069
- left: 100% !important;
1070
- right: auto !important;
1071
- }
1034
+ /* Used To Check Position */
1035
+ .ui.dropdown .loading.menu {
1036
+ display: block;
1037
+ visibility: hidden;
1038
+ z-index: @loadingZIndex;
1039
+ }
1040
+ .ui.dropdown > .loading.menu {
1041
+ left: 0 !important;
1042
+ right: auto !important;
1043
+ }
1044
+ .ui.dropdown > .menu .loading.menu {
1045
+ left: 100% !important;
1046
+ right: auto !important;
1047
+ }
1072
1048
  }
1073
1049
 
1074
- /*--------------------
1050
+ /* --------------------
1075
1051
  Keyboard Select
1076
- ----------------------*/
1052
+ ---------------------- */
1077
1053
 
1078
1054
  /* Selected Item */
1079
1055
  .ui.dropdown.selected,
1080
1056
  .ui.dropdown .menu .selected.item {
1081
- background: @selectedBackground;
1082
- color: @selectedColor;
1057
+ background: @selectedBackground;
1058
+ color: @selectedColor;
1083
1059
  }
1084
1060
 
1085
-
1086
- /*--------------------
1061
+ /* --------------------
1087
1062
  Search Filtered
1088
- ----------------------*/
1063
+ ---------------------- */
1089
1064
 
1090
1065
  /* Filtered Item */
1091
1066
  .ui.dropdown > .filtered.text {
1092
- visibility: hidden;
1067
+ visibility: hidden;
1093
1068
  }
1094
1069
  .ui.dropdown .filtered.item {
1095
- display: none !important;
1070
+ display: none !important;
1096
1071
  }
1097
1072
 
1098
1073
  & when not (@variationDropdownStates = false) {
1099
- /*--------------------
1100
- States
1101
- ----------------------*/
1102
- each(@variationDropdownStates, {
1103
- @state: @value;
1104
- @c: @formStates[@@state][dropdownLabelColor];
1105
- @bdc: @formStates[@@state][borderColor];
1106
-
1107
- .ui.dropdown.@{state},
1108
- .ui.dropdown.@{state} > .text,
1109
- .ui.dropdown.@{state} > .default.text {
1110
- color: @c;
1111
- }
1112
- & when (@variationDropdownSelection) {
1113
- .ui.selection.dropdown.@{state} {
1114
- background: @formStates[@@state][background];
1115
- border-color: @bdc;
1116
- }
1117
-
1118
- .ui.selection.dropdown.@{state}:hover {
1119
- border-color: @bdc;
1120
- }
1121
-
1122
- & when (@variationDropdownMultiple) {
1123
- .ui.multiple.selection.@{state}.dropdown > .label {
1124
- border-color: @bdc;
1074
+ /* --------------------
1075
+ States
1076
+ ---------------------- */
1077
+ each(@variationDropdownStates, {
1078
+ @state: @value;
1079
+ @c: @formStates[@@state][dropdownLabelColor];
1080
+ @bdc: @formStates[@@state][borderColor];
1081
+
1082
+ .ui.dropdown.@{state},
1083
+ .ui.dropdown.@{state} > .text,
1084
+ .ui.dropdown.@{state} > .default.text {
1085
+ color: @c;
1086
+ }
1087
+ & when (@variationDropdownSelection) {
1088
+ .ui.selection.dropdown.@{state} {
1089
+ background: @formStates[@@state][background];
1090
+ border-color: @bdc;
1091
+ }
1092
+
1093
+ .ui.selection.dropdown.@{state}:hover {
1094
+ border-color: @bdc;
1095
+ }
1096
+
1097
+ & when (@variationDropdownMultiple) {
1098
+ .ui.multiple.selection.@{state}.dropdown > .label {
1099
+ border-color: @bdc;
1100
+ }
1101
+ }
1102
+ }
1103
+ .ui.dropdown.@{state} > .menu,
1104
+ .ui.dropdown.@{state} > .menu .menu {
1105
+ border-color: @bdc;
1106
+ }
1107
+ .ui.dropdown.@{state} > .menu > .item {
1108
+ color: @c;
1125
1109
  }
1126
- }
1127
- }
1128
- .ui.dropdown.@{state} > .menu,
1129
- .ui.dropdown.@{state} > .menu .menu {
1130
- border-color: @bdc;
1131
- }
1132
- .ui.dropdown.@{state} > .menu > .item {
1133
- color: @c;
1134
- }
1135
1110
 
1136
- /* Item Hover */
1137
- .ui.dropdown.@{state} > .menu > .item:hover {
1138
- background-color: @formStates[@@state][dropdownHoverBackground];
1139
- }
1111
+ /* Item Hover */
1112
+ .ui.dropdown.@{state} > .menu > .item:hover {
1113
+ background-color: @formStates[@@state][dropdownHoverBackground];
1114
+ }
1140
1115
 
1141
- /* Item Active */
1142
- .ui.dropdown.@{state} > .menu .active.item {
1143
- background-color: @formStates[@@state][dropdownActiveBackground];
1144
- }
1145
- })
1116
+ /* Item Active */
1117
+ .ui.dropdown.@{state} > .menu .active.item {
1118
+ background-color: @formStates[@@state][dropdownActiveBackground];
1119
+ }
1120
+ })
1146
1121
  }
1147
1122
 
1148
1123
  & when (@variationDropdownClear) {
1149
- /*--------------------
1150
- Clear
1151
- ----------------------*/
1152
- .ui.dropdown > .remove.icon,
1153
- .ui.dropdown > .clear.dropdown.icon {
1154
- opacity: @clearableIconOpacity;
1155
- transition: opacity @defaultDuration @defaultEasing;
1156
- }
1157
- .ui.dropdown > .remove.icon:hover,
1158
- .ui.dropdown > .clear.dropdown.icon:hover {
1159
- opacity: @clearableIconActiveOpacity;
1160
- }
1124
+ /* --------------------
1125
+ Clear
1126
+ ---------------------- */
1127
+ .ui.dropdown > .remove.icon,
1128
+ .ui.dropdown > .clear.dropdown.icon {
1129
+ opacity: @clearableIconOpacity;
1130
+ transition: opacity @defaultDuration @defaultEasing;
1131
+ }
1132
+ .ui.dropdown > .remove.icon:hover,
1133
+ .ui.dropdown > .clear.dropdown.icon:hover {
1134
+ opacity: @clearableIconActiveOpacity;
1135
+ }
1161
1136
  }
1162
1137
 
1163
1138
  & when (@variationDropdownDisabled) {
1164
- /*--------------------
1165
- Disabled
1166
- ----------------------*/
1139
+ /* --------------------
1140
+ Disabled
1141
+ ---------------------- */
1167
1142
 
1168
- /* Disabled */
1169
- .ui.disabled.dropdown,
1170
- .ui.dropdown .menu > .disabled.item {
1171
- cursor: default;
1172
- pointer-events: none;
1173
- opacity: @disabledOpacity;
1174
- }
1143
+ /* Disabled */
1144
+ .ui.disabled.dropdown,
1145
+ .ui.dropdown .menu > .disabled.item {
1146
+ cursor: default;
1147
+ pointer-events: none;
1148
+ opacity: @disabledOpacity;
1149
+ }
1175
1150
  }
1176
1151
 
1177
1152
  & when (@variationDropdownReadonly) {
1178
- /*--------------------
1179
- Read-Only
1180
- ----------------------*/
1153
+ /* --------------------
1154
+ Read-Only
1155
+ ---------------------- */
1181
1156
 
1182
- .ui.read-only.dropdown {
1183
- cursor: default;
1184
- pointer-events: none;
1185
- }
1157
+ .ui.read-only.dropdown {
1158
+ cursor: default;
1159
+ pointer-events: none;
1160
+ }
1186
1161
  }
1187
1162
 
1188
1163
  /*******************************
1189
1164
  Variations
1190
1165
  *******************************/
1191
1166
 
1192
- /*--------------
1167
+ /* --------------
1193
1168
  Direction
1194
- ---------------*/
1169
+ --------------- */
1195
1170
 
1196
1171
  /* Flyout Direction */
1197
1172
  .ui.dropdown .menu {
1198
- left: 0;
1173
+ left: 0;
1199
1174
  }
1200
1175
 
1201
-
1202
1176
  /* Default Side (Right) */
1203
1177
  .ui.dropdown .right.menu > .menu,
1204
1178
  .ui.dropdown .menu .right.menu {
1205
- left: 100% !important;
1206
- right: auto !important;
1207
- border-radius: @subMenuBorderRadius !important;
1179
+ left: 100% !important;
1180
+ right: auto !important;
1181
+ border-radius: @subMenuBorderRadius !important;
1208
1182
  }
1209
1183
  & when (@variationDropdownLeft) {
1210
- /* Leftward Opening Menu */
1211
- .ui.dropdown > .left.menu {
1212
- left: auto !important;
1213
- right: 0 !important;
1214
- }
1215
-
1216
- .ui.dropdown > .left.menu .menu,
1217
- .ui.dropdown .menu .left.menu {
1218
- left: auto;
1219
- right: 100%;
1220
- margin: @leftSubMenuMargin !important;
1221
- border-radius: @leftSubMenuBorderRadius !important;
1222
- }
1184
+ /* Leftward Opening Menu */
1185
+ .ui.dropdown > .left.menu {
1186
+ left: auto !important;
1187
+ right: 0 !important;
1188
+ }
1223
1189
 
1224
- .ui.dropdown .item .left.dropdown.icon,
1225
- .ui.dropdown .left.menu .item .dropdown.icon {
1226
- width: auto;
1227
- float: @leftMenuDropdownIconFloat;
1228
- margin: @leftMenuDropdownIconMargin;
1229
- }
1230
- .ui.dropdown .item .left.dropdown.icon,
1231
- .ui.dropdown .left.menu .item .dropdown.icon {
1232
- width: auto;
1233
- float: @leftMenuDropdownIconFloat;
1234
- margin: @leftMenuDropdownIconMargin;
1235
- }
1236
- .ui.dropdown .item .left.dropdown.icon + .text,
1237
- .ui.dropdown .left.menu .item .dropdown.icon + .text {
1238
- margin-left: @itemDropdownIconDistance;
1239
- margin-right: 0;
1240
- }
1190
+ .ui.dropdown > .left.menu .menu,
1191
+ .ui.dropdown .menu .left.menu {
1192
+ left: auto;
1193
+ right: 100%;
1194
+ margin: @leftSubMenuMargin !important;
1195
+ border-radius: @leftSubMenuBorderRadius !important;
1196
+ }
1197
+
1198
+ .ui.dropdown .item .left.dropdown.icon,
1199
+ .ui.dropdown .left.menu .item .dropdown.icon {
1200
+ width: auto;
1201
+ float: @leftMenuDropdownIconFloat;
1202
+ margin: @leftMenuDropdownIconMargin;
1203
+ }
1204
+ .ui.dropdown .item .left.dropdown.icon,
1205
+ .ui.dropdown .left.menu .item .dropdown.icon {
1206
+ width: auto;
1207
+ float: @leftMenuDropdownIconFloat;
1208
+ margin: @leftMenuDropdownIconMargin;
1209
+ }
1210
+ .ui.dropdown .item .left.dropdown.icon + .text,
1211
+ .ui.dropdown .left.menu .item .dropdown.icon + .text {
1212
+ margin-left: @itemDropdownIconDistance;
1213
+ margin-right: 0;
1214
+ }
1241
1215
  }
1242
1216
 
1243
1217
  & when (@variationDropdownUpward) {
1244
- /*--------------
1245
- Upward
1246
- ---------------*/
1218
+ /* --------------
1219
+ Upward
1220
+ --------------- */
1247
1221
 
1248
- /* Upward Main Menu */
1249
- .ui.upward.dropdown > .menu {
1250
- top: auto;
1251
- bottom: 100%;
1252
- box-shadow: @upwardMenuBoxShadow;
1253
- }
1254
-
1255
- /* Upward Sub Menu */
1256
- .ui.dropdown .upward.menu {
1257
- top: auto !important;
1258
- bottom: 0 !important;
1259
- }
1260
-
1261
- & when (@variationDropdownSimple) {
1262
- /* Active Upward */
1263
- .ui.simple.upward.active.dropdown,
1264
- .ui.simple.upward.dropdown:hover {
1265
- border-radius: 0 0 @borderRadius @borderRadius;
1222
+ /* Upward Main Menu */
1223
+ .ui.upward.dropdown > .menu {
1224
+ top: auto;
1225
+ bottom: 100%;
1226
+ box-shadow: @upwardMenuBoxShadow;
1266
1227
  }
1267
- }
1268
1228
 
1269
- & when (@variationDropdownButton) {
1270
- /* Button */
1271
- .ui.upward.dropdown.button:not(.pointing):not(.floating).active {
1272
- border-radius: 0 0 @borderRadius @borderRadius;
1273
- }
1274
- .ui.upward.dropdown.button:not(.pointing):not(.floating) > .menu {
1275
- border-radius: @borderRadius @borderRadius 0 0;
1229
+ /* Upward Sub Menu */
1230
+ .ui.dropdown .upward.menu {
1231
+ top: auto !important;
1232
+ bottom: 0 !important;
1276
1233
  }
1277
- }
1278
1234
 
1279
- & when (@variationDropdownSelection) {
1280
- /* Selection */
1281
- .ui.ui.upward.selection.dropdown .menu {
1282
- border-top-width: @menuBorderWidth !important;
1283
- border-bottom-width: 0 !important;
1284
- box-shadow: @upwardSelectionMenuBoxShadow;
1285
- border-radius: @upwardSelectionMenuBorderRadius;
1286
- }
1287
- .ui.upward.selection.dropdown:hover {
1288
- box-shadow: @upwardSelectionHoverBoxShadow;
1235
+ & when (@variationDropdownSimple) {
1236
+ /* Active Upward */
1237
+ .ui.simple.upward.active.dropdown,
1238
+ .ui.simple.upward.dropdown:hover {
1239
+ border-radius: 0 0 @borderRadius @borderRadius;
1240
+ }
1289
1241
  }
1290
1242
 
1291
- /* Active Upward */
1292
- .ui.active.upward.selection.dropdown {
1293
- border-radius: @upwardSelectionVisibleBorderRadius !important;
1243
+ & when (@variationDropdownButton) {
1244
+ /* Button */
1245
+ .ui.upward.dropdown.button:not(.pointing):not(.floating).active {
1246
+ border-radius: 0 0 @borderRadius @borderRadius;
1247
+ }
1248
+ .ui.upward.dropdown.button:not(.pointing):not(.floating) > .menu {
1249
+ border-radius: @borderRadius @borderRadius 0 0;
1250
+ }
1294
1251
  }
1295
1252
 
1296
- /* Visible Upward */
1297
- .ui.upward.selection.dropdown.visible {
1298
- box-shadow: @upwardSelectionVisibleBoxShadow;
1299
- border-radius: @upwardSelectionVisibleBorderRadius !important;
1300
- }
1253
+ & when (@variationDropdownSelection) {
1254
+ /* Selection */
1255
+ .ui.ui.upward.selection.dropdown .menu {
1256
+ border-top-width: @menuBorderWidth !important;
1257
+ border-bottom-width: 0 !important;
1258
+ box-shadow: @upwardSelectionMenuBoxShadow;
1259
+ border-radius: @upwardSelectionMenuBorderRadius;
1260
+ }
1261
+ .ui.upward.selection.dropdown:hover {
1262
+ box-shadow: @upwardSelectionHoverBoxShadow;
1263
+ }
1301
1264
 
1302
- /* Visible Hover Upward */
1303
- .ui.upward.active.selection.dropdown:hover {
1304
- box-shadow: @upwardSelectionActiveHoverBoxShadow;
1305
- }
1306
- .ui.upward.active.selection.dropdown:hover .menu {
1307
- box-shadow: @upwardSelectionActiveHoverMenuBoxShadow;
1265
+ /* Active Upward */
1266
+ .ui.active.upward.selection.dropdown {
1267
+ border-radius: @upwardSelectionVisibleBorderRadius !important;
1268
+ }
1269
+
1270
+ /* Visible Upward */
1271
+ .ui.upward.selection.dropdown.visible {
1272
+ box-shadow: @upwardSelectionVisibleBoxShadow;
1273
+ border-radius: @upwardSelectionVisibleBorderRadius !important;
1274
+ }
1275
+
1276
+ /* Visible Hover Upward */
1277
+ .ui.upward.active.selection.dropdown:hover {
1278
+ box-shadow: @upwardSelectionActiveHoverBoxShadow;
1279
+ }
1280
+ .ui.upward.active.selection.dropdown:hover .menu {
1281
+ box-shadow: @upwardSelectionActiveHoverMenuBoxShadow;
1282
+ }
1308
1283
  }
1309
- }
1310
1284
  }
1311
1285
 
1312
1286
  & when (@variationDropdownScrolling) {
1313
- /*--------------
1314
- Scrolling
1315
- ---------------*/
1316
-
1317
- /* Selection Menu */
1318
- .ui.scrolling.dropdown .menu,
1319
- .ui.dropdown .scrolling.menu {
1320
- overflow-x: hidden;
1321
- overflow-y: auto;
1322
- }
1323
-
1324
- .ui.scrolling.dropdown .menu {
1325
- overflow-x: hidden;
1326
- overflow-y: auto;
1327
- backface-visibility: hidden;
1328
- -webkit-overflow-scrolling: touch;
1329
- min-width: 100% !important;
1330
- width: auto !important;
1331
- }
1332
-
1333
- .ui.dropdown .scrolling.menu {
1334
- position: static;
1335
- overflow-y: auto;
1336
- border: none;
1337
- box-shadow: none !important;
1338
- border-radius: 0 !important;
1339
- margin: 0 !important;
1340
- min-width: 100% !important;
1341
- width: auto !important;
1342
- border-top: @menuBorder;
1343
- }
1344
- .ui.scrolling.dropdown .menu .item.item.item,
1345
- .ui.dropdown .scrolling.menu > .item.item.item {
1346
- border-top: @scrollingMenuItemBorder;
1347
- }
1348
- .ui.scrolling.dropdown .menu .item:first-child,
1349
- .ui.dropdown .scrolling.menu .item:first-child {
1350
- border-top: none;
1351
- }
1352
- .ui.dropdown > .animating.menu .scrolling.menu,
1353
- .ui.dropdown > .visible.menu .scrolling.menu {
1354
- display: block;
1355
- }
1356
- & when (@supportIE) {
1357
- /* Scrollbar in IE */
1358
- @media all and (-ms-high-contrast: none) {
1359
- .ui.scrolling.dropdown .menu,
1360
- .ui.dropdown .scrolling.menu {
1361
- min-width: e(%("calc(100%% - %d)", @scrollbarWidth));
1362
- }
1363
- }
1364
- }
1365
- @media only screen and (max-width : @largestMobileScreen) {
1287
+ /* --------------
1288
+ Scrolling
1289
+ --------------- */
1290
+
1291
+ /* Selection Menu */
1366
1292
  .ui.scrolling.dropdown .menu,
1367
1293
  .ui.dropdown .scrolling.menu {
1368
- max-height: @scrollingMobileMaxMenuHeight;
1294
+ overflow-x: hidden;
1295
+ overflow-y: auto;
1296
+ overscroll-behavior: @overscrollBehavior;
1297
+ backface-visibility: hidden;
1298
+ -webkit-overflow-scrolling: touch;
1299
+ min-width: 100% !important;
1300
+ width: auto !important;
1369
1301
  }
1370
- }
1371
- @media only screen and (min-width: @tabletBreakpoint) {
1372
- .ui.scrolling.dropdown .menu,
1302
+
1373
1303
  .ui.dropdown .scrolling.menu {
1374
- max-height: @scrollingTabletMaxMenuHeight;
1304
+ position: static;
1305
+ border: none;
1306
+ box-shadow: none !important;
1307
+ border-radius: 0 0 @floatingMenuBorderRadius @floatingMenuBorderRadius !important;
1308
+ margin: 0 !important;
1309
+ border-top: @menuBorder;
1375
1310
  }
1376
- }
1377
- @media only screen and (min-width: @computerBreakpoint) {
1378
- .ui.scrolling.dropdown .menu,
1379
- .ui.dropdown .scrolling.menu {
1380
- max-height: @scrollingComputerMaxMenuHeight;
1311
+ .ui.scrolling.dropdown .menu .item.item.item,
1312
+ .ui.dropdown .scrolling.menu > .item.item.item {
1313
+ border-top: @scrollingMenuItemBorder;
1381
1314
  }
1382
- }
1383
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
1384
- .ui.scrolling.dropdown .menu,
1385
- .ui.dropdown .scrolling.menu {
1386
- max-height: @scrollingWidescreenMaxMenuHeight;
1315
+ .ui.scrolling.dropdown .menu .item:first-child,
1316
+ .ui.dropdown .scrolling.menu .item:first-child {
1317
+ border-top: none;
1318
+ }
1319
+ .ui.dropdown > .animating.menu .scrolling.menu,
1320
+ .ui.dropdown > .visible.menu .scrolling.menu {
1321
+ display: block;
1322
+ }
1323
+ & when (@supportIE) {
1324
+ /* Scrollbar in IE */
1325
+ @media all and (-ms-high-contrast: none) {
1326
+ .ui.scrolling.dropdown .menu,
1327
+ .ui.dropdown .scrolling.menu {
1328
+ min-width: e(%("calc(100%% - %d)", @scrollbarWidth));
1329
+ }
1330
+ }
1331
+ }
1332
+ @media only screen and (max-width: @largestMobileScreen) {
1333
+ .ui.scrolling.dropdown .menu,
1334
+ .ui.dropdown .scrolling.menu {
1335
+ max-height: @scrollingMobileMaxMenuHeight;
1336
+ }
1337
+ }
1338
+ @media only screen and (min-width: @tabletBreakpoint) {
1339
+ .ui.scrolling.dropdown .menu,
1340
+ .ui.dropdown .scrolling.menu {
1341
+ max-height: @scrollingTabletMaxMenuHeight;
1342
+ }
1343
+ }
1344
+ @media only screen and (min-width: @computerBreakpoint) {
1345
+ .ui.scrolling.dropdown .menu,
1346
+ .ui.dropdown .scrolling.menu {
1347
+ max-height: @scrollingComputerMaxMenuHeight;
1348
+ }
1349
+ }
1350
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
1351
+ .ui.scrolling.dropdown .menu,
1352
+ .ui.dropdown .scrolling.menu {
1353
+ max-height: @scrollingWidescreenMaxMenuHeight;
1354
+ }
1387
1355
  }
1388
- }
1389
1356
  }
1390
1357
 
1391
1358
  & when (@variationInputLabeled) {
1392
- /*--------------------
1393
- Labeled
1394
- ---------------------*/
1395
-
1396
- /* Regular Label on Left */
1397
- .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + .dropdown {
1398
- border-top-left-radius: 0;
1399
- border-bottom-left-radius: 0;
1400
- border-left-color: transparent;
1401
- }
1402
-
1403
- /* Regular Label on Right */
1404
- .ui[class*="right labeled"].input > .dropdown:not(:last-child) {
1405
- border-top-right-radius: 0 !important;
1406
- border-bottom-right-radius: 0 !important;
1407
- border-right-color: transparent !important;
1408
- }
1409
- .ui[class*="right labeled"].input > .dropdown + .label {
1410
- border-top-left-radius: 0;
1411
- border-bottom-left-radius: 0;
1412
- }
1359
+ /* --------------------
1360
+ Labeled
1361
+ --------------------- */
1362
+
1363
+ /* Regular Label on Left */
1364
+ .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + .dropdown {
1365
+ border-top-left-radius: 0;
1366
+ border-bottom-left-radius: 0;
1367
+ border-left-color: transparent;
1368
+ }
1369
+
1370
+ /* Regular Label on Right */
1371
+ .ui[class*="right labeled"].input > .dropdown:not(:last-child) {
1372
+ border-top-right-radius: 0 !important;
1373
+ border-bottom-right-radius: 0 !important;
1374
+ border-right-color: transparent !important;
1375
+ }
1376
+ .ui[class*="right labeled"].input > .dropdown + .label {
1377
+ border-top-left-radius: 0;
1378
+ border-bottom-left-radius: 0;
1379
+ }
1413
1380
  }
1414
1381
 
1415
1382
  & when (@variationDropdownColumnar) {
1416
- /*--------------
1417
- Columnar
1418
- ---------------*/
1419
- .ui.column.dropdown > .menu {
1420
- flex-wrap: wrap;
1421
- }
1422
- .ui.dropdown[class*="two column"] > .menu > .item {
1423
- width: 50%;
1424
- }
1425
- .ui.dropdown[class*="three column"] > .menu > .item {
1426
- width: 33%;
1427
- }
1428
- .ui.dropdown[class*="four column"] > .menu > .item {
1429
- width: 25%;
1430
- }
1431
- .ui.dropdown[class*="five column"] > .menu > .item {
1432
- width: 20%;
1433
- }
1383
+ /* --------------
1384
+ Columnar
1385
+ --------------- */
1386
+ .ui.column.dropdown > .menu {
1387
+ flex-wrap: wrap;
1388
+ }
1389
+ .ui.dropdown[class*="two column"] > .menu > .item {
1390
+ width: 50%;
1391
+ }
1392
+ .ui.dropdown[class*="three column"] > .menu > .item {
1393
+ width: 33%;
1394
+ }
1395
+ .ui.dropdown[class*="four column"] > .menu > .item {
1396
+ width: 25%;
1397
+ }
1398
+ .ui.dropdown[class*="five column"] > .menu > .item {
1399
+ width: 20%;
1400
+ }
1434
1401
  }
1435
1402
 
1436
1403
  & when (@variationDropdownSimple) {
1437
- /*--------------
1438
- Simple
1439
- ---------------*/
1404
+ /* --------------
1405
+ Simple
1406
+ --------------- */
1440
1407
 
1441
- /* Displays without javascript */
1408
+ /* Displays without javascript */
1442
1409
 
1443
- .ui.simple.dropdown .menu::before,
1444
- .ui.simple.dropdown .menu::after {
1445
- display: none;
1446
- }
1447
- .ui.simple.dropdown .menu {
1448
- position: absolute;
1449
- & when (@supportIE) {
1450
- /* IE hack to make dropdown icons appear inline */
1451
- display: -ms-inline-flexbox !important;
1410
+ .ui.simple.dropdown .menu::before,
1411
+ .ui.simple.dropdown .menu::after {
1412
+ display: none;
1452
1413
  }
1453
- display: block;
1454
- overflow: hidden;
1455
- top: -9999px;
1456
- opacity: 0;
1457
- width: 0;
1458
- height: 0;
1459
- transition: @simpleTransition;
1460
- margin-top: 0 !important;
1461
- }
1462
- & when (@variationDropdownUpward) {
1463
- .ui.simple.dropdown .upward.menu {
1464
- margin-bottom: @simpleUpwardMenuMargin;
1465
- }
1466
- .ui.simple.selection.dropdown .upward.menu {
1467
- margin-bottom: @simpleUpwardSelectionMenuMargin;
1468
- }
1469
- .ui.menu:not(.vertical) .ui.simple.dropdown.item .upward.menu {
1470
- margin-bottom: @simpleUpwardItemMenuMargin;
1471
- }
1472
- }
1473
-
1474
- .ui.simple.active.dropdown,
1475
- .ui.simple.dropdown:hover {
1476
- border-bottom-left-radius: 0;
1477
- border-bottom-right-radius: 0;
1478
- }
1479
-
1480
- .ui.simple.active.dropdown > .menu,
1481
- .ui.simple.dropdown:hover > .menu {
1482
- overflow: auto;
1483
- width: auto;
1484
- height: auto;
1485
- top: 100%;
1486
- opacity: 1;
1487
- }
1488
- .ui.simple.dropdown > .menu > .item:active > .menu,
1489
- .ui.simple.dropdown .menu .item:hover > .menu {
1490
- overflow: auto;
1491
- width: auto;
1492
- height: auto;
1493
- top: 0 !important;
1494
- left: 100%;
1495
- opacity: 1;
1496
- }
1497
- .ui.simple.dropdown > .menu > .item:active > .left.menu,
1498
- .ui.simple.dropdown .menu .item:hover > .left.menu,
1499
- .right.menu .ui.simple.dropdown > .menu > .item:active > .menu:not(.right),
1500
- .right.menu .ui.simple.dropdown > .menu .item:hover > .menu:not(.right) {
1501
- left: auto;
1502
- right: 100%;
1503
- }
1504
- & when (@variationDropdownDisabled) {
1505
- .ui.simple.disabled.dropdown:hover .menu {
1506
- display: none;
1507
- height: 0;
1508
- width: 0;
1509
- overflow: hidden;
1510
- }
1511
- }
1512
-
1513
- /* Visible */
1514
- .ui.simple.visible.dropdown > .menu {
1515
- display: block;
1516
- }
1517
- & when (@variationDropdownScrolling) {
1518
- /* Scrolling */
1519
- .ui.simple.scrolling.active.dropdown > .menu,
1520
- .ui.simple.scrolling.dropdown:hover > .menu {
1521
- overflow-x: hidden;
1522
- overflow-y: auto;
1414
+ .ui.simple.dropdown .menu {
1415
+ position: absolute;
1416
+ & when (@supportIE) {
1417
+ /* IE hack to make dropdown icons appear inline */
1418
+ display: -ms-inline-flexbox !important;
1419
+ }
1420
+
1421
+ display: block;
1422
+ overflow: hidden;
1423
+ top: -9999px;
1424
+ opacity: 0;
1425
+ width: 0;
1426
+ height: 0;
1427
+ transition: @simpleTransition;
1428
+ margin-top: 0 !important;
1429
+ }
1430
+ & when (@variationDropdownUpward) {
1431
+ .ui.simple.dropdown .upward.menu {
1432
+ margin-bottom: @simpleUpwardMenuMargin;
1433
+ }
1434
+ .ui.simple.selection.dropdown .upward.menu {
1435
+ margin-bottom: @simpleUpwardSelectionMenuMargin;
1436
+ }
1437
+ .ui.menu:not(.vertical) .ui.simple.dropdown.item .upward.menu {
1438
+ margin-bottom: @simpleUpwardItemMenuMargin;
1439
+ }
1440
+ }
1441
+
1442
+ .ui.simple.active.dropdown,
1443
+ .ui.simple.dropdown:hover {
1444
+ border-bottom-left-radius: 0;
1445
+ border-bottom-right-radius: 0;
1446
+ }
1447
+
1448
+ .ui.simple.active.dropdown > .menu,
1449
+ .ui.simple.dropdown:hover > .menu {
1450
+ overflow: visible;
1451
+ width: auto;
1452
+ height: auto;
1453
+ top: 100%;
1454
+ opacity: 1;
1455
+ }
1456
+ .ui.simple.dropdown > .menu > .item:active > .menu,
1457
+ .ui.simple.dropdown .menu .item:hover > .menu {
1458
+ overflow: visible;
1459
+ width: auto;
1460
+ height: auto;
1461
+ top: 0 !important;
1462
+ left: 100%;
1463
+ opacity: 1;
1464
+ }
1465
+ & when (@variationDropdownSelection) {
1466
+ .ui.simple.selection.active.dropdown > .menu,
1467
+ .ui.simple.selection.dropdown:hover > .menu,
1468
+ .ui.simple.selection.dropdown > .menu > .item:active > .menu,
1469
+ .ui.simple.selection.dropdown .menu .item:hover > .menu {
1470
+ overflow: auto;
1471
+ overscroll-behavior: @overscrollBehavior;
1472
+ }
1473
+ }
1474
+ .ui.simple.dropdown > .menu > .item:active > .left.menu,
1475
+ .ui.simple.dropdown .menu .item:hover > .left.menu,
1476
+ .right.menu .ui.simple.dropdown > .menu > .item:active > .menu:not(.right),
1477
+ .right.menu .ui.simple.dropdown > .menu .item:hover > .menu:not(.right) {
1478
+ left: auto;
1479
+ right: 100%;
1480
+ }
1481
+ & when (@variationDropdownDisabled) {
1482
+ .ui.simple.disabled.dropdown:hover .menu {
1483
+ display: none;
1484
+ height: 0;
1485
+ width: 0;
1486
+ overflow: hidden;
1487
+ }
1488
+ }
1489
+
1490
+ /* Visible */
1491
+ .ui.simple.visible.dropdown > .menu {
1492
+ display: block;
1493
+ }
1494
+ & when (@variationDropdownScrolling) {
1495
+ /* Scrolling */
1496
+ .ui.simple.scrolling.active.dropdown > .menu,
1497
+ .ui.simple.scrolling.dropdown:hover > .menu {
1498
+ overflow-x: hidden;
1499
+ overflow-y: auto;
1500
+ overscroll-behavior: @overscrollBehavior;
1501
+ }
1523
1502
  }
1524
- }
1525
1503
  }
1526
1504
 
1527
1505
  & when (@variationDropdownFluid) {
1528
- /*--------------
1529
- Fluid
1530
- ---------------*/
1506
+ /* --------------
1507
+ Fluid
1508
+ --------------- */
1531
1509
 
1532
- .ui.fluid.dropdown {
1533
- display: block;
1534
- width: 100% !important;
1535
- min-width: 0;
1536
- }
1537
- .ui.fluid.dropdown > .dropdown.icon {
1538
- float: right;
1539
- }
1510
+ .ui.fluid.dropdown {
1511
+ display: block;
1512
+ width: 100% !important;
1513
+ min-width: 0;
1514
+ }
1515
+ .ui.fluid.dropdown > .dropdown.icon {
1516
+ float: right;
1517
+ }
1540
1518
  }
1541
1519
 
1542
1520
  & when (@variationDropdownFloating) {
1543
- /*--------------
1544
- Floating
1545
- ---------------*/
1521
+ /* --------------
1522
+ Floating
1523
+ --------------- */
1546
1524
 
1547
- .ui.floating.dropdown > .menu {
1548
- left: 0;
1549
- right: auto;
1550
- box-shadow: @floatingMenuBoxShadow !important;
1551
- border-radius: @floatingMenuBorderRadius !important;
1552
- }
1553
- .ui.floating.dropdown > .menu {
1554
- border-radius: @floatingMenuBorderRadius !important;
1555
- }
1556
- .ui:not(.upward).floating.dropdown > .menu {
1557
- margin-top: @floatingMenuDistance;
1558
- }
1559
- .ui.upward.floating.dropdown > .menu {
1560
- margin-bottom: @floatingMenuDistance;
1561
- }
1525
+ .ui.floating.dropdown > .menu {
1526
+ left: 0;
1527
+ right: auto;
1528
+ box-shadow: @floatingMenuBoxShadow !important;
1529
+ border-radius: @floatingMenuBorderRadius !important;
1530
+ }
1531
+ .ui:not(.upward).floating.dropdown > .menu {
1532
+ margin-top: @floatingMenuDistance;
1533
+ }
1534
+ .ui.upward.floating.dropdown:not(.simple) > .menu {
1535
+ margin-bottom: @floatingMenuDistance;
1536
+ }
1562
1537
  }
1563
1538
 
1564
1539
  & when (@variationDropdownPointing) {
1565
- /*--------------
1566
- Pointing
1567
- ---------------*/
1568
-
1569
- .ui.pointing.dropdown > .menu {
1570
- top: 100%;
1571
- margin-top: @pointingMenuDistance;
1572
- border-radius: @pointingMenuBorderRadius;
1573
- }
1574
-
1575
- .ui.pointing.dropdown > .menu:not(.hidden)::after {
1576
- display: block;
1577
- position: absolute;
1578
- pointer-events: none;
1579
- content: '';
1580
- visibility: visible;
1581
- transform: rotate(45deg);
1582
-
1583
- width: @pointingArrowSize;
1584
- height: @pointingArrowSize;
1585
- box-shadow: @pointingArrowBoxShadow;
1586
- background: @pointingArrowBackground;
1587
- z-index: @pointingArrowZIndex;
1588
- }
1589
-
1590
- .ui.pointing.dropdown > .menu:not(.hidden)::after {
1591
- top: @pointingArrowOffset;
1592
- left: 50%;
1593
- margin: 0 0 0 @pointingArrowOffset;
1594
- }
1595
-
1596
- /* Top Left Pointing */
1597
- .ui.top.left.pointing.dropdown > .menu {
1598
- top: 100%;
1599
- bottom: auto;
1600
- left: 0;
1601
- right: auto;
1602
- margin: @pointingArrowDistanceFromEdge 0 0;
1603
- }
1604
- .ui.top.left.pointing.dropdown > .menu {
1605
- top: 100%;
1606
- bottom: auto;
1607
- left: 0;
1608
- right: auto;
1609
- margin: @pointingArrowDistanceFromEdge 0 0;
1610
- }
1611
- .ui.top.left.pointing.dropdown > .menu::after {
1612
- top: @pointingArrowOffset;
1613
- left: @pointingArrowDistanceFromEdge;
1614
- right: auto;
1615
- margin: 0;
1616
- transform: rotate(45deg);
1617
- }
1618
- /* Top Right Pointing */
1619
- .ui.top.right.pointing.dropdown > .menu {
1620
- top: 100%;
1621
- bottom: auto;
1622
- right: 0;
1623
- left: auto;
1624
- margin: @pointingArrowDistanceFromEdge 0 0;
1625
- }
1626
- .ui.top.pointing.dropdown > .left.menu::after,
1627
- .ui.top.right.pointing.dropdown > .menu::after {
1628
- top: @pointingArrowOffset;
1629
- left: auto !important;
1630
- right: @pointingArrowDistanceFromEdge !important;
1631
- margin: 0;
1632
- transform: rotate(45deg);
1633
- }
1634
-
1635
- /* Left Pointing */
1636
- .ui.left.pointing.dropdown > .menu {
1637
- top: 0;
1638
- left: 100%;
1639
- right: auto;
1640
- margin: 0 0 0 @pointingArrowDistanceFromEdge;
1641
- }
1642
- .ui.left.pointing.dropdown > .menu::after {
1643
- top: 1em;
1644
- left: @pointingArrowOffset;
1645
- margin: 0 0 0 0;
1646
- transform: rotate(-45deg);
1647
- }
1648
- .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
1649
- left: auto !important;
1650
- right: 100% !important;
1651
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1652
- }
1653
- .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu::after {
1654
- top: 1em;
1655
- left: auto;
1656
- right: @pointingArrowOffset;
1657
- margin: 0 0 0 0;
1658
- transform: rotate(135deg);
1659
- }
1660
-
1540
+ /* --------------
1541
+ Pointing
1542
+ --------------- */
1543
+
1544
+ .ui.pointing.dropdown > .menu {
1545
+ top: 100%;
1546
+ margin-top: @pointingMenuDistance;
1547
+ border-radius: @pointingMenuBorderRadius;
1548
+ }
1549
+
1550
+ .ui.pointing.dropdown > .menu:not(.hidden)::after {
1551
+ display: block;
1552
+ position: absolute;
1553
+ pointer-events: none;
1554
+ content: '';
1555
+ visibility: visible;
1556
+ transform: rotate(45deg);
1557
+ width: @pointingArrowSize;
1558
+ height: @pointingArrowSize;
1559
+ box-shadow: @pointingArrowBoxShadow;
1560
+ background: @pointingArrowBackground;
1561
+ z-index: @pointingArrowZIndex;
1562
+ }
1563
+
1564
+ .ui.pointing.dropdown > .menu:not(.hidden)::after {
1565
+ top: @pointingArrowOffset;
1566
+ left: 50%;
1567
+ margin: 0 0 0 @pointingArrowOffset;
1568
+ }
1569
+
1570
+ /* Top Left Pointing */
1571
+ .ui.top.left.pointing.dropdown > .menu {
1572
+ top: 100%;
1573
+ bottom: auto;
1574
+ left: 0;
1575
+ right: auto;
1576
+ margin: @pointingArrowDistanceFromEdge 0 0;
1577
+ }
1578
+ .ui.top.left.pointing.dropdown > .menu {
1579
+ top: 100%;
1580
+ bottom: auto;
1581
+ left: 0;
1582
+ right: auto;
1583
+ margin: @pointingArrowDistanceFromEdge 0 0;
1584
+ }
1585
+ .ui.top.left.pointing.dropdown > .menu::after {
1586
+ top: @pointingArrowOffset;
1587
+ left: @pointingArrowDistanceFromEdge;
1588
+ right: auto;
1589
+ margin: 0;
1590
+ transform: rotate(45deg);
1591
+ }
1592
+
1593
+ /* Top Right Pointing */
1594
+ .ui.top.right.pointing.dropdown > .menu {
1595
+ top: 100%;
1596
+ bottom: auto;
1597
+ right: 0;
1598
+ left: auto;
1599
+ margin: @pointingArrowDistanceFromEdge 0 0;
1600
+ }
1601
+ .ui.top.pointing.dropdown > .left.menu::after,
1602
+ .ui.top.right.pointing.dropdown > .menu::after {
1603
+ top: @pointingArrowOffset;
1604
+ left: auto !important;
1605
+ right: @pointingArrowDistanceFromEdge !important;
1606
+ margin: 0;
1607
+ transform: rotate(45deg);
1608
+ }
1609
+
1610
+ /* Left Pointing */
1611
+ .ui.left.pointing.dropdown > .menu {
1612
+ top: 0;
1613
+ left: 100%;
1614
+ right: auto;
1615
+ margin: 0 0 0 @pointingArrowDistanceFromEdge;
1616
+ }
1617
+ .ui.left.pointing.dropdown > .menu::after {
1618
+ top: 1em;
1619
+ left: @pointingArrowOffset;
1620
+ margin: 0 0 0 0;
1621
+ transform: rotate(-45deg);
1622
+ }
1623
+ .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
1624
+ left: auto !important;
1625
+ right: 100% !important;
1626
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1627
+ }
1628
+ .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu::after {
1629
+ top: 1em;
1630
+ left: auto;
1631
+ right: @pointingArrowOffset;
1632
+ margin: 0 0 0 0;
1633
+ transform: rotate(135deg);
1634
+ }
1635
+
1636
+ /* Right Pointing */
1637
+ .ui.right.pointing.dropdown > .menu {
1638
+ top: 0;
1639
+ left: auto;
1640
+ right: 100%;
1641
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1642
+ }
1643
+ .ui.right.pointing.dropdown > .menu::after {
1644
+ top: 1em;
1645
+ left: auto;
1646
+ right: @pointingArrowOffset;
1647
+ margin: 0 0 0 0;
1648
+ transform: rotate(135deg);
1649
+ }
1650
+
1651
+ /* Bottom Pointing */
1652
+ .ui.bottom.pointing.dropdown > .menu {
1653
+ top: auto;
1654
+ bottom: 100%;
1655
+ left: 0;
1656
+ right: auto;
1657
+ margin: 0 0 @pointingArrowDistanceFromEdge;
1658
+ }
1659
+ .ui.bottom.pointing.dropdown > .menu::after {
1660
+ top: auto;
1661
+ bottom: @pointingArrowOffset;
1662
+ right: auto;
1663
+ margin: 0;
1664
+ transform: rotate(-135deg);
1665
+ }
1666
+
1667
+ /* Reverse Sub-Menu Direction */
1668
+ .ui.bottom.pointing.dropdown > .menu .menu {
1669
+ top: auto !important;
1670
+ bottom: 0 !important;
1671
+ }
1672
+
1673
+ /* Bottom Left */
1674
+ .ui.bottom.left.pointing.dropdown > .menu {
1675
+ left: 0;
1676
+ right: auto;
1677
+ }
1678
+ .ui.bottom.left.pointing.dropdown > .menu::after {
1679
+ left: @pointingArrowDistanceFromEdge;
1680
+ right: auto;
1681
+ }
1682
+
1683
+ /* Bottom Right */
1684
+ .ui.bottom.right.pointing.dropdown > .menu {
1685
+ right: 0;
1686
+ left: auto;
1687
+ }
1688
+ .ui.bottom.right.pointing.dropdown > .menu::after {
1689
+ left: auto;
1690
+ right: @pointingArrowDistanceFromEdge;
1691
+ }
1692
+
1693
+ /* Upward pointing */
1694
+ .ui.pointing.upward.dropdown .menu,
1695
+ .ui.top.pointing.upward.dropdown .menu {
1696
+ top: auto !important;
1697
+ bottom: 100% !important;
1698
+ margin: 0 0 @pointingMenuDistance;
1699
+ border-radius: @pointingUpwardMenuBorderRadius;
1700
+ }
1701
+ .ui.pointing.upward.dropdown .menu::after,
1702
+ .ui.top.pointing.upward.dropdown .menu::after {
1703
+ top: 100% !important;
1704
+ bottom: auto !important;
1705
+ box-shadow: @pointingUpwardArrowBoxShadow;
1706
+ margin: @pointingArrowOffset 0 0;
1707
+ }
1708
+
1709
+ /* Right Pointing Upward */
1710
+ .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1711
+ top: auto !important;
1712
+ bottom: 0 !important;
1713
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1714
+ }
1715
+ .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1716
+ top: auto !important;
1717
+ bottom: 0 !important;
1718
+ margin: 0 0 @pointingArrowDistanceFromEdge 0;
1719
+ box-shadow: @pointingArrowBoxShadow;
1720
+ }
1721
+
1722
+ /* Left Pointing Upward */
1723
+ .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1724
+ top: auto !important;
1725
+ bottom: 0 !important;
1726
+ margin: 0 0 0 @pointingArrowDistanceFromEdge;
1727
+ }
1728
+ .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1729
+ top: auto !important;
1730
+ bottom: 0 !important;
1731
+ margin: 0 0 @pointingArrowDistanceFromEdge 0;
1732
+ box-shadow: @pointingArrowBoxShadow;
1733
+ }
1734
+ }
1661
1735
 
1662
- /* Right Pointing */
1663
- .ui.right.pointing.dropdown > .menu {
1664
- top: 0;
1665
- left: auto;
1666
- right: 100%;
1667
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1668
- }
1669
- .ui.right.pointing.dropdown > .menu::after {
1670
- top: 1em;
1671
- left: auto;
1672
- right: @pointingArrowOffset;
1673
- margin: 0 0 0 0;
1674
- transform: rotate(135deg);
1675
- }
1676
-
1677
- /* Bottom Pointing */
1678
- .ui.bottom.pointing.dropdown > .menu {
1679
- top: auto;
1680
- bottom: 100%;
1681
- left: 0;
1682
- right: auto;
1683
- margin: 0 0 @pointingArrowDistanceFromEdge ;
1684
- }
1685
- .ui.bottom.pointing.dropdown > .menu::after {
1686
- top: auto;
1687
- bottom: @pointingArrowOffset;
1688
- right: auto;
1689
- margin: 0;
1690
- transform: rotate(-135deg);
1691
- }
1692
- /* Reverse Sub-Menu Direction */
1693
- .ui.bottom.pointing.dropdown > .menu .menu {
1694
- top: auto !important;
1695
- bottom: 0 !important;
1696
- }
1697
-
1698
- /* Bottom Left */
1699
- .ui.bottom.left.pointing.dropdown > .menu {
1700
- left: 0;
1701
- right: auto;
1702
- }
1703
- .ui.bottom.left.pointing.dropdown > .menu::after {
1704
- left: @pointingArrowDistanceFromEdge;
1705
- right: auto;
1706
- }
1707
-
1708
- /* Bottom Right */
1709
- .ui.bottom.right.pointing.dropdown > .menu {
1710
- right: 0;
1711
- left: auto;
1712
- }
1713
- .ui.bottom.right.pointing.dropdown > .menu::after {
1714
- left: auto;
1715
- right: @pointingArrowDistanceFromEdge;
1716
- }
1717
-
1718
- /* Upward pointing */
1719
- .ui.pointing.upward.dropdown .menu,
1720
- .ui.top.pointing.upward.dropdown .menu {
1721
- top: auto !important;
1722
- bottom: 100% !important;
1723
- margin: 0 0 @pointingMenuDistance;
1724
- border-radius: @pointingUpwardMenuBorderRadius;
1725
- }
1726
- .ui.pointing.upward.dropdown .menu::after,
1727
- .ui.top.pointing.upward.dropdown .menu::after {
1728
- top: 100% !important;
1729
- bottom: auto !important;
1730
- box-shadow: @pointingUpwardArrowBoxShadow;
1731
- margin: @pointingArrowOffset 0 0;
1732
- }
1733
-
1734
- /* Right Pointing Upward */
1735
- .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1736
- top: auto !important;
1737
- bottom: 0 !important;
1738
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1739
- }
1740
- .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1741
- top: auto !important;
1742
- bottom: 0 !important;
1743
- margin: 0 0 @pointingArrowDistanceFromEdge 0;
1744
- box-shadow: @pointingArrowBoxShadow;
1745
- }
1746
-
1747
-
1748
- /* Left Pointing Upward */
1749
- .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1750
- top: auto !important;
1751
- bottom: 0 !important;
1752
- margin: 0 0 0 @pointingArrowDistanceFromEdge;
1753
- }
1754
- .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1755
- top: auto !important;
1756
- bottom: 0 !important;
1757
- margin: 0 0 @pointingArrowDistanceFromEdge 0;
1758
- box-shadow: @pointingArrowBoxShadow;
1759
- }
1760
- }
1761
-
1762
- /*--------------------
1736
+ /* --------------------
1763
1737
  Sizes
1764
- ---------------------*/
1738
+ --------------------- */
1765
1739
 
1766
1740
  .ui.dropdown,
1767
1741
  .ui.dropdown .menu > .item {
1768
- font-size: @medium;
1742
+ font-size: @medium;
1769
1743
  }
1770
1744
  & when not (@variationDropdownSizes = false) {
1771
- each(@variationDropdownSizes, {
1772
- @s: @@value;
1773
- .ui.@{value}.dropdown,
1774
- .ui.@{value}.dropdown .menu > .item {
1775
- font-size: @s;
1776
- }
1777
- })
1745
+ each(@variationDropdownSizes, {
1746
+ @s: @@value;
1747
+ .ui.@{value}.dropdown,
1748
+ .ui.@{value}.dropdown .menu > .item {
1749
+ font-size: @s;
1750
+ }
1751
+ })
1778
1752
  }
1779
1753
 
1780
1754
  & when (@variationDropdownInverted) {
1781
- /*--------------
1782
- Inverted
1783
- ---------------*/
1784
-
1785
- /* General rules and basic dropdowns */
1786
- .ui.dropdown .inverted.menu,
1787
- .ui.inverted.dropdown .menu {
1788
- background: @invertedMenuBackground;
1789
- box-shadow: @invertedMenuBoxShadow;
1790
- border: @invertedMenuBorder;
1791
- }
1792
-
1793
- .ui.dropdown .inverted.menu > .item,
1794
- .ui.inverted.dropdown .menu > .item {
1795
- color: @invertedMenuColor;
1796
- }
1797
-
1798
- .ui.dropdown .inverted.menu .active.item,
1799
- .ui.inverted.dropdown .menu .active.item {
1800
- background: @invertedActiveItemBackground;
1801
- color: @invertedActiveItemColor;
1802
- box-shadow: @invertedActiveItemBoxShadow;
1803
- }
1804
-
1805
- .ui.dropdown .inverted.menu > .item:hover,
1806
- .ui.inverted.dropdown .menu > .item:hover {
1807
- background: @invertedHoveredItemBackground;
1808
- color: @invertedHoveredItemColor;
1809
- }
1810
-
1811
- .ui.inverted.dropdown.selected,
1812
- .ui.dropdown .inverted.menu .selected.item,
1813
- .ui.inverted.dropdown .menu .selected.item {
1814
- background: @invertedSelectedBackground;
1815
- color: @invertedSelectedColor;
1816
- }
1817
-
1818
- .ui.dropdown .inverted.menu > .header,
1819
- .ui.inverted.dropdown .menu > .header {
1820
- color: @invertedMenuHeaderColor;
1821
- }
1822
-
1823
- .ui.inverted.dropdown > .text > .description,
1824
- .ui.dropdown .inverted.menu > .item > .description,
1825
- .ui.inverted.dropdown .menu > .item > .description {
1826
- color: @invertedItemDescriptionColor;
1827
- }
1828
-
1829
- .ui.dropdown .inverted.menu > .divider,
1830
- .ui.inverted.dropdown .menu > .divider {
1831
- border-top: @invertedMenuDividerBorder;
1832
- }
1833
-
1834
- .ui.dropdown .inverted.scrolling.menu,
1835
- .ui.inverted.dropdown .scrolling.menu {
1836
- border: none;
1837
- border-top: @invertedMenuBorder;
1838
- }
1839
-
1840
- & when (@variationDropdownSelection) {
1841
- /* Selection */
1842
- .ui.inverted.selection.dropdown {
1843
- border: @invertedSelectionBorder;
1844
- background: @invertedSelectionBackground;
1845
- color: @invertedSelectionTextColor;
1846
- }
1847
-
1848
- .ui.inverted.selection.dropdown:hover {
1849
- border-color: @invertedSelectionHoverBorderColor;
1850
- box-shadow: @invertedSelectionHoverBoxShadow;
1851
- }
1852
-
1853
- .ui.inverted.selection.dropdown input {
1854
- color: @invertedSelectionInputTextColor;
1855
- }
1856
-
1857
- .ui.inverted.selection.visible.dropdown > .text:not(.default) {
1858
- color: @invertedSelectionVisibleTextColor;
1859
- }
1860
-
1861
- .ui.selection.simple.dropdown:hover .inverted.menu,
1862
- .ui.inverted.selection.simple.dropdown:hover .menu,
1863
- .ui.selection.active.dropdown .inverted.menu,
1864
- .ui.inverted.selection.active.dropdown .menu,
1865
- .ui.inverted.selection.active.dropdown:hover {
1866
- border-color: @invertedSelectionVisibleBorderColor;
1867
- }
1868
-
1869
- .ui.selection.dropdown .inverted.menu > .item,
1870
- .ui.inverted.selection.dropdown .menu > .item {
1871
- border-top: @invertedSelectionItemDivider;
1872
- }
1873
- }
1874
-
1875
- .ui.inverted.dropdown:not(.button) > .default.text,
1876
- .ui.inverted.default.dropdown:not(.button) > .text {
1877
- color: @invertedDefaultTextColor;
1878
- }
1879
- .ui.inverted.dropdown:not(.button) > input:focus ~ .default.text,
1880
- .ui.inverted.default.dropdown:not(.button) > input:focus ~ .text {
1881
- color: @invertedDefaultTextFocusColor;
1882
- }
1883
-
1884
- .ui.inverted.active.search.dropdown input.search:focus + .text i.icon,
1885
- .ui.inverted.active.search.dropdown input.search:focus + .text .flag {
1886
- opacity: @invertedSelectionTextUnderlayIconOpacity;
1887
- }
1888
- .ui.inverted.active.search.dropdown input.search:focus + .text {
1889
- color: @invertedSelectionTextUnderlayColor !important;
1890
- }
1891
-
1892
- .ui.dropdown .inverted.menu > .message:not(.ui),
1893
- .ui.inverted.dropdown .menu > .message:not(.ui) {
1894
- color: @invertedMessageColor;
1895
- }
1896
-
1897
- /* Fixing the border */
1898
- .ui.dropdown .inverted.menu > .item:first-child,
1899
- .ui.inverted.dropdown .menu > .item:first-child {
1900
- border-top-width: 0;
1901
- }
1902
-
1903
- & when (@variationDropdownMultiple) {
1904
- /* Labels */
1905
- .ui.inverted.multiple.dropdown > .label {
1906
- background-color: @invertedLabelBackgroundColor;
1907
- background-image: @invertedLabelBackgroundImage;
1908
- color: @invertedLabelColor;
1909
- box-shadow: @invertedLabelBoxShadow;
1910
- }
1911
-
1912
- .ui.inverted.multiple.dropdown > .label:hover {
1913
- background-color: @invertedLabelHoverBackgroundColor;
1914
- border-color: @invertedLabelHoverBackgroundColor;
1915
-
1916
- background-image: @invertedLabelHoverBackgroundImage;
1917
- color: @invertedLabelHoverTextColor;
1918
- }
1919
-
1920
- .ui.inverted.multiple.dropdown > .label > .close.icon,
1921
- .ui.inverted.multiple.dropdown > .label > .delete.icon {
1922
- opacity: @invertedLabelIconOpacity;
1923
- }
1924
-
1925
- .ui.inverted.multiple.dropdown > .label > .close.icon:hover,
1926
- .ui.inverted.multiple.dropdown > .label > .delete.icon:hover {
1927
- opacity: @invertedLabelIconHoverOpacity;
1928
- }
1929
- }
1930
-
1931
- /* Selection for form elements */
1932
- .ui.inverted.dropdown textarea::-webkit-selection,
1933
- .ui.inverted.dropdown input::-webkit-selection {
1934
- background-color: @invertedInputHighlightBackground;
1935
- color: @invertedInputHighlightColor;
1936
- }
1937
- .ui.inverted.dropdown textarea::-moz-selection,
1938
- .ui.inverted.dropdown input::-moz-selection {
1939
- background-color: @invertedInputHighlightBackground;
1940
- color: @invertedInputHighlightColor;
1941
- }
1942
- .ui.inverted.dropdown textarea::selection,
1943
- .ui.inverted.dropdown input::selection {
1944
- background-color: @invertedInputHighlightBackground;
1945
- color: @invertedInputHighlightColor;
1946
- }
1947
-
1948
- /* Scrollbars */
1949
- & when (@useCustomScrollbars) {
1950
- .ui.dropdown .inverted.menu::-webkit-scrollbar-track,
1951
- .ui.inverted.dropdown .menu::-webkit-scrollbar-track {
1952
- background: @trackInvertedBackground;
1953
- }
1954
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb,
1955
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb {
1956
- background: @thumbInvertedBackground;
1957
- }
1958
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:window-inactive,
1959
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:window-inactive {
1960
- background: @thumbInvertedInactiveBackground;
1961
- }
1962
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:hover,
1963
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
1964
- background: @thumbInvertedHoverBackground;
1965
- }
1755
+ /* --------------
1756
+ Inverted
1757
+ --------------- */
1758
+
1759
+ /* General rules and basic dropdowns */
1966
1760
  .ui.dropdown .inverted.menu,
1967
1761
  .ui.inverted.dropdown .menu {
1968
- & when (@supportIE) {
1969
- /* IE11 */
1970
- scrollbar-face-color: @thumbInvertedBackgroundHex;
1971
- scrollbar-shadow-color: @thumbInvertedBackgroundHex;
1972
- scrollbar-track-color: @trackInvertedBackgroundHex;
1973
- scrollbar-arrow-color: @trackInvertedBackgroundHex;
1974
- }
1975
- /* firefox : first color thumb, second track */
1976
- scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
1977
- }
1978
- }
1979
- & when (@variationDropdownPointing) {
1980
- .ui.pointing.dropdown > .inverted.menu::after,
1981
- .ui.inverted.pointing.dropdown > .menu::after {
1982
- background: @invertedPointingArrowBackground;
1983
- box-shadow: @invertedPointingArrowBoxShadow;
1984
- }
1985
- }
1762
+ background: @invertedMenuBackground;
1763
+ box-shadow: @invertedMenuBoxShadow;
1764
+ border: @invertedMenuBorder;
1765
+ }
1766
+
1767
+ .ui.dropdown .inverted.menu > .item,
1768
+ .ui.inverted.dropdown .menu > .item {
1769
+ color: @invertedMenuColor;
1770
+ }
1771
+
1772
+ .ui.dropdown .inverted.menu .active.item,
1773
+ .ui.inverted.dropdown .menu .active.item {
1774
+ background: @invertedActiveItemBackground;
1775
+ color: @invertedActiveItemColor;
1776
+ box-shadow: @invertedActiveItemBoxShadow;
1777
+ }
1778
+
1779
+ .ui.dropdown .inverted.menu > .item:hover,
1780
+ .ui.inverted.dropdown .menu > .item:hover {
1781
+ background: @invertedHoveredItemBackground;
1782
+ color: @invertedHoveredItemColor;
1783
+ }
1784
+
1785
+ .ui.inverted.dropdown.selected,
1786
+ .ui.dropdown .inverted.menu .selected.item,
1787
+ .ui.inverted.dropdown .menu .selected.item {
1788
+ background: @invertedSelectedBackground;
1789
+ color: @invertedSelectedColor;
1790
+ }
1791
+
1792
+ .ui.dropdown .inverted.menu > .header,
1793
+ .ui.inverted.dropdown .menu > .header {
1794
+ color: @invertedMenuHeaderColor;
1795
+ }
1796
+
1797
+ .ui.inverted.dropdown > .text > .description,
1798
+ .ui.dropdown .inverted.menu > .item > .description,
1799
+ .ui.inverted.dropdown .menu > .item > .description {
1800
+ color: @invertedItemDescriptionColor;
1801
+ }
1802
+
1803
+ .ui.dropdown .inverted.menu > .divider,
1804
+ .ui.inverted.dropdown .menu > .divider {
1805
+ border-top: @invertedMenuDividerBorder;
1806
+ }
1807
+
1808
+ .ui.dropdown .inverted.scrolling.menu,
1809
+ .ui.inverted.dropdown .scrolling.menu {
1810
+ border: none;
1811
+ border-top: @invertedMenuBorder;
1812
+ }
1813
+
1814
+ & when (@variationDropdownSelection) {
1815
+ /* Selection */
1816
+ .ui.inverted.selection.dropdown {
1817
+ border: @invertedSelectionBorder;
1818
+ background: @invertedSelectionBackground;
1819
+ color: @invertedSelectionTextColor;
1820
+ }
1821
+
1822
+ .ui.inverted.selection.dropdown:hover {
1823
+ border-color: @invertedSelectionHoverBorderColor;
1824
+ box-shadow: @invertedSelectionHoverBoxShadow;
1825
+ }
1826
+
1827
+ .ui.inverted.selection.dropdown input {
1828
+ color: @invertedSelectionInputTextColor;
1829
+ }
1830
+
1831
+ .ui.inverted.selection.visible.dropdown > .text:not(.default) {
1832
+ color: @invertedSelectionVisibleTextColor;
1833
+ }
1834
+
1835
+ .ui.selection.simple.dropdown:hover .inverted.menu,
1836
+ .ui.inverted.selection.simple.dropdown:hover .menu,
1837
+ .ui.selection.active.dropdown .inverted.menu,
1838
+ .ui.inverted.selection.active.dropdown .menu,
1839
+ .ui.inverted.selection.active.dropdown:hover {
1840
+ border-color: @invertedSelectionVisibleBorderColor;
1841
+ }
1842
+
1843
+ .ui.selection.dropdown .inverted.menu > .item,
1844
+ .ui.inverted.selection.dropdown .menu > .item {
1845
+ border-top: @invertedSelectionItemDivider;
1846
+ }
1847
+ }
1848
+
1849
+ .ui.inverted.dropdown:not(.button) > .default.text,
1850
+ .ui.inverted.default.dropdown:not(.button) > .text {
1851
+ color: @invertedDefaultTextColor;
1852
+ }
1853
+ .ui.inverted.dropdown:not(.button) > input:focus ~ .default.text,
1854
+ .ui.inverted.default.dropdown:not(.button) > input:focus ~ .text {
1855
+ color: @invertedDefaultTextFocusColor;
1856
+ }
1857
+
1858
+ .ui.inverted.active.search.dropdown input.search:focus + .text i.icon,
1859
+ .ui.inverted.active.search.dropdown input.search:focus + .text .flag {
1860
+ opacity: @invertedSelectionTextUnderlayIconOpacity;
1861
+ }
1862
+ .ui.inverted.active.search.dropdown input.search:focus + .text {
1863
+ color: @invertedSelectionTextUnderlayColor !important;
1864
+ }
1865
+
1866
+ .ui.dropdown .inverted.menu > .message:not(.ui),
1867
+ .ui.inverted.dropdown .menu > .message:not(.ui) {
1868
+ color: @invertedMessageColor;
1869
+ }
1870
+
1871
+ /* Fixing the border */
1872
+ .ui.dropdown .inverted.menu > .item:first-child,
1873
+ .ui.inverted.dropdown .menu > .item:first-child {
1874
+ border-top-width: 0;
1875
+ }
1876
+
1877
+ & when (@variationDropdownMultiple) {
1878
+ /* Labels */
1879
+ .ui.inverted.multiple.dropdown > .label {
1880
+ background-color: @invertedLabelBackgroundColor;
1881
+ background-image: @invertedLabelBackgroundImage;
1882
+ color: @invertedLabelColor;
1883
+ box-shadow: @invertedLabelBoxShadow;
1884
+ }
1885
+
1886
+ .ui.inverted.multiple.dropdown > .label:hover {
1887
+ background-color: @invertedLabelHoverBackgroundColor;
1888
+ border-color: @invertedLabelHoverBackgroundColor;
1889
+ background-image: @invertedLabelHoverBackgroundImage;
1890
+ color: @invertedLabelHoverTextColor;
1891
+ }
1892
+
1893
+ .ui.inverted.multiple.dropdown > .label > .close.icon,
1894
+ .ui.inverted.multiple.dropdown > .label > .delete.icon {
1895
+ opacity: @invertedLabelIconOpacity;
1896
+ }
1897
+
1898
+ .ui.inverted.multiple.dropdown > .label > .close.icon:hover,
1899
+ .ui.inverted.multiple.dropdown > .label > .delete.icon:hover {
1900
+ opacity: @invertedLabelIconHoverOpacity;
1901
+ }
1902
+ }
1903
+
1904
+ /* Selection for form elements */
1905
+ .ui.inverted.dropdown textarea::-webkit-selection,
1906
+ .ui.inverted.dropdown input::-webkit-selection {
1907
+ background-color: @invertedInputHighlightBackground;
1908
+ color: @invertedInputHighlightColor;
1909
+ }
1910
+ .ui.inverted.dropdown textarea::-moz-selection,
1911
+ .ui.inverted.dropdown input::-moz-selection {
1912
+ background-color: @invertedInputHighlightBackground;
1913
+ color: @invertedInputHighlightColor;
1914
+ }
1915
+ .ui.inverted.dropdown textarea::selection,
1916
+ .ui.inverted.dropdown input::selection {
1917
+ background-color: @invertedInputHighlightBackground;
1918
+ color: @invertedInputHighlightColor;
1919
+ }
1920
+
1921
+ /* Scrollbars */
1922
+ & when (@useCustomScrollbars) {
1923
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-track,
1924
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-track {
1925
+ background: @trackInvertedBackground;
1926
+ }
1927
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb,
1928
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb {
1929
+ background: @thumbInvertedBackground;
1930
+ }
1931
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:window-inactive,
1932
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:window-inactive {
1933
+ background: @thumbInvertedInactiveBackground;
1934
+ }
1935
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:hover,
1936
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
1937
+ background: @thumbInvertedHoverBackground;
1938
+ }
1939
+ .ui.dropdown .inverted.menu,
1940
+ .ui.inverted.dropdown .menu {
1941
+ & when (@supportIE) {
1942
+ /* IE11 */
1943
+ scrollbar-face-color: @thumbInvertedBackgroundHex;
1944
+ scrollbar-shadow-color: @thumbInvertedBackgroundHex;
1945
+ scrollbar-track-color: @trackInvertedBackgroundHex;
1946
+ scrollbar-arrow-color: @trackInvertedBackgroundHex;
1947
+ }
1948
+
1949
+ /* firefox : first color thumb, second track */
1950
+ scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
1951
+ }
1952
+ }
1953
+ & when (@variationDropdownPointing) {
1954
+ .ui.pointing.dropdown > .inverted.menu::after,
1955
+ .ui.inverted.pointing.dropdown > .menu::after {
1956
+ background: @invertedPointingArrowBackground;
1957
+ box-shadow: @invertedPointingArrowBoxShadow;
1958
+ }
1959
+ }
1986
1960
  }
1987
1961
 
1988
1962
  .loadUIOverrides();