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

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