fomantic-ui 2.9.1-beta.9 → 2.9.1

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