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
@@ -9,12 +9,11 @@
9
9
  *
10
10
  */
11
11
 
12
-
13
12
  /*******************************
14
13
  Theme
15
14
  *******************************/
16
15
 
17
- @type : 'collection';
16
+ @type : 'collection';
18
17
  @element : 'menu';
19
18
 
20
19
  @import (multiple) '../../theme.config';
@@ -23,1981 +22,1972 @@
23
22
  Standard
24
23
  *******************************/
25
24
 
26
- /*--------------
25
+ /* --------------
27
26
  Menu
28
- ---------------*/
27
+ --------------- */
29
28
 
30
29
  .ui.menu {
31
- display: flex;
32
- margin: @margin;
33
- font-family: @fontFamily;
34
- background: @background;
35
- font-weight: @fontWeight;
36
- border: @border;
37
- box-shadow: @boxShadow;
38
- border-radius: @borderRadius;
39
- min-height: @minHeight;
30
+ display: flex;
31
+ margin: @margin;
32
+ font-family: @fontFamily;
33
+ background: @background;
34
+ font-weight: @fontWeight;
35
+ border: @border;
36
+ box-shadow: @boxShadow;
37
+ border-radius: @borderRadius;
38
+ min-height: @minHeight;
40
39
  }
41
40
 
42
41
  .ui.menu::after {
43
- content: '';
44
- display: block;
45
- height: 0;
46
- clear: both;
47
- visibility: hidden;
42
+ content: '';
43
+ display: block;
44
+ height: 0;
45
+ clear: both;
46
+ visibility: hidden;
48
47
  }
49
48
 
50
49
  .ui.menu:first-child {
51
- margin-top: 0;
50
+ margin-top: 0;
52
51
  }
53
52
  .ui.menu:last-child {
54
- margin-bottom: 0;
53
+ margin-bottom: 0;
55
54
  }
56
55
 
57
-
58
- /*--------------
56
+ /* --------------
59
57
  Sub-Menu
60
- ---------------*/
58
+ --------------- */
61
59
 
62
60
  .ui.menu .menu {
63
- margin: 0;
61
+ margin: 0;
64
62
  }
65
63
 
66
64
  .ui.menu:not(.vertical) > .menu {
67
- display: flex;
65
+ display: flex;
68
66
  }
69
67
 
70
- /*--------------
68
+ /* --------------
71
69
  Item
72
- ---------------*/
70
+ --------------- */
73
71
 
74
72
  .ui.menu:not(.vertical) .item {
75
- display: flex;
76
- align-items: center;
73
+ display: flex;
74
+ align-items: center;
77
75
  }
78
76
 
79
77
  .ui.menu .item {
80
- position: relative;
81
- vertical-align: middle;
82
- line-height: 1;
83
- text-decoration: none;
84
- -webkit-tap-highlight-color: transparent;
85
- flex: 0 0 auto;
86
- user-select: none;
87
-
88
- background: @itemBackground;
89
- padding: @itemVerticalPadding @itemHorizontalPadding;
90
- text-transform: @itemTextTransform;
91
- color: @itemTextColor;
92
- font-weight: @itemFontWeight;
93
- transition: @itemTransition;
78
+ position: relative;
79
+ vertical-align: middle;
80
+ line-height: 1;
81
+ text-decoration: none;
82
+ -webkit-tap-highlight-color: transparent;
83
+ flex: 0 0 auto;
84
+ user-select: none;
85
+
86
+ background: @itemBackground;
87
+ padding: @itemVerticalPadding @itemHorizontalPadding;
88
+ text-transform: @itemTextTransform;
89
+ color: @itemTextColor;
90
+ font-weight: @itemFontWeight;
91
+ transition: @itemTransition;
94
92
  }
95
93
 
96
94
  .ui.menu > .item:first-child {
97
- border-radius: @borderRadius 0 0 @borderRadius;
95
+ border-radius: @borderRadius 0 0 @borderRadius;
98
96
  }
99
97
 
100
98
  /* Border */
101
99
  .ui.menu .item::before {
102
- position: absolute;
103
- content: '';
104
- top: 0;
105
- right: 0;
106
- height: 100%;
100
+ position: absolute;
101
+ content: '';
102
+ top: 0;
103
+ right: 0;
104
+ height: 100%;
107
105
 
108
- width: @dividerSize;
109
- background: @dividerBackground;
106
+ width: @dividerSize;
107
+ background: @dividerBackground;
110
108
  }
111
109
 
112
- /*--------------
110
+ /* --------------
113
111
  Text Content
114
- ---------------*/
112
+ --------------- */
115
113
 
116
114
  .ui.menu .text.item > *,
117
115
  .ui.menu .item > a:not(.ui),
118
116
  .ui.menu .item > p:only-child {
119
- user-select: text;
120
- line-height: @textLineHeight;
117
+ user-select: text;
118
+ line-height: @textLineHeight;
121
119
  }
122
120
  .ui.menu .item > p:first-child {
123
- margin-top: 0;
121
+ margin-top: 0;
124
122
  }
125
123
  .ui.menu .item > p:last-child {
126
- margin-bottom: 0;
124
+ margin-bottom: 0;
127
125
  }
128
126
 
129
- /*--------------
127
+ /* --------------
130
128
  Icons
131
- ---------------*/
129
+ --------------- */
132
130
 
133
131
  .ui.menu .item > i.icon {
134
- opacity: @iconOpacity;
135
- float: @iconFloat;
136
- margin: @iconMargin;
132
+ opacity: @iconOpacity;
133
+ float: @iconFloat;
134
+ margin: @iconMargin;
137
135
  }
138
136
 
139
- /*--------------
137
+ /* --------------
140
138
  Button
141
- ---------------*/
139
+ --------------- */
142
140
 
143
141
  .ui.menu:not(.vertical) .item > .button {
144
- position: relative;
145
- top: @buttonOffset;
146
- margin: @buttonMargin;
147
- padding-bottom: @buttonVerticalPadding;
148
- padding-top: @buttonVerticalPadding;
149
- font-size: @buttonSize;
142
+ position: relative;
143
+ top: @buttonOffset;
144
+ margin: @buttonMargin;
145
+ padding-bottom: @buttonVerticalPadding;
146
+ padding-top: @buttonVerticalPadding;
147
+ font-size: @buttonSize;
150
148
  }
151
149
 
152
- /*----------------
150
+ /* ----------------
153
151
  Grid / Container
154
- -----------------*/
152
+ ----------------- */
155
153
 
156
- .ui.menu > .grid,
154
+ .ui.menu > .grid,
157
155
  .ui.menu > .container {
158
- display: flex;
159
- align-items: inherit;
160
- flex-direction: inherit;
156
+ display: flex;
157
+ align-items: inherit;
158
+ flex-direction: inherit;
161
159
  }
162
160
 
163
- /*--------------
161
+ /* --------------
164
162
  Inputs
165
- ---------------*/
163
+ --------------- */
166
164
 
167
165
  .ui.menu .item > .input {
168
- width: 100%;
166
+ width: 100%;
169
167
  }
170
168
  .ui.menu:not(.vertical) .item > .input {
171
- position: relative;
172
- top: @inputOffset;
173
- margin: @inputVerticalMargin 0;
169
+ position: relative;
170
+ top: @inputOffset;
171
+ margin: @inputVerticalMargin 0;
174
172
  }
175
173
  .ui.menu .item > .input input {
176
- font-size: @inputSize;
177
- padding-top: @inputVerticalPadding;
178
- padding-bottom: @inputVerticalPadding;
174
+ font-size: @inputSize;
175
+ padding-top: @inputVerticalPadding;
176
+ padding-bottom: @inputVerticalPadding;
179
177
  }
180
178
 
181
-
182
- /*--------------
179
+ /* --------------
183
180
  Header
184
- ---------------*/
181
+ --------------- */
185
182
 
186
183
  .ui.menu .header.item,
187
184
  .ui.vertical.menu .header.item {
188
- margin: 0;
189
- background: @headerBackground;
190
- text-transform: @headerTextTransform;
191
- font-weight: @headerWeight;
185
+ margin: 0;
186
+ background: @headerBackground;
187
+ text-transform: @headerTextTransform;
188
+ font-weight: @headerWeight;
192
189
  }
193
190
 
194
191
  & when (@variationMenuVertical) {
195
- .ui.vertical.menu .item > .header:not(.ui) {
196
- margin: @verticalHeaderMargin;
197
- font-size: @verticalHeaderFontSize;
198
- font-weight: @verticalHeaderFontWeight;
199
- }
192
+ .ui.vertical.menu .item > .header:not(.ui) {
193
+ margin: @verticalHeaderMargin;
194
+ font-size: @verticalHeaderFontSize;
195
+ font-weight: @verticalHeaderFontWeight;
196
+ }
200
197
  }
201
198
 
202
- /*--------------
199
+ /* --------------
203
200
  Dropdowns
204
- ---------------*/
205
-
201
+ --------------- */
206
202
 
207
203
  /* Dropdown Icon */
208
204
  .ui.menu .item > i.dropdown.icon {
209
- padding: 0;
210
- float: @dropdownIconFloat;
211
- margin: 0 0 0 @dropdownIconDistance;
205
+ padding: 0;
206
+ float: @dropdownIconFloat;
207
+ margin: 0 0 0 @dropdownIconDistance;
212
208
  }
213
209
 
214
210
  /* Menu */
215
211
  .ui.menu .dropdown.item .menu {
216
- min-width: e("calc(100% - 1px)");
217
- border-radius: 0 0 @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
218
- background: @dropdownBackground;
219
- margin: @dropdownMenuDistance 0 0;
220
- box-shadow: @dropdownMenuBoxShadow;
212
+ min-width: e("calc(100% - 1px)");
213
+ border-radius: 0 0 @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
214
+ background: @dropdownBackground;
215
+ margin: @dropdownMenuDistance 0 0;
216
+ box-shadow: @dropdownMenuBoxShadow;
221
217
  }
222
218
  .ui.menu .dropdown.item:not(.column) .menu {
223
- flex-direction: column;
219
+ flex-direction: column;
224
220
  }
225
221
 
226
-
227
222
  /* Menu Items */
228
223
  .ui.menu .ui.dropdown .menu > .item {
229
- margin: 0;
230
- text-align: left;
231
- font-size: @dropdownItemFontSize !important;
232
- padding: @dropdownItemPadding !important;
233
- background: @dropdownItemBackground !important;
234
- color: @dropdownItemColor !important;
235
- text-transform: @dropdownItemTextTransform !important;
236
- font-weight: @dropdownItemFontWeight !important;
237
- box-shadow: @dropdownItemBoxShadow !important;
238
- transition: @dropdownItemTransition !important;
224
+ margin: 0;
225
+ text-align: left;
226
+ font-size: @dropdownItemFontSize !important;
227
+ padding: @dropdownItemPadding !important;
228
+ background: @dropdownItemBackground !important;
229
+ color: @dropdownItemColor !important;
230
+ text-transform: @dropdownItemTextTransform !important;
231
+ font-weight: @dropdownItemFontWeight !important;
232
+ box-shadow: @dropdownItemBoxShadow !important;
233
+ transition: @dropdownItemTransition !important;
239
234
  }
240
235
  .ui.menu .ui.dropdown .menu > .item:hover {
241
- background: @dropdownHoveredItemBackground !important;
242
- color: @dropdownHoveredItemColor !important;
236
+ background: @dropdownHoveredItemBackground !important;
237
+ color: @dropdownHoveredItemColor !important;
243
238
  }
244
239
  .ui.menu .ui.dropdown .menu > .selected.item {
245
- background: @dropdownSelectedItemBackground !important;
246
- color: @dropdownSelectedItemColor !important;
240
+ background: @dropdownSelectedItemBackground !important;
241
+ color: @dropdownSelectedItemColor !important;
247
242
  }
248
243
  .ui.menu .ui.dropdown .menu > .active.item {
249
- background: @dropdownActiveItemBackground !important;
250
- font-weight: @dropdownActiveItemFontWeight !important;
251
- color: @dropdownActiveItemColor !important;
244
+ background: @dropdownActiveItemBackground !important;
245
+ font-weight: @dropdownActiveItemFontWeight !important;
246
+ color: @dropdownActiveItemColor !important;
252
247
  }
253
248
 
254
249
  .ui.menu .ui.dropdown.item .menu .item:not(.filtered) {
255
- display: block;
250
+ display: block;
256
251
  }
257
252
  .ui.menu .ui.dropdown .menu > .item > .icons,
258
253
  .ui.menu .ui.dropdown .menu > .item > i.icon:not(.dropdown) {
259
- display: inline-block;
260
- font-size: @dropdownItemIconFontSize !important;
261
- float: @dropdownItemIconFloat;
262
- margin: @dropdownItemIconMargin !important;
254
+ display: inline-block;
255
+ font-size: @dropdownItemIconFontSize !important;
256
+ float: @dropdownItemIconFloat;
257
+ margin: @dropdownItemIconMargin !important;
263
258
  }
264
259
 
265
260
  & when (@variationMenuSecondary) or (@variationMenuText) {
266
- /* Secondary */
267
- .ui.secondary.menu .dropdown.item > .menu,
268
- .ui.text.menu .dropdown.item > .menu {
269
- border-radius: @dropdownMenuBorderRadius;
270
- margin-top: @secondaryDropdownMenuDistance;
271
- }
261
+ /* Secondary */
262
+ .ui.secondary.menu .dropdown.item > .menu,
263
+ .ui.text.menu .dropdown.item > .menu {
264
+ border-radius: @dropdownMenuBorderRadius;
265
+ margin-top: @secondaryDropdownMenuDistance;
266
+ }
272
267
  }
273
268
 
274
- /* Pointing */
275
- .ui.menu .pointing.dropdown.item .menu {
269
+ /* Pointing */
270
+ .ui.menu .pointing.dropdown.item .menu {
276
271
  margin-top: @pointingDropdownMenuDistance;
277
272
  }
278
273
 
279
274
  & when (@variationMenuInverted) {
280
- /* Inverted */
281
- .ui.inverted.menu .search.dropdown.item > .search,
282
- .ui.inverted.menu .search.dropdown.item > .text {
283
- color: @invertedSelectionDropdownColor;
284
- }
275
+ /* Inverted */
276
+ .ui.inverted.menu .search.dropdown.item > .search,
277
+ .ui.inverted.menu .search.dropdown.item > .text {
278
+ color: @invertedSelectionDropdownColor;
279
+ }
285
280
  }
286
281
 
287
282
  & when (@variationMenuVertical) {
288
- /* Vertical */
289
- .ui.vertical.menu .dropdown.item > i.icon {
290
- float: right;
291
- content: "\f0da";
292
- margin-left: 1em;
293
- }
294
- .ui.vertical.menu .dropdown.item .menu {
295
- left: 100%;
296
- & when (@supportIE) {
297
- /* IE needs 0, all others support max-content to show dropdown icon inline, so keep both settings! */
298
- min-width: 0;
299
- }
300
- min-width: max-content;
301
- margin: 0 0 0 @dropdownMenuDistance;
302
- box-shadow: @dropdownVerticalMenuBoxShadow;
303
- border-radius: 0 @dropdownMenuBorderRadius @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
304
- }
305
- .ui.vertical.menu .dropdown.item.upward .menu {
306
- bottom: 0;
307
- }
308
- .ui.vertical.menu .dropdown.item:not(.upward) .menu {
309
- top: 0;
310
- }
311
- .ui.vertical.menu .active.dropdown.item {
312
- border-top-right-radius: 0;
313
- border-bottom-right-radius: 0;
314
- }
315
- .ui.vertical.menu .dropdown.active.item {
316
- box-shadow: none;
317
- }
283
+ /* Vertical */
284
+ .ui.vertical.menu .dropdown.item > i.icon {
285
+ float: right;
286
+ content: "\f0da";
287
+ margin-left: 1em;
288
+ }
289
+ .ui.vertical.menu .dropdown.item .menu {
290
+ left: 100%;
291
+ & when (@supportIE) {
292
+ /* IE needs 0, all others support max-content to show dropdown icon inline, so keep both settings! */
293
+ min-width: 0;
294
+ }
295
+ min-width: max-content;
296
+ margin: 0 0 0 @dropdownMenuDistance;
297
+ box-shadow: @dropdownVerticalMenuBoxShadow;
298
+ border-radius: 0 @dropdownMenuBorderRadius @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
299
+ }
300
+ .ui.vertical.menu .dropdown.item.upward .menu {
301
+ bottom: 0;
302
+ }
303
+ .ui.vertical.menu .dropdown.item:not(.upward) .menu {
304
+ top: 0;
305
+ }
306
+ .ui.vertical.menu .active.dropdown.item {
307
+ border-top-right-radius: 0;
308
+ border-bottom-right-radius: 0;
309
+ }
310
+ .ui.vertical.menu .dropdown.active.item {
311
+ box-shadow: none;
312
+ }
318
313
  }
319
314
 
320
315
  /* Evenly Divided */
321
316
  .ui.item.menu .dropdown .menu .item {
322
- width: 100%;
317
+ width: 100%;
323
318
  }
324
319
 
325
- /*--------------
320
+ /* --------------
326
321
  Labels
327
- ---------------*/
322
+ --------------- */
328
323
 
329
324
  .ui.menu .item > .label:not(.floating) {
330
- margin-left: @labelTextMargin;
331
- padding: @labelVerticalPadding @labelHorizontalPadding;
325
+ margin-left: @labelTextMargin;
326
+ padding: @labelVerticalPadding @labelHorizontalPadding;
332
327
  }
333
328
  & when (@variationMenuVertical) {
334
- .ui.vertical.menu .item > .label {
335
- margin-top: @labelOffset;
336
- margin-bottom: @labelOffset;
337
- padding: @labelVerticalPadding @labelHorizontalPadding;
338
- }
329
+ .ui.vertical.menu .item > .label {
330
+ margin-top: @labelOffset;
331
+ margin-bottom: @labelOffset;
332
+ padding: @labelVerticalPadding @labelHorizontalPadding;
333
+ }
339
334
  }
340
335
  .ui.menu .item > .floating.label {
341
- padding: @labelVerticalPadding @labelHorizontalPadding;
336
+ padding: @labelVerticalPadding @labelHorizontalPadding;
342
337
  }
343
338
  .ui.menu .item > .label {
344
- background: @labelBackground;
345
- color: @labelTextColor;
339
+ background: @labelBackground;
340
+ color: @labelTextColor;
346
341
  }
347
342
  .ui.menu .item > .image.label img {
348
- margin: @imageLabelImageMargin;
349
- height: @imageLabelHeight;
343
+ margin: @imageLabelImageMargin;
344
+ height: @imageLabelHeight;
350
345
  }
351
- /*--------------
346
+
347
+ /* --------------
352
348
  Images
353
- ---------------*/
349
+ --------------- */
354
350
 
355
351
  .ui.menu .item > img:not(.ui) {
356
- display: inline-block;
357
- vertical-align: middle;
358
- margin: @imageMargin;
359
- width: @imageWidth;
352
+ display: inline-block;
353
+ vertical-align: middle;
354
+ margin: @imageMargin;
355
+ width: @imageWidth;
360
356
  }
361
357
  & when (@variationMenuVertical) {
362
- .ui.vertical.menu .item > img:not(.ui):only-child {
363
- display: block;
364
- max-width: 100%;
365
- width: @verticalImageWidth;
366
- }
358
+ .ui.vertical.menu .item > img:not(.ui):only-child {
359
+ display: block;
360
+ max-width: 100%;
361
+ width: @verticalImageWidth;
362
+ }
367
363
  }
368
364
 
369
365
  /*******************************
370
366
  Coupling
371
367
  *******************************/
372
368
 
373
- /*--------------
369
+ /* --------------
374
370
  List
375
- ---------------*/
371
+ --------------- */
376
372
 
377
373
  /* Menu divider shouldn't apply */
378
374
  .ui.menu .list .item::before {
379
- background: none !important;
375
+ background: none !important;
380
376
  }
381
377
 
382
378
  & when (@variationMenuVertical) {
383
- /*--------------
384
- Sidebar
385
- ---------------*/
379
+ /* --------------
380
+ Sidebar
381
+ --------------- */
386
382
 
387
- /* Show vertical dividers below last */
383
+ /* Show vertical dividers below last */
388
384
 
389
- .ui.vertical.sidebar.menu > .item:first-child::before {
390
- display: block !important;
391
- }
392
- .ui.vertical.sidebar.menu > .item::before {
393
- top: auto;
394
- bottom: 0;
395
- }
385
+ .ui.vertical.sidebar.menu > .item:first-child::before {
386
+ display: block !important;
387
+ }
388
+ .ui.vertical.sidebar.menu > .item::before {
389
+ top: auto;
390
+ bottom: 0;
391
+ }
396
392
  }
397
393
 
398
- /*--------------
394
+ /* --------------
399
395
  Container
400
- ---------------*/
396
+ --------------- */
401
397
 
402
398
  @media only screen and (max-width: @largestMobileScreen) {
403
- .ui.menu > .ui.container {
404
- width: 100% !important;
405
- margin-left: 0 !important;
406
- margin-right: 0 !important;
407
- }
399
+ .ui.menu > .ui.container {
400
+ width: 100% !important;
401
+ margin-left: 0 !important;
402
+ margin-right: 0 !important;
403
+ }
408
404
  }
409
405
  @media only screen and (min-width: @tabletBreakpoint) {
410
- .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .item:not(.right):not(.borderless):first-child {
411
- border-left: @dividerSize solid @dividerBackground;
412
- }
413
- .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.item:not(.borderless):last-child,
414
- .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.menu > .item:not(.borderless):last-child {
415
- border-right: @dividerSize solid @dividerBackground;
416
- }
406
+ .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .item:not(.right):not(.borderless):first-child {
407
+ border-left: @dividerSize solid @dividerBackground;
408
+ }
409
+ .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.item:not(.borderless):last-child,
410
+ .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .right.menu > .item:not(.borderless):last-child {
411
+ border-right: @dividerSize solid @dividerBackground;
412
+ }
417
413
  }
418
414
 
419
-
420
415
  /*******************************
421
416
  States
422
417
  *******************************/
423
418
 
424
- /*--------------
419
+ /* --------------
425
420
  Hover
426
- ---------------*/
427
-
421
+ --------------- */
428
422
 
429
423
  .ui.link.menu .item:hover,
430
424
  .ui.menu .dropdown.item:hover,
431
425
  .ui.menu .link.item:hover,
432
426
  .ui.menu a.item:hover {
433
- cursor: pointer;
434
- background: @hoverItemBackground;
435
- color: @hoverItemTextColor;
427
+ cursor: pointer;
428
+ background: @hoverItemBackground;
429
+ color: @hoverItemTextColor;
436
430
  }
437
431
 
438
-
439
- /*--------------
432
+ /* --------------
440
433
  Pressed
441
- ---------------*/
434
+ --------------- */
442
435
 
443
436
  .ui.link.menu .item:active,
444
437
  .ui.menu .link.item:active,
445
438
  .ui.menu a.item:active {
446
- background: @pressedItemBackground;
447
- color: @pressedItemTextColor;
439
+ background: @pressedItemBackground;
440
+ color: @pressedItemTextColor;
448
441
  }
449
442
 
450
-
451
- /*--------------
443
+ /* --------------
452
444
  Active
453
- ---------------*/
445
+ --------------- */
454
446
 
455
- .ui.menu .active.item {
456
- background: @activeItemBackground;
457
- color: @activeItemTextColor;
458
- font-weight: @activeItemFontWeight;
459
- box-shadow: @activeItemBoxShadow;
447
+ .ui.menu .active.item {
448
+ background: @activeItemBackground;
449
+ color: @activeItemTextColor;
450
+ font-weight: @activeItemFontWeight;
451
+ box-shadow: @activeItemBoxShadow;
460
452
  }
461
453
  .ui.menu .active.item > i.icon {
462
- opacity: @activeIconOpacity;
454
+ opacity: @activeIconOpacity;
463
455
  }
464
456
 
465
- /*--------------
457
+ /* --------------
466
458
  Active Hover
467
- ---------------*/
459
+ --------------- */
468
460
 
469
461
  .ui.menu .active.item:hover,
470
462
  .ui.vertical.menu .active.item:hover {
471
- background-color: @activeHoverItemBackground;
472
- color: @activeHoverItemColor;
463
+ background-color: @activeHoverItemBackground;
464
+ color: @activeHoverItemColor;
473
465
  }
474
466
 
475
-
476
- /*--------------
467
+ /* --------------
477
468
  Disabled
478
- ---------------*/
469
+ --------------- */
479
470
 
480
471
  .ui.ui.menu .item.disabled {
481
- cursor: default;
482
- background-color: transparent;
483
- color: @disabledTextColor;
484
- pointer-events: none;
472
+ cursor: default;
473
+ background-color: transparent;
474
+ color: @disabledTextColor;
475
+ pointer-events: none;
485
476
  }
486
477
 
487
-
488
478
  /*******************************
489
479
  Types
490
480
  *******************************/
491
481
 
492
- /*------------------
482
+ /* ------------------
493
483
  Floated Menu / Item
494
- -------------------*/
484
+ ------------------- */
495
485
 
496
486
  /* Left Floated */
497
487
  .ui.menu:not(.vertical) .left.item,
498
488
  .ui.menu:not(.vertical) .left.menu {
499
- display: flex;
500
- margin-right: auto !important;
489
+ display: flex;
490
+ margin-right: auto !important;
501
491
  }
492
+
502
493
  /* Right Floated */
503
494
  .ui.menu:not(.vertical) .right.item,
504
495
  .ui.menu:not(.vertical) .right.menu {
505
- display: flex;
506
- margin-left: auto !important;
496
+ display: flex;
497
+ margin-left: auto !important;
507
498
  }
508
499
 
509
500
  .ui.menu:not(.vertical) :not(.dropdown) > .left.menu,
510
501
  .ui.menu:not(.vertical) :not(.dropdown) > .right.menu {
511
- display: inherit;
502
+ display: inherit;
512
503
  }
513
504
 
514
505
  /* Center */
515
506
  .ui.menu:not(.vertical) .center.item,
516
507
  .ui.menu:not(.vertical) .center.menu {
517
- display: flex;
518
- margin-left: auto !important;
519
- margin-right: auto !important;
508
+ display: flex;
509
+ margin-left: auto !important;
510
+ margin-right: auto !important;
520
511
  }
521
512
 
522
513
  /* Swapped Borders */
523
514
  .ui.menu .right.item::before,
524
515
  .ui.menu .right.menu > .item::before {
525
- right: auto;
526
- left: 0;
516
+ right: auto;
517
+ left: 0;
527
518
  }
528
519
 
529
520
  /* Remove Outer Borders */
530
521
  .ui.menu .center.item:last-child::before,
531
522
  .ui.menu .center.menu > .item:last-child::before {
532
- display: none;
523
+ display: none;
533
524
  }
534
525
 
535
526
  & when (@variationMenuVertical) {
536
- /*--------------
537
- Vertical
538
- ---------------*/
539
-
540
- .ui.vertical.menu {
541
- display: block;
542
- flex-direction: column;
543
- background: @verticalBackground;
544
- box-shadow: @verticalBoxShadow;
545
- }
546
-
547
- /*--- Item ---*/
548
- .ui.vertical.menu .item {
549
- display: block;
550
- background: @verticalItemBackground;
551
- border-top: none;
552
- border-right: none;
553
- }
554
- .ui.vertical.menu > .item:first-child {
555
- border-radius: @borderRadius @borderRadius 0 0;
556
- }
557
- .ui.vertical.menu > .item:last-child {
558
- border-radius: 0 0 @borderRadius @borderRadius;
559
- }
560
-
561
- /*--- Label ---*/
562
- .ui.vertical.menu .item > .label {
563
- float: right;
564
- text-align: center;
565
- }
566
-
567
- /*--- Icon ---*/
568
- .ui.vertical.menu .item > i.icon,
569
- .ui.vertical.menu .item > i.icons {
570
- width: @iconWidth;
571
- float: @verticalIconFloat;
572
- margin: @verticalIconMargin;
573
- }
574
- .ui.vertical.menu .item > .label + i.icon {
575
- float: @labelAndIconFloat;
576
- margin: @labelAndIconMargin;
577
- }
578
-
579
-
580
- /*--- Border ---*/
581
- .ui.vertical.menu .item::before {
582
- position: absolute;
583
- content: '';
584
- top: 0;
585
- left: 0;
586
- width: 100%;
587
- height: @dividerSize;
588
- background: @verticalDividerBackground;
589
- }
590
-
591
- .ui.vertical.menu .item:first-child::before {
592
- display: none !important;
593
- }
594
-
527
+ /* --------------
528
+ Vertical
529
+ --------------- */
595
530
 
596
- /*--- Sub Menu ---*/
597
- .ui.vertical.menu .item > .menu {
598
- margin: @subMenuMargin;
599
- }
600
- .ui.vertical.menu .menu .item {
601
- background: none;
602
- padding: @subMenuVerticalPadding @subMenuHorizontalPadding;
603
- font-size: @subMenuFontSize;
604
- color: @subMenuTextColor;
605
- }
606
- .ui.vertical.menu .item .menu a.item:hover,
607
- .ui.vertical.menu .item .menu .link.item:hover {
608
- color: @darkTextColor;
609
- }
610
- .ui.vertical.menu .menu .item::before {
611
- display: none;
612
- }
531
+ .ui.vertical.menu {
532
+ display: block;
533
+ flex-direction: column;
534
+ background: @verticalBackground;
535
+ box-shadow: @verticalBoxShadow;
536
+ }
613
537
 
614
- /* Vertical Active */
615
- .ui.vertical.menu .active.item {
616
- background: @activeItemBackground;
617
- border-radius: 0;
618
- box-shadow: @verticalActiveBoxShadow;
619
- }
620
- .ui.vertical.menu > .active.item:first-child {
621
- border-radius: @borderRadius @borderRadius 0 0;
622
- }
623
- .ui.vertical.menu > .active.item:last-child {
624
- border-radius: 0 0 @borderRadius @borderRadius;
625
- }
626
- .ui.vertical.menu > .active.item:only-child {
627
- border-radius: @borderRadius;
628
- }
629
- .ui.vertical.menu .active.item .menu .active.item {
630
- border-left: none;
631
- }
632
- .ui.vertical.menu .item .menu .active.item {
633
- background-color: @subMenuActiveBackground;
634
- font-weight: @subMenuActiveFontWeight;
635
- color: @subMenuActiveTextColor;
636
- }
637
- }
538
+ /* --- Item --- */
539
+ .ui.vertical.menu .item {
540
+ display: block;
541
+ background: @verticalItemBackground;
542
+ border-top: none;
543
+ border-right: none;
544
+ }
545
+ .ui.vertical.menu > .item:first-child {
546
+ border-radius: @borderRadius @borderRadius 0 0;
547
+ }
548
+ .ui.vertical.menu > .item:last-child {
549
+ border-radius: 0 0 @borderRadius @borderRadius;
550
+ }
638
551
 
639
- & when (@variationMenuTabular) {
640
- /*--------------
641
- Tabular
642
- ---------------*/
643
-
644
- .ui.tabular.menu {
645
- border-radius: 0;
646
- box-shadow: none !important;
647
- border: none;
648
- background: @tabularBackground;
649
- border-bottom: @tabularBorderWidth solid @tabularBorderColor;
650
- }
651
- .ui.tabular.fluid.menu {
652
- width: @tabularFluidWidth !important;
653
- }
654
- .ui.tabular.menu .item {
655
- background: transparent;
656
- border-bottom: none;
657
-
658
- border-left: @tabularBorderWidth solid transparent;
659
- border-right: @tabularBorderWidth solid transparent;
660
- border-top: @tabularOppositeBorderWidth solid transparent;
661
- padding: @tabularVerticalPadding @tabularHorizontalPadding;
662
- color: @tabularTextColor;
663
- }
664
- .ui.tabular.menu .item::before {
665
- display: none;
666
- }
552
+ /* --- Label --- */
553
+ .ui.vertical.menu .item > .label {
554
+ float: right;
555
+ text-align: center;
556
+ }
667
557
 
668
- /* Hover */
669
- .ui.tabular.menu .item:hover {
670
- background-color: transparent;
671
- color: @tabularHoveredTextColor;
672
- }
558
+ /* --- Icon --- */
559
+ .ui.vertical.menu .item > i.icon,
560
+ .ui.vertical.menu .item > i.icons {
561
+ width: @iconWidth;
562
+ float: @verticalIconFloat;
563
+ margin: @verticalIconMargin;
564
+ }
565
+ .ui.vertical.menu .item > .label + i.icon {
566
+ float: @labelAndIconFloat;
567
+ margin: @labelAndIconMargin;
568
+ }
673
569
 
674
- /* Active */
675
- .ui.tabular.menu .active.item {
676
- background: @tabularActiveBackground;
677
- color: @tabularActiveColor;
678
- border-top-width: @tabularBorderWidth;
679
- border-color: @tabularBorderColor;
680
- font-weight: @tabularActiveWeight;
681
- margin-bottom: -@tabularBorderWidth;
682
- box-shadow: @tabularActiveBoxShadow;
683
- border-radius: @tabularBorderRadius @tabularBorderRadius 0 0 !important;
684
- &:hover {
685
- cursor: default;
570
+ /* --- Border --- */
571
+ .ui.vertical.menu .item::before {
572
+ position: absolute;
573
+ content: '';
574
+ top: 0;
575
+ left: 0;
576
+ width: 100%;
577
+ height: @dividerSize;
578
+ background: @verticalDividerBackground;
686
579
  }
687
- }
688
580
 
689
- /* Coupling with segment for attachment */
690
- .ui.tabular.menu ~ .attached:not(.top).segment {
691
- border-top: none;
692
- margin-left: 0;
693
- margin-top: 0;
694
- margin-right: 0;
695
- width: 100%;
696
- }
697
- .top.attached.segment + .ui.bottom.tabular.menu {
698
- position: relative;
699
- width: @tabularFluidWidth;
700
- left: -@tabularFluidOffset;
701
- }
581
+ .ui.vertical.menu .item:first-child::before {
582
+ display: none !important;
583
+ }
702
584
 
703
- /* Bottom Vertical Tabular */
704
- .ui.bottom.tabular.menu {
705
- background: @tabularBackground;
706
- border-radius: 0;
707
- box-shadow: none !important;
708
- border-bottom: none;
709
- border-top: @tabularBorderWidth solid @tabularBorderColor;
710
- }
711
- .ui.bottom.tabular.menu .item {
712
- background: none;
713
- border-left: @tabularBorderWidth solid transparent;
714
- border-right: @tabularBorderWidth solid transparent;
715
- border-bottom: @tabularBorderWidth solid transparent;
716
- border-top: none;
717
- }
718
- .ui.bottom.tabular.menu .active.item {
719
- background: @tabularActiveBackground;
720
- color: @tabularActiveColor;
721
- border-color: @tabularBorderColor;
722
- margin: -@tabularBorderWidth 0 0 0;
723
- border-radius: 0 0 @tabularBorderRadius @tabularBorderRadius !important;
724
- }
725
- & when (@variationMenuVertical) {
726
- /* Vertical Tabular (Left) */
727
- .ui.vertical.tabular.menu {
728
- background: @tabularVerticalBackground;
729
- border-radius: 0;
730
- box-shadow: none !important;
731
- border-bottom: none;
732
- border-right: @tabularBorderWidth solid @tabularBorderColor;
733
- }
734
- .ui.vertical.tabular.menu .item {
735
- background: none;
736
- border-left: @tabularBorderWidth solid transparent;
737
- border-bottom: @tabularBorderWidth solid transparent;
738
- border-top: @tabularBorderWidth solid transparent;
739
- border-right: none;
740
- }
741
- .ui.vertical.tabular.menu .active.item {
742
- background: @tabularActiveBackground;
743
- color: @tabularActiveColor;
744
- border-color: @tabularBorderColor;
745
- margin: 0 -@tabularBorderWidth 0 0;
746
- border-radius: @tabularBorderRadius 0 0 @tabularBorderRadius !important;
747
- }
748
-
749
- /* Vertical Right Tabular */
750
- .ui.vertical.right.tabular.menu {
751
- background: @tabularVerticalBackground;
752
- border-radius: 0;
753
- box-shadow: none !important;
754
- border-bottom: none;
755
- border-right: none;
756
- border-left: @tabularBorderWidth solid @tabularBorderColor;
757
- }
758
- .ui.vertical.right.tabular.menu .item {
759
- background: none;
760
- border-right: @tabularBorderWidth solid transparent;
761
- border-bottom: @tabularBorderWidth solid transparent;
762
- border-top: @tabularBorderWidth solid transparent;
763
- border-left: none;
764
- }
765
- .ui.vertical.right.tabular.menu .active.item {
766
- background: @tabularActiveBackground;
767
- color: @tabularActiveColor;
768
- border-color: @tabularBorderColor;
769
- margin: 0 0 0 -@tabularBorderWidth;
770
- border-radius: 0 @tabularBorderRadius @tabularBorderRadius 0 !important;
585
+ /* --- Sub Menu --- */
586
+ .ui.vertical.menu .item > .menu {
587
+ margin: @subMenuMargin;
771
588
  }
772
- }
773
- /* Dropdown */
774
- .ui.tabular.menu .active.dropdown.item {
775
- margin-bottom: 0;
776
- border-left: @tabularBorderWidth solid transparent;
777
- border-right: @tabularBorderWidth solid transparent;
778
- border-top: @tabularOppositeBorderWidth solid transparent;
779
- border-bottom: none;
780
- }
781
- & when (@variationMenuInverted) {
782
- .ui.inverted.tabular.menu .active.item,
783
- .ui.inverted.tabular.menu .active.item:hover {
784
- background: @invertedTabularActiveBackground;
785
- border-color: @invertedTabularBorderColor;
589
+ .ui.vertical.menu .menu .item {
590
+ background: none;
591
+ padding: @subMenuVerticalPadding @subMenuHorizontalPadding;
592
+ font-size: @subMenuFontSize;
593
+ color: @subMenuTextColor;
786
594
  }
787
- .ui.inverted.tabular.menu .item:not(.active):hover {
788
- color: @invertedTabularHoveredTextColor;
789
- background: transparent;
790
- cursor: pointer;
595
+ .ui.vertical.menu .item .menu a.item:hover,
596
+ .ui.vertical.menu .item .menu .link.item:hover {
597
+ color: @darkTextColor;
598
+ }
599
+ .ui.vertical.menu .menu .item::before {
600
+ display: none;
791
601
  }
792
- }
793
- }
794
-
795
-
796
- & when (@variationMenuPagination) {
797
- /*--------------
798
- Pagination
799
- ---------------*/
800
-
801
- .ui.pagination.menu {
802
- margin: 0;
803
- display: inline-flex;
804
- vertical-align: middle;
805
- }
806
- .ui.pagination.menu .item:last-child {
807
- border-radius: 0 @borderRadius @borderRadius 0;
808
- }
809
- .ui.compact.menu .item:last-child {
810
- border-radius: 0 @borderRadius @borderRadius 0;
811
- }
812
- .ui.pagination.menu .item:last-child::before {
813
- display: none;
814
- }
815
-
816
- .ui.pagination.menu .item {
817
- min-width: @paginationMinWidth;
818
- text-align: center;
819
- }
820
- .ui.pagination.menu .icon.item i.icon {
821
- vertical-align: top;
822
- }
823
602
 
824
- /* Active */
825
- .ui.pagination.menu .active.item {
826
- border-top: none;
827
- padding-top: @itemVerticalPadding;
828
- background-color: @paginationActiveBackground;
829
- color: @paginationActiveTextColor;
830
- box-shadow: none;
831
- }
603
+ /* Vertical Active */
604
+ .ui.vertical.menu .active.item {
605
+ background: @activeItemBackground;
606
+ border-radius: 0;
607
+ box-shadow: @verticalActiveBoxShadow;
608
+ }
609
+ .ui.vertical.menu > .active.item:first-child {
610
+ border-radius: @borderRadius @borderRadius 0 0;
611
+ }
612
+ .ui.vertical.menu > .active.item:last-child {
613
+ border-radius: 0 0 @borderRadius @borderRadius;
614
+ }
615
+ .ui.vertical.menu > .active.item:only-child {
616
+ border-radius: @borderRadius;
617
+ }
618
+ .ui.vertical.menu .active.item .menu .active.item {
619
+ border-left: none;
620
+ }
621
+ .ui.vertical.menu .item .menu .active.item {
622
+ background-color: @subMenuActiveBackground;
623
+ font-weight: @subMenuActiveFontWeight;
624
+ color: @subMenuActiveTextColor;
625
+ }
832
626
  }
833
627
 
834
- & when (@variationMenuSecondary) {
835
- /*--------------
836
- Secondary
837
- ---------------*/
838
-
839
- .ui.secondary.menu {
840
- background: @secondaryBackground;
841
- margin-left: -@secondaryItemSpacing;
842
- margin-right: -@secondaryItemSpacing;
843
- border-radius: 0;
844
- border: none;
845
- box-shadow: none;
846
- }
847
-
848
- /* Item */
849
- .ui.secondary.menu .item {
850
- align-self: center;
851
- box-shadow: none;
852
- border: none;
853
- padding: @secondaryItemPadding;
854
- margin: @secondaryItemMargin;
855
- background: @secondaryItemBackground;
856
- transition: @secondaryItemTransition;
857
- border-radius: @secondaryItemBorderRadius;
858
- }
859
-
860
- /* No Divider */
861
- .ui.secondary.menu .item::before {
862
- display: none !important;
863
- }
864
-
865
- /* Header */
866
- .ui.secondary.menu .header.item {
867
- border-radius: 0;
868
- border-right: @secondaryHeaderBorder;
869
- background: @secondaryHeaderBackground;
870
- }
871
-
872
- /* Image */
873
- .ui.secondary.menu .item > img:not(.ui) {
874
- margin: 0;
875
- }
876
-
877
- /* Hover */
878
- .ui.secondary.menu .dropdown.item:hover,
879
- .ui.secondary.menu .link.item:hover,
880
- .ui.secondary.menu a.item:hover {
881
- background: @secondaryHoverItemBackground;
882
- color: @secondaryHoverItemColor;
883
- }
884
-
885
- /* Active */
886
- .ui.secondary.menu .active.item {
887
- box-shadow: none;
888
- background: @secondaryActiveItemBackground;
889
- color: @secondaryActiveItemColor;
890
- border-radius: @secondaryItemBorderRadius;
891
- }
892
-
893
- /* Active Hover */
894
- .ui.secondary.menu .active.item:hover {
895
- box-shadow: none;
896
- background: @secondaryActiveHoverItemBackground;
897
- color: @secondaryActiveHoverItemColor;
898
- }
628
+ & when (@variationMenuTabular) {
629
+ /* --------------
630
+ Tabular
631
+ --------------- */
632
+
633
+ .ui.tabular.menu {
634
+ border-radius: 0;
635
+ box-shadow: none !important;
636
+ border: none;
637
+ background: @tabularBackground;
638
+ border-bottom: @tabularBorderWidth solid @tabularBorderColor;
639
+ }
640
+ .ui.tabular.fluid.menu {
641
+ width: @tabularFluidWidth !important;
642
+ }
643
+ .ui.tabular.menu .item {
644
+ background: transparent;
645
+ border-bottom: none;
899
646
 
900
- & when (@variationMenuInverted) {
901
- /* Inverted */
902
- .ui.secondary.inverted.menu .link.item:not(.disabled),
903
- .ui.secondary.inverted.menu a.item:not(.disabled) {
904
- color: @secondaryInvertedColor;
647
+ border-left: @tabularBorderWidth solid transparent;
648
+ border-right: @tabularBorderWidth solid transparent;
649
+ border-top: @tabularOppositeBorderWidth solid transparent;
650
+ padding: @tabularVerticalPadding @tabularHorizontalPadding;
651
+ color: @tabularTextColor;
905
652
  }
906
- .ui.secondary.inverted.menu .dropdown.item:hover,
907
- .ui.secondary.inverted.menu .link.item:hover,
908
- .ui.secondary.inverted.menu a.item:hover {
909
- background: @secondaryInvertedHoverBackground;
910
- color: @secondaryInvertedHoverColor;
653
+ .ui.tabular.menu .item::before {
654
+ display: none;
911
655
  }
912
- .ui.secondary.inverted.menu .active.item {
913
- background: @secondaryInvertedActiveBackground;
914
- color: @secondaryInvertedActiveColor;
656
+
657
+ /* Hover */
658
+ .ui.tabular.menu .item:hover {
659
+ background-color: transparent;
660
+ color: @tabularHoveredTextColor;
915
661
  }
916
- }
917
- /* Fix item margins */
918
- .ui.secondary.item.menu {
919
- margin-left: 0;
920
- margin-right: 0;
921
- }
922
- .ui.secondary.item.menu .item:last-child {
923
- margin-right: 0;
924
- }
925
- & when (@variationMenuAttached) {
926
- .ui.secondary.attached.menu {
927
- box-shadow: none;
662
+
663
+ /* Active */
664
+ .ui.tabular.menu .active.item {
665
+ background: @tabularActiveBackground;
666
+ color: @tabularActiveColor;
667
+ border-top-width: @tabularBorderWidth;
668
+ border-color: @tabularBorderColor;
669
+ font-weight: @tabularActiveWeight;
670
+ margin-bottom: -@tabularBorderWidth;
671
+ box-shadow: @tabularActiveBoxShadow;
672
+ border-radius: @tabularBorderRadius @tabularBorderRadius 0 0 !important;
673
+ &:hover {
674
+ cursor: default;
675
+ }
928
676
  }
929
- }
930
- & when (@variationMenuVertical) {
931
- /*---------------------
932
- Secondary Vertical
933
- -----------------------*/
934
677
 
935
- /* Sub Menu */
936
- .ui.vertical.secondary.menu .item:not(.dropdown) > .menu {
937
- margin: @secondaryMenuSubMenuMargin;
678
+ /* Coupling with segment for attachment */
679
+ .ui.tabular.menu ~ .attached:not(.top).segment {
680
+ border-top: none;
681
+ margin-left: 0;
682
+ margin-top: 0;
683
+ margin-right: 0;
684
+ width: 100%;
938
685
  }
939
- .ui.vertical.secondary.menu .item:not(.dropdown) > .menu > .item {
940
- margin: @secondaryMenuSubMenuItemMargin;
941
- padding: @secondaryMenuSubMenuItemPadding;
686
+ .top.attached.segment + .ui.bottom.tabular.menu {
687
+ position: relative;
688
+ width: @tabularFluidWidth;
689
+ left: -@tabularFluidOffset;
942
690
  }
943
691
 
944
-
945
- .ui.secondary.vertical.menu > .item {
946
- border: none;
947
- margin: @secondaryVerticalItemMargin;
948
- border-radius: @secondaryVerticalItemBorderRadius !important;
692
+ /* Bottom Vertical Tabular */
693
+ .ui.bottom.tabular.menu {
694
+ background: @tabularBackground;
695
+ border-radius: 0;
696
+ box-shadow: none !important;
697
+ border-bottom: none;
698
+ border-top: @tabularBorderWidth solid @tabularBorderColor;
699
+ }
700
+ .ui.bottom.tabular.menu .item {
701
+ background: none;
702
+ border-left: @tabularBorderWidth solid transparent;
703
+ border-right: @tabularBorderWidth solid transparent;
704
+ border-bottom: @tabularBorderWidth solid transparent;
705
+ border-top: none;
706
+ }
707
+ .ui.bottom.tabular.menu .active.item {
708
+ background: @tabularActiveBackground;
709
+ color: @tabularActiveColor;
710
+ border-color: @tabularBorderColor;
711
+ margin: -@tabularBorderWidth 0 0 0;
712
+ border-radius: 0 0 @tabularBorderRadius @tabularBorderRadius !important;
949
713
  }
950
- .ui.secondary.vertical.menu > .header.item {
951
- border-radius: 0;
714
+ & when (@variationMenuVertical) {
715
+ /* Vertical Tabular (Left) */
716
+ .ui.vertical.tabular.menu {
717
+ background: @tabularVerticalBackground;
718
+ border-radius: 0;
719
+ box-shadow: none !important;
720
+ border-bottom: none;
721
+ border-right: @tabularBorderWidth solid @tabularBorderColor;
722
+ }
723
+ .ui.vertical.tabular.menu .item {
724
+ background: none;
725
+ border-left: @tabularBorderWidth solid transparent;
726
+ border-bottom: @tabularBorderWidth solid transparent;
727
+ border-top: @tabularBorderWidth solid transparent;
728
+ border-right: none;
729
+ }
730
+ .ui.vertical.tabular.menu .active.item {
731
+ background: @tabularActiveBackground;
732
+ color: @tabularActiveColor;
733
+ border-color: @tabularBorderColor;
734
+ margin: 0 -@tabularBorderWidth 0 0;
735
+ border-radius: @tabularBorderRadius 0 0 @tabularBorderRadius !important;
736
+ }
737
+
738
+ /* Vertical Right Tabular */
739
+ .ui.vertical.right.tabular.menu {
740
+ background: @tabularVerticalBackground;
741
+ border-radius: 0;
742
+ box-shadow: none !important;
743
+ border-bottom: none;
744
+ border-right: none;
745
+ border-left: @tabularBorderWidth solid @tabularBorderColor;
746
+ }
747
+ .ui.vertical.right.tabular.menu .item {
748
+ background: none;
749
+ border-right: @tabularBorderWidth solid transparent;
750
+ border-bottom: @tabularBorderWidth solid transparent;
751
+ border-top: @tabularBorderWidth solid transparent;
752
+ border-left: none;
753
+ }
754
+ .ui.vertical.right.tabular.menu .active.item {
755
+ background: @tabularActiveBackground;
756
+ color: @tabularActiveColor;
757
+ border-color: @tabularBorderColor;
758
+ margin: 0 0 0 -@tabularBorderWidth;
759
+ border-radius: 0 @tabularBorderRadius @tabularBorderRadius 0 !important;
760
+ }
952
761
  }
953
762
 
954
- /* Sub Menu */
955
- .ui.vertical.secondary.menu .item > .menu .item {
956
- background-color: transparent;
763
+ /* Dropdown */
764
+ .ui.tabular.menu .active.dropdown.item {
765
+ margin-bottom: 0;
766
+ border-left: @tabularBorderWidth solid transparent;
767
+ border-right: @tabularBorderWidth solid transparent;
768
+ border-top: @tabularOppositeBorderWidth solid transparent;
769
+ border-bottom: none;
957
770
  }
958
771
  & when (@variationMenuInverted) {
959
- /* Inverted */
960
- .ui.secondary.inverted.menu {
961
- background-color: transparent;
962
- }
772
+ .ui.inverted.tabular.menu .active.item,
773
+ .ui.inverted.tabular.menu .active.item:hover {
774
+ background: @invertedTabularActiveBackground;
775
+ border-color: @invertedTabularBorderColor;
776
+ }
777
+ .ui.inverted.tabular.menu .item:not(.active):hover {
778
+ color: @invertedTabularHoveredTextColor;
779
+ background: transparent;
780
+ cursor: pointer;
781
+ }
963
782
  }
964
- }
783
+ }
965
784
 
966
- & when (@variationMenuPointing) {
967
- /*---------------------
968
- Secondary Pointing
969
- -----------------------*/
785
+ & when (@variationMenuPagination) {
786
+ /* --------------
787
+ Pagination
788
+ --------------- */
970
789
 
971
- .ui.secondary.pointing.menu {
972
- margin-left: 0;
973
- margin-right: 0;
974
- border-bottom: @secondaryPointingBorderWidth solid @secondaryPointingBorderColor;
790
+ .ui.pagination.menu {
791
+ margin: 0;
792
+ display: inline-flex;
793
+ vertical-align: middle;
794
+ }
795
+ .ui.pagination.menu .item:last-child {
796
+ border-radius: 0 @borderRadius @borderRadius 0;
797
+ }
798
+ .ui.compact.menu .item:last-child {
799
+ border-radius: 0 @borderRadius @borderRadius 0;
800
+ }
801
+ .ui.pagination.menu .item:last-child::before {
802
+ display: none;
975
803
  }
976
804
 
977
- .ui.secondary.pointing.menu .item {
978
- border-bottom-color: transparent;
979
- border-bottom-style: solid;
980
- border-radius: 0;
981
- align-self: flex-end;
982
-
983
- margin: 0 0 -@secondaryPointingBorderWidth;
984
- padding: @secondaryPointingItemVerticalPadding @secondaryPointingItemHorizontalPadding;
985
- border-bottom-width: @secondaryPointingBorderWidth;
986
- transition: @secondaryItemTransition;
805
+ .ui.pagination.menu .item {
806
+ min-width: @paginationMinWidth;
807
+ text-align: center;
987
808
  }
988
- .ui.secondary.pointing.menu .ui.dropdown .menu .item {
989
- border-bottom-width: 0;
809
+ .ui.pagination.menu .icon.item i.icon {
810
+ vertical-align: top;
990
811
  }
991
812
 
992
- .ui.secondary.pointing.menu .item > .label:not(.floating) {
993
- margin-top: -@labelVerticalPadding;
994
- margin-bottom: -@labelVerticalPadding;
813
+ /* Active */
814
+ .ui.pagination.menu .active.item {
815
+ border-top: none;
816
+ padding-top: @itemVerticalPadding;
817
+ background-color: @paginationActiveBackground;
818
+ color: @paginationActiveTextColor;
819
+ box-shadow: none;
995
820
  }
996
- .ui.secondary.pointing.menu .item > .circular.label {
997
- margin-top: -@circularLabelVerticalPadding;
998
- margin-bottom: -@circularLabelVerticalPadding;
821
+ }
822
+
823
+ & when (@variationMenuSecondary) {
824
+ /* --------------
825
+ Secondary
826
+ --------------- */
827
+
828
+ .ui.secondary.menu {
829
+ background: @secondaryBackground;
830
+ margin-left: -@secondaryItemSpacing;
831
+ margin-right: -@secondaryItemSpacing;
832
+ border-radius: 0;
833
+ border: none;
834
+ box-shadow: none;
999
835
  }
1000
836
 
1001
- /* Item Types */
1002
- .ui.secondary.pointing.menu .header.item {
1003
- color: @secondaryPointingHeaderColor !important;
837
+ /* Item */
838
+ .ui.secondary.menu .item {
839
+ align-self: center;
840
+ box-shadow: none;
841
+ border: none;
842
+ padding: @secondaryItemPadding;
843
+ margin: @secondaryItemMargin;
844
+ background: @secondaryItemBackground;
845
+ transition: @secondaryItemTransition;
846
+ border-radius: @secondaryItemBorderRadius;
1004
847
  }
1005
- .ui.secondary.pointing.menu .text.item {
1006
- box-shadow: none !important;
848
+
849
+ /* No Divider */
850
+ .ui.secondary.menu .item::before {
851
+ display: none !important;
1007
852
  }
1008
- .ui.secondary.pointing.menu .item::after {
1009
- display: none;
853
+
854
+ /* Header */
855
+ .ui.secondary.menu .header.item {
856
+ border-radius: 0;
857
+ border-right: @secondaryHeaderBorder;
858
+ background: @secondaryHeaderBackground;
1010
859
  }
1011
860
 
1012
- /* Hover */
1013
- .ui.secondary.pointing.menu .dropdown.item:hover,
1014
- .ui.secondary.pointing.menu .link.item:hover,
1015
- .ui.secondary.pointing.menu a.item:hover {
1016
- background-color: transparent;
1017
- color: @secondaryPointingHoverTextColor;
861
+ /* Image */
862
+ .ui.secondary.menu .item > img:not(.ui) {
863
+ margin: 0;
1018
864
  }
1019
865
 
1020
- /* Pressed */
1021
- .ui.secondary.pointing.menu .dropdown.item:active,
1022
- .ui.secondary.pointing.menu .link.item:active,
1023
- .ui.secondary.pointing.menu a.item:active {
1024
- background-color: transparent;
1025
- border-color: @secondaryPointingBorderColor;
866
+ /* Hover */
867
+ .ui.secondary.menu .dropdown.item:hover,
868
+ .ui.secondary.menu .link.item:hover,
869
+ .ui.secondary.menu a.item:hover {
870
+ background: @secondaryHoverItemBackground;
871
+ color: @secondaryHoverItemColor;
1026
872
  }
1027
873
 
1028
874
  /* Active */
1029
- .ui.secondary.pointing.menu .active.item {
1030
- background-color: transparent;
1031
- box-shadow: none;
1032
- border-color: @secondaryPointingActiveBorderColor;
1033
- font-weight: @secondaryPointingActiveFontWeight;
1034
- color: @secondaryPointingActiveTextColor;
875
+ .ui.secondary.menu .active.item {
876
+ box-shadow: none;
877
+ background: @secondaryActiveItemBackground;
878
+ color: @secondaryActiveItemColor;
879
+ border-radius: @secondaryItemBorderRadius;
1035
880
  }
1036
881
 
1037
882
  /* Active Hover */
1038
- .ui.secondary.pointing.menu .active.item:hover {
1039
- border-color: @secondaryPointingActiveHoverBorderColor;
1040
- color: @secondaryPointingActiveHoverTextColor;
883
+ .ui.secondary.menu .active.item:hover {
884
+ box-shadow: none;
885
+ background: @secondaryActiveHoverItemBackground;
886
+ color: @secondaryActiveHoverItemColor;
1041
887
  }
1042
888
 
1043
- /* Active Dropdown */
1044
- .ui.secondary.pointing.menu .active.dropdown.item {
1045
- border-color: @secondaryPointingActiveDropdownBorderColor;
889
+ & when (@variationMenuInverted) {
890
+ /* Inverted */
891
+ .ui.secondary.inverted.menu .link.item:not(.disabled),
892
+ .ui.secondary.inverted.menu a.item:not(.disabled) {
893
+ color: @secondaryInvertedColor;
894
+ }
895
+ .ui.secondary.inverted.menu .dropdown.item:hover,
896
+ .ui.secondary.inverted.menu .link.item:hover,
897
+ .ui.secondary.inverted.menu a.item:hover {
898
+ background: @secondaryInvertedHoverBackground;
899
+ color: @secondaryInvertedHoverColor;
900
+ }
901
+ .ui.secondary.inverted.menu .active.item {
902
+ background: @secondaryInvertedActiveBackground;
903
+ color: @secondaryInvertedActiveColor;
904
+ }
1046
905
  }
1047
- & when (@variationMenuVertical) {
1048
- /* Vertical Pointing */
1049
- .ui.secondary.vertical.pointing.menu {
1050
- border-bottom-width: 0;
1051
- border-right-width: @secondaryPointingBorderWidth;
1052
- border-right-style: solid;
1053
- border-right-color: @secondaryPointingBorderColor;
1054
- }
1055
- .ui.secondary.vertical.pointing.menu .item {
1056
- border-bottom: none;
1057
- border-right-style: solid;
1058
- border-right-color: transparent;
1059
- border-radius: 0 !important;
1060
- margin: @secondaryVerticalPointingItemMargin;
1061
- border-right-width: @secondaryPointingBorderWidth;
1062
- }
1063
906
 
1064
- /* Vertical Active */
1065
- .ui.secondary.vertical.pointing.menu .active.item {
1066
- border-color: @secondaryPointingActiveBorderColor;
1067
- }
907
+ /* Fix item margins */
908
+ .ui.secondary.item.menu {
909
+ margin-left: 0;
910
+ margin-right: 0;
1068
911
  }
1069
- & when (@variationMenuInverted) {
1070
- /* Inverted */
1071
- .ui.secondary.inverted.pointing.menu {
1072
- border-color: @secondaryPointingInvertedBorderColor;
1073
- }
1074
-
1075
- .ui.secondary.inverted.pointing.menu .item:not(.disabled) {
1076
- color: @secondaryPointingInvertedItemTextColor;
1077
- }
1078
- .ui.secondary.inverted.pointing.menu .header.item {
1079
- color: @secondaryPointingInvertedItemHeaderColor !important;
1080
- }
1081
-
1082
- /* Hover */
1083
- .ui.secondary.inverted.pointing.menu .link.item:hover,
1084
- .ui.secondary.inverted.pointing.menu a.item:hover {
1085
- color: @secondaryPointingInvertedItemHoverTextColor;
1086
- }
1087
-
1088
-
1089
- /* Active */
1090
- .ui.ui.secondary.inverted.pointing.menu .active.item {
1091
- border-color: @secondaryPointingInvertedActiveBorderColor;
1092
- color: @secondaryPointingInvertedActiveColor;
1093
- background-color: transparent;
1094
- }
912
+ .ui.secondary.item.menu .item:last-child {
913
+ margin-right: 0;
1095
914
  }
1096
- }
1097
- }
915
+ & when (@variationMenuAttached) {
916
+ .ui.secondary.attached.menu {
917
+ box-shadow: none;
918
+ }
919
+ }
920
+ & when (@variationMenuVertical) {
921
+ /* ---------------------
922
+ Secondary Vertical
923
+ ----------------------- */
1098
924
 
1099
- & when (@variationMenuText) {
1100
- /*--------------
1101
- Text Menu
1102
- ---------------*/
925
+ /* Sub Menu */
926
+ .ui.vertical.secondary.menu .item:not(.dropdown) > .menu {
927
+ margin: @secondaryMenuSubMenuMargin;
928
+ }
929
+ .ui.vertical.secondary.menu .item:not(.dropdown) > .menu > .item {
930
+ margin: @secondaryMenuSubMenuItemMargin;
931
+ padding: @secondaryMenuSubMenuItemPadding;
932
+ }
1103
933
 
1104
- .ui.text.menu {
1105
- background: none transparent;
1106
- border-radius: 0;
1107
- box-shadow: none;
1108
- border: none;
934
+ .ui.secondary.vertical.menu > .item {
935
+ border: none;
936
+ margin: @secondaryVerticalItemMargin;
937
+ border-radius: @secondaryVerticalItemBorderRadius !important;
938
+ }
939
+ .ui.secondary.vertical.menu > .header.item {
940
+ border-radius: 0;
941
+ }
1109
942
 
1110
- margin: @textMenuMargin;
1111
- }
1112
- .ui.text.menu .item {
1113
- border-radius: 0;
1114
- box-shadow: none;
1115
- align-self: center;
1116
- margin: @textMenuItemMargin;
1117
- padding: @textMenuItemPadding;
1118
- font-weight: @textMenuItemFontWeight;
1119
- color: @textMenuItemColor;
1120
- transition: @textMenuItemTransition;
1121
- }
943
+ /* Sub Menu */
944
+ .ui.vertical.secondary.menu .item > .menu .item {
945
+ background-color: transparent;
946
+ }
947
+ & when (@variationMenuInverted) {
948
+ /* Inverted */
949
+ .ui.secondary.inverted.menu {
950
+ background-color: transparent;
951
+ }
952
+ }
953
+ }
1122
954
 
1123
- /* Border */
1124
- .ui.text.menu .item::before,
1125
- .ui.text.menu .menu .item::before {
1126
- display: none !important;
1127
- }
955
+ & when (@variationMenuPointing) {
956
+ /* ---------------------
957
+ Secondary Pointing
958
+ ----------------------- */
1128
959
 
1129
- /* Header */
1130
- .ui.text.menu .header.item {
1131
- background-color: transparent;
1132
- opacity: 1;
1133
- color: @textMenuHeaderColor;
1134
- font-size: @textMenuHeaderSize;
1135
- text-transform: @textMenuHeaderTextTransform;
1136
- font-weight: @textMenuHeaderFontWeight;
1137
- }
960
+ .ui.secondary.pointing.menu {
961
+ margin-left: 0;
962
+ margin-right: 0;
963
+ border-bottom: @secondaryPointingBorderWidth solid @secondaryPointingBorderColor;
964
+ }
1138
965
 
1139
- /* Image */
1140
- .ui.text.menu .item > img:not(.ui) {
1141
- margin: 0;
1142
- }
966
+ .ui.secondary.pointing.menu .item {
967
+ border-bottom-color: transparent;
968
+ border-bottom-style: solid;
969
+ border-radius: 0;
970
+ align-self: flex-end;
1143
971
 
1144
- /*--- fluid text ---*/
1145
- .ui.text.item.menu .item {
1146
- margin: 0;
1147
- }
1148
- & when (@variationMenuVertical) {
1149
- /*--- vertical text ---*/
1150
- .ui.vertical.text.menu {
1151
- margin: @textVerticalMenuMargin;
972
+ margin: 0 0 -@secondaryPointingBorderWidth;
973
+ padding: @secondaryPointingItemVerticalPadding @secondaryPointingItemHorizontalPadding;
974
+ border-bottom-width: @secondaryPointingBorderWidth;
975
+ transition: @secondaryItemTransition;
976
+ }
977
+ .ui.secondary.pointing.menu .ui.dropdown .menu .item {
978
+ border-bottom-width: 0;
979
+ }
980
+
981
+ .ui.secondary.pointing.menu .item > .label:not(.floating) {
982
+ margin-top: -@labelVerticalPadding;
983
+ margin-bottom: -@labelVerticalPadding;
984
+ }
985
+ .ui.secondary.pointing.menu .item > .circular.label {
986
+ margin-top: -@circularLabelVerticalPadding;
987
+ margin-bottom: -@circularLabelVerticalPadding;
988
+ }
989
+
990
+ /* Item Types */
991
+ .ui.secondary.pointing.menu .header.item {
992
+ color: @secondaryPointingHeaderColor !important;
993
+ }
994
+ .ui.secondary.pointing.menu .text.item {
995
+ box-shadow: none !important;
996
+ }
997
+ .ui.secondary.pointing.menu .item::after {
998
+ display: none;
999
+ }
1000
+
1001
+ /* Hover */
1002
+ .ui.secondary.pointing.menu .dropdown.item:hover,
1003
+ .ui.secondary.pointing.menu .link.item:hover,
1004
+ .ui.secondary.pointing.menu a.item:hover {
1005
+ background-color: transparent;
1006
+ color: @secondaryPointingHoverTextColor;
1007
+ }
1008
+
1009
+ /* Pressed */
1010
+ .ui.secondary.pointing.menu .dropdown.item:active,
1011
+ .ui.secondary.pointing.menu .link.item:active,
1012
+ .ui.secondary.pointing.menu a.item:active {
1013
+ background-color: transparent;
1014
+ border-color: @secondaryPointingBorderColor;
1015
+ }
1016
+
1017
+ /* Active */
1018
+ .ui.secondary.pointing.menu .active.item {
1019
+ background-color: transparent;
1020
+ box-shadow: none;
1021
+ border-color: @secondaryPointingActiveBorderColor;
1022
+ font-weight: @secondaryPointingActiveFontWeight;
1023
+ color: @secondaryPointingActiveTextColor;
1024
+ }
1025
+
1026
+ /* Active Hover */
1027
+ .ui.secondary.pointing.menu .active.item:hover {
1028
+ border-color: @secondaryPointingActiveHoverBorderColor;
1029
+ color: @secondaryPointingActiveHoverTextColor;
1030
+ }
1031
+
1032
+ /* Active Dropdown */
1033
+ .ui.secondary.pointing.menu .active.dropdown.item {
1034
+ border-color: @secondaryPointingActiveDropdownBorderColor;
1035
+ }
1036
+ & when (@variationMenuVertical) {
1037
+ /* Vertical Pointing */
1038
+ .ui.secondary.vertical.pointing.menu {
1039
+ border-bottom-width: 0;
1040
+ border-right-width: @secondaryPointingBorderWidth;
1041
+ border-right-style: solid;
1042
+ border-right-color: @secondaryPointingBorderColor;
1043
+ }
1044
+ .ui.secondary.vertical.pointing.menu .item {
1045
+ border-bottom: none;
1046
+ border-right-style: solid;
1047
+ border-right-color: transparent;
1048
+ border-radius: 0 !important;
1049
+ margin: @secondaryVerticalPointingItemMargin;
1050
+ border-right-width: @secondaryPointingBorderWidth;
1051
+ }
1052
+
1053
+ /* Vertical Active */
1054
+ .ui.secondary.vertical.pointing.menu .active.item {
1055
+ border-color: @secondaryPointingActiveBorderColor;
1056
+ }
1057
+ }
1058
+ & when (@variationMenuInverted) {
1059
+ /* Inverted */
1060
+ .ui.secondary.inverted.pointing.menu {
1061
+ border-color: @secondaryPointingInvertedBorderColor;
1062
+ }
1063
+
1064
+ .ui.secondary.inverted.pointing.menu .item:not(.disabled) {
1065
+ color: @secondaryPointingInvertedItemTextColor;
1066
+ }
1067
+ .ui.secondary.inverted.pointing.menu .header.item {
1068
+ color: @secondaryPointingInvertedItemHeaderColor !important;
1069
+ }
1070
+
1071
+ /* Hover */
1072
+ .ui.secondary.inverted.pointing.menu .link.item:hover,
1073
+ .ui.secondary.inverted.pointing.menu a.item:hover {
1074
+ color: @secondaryPointingInvertedItemHoverTextColor;
1075
+ }
1076
+
1077
+ /* Active */
1078
+ .ui.ui.secondary.inverted.pointing.menu .active.item {
1079
+ border-color: @secondaryPointingInvertedActiveBorderColor;
1080
+ color: @secondaryPointingInvertedActiveColor;
1081
+ background-color: transparent;
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+
1087
+ & when (@variationMenuText) {
1088
+ /* --------------
1089
+ Text Menu
1090
+ --------------- */
1091
+
1092
+ .ui.text.menu {
1093
+ background: none transparent;
1094
+ border-radius: 0;
1095
+ box-shadow: none;
1096
+ border: none;
1097
+
1098
+ margin: @textMenuMargin;
1152
1099
  }
1153
- .ui.vertical.text.menu:first-child {
1154
- margin-top: 0;
1100
+ .ui.text.menu .item {
1101
+ border-radius: 0;
1102
+ box-shadow: none;
1103
+ align-self: center;
1104
+ margin: @textMenuItemMargin;
1105
+ padding: @textMenuItemPadding;
1106
+ font-weight: @textMenuItemFontWeight;
1107
+ color: @textMenuItemColor;
1108
+ transition: @textMenuItemTransition;
1155
1109
  }
1156
- .ui.vertical.text.menu:last-child {
1157
- margin-bottom: 0;
1110
+
1111
+ /* Border */
1112
+ .ui.text.menu .item::before,
1113
+ .ui.text.menu .menu .item::before {
1114
+ display: none !important;
1158
1115
  }
1159
- .ui.vertical.text.menu .item {
1160
- margin: @textVerticalMenuItemMargin;
1161
- padding-left: 0;
1162
- padding-right: 0;
1116
+
1117
+ /* Header */
1118
+ .ui.text.menu .header.item {
1119
+ background-color: transparent;
1120
+ opacity: 1;
1121
+ color: @textMenuHeaderColor;
1122
+ font-size: @textMenuHeaderSize;
1123
+ text-transform: @textMenuHeaderTextTransform;
1124
+ font-weight: @textMenuHeaderFontWeight;
1163
1125
  }
1164
- .ui.vertical.text.menu .item > i.icon {
1165
- float: @textVerticalMenuIconFloat;
1166
- margin: @iconMargin;
1126
+
1127
+ /* Image */
1128
+ .ui.text.menu .item > img:not(.ui) {
1129
+ margin: 0;
1167
1130
  }
1168
- .ui.vertical.text.menu .header.item {
1169
- margin: @textVerticalMenuHeaderMargin;
1131
+
1132
+ /* --- fluid text --- */
1133
+ .ui.text.item.menu .item {
1134
+ margin: 0;
1170
1135
  }
1136
+ & when (@variationMenuVertical) {
1137
+ /* --- vertical text --- */
1138
+ .ui.vertical.text.menu {
1139
+ margin: @textVerticalMenuMargin;
1140
+ }
1141
+ .ui.vertical.text.menu:first-child {
1142
+ margin-top: 0;
1143
+ }
1144
+ .ui.vertical.text.menu:last-child {
1145
+ margin-bottom: 0;
1146
+ }
1147
+ .ui.vertical.text.menu .item {
1148
+ margin: @textVerticalMenuItemMargin;
1149
+ padding-left: 0;
1150
+ padding-right: 0;
1151
+ }
1152
+ .ui.vertical.text.menu .item > i.icon {
1153
+ float: @textVerticalMenuIconFloat;
1154
+ margin: @iconMargin;
1155
+ }
1156
+ .ui.vertical.text.menu .header.item {
1157
+ margin: @textVerticalMenuHeaderMargin;
1158
+ }
1171
1159
 
1172
- /* Vertical Sub Menu */
1173
- .ui.vertical.text.menu .item:not(.dropdown) > .menu {
1174
- margin: @textMenuSubMenuMargin;
1160
+ /* Vertical Sub Menu */
1161
+ .ui.vertical.text.menu .item:not(.dropdown) > .menu {
1162
+ margin: @textMenuSubMenuMargin;
1163
+ }
1164
+ .ui.vertical.text.menu .item:not(.dropdown) > .menu > .item {
1165
+ margin: @textMenuSubMenuItemMargin;
1166
+ padding: @textMenuSubMenuItemPadding;
1167
+ }
1175
1168
  }
1176
- .ui.vertical.text.menu .item:not(.dropdown) > .menu > .item {
1177
- margin: @textMenuSubMenuItemMargin;
1178
- padding: @textMenuSubMenuItemPadding;
1169
+
1170
+ /* --- hover --- */
1171
+ .ui.text.menu .item:hover {
1172
+ opacity: 1;
1173
+ background-color: transparent;
1179
1174
  }
1180
- }
1181
- /*--- hover ---*/
1182
- .ui.text.menu .item:hover {
1183
- opacity: 1;
1184
- background-color: transparent;
1185
- }
1186
1175
 
1187
- /*--- active ---*/
1188
- .ui.text.menu .active.item {
1189
- background-color: transparent;
1190
- border: none;
1191
- box-shadow: none;
1192
- font-weight: @textMenuActiveItemFontWeight;
1193
- color: @textMenuActiveItemColor;
1194
- }
1176
+ /* --- active --- */
1177
+ .ui.text.menu .active.item {
1178
+ background-color: transparent;
1179
+ border: none;
1180
+ box-shadow: none;
1181
+ font-weight: @textMenuActiveItemFontWeight;
1182
+ color: @textMenuActiveItemColor;
1183
+ }
1195
1184
 
1196
- /*--- active hover ---*/
1197
- .ui.text.menu .active.item:hover {
1198
- background-color: transparent;
1199
- }
1200
- & when (@variationMenuPointing) {
1201
- /* Disable Bariations */
1202
- .ui.text.pointing.menu .active.item::after {
1203
- box-shadow: none;
1185
+ /* --- active hover --- */
1186
+ .ui.text.menu .active.item:hover {
1187
+ background-color: transparent;
1204
1188
  }
1205
- }
1206
- & when (@variationMenuAttached) {
1207
- .ui.text.attached.menu {
1208
- box-shadow: none;
1189
+ & when (@variationMenuPointing) {
1190
+ /* Disable Bariations */
1191
+ .ui.text.pointing.menu .active.item::after {
1192
+ box-shadow: none;
1193
+ }
1209
1194
  }
1210
- }
1211
- & when (@variationMenuInverted) {
1212
- /* Inverted */
1213
- .ui.inverted.text.menu,
1214
- .ui.inverted.text.menu .item,
1215
- .ui.inverted.text.menu .item:hover,
1216
- .ui.inverted.text.menu .active.item {
1217
- background-color: transparent;
1195
+ & when (@variationMenuAttached) {
1196
+ .ui.text.attached.menu {
1197
+ box-shadow: none;
1198
+ }
1218
1199
  }
1219
- }
1220
- & when (@variationMenuFluid) {
1221
- /* Fluid */
1222
- .ui.fluid.text.menu {
1223
- margin-left: 0;
1224
- margin-right: 0;
1200
+ & when (@variationMenuInverted) {
1201
+ /* Inverted */
1202
+ .ui.inverted.text.menu,
1203
+ .ui.inverted.text.menu .item,
1204
+ .ui.inverted.text.menu .item:hover,
1205
+ .ui.inverted.text.menu .active.item {
1206
+ background-color: transparent;
1207
+ }
1208
+ }
1209
+ & when (@variationMenuFluid) {
1210
+ /* Fluid */
1211
+ .ui.fluid.text.menu {
1212
+ margin-left: 0;
1213
+ margin-right: 0;
1214
+ }
1225
1215
  }
1226
- }
1227
1216
  }
1228
1217
 
1229
1218
  & when (@variationMenuIcon) {
1230
- /*--------------
1231
- Icon Only
1232
- ---------------*/
1219
+ /* --------------
1220
+ Icon Only
1221
+ --------------- */
1233
1222
 
1234
- & when (@variationMenuVertical) {
1235
- /* Vertical Menu */
1236
- .ui.vertical.icon.menu {
1237
- display: inline-block;
1238
- width: auto;
1223
+ & when (@variationMenuVertical) {
1224
+ /* Vertical Menu */
1225
+ .ui.vertical.icon.menu {
1226
+ display: inline-block;
1227
+ width: auto;
1228
+ }
1239
1229
  }
1240
- }
1241
1230
 
1242
- /* Item */
1243
- .ui.icon.menu .item {
1244
- height: auto;
1245
- text-align: @iconMenuTextAlign;
1246
- color: @iconMenuItemColor;
1247
- }
1231
+ /* Item */
1232
+ .ui.icon.menu .item {
1233
+ height: auto;
1234
+ text-align: @iconMenuTextAlign;
1235
+ color: @iconMenuItemColor;
1236
+ }
1248
1237
 
1249
- /* Icon */
1250
- .ui.icon.menu .item > i.icon:not(.dropdown) {
1251
- margin: 0;
1252
- opacity: 1;
1253
- }
1238
+ /* Icon */
1239
+ .ui.icon.menu .item > i.icon:not(.dropdown) {
1240
+ margin: 0;
1241
+ opacity: 1;
1242
+ }
1254
1243
 
1255
- /* Icon Glyph */
1256
- .ui.icon.menu i.icon::before {
1257
- opacity: 1;
1258
- }
1244
+ /* Icon Glyph */
1245
+ .ui.icon.menu i.icon::before {
1246
+ opacity: 1;
1247
+ }
1259
1248
 
1260
- /* (x) Item Icon */
1261
- .ui.menu .icon.item > i.icon {
1262
- width: auto;
1263
- margin: 0 auto;
1264
- }
1249
+ /* (x) Item Icon */
1250
+ .ui.menu .icon.item > i.icon {
1251
+ width: auto;
1252
+ margin: 0 auto;
1253
+ }
1265
1254
 
1266
- /* Vertical Icon */
1267
- & when (@variationMenuVertical) {
1268
- .ui.vertical.icon.menu .item > i.icon:not(.dropdown) {
1269
- display: block;
1270
- opacity: 1;
1271
- margin: 0 auto;
1272
- float: none;
1255
+ /* Vertical Icon */
1256
+ & when (@variationMenuVertical) {
1257
+ .ui.vertical.icon.menu .item > i.icon:not(.dropdown) {
1258
+ display: block;
1259
+ opacity: 1;
1260
+ margin: 0 auto;
1261
+ float: none;
1262
+ }
1273
1263
  }
1274
- }
1275
1264
 
1276
- /* Inverted */
1277
- & when (@variationMenuInverted) {
1278
- .ui.inverted.icon.menu .item {
1279
- color: @iconMenuInvertedItemColor;
1265
+ /* Inverted */
1266
+ & when (@variationMenuInverted) {
1267
+ .ui.inverted.icon.menu .item {
1268
+ color: @iconMenuInvertedItemColor;
1269
+ }
1280
1270
  }
1281
- }
1282
1271
  }
1283
1272
 
1284
1273
  & when (@variationMenuLabeled) {
1285
- /*--------------
1286
- Labeled Icon
1287
- ---------------*/
1274
+ /* --------------
1275
+ Labeled Icon
1276
+ --------------- */
1288
1277
 
1289
- /* Menu */
1290
- .ui.labeled.icon.menu {
1291
- text-align: center;
1292
- }
1278
+ /* Menu */
1279
+ .ui.labeled.icon.menu {
1280
+ text-align: center;
1281
+ }
1293
1282
 
1294
- /* Item */
1295
- .ui.labeled.icon.menu .item {
1296
- min-width: @labeledIconMinWidth;
1297
- flex-direction: column;
1298
- }
1283
+ /* Item */
1284
+ .ui.labeled.icon.menu .item {
1285
+ min-width: @labeledIconMinWidth;
1286
+ flex-direction: column;
1287
+ }
1299
1288
 
1300
- /* Icon */
1301
- .ui.labeled.icon.menu > .item > i.icon:not(.dropdown) {
1302
- height: 1em;
1303
- display: block;
1304
- font-size: @labeledIconSize !important;
1305
- margin: 0 auto @labeledIconTextMargin !important;
1306
- }
1307
- & when (@variationMenuFluid) {
1308
- /* Fluid */
1309
- .ui.fluid.labeled.icon.menu > .item {
1310
- min-width: 0;
1289
+ /* Icon */
1290
+ .ui.labeled.icon.menu > .item > i.icon:not(.dropdown) {
1291
+ height: 1em;
1292
+ display: block;
1293
+ font-size: @labeledIconSize !important;
1294
+ margin: 0 auto @labeledIconTextMargin !important;
1295
+ }
1296
+ & when (@variationMenuFluid) {
1297
+ /* Fluid */
1298
+ .ui.fluid.labeled.icon.menu > .item {
1299
+ min-width: 0;
1300
+ }
1311
1301
  }
1312
- }
1313
1302
  }
1314
1303
 
1315
-
1316
1304
  /*******************************
1317
1305
  Variations
1318
1306
  *******************************/
1319
1307
 
1320
1308
  & when (@variationMenuStackable) {
1321
- /*--------------
1322
- Stackable
1323
- ---------------*/
1309
+ /* --------------
1310
+ Stackable
1311
+ --------------- */
1324
1312
 
1325
- @media only screen and (max-width: @largestMobileScreen) {
1326
- .ui.stackable.menu {
1327
- flex-direction: column;
1313
+ @media only screen and (max-width: @largestMobileScreen) {
1314
+ .ui.stackable.menu {
1315
+ flex-direction: column;
1328
1316
 
1329
- &.pointing .active.item::after when (@variationMenuPointing) {
1330
- display: none;
1331
- }
1332
- }
1333
- .ui.stackable.menu .item {
1334
- width: 100% !important;
1335
- }
1336
- .ui.stackable.menu .item::before {
1337
- position: absolute;
1338
- content: '';
1339
- top: auto;
1340
- bottom: 0;
1341
- left: 0;
1342
- width: 100%;
1343
- height: @dividerSize;
1344
- background: @verticalDividerBackground;
1345
- }
1317
+ &.pointing .active.item::after when (@variationMenuPointing) {
1318
+ display: none;
1319
+ }
1320
+ }
1321
+ .ui.stackable.menu .item {
1322
+ width: 100% !important;
1323
+ }
1324
+ .ui.stackable.menu .item::before {
1325
+ position: absolute;
1326
+ content: '';
1327
+ top: auto;
1328
+ bottom: 0;
1329
+ left: 0;
1330
+ width: 100%;
1331
+ height: @dividerSize;
1332
+ background: @verticalDividerBackground;
1333
+ }
1346
1334
 
1347
- .ui.stackable.menu .left.menu,
1348
- .ui.stackable.menu .left.item {
1349
- margin-right: 0 !important;
1350
- }
1351
- .ui.stackable.menu .right.menu,
1352
- .ui.stackable.menu .right.item {
1353
- margin-left: 0 !important;
1354
- }
1355
- .ui.stackable.menu .center.menu,
1356
- .ui.stackable.menu .center.item {
1357
- margin-left: 0 !important;
1358
- margin-right: 0 !important;
1359
- }
1335
+ .ui.stackable.menu .left.menu,
1336
+ .ui.stackable.menu .left.item {
1337
+ margin-right: 0 !important;
1338
+ }
1339
+ .ui.stackable.menu .right.menu,
1340
+ .ui.stackable.menu .right.item {
1341
+ margin-left: 0 !important;
1342
+ }
1343
+ .ui.stackable.menu .center.menu,
1344
+ .ui.stackable.menu .center.item {
1345
+ margin-left: 0 !important;
1346
+ margin-right: 0 !important;
1347
+ }
1360
1348
 
1361
- .ui.stackable.menu .right.menu,
1362
- .ui.stackable.menu .center.menu,
1363
- .ui.stackable.menu .left.menu {
1364
- flex-direction: column;
1349
+ .ui.stackable.menu .right.menu,
1350
+ .ui.stackable.menu .center.menu,
1351
+ .ui.stackable.menu .left.menu {
1352
+ flex-direction: column;
1353
+ }
1365
1354
  }
1366
- }
1367
1355
  }
1368
1356
 
1369
- /*--------------
1357
+ /* --------------
1370
1358
  Colors
1371
- ---------------*/
1359
+ --------------- */
1372
1360
  & when not (@variationMenuColors = false) {
1373
- each(@variationMenuColors, {
1374
- @color: @value;
1375
- @c: @colors[@@color][color];
1376
-
1377
- & when not (@color=secondary) {
1378
- .ui.ui.ui.menu .@{color}.active.item,
1379
- .ui.ui.@{color}.menu .active.item:hover,
1380
- .ui.ui.@{color}.menu .active.item {
1381
- & when not (@secondaryPointingActiveBorderColor = currentColor) {
1382
- border-color: @c;
1361
+ each(@variationMenuColors, {
1362
+ @color: @value;
1363
+ @c: @colors[@@color][color];
1364
+
1365
+ & when not (@color=secondary) {
1366
+ .ui.ui.ui.menu .@{color}.active.item,
1367
+ .ui.ui.@{color}.menu .active.item:hover,
1368
+ .ui.ui.@{color}.menu .active.item {
1369
+ & when not (@secondaryPointingActiveBorderColor = currentColor) {
1370
+ border-color: @c;
1371
+ }
1372
+ color: @c;
1373
+ }
1383
1374
  }
1384
- color: @c;
1385
- }
1386
- }
1387
- })
1375
+ })
1388
1376
  }
1389
1377
 
1390
1378
  & when (@variationMenuInverted) {
1391
- /*--------------
1392
- Inverted
1393
- ---------------*/
1394
-
1395
- .ui.inverted.menu {
1396
- border: @invertedBorder;
1397
- background: @invertedBackground;
1398
- box-shadow: @invertedBoxShadow;
1399
- }
1379
+ /* --------------
1380
+ Inverted
1381
+ --------------- */
1400
1382
 
1401
- /* Menu Item */
1402
- .ui.inverted.menu .item,
1403
- .ui.inverted.menu .item > a:not(.ui) {
1404
- background: @invertedItemBackground;
1405
- color: @invertedItemTextColor;
1406
- }
1407
- .ui.inverted.menu .item.menu {
1408
- background: @invertedSubMenuBackground;
1409
- }
1383
+ .ui.inverted.menu {
1384
+ border: @invertedBorder;
1385
+ background: @invertedBackground;
1386
+ box-shadow: @invertedBoxShadow;
1387
+ }
1410
1388
 
1411
- /*--- Border ---*/
1412
- .ui.inverted.menu .item::before {
1413
- background: @invertedDividerBackground;
1414
- }
1415
- & when (@variationMenuVertical) {
1416
- .ui.vertical.inverted.menu .item::before {
1417
- background: @invertedVerticalDividerBackground;
1389
+ /* Menu Item */
1390
+ .ui.inverted.menu .item,
1391
+ .ui.inverted.menu .item > a:not(.ui) {
1392
+ background: @invertedItemBackground;
1393
+ color: @invertedItemTextColor;
1418
1394
  }
1419
- /* Sub Menu */
1420
- .ui.vertical.inverted.menu .menu .item,
1421
- .ui.vertical.inverted.menu .menu .item a:not(.ui) {
1422
- color: @invertedSubMenuColor;
1395
+ .ui.inverted.menu .item.menu {
1396
+ background: @invertedSubMenuBackground;
1423
1397
  }
1424
- }
1425
- /* Header */
1426
- .ui.inverted.menu .header.item {
1427
- margin: 0;
1428
- background: @invertedHeaderBackground;
1429
- box-shadow: none;
1430
- }
1431
1398
 
1432
- /* Disabled */
1433
- .ui.ui.inverted.menu .item.disabled {
1434
- color: @invertedDisabledTextColor;
1435
- }
1399
+ /* --- Border --- */
1400
+ .ui.inverted.menu .item::before {
1401
+ background: @invertedDividerBackground;
1402
+ }
1403
+ & when (@variationMenuVertical) {
1404
+ .ui.vertical.inverted.menu .item::before {
1405
+ background: @invertedVerticalDividerBackground;
1406
+ }
1436
1407
 
1437
- /*--- Hover ---*/
1438
- .ui.link.inverted.menu .item:hover,
1439
- .ui.inverted.menu .dropdown.item:hover,
1440
- .ui.inverted.menu .link.item:hover,
1441
- .ui.inverted.menu a.item:hover {
1442
- background: @invertedHoverBackground;
1443
- color: @invertedHoverColor;
1444
- }
1445
- & when (@variationMenuVertical) {
1446
- .ui.vertical.inverted.menu .item .menu a.item:hover,
1447
- .ui.vertical.inverted.menu .item .menu .link.item:hover {
1448
- background: @invertedSubMenuBackground;
1449
- color: @invertedSubMenuHoverColor;
1408
+ /* Sub Menu */
1409
+ .ui.vertical.inverted.menu .menu .item,
1410
+ .ui.vertical.inverted.menu .menu .item a:not(.ui) {
1411
+ color: @invertedSubMenuColor;
1412
+ }
1450
1413
  }
1451
- }
1452
- /*--- Pressed ---*/
1453
- .ui.inverted.menu a.item:active,
1454
- .ui.inverted.menu .link.item:active{
1455
- background: @invertedMenuPressedBackground;
1456
- color: @invertedMenuPressedColor;
1457
- }
1458
1414
 
1459
- /*--- Active ---*/
1460
- .ui.inverted.menu .active.item {
1461
- background: @invertedActiveBackground;
1462
- color: @invertedActiveColor !important;
1463
- }
1464
- & when (@variationMenuVertical) {
1465
- .ui.inverted.vertical.menu .item .menu .active.item {
1466
- background: @invertedSubMenuActiveBackground;
1467
- color: @invertedSubMenuActiveColor;
1415
+ /* Header */
1416
+ .ui.inverted.menu .header.item {
1417
+ margin: 0;
1418
+ background: @invertedHeaderBackground;
1419
+ box-shadow: none;
1468
1420
  }
1469
- }
1470
- & when (@variationMenuPointing) {
1471
- .ui.inverted.pointing.menu .active.item::after {
1472
- background: @invertedArrowActiveColor;
1473
- margin: 0 !important;
1474
- box-shadow: none !important;
1475
- border: none !important;
1421
+
1422
+ /* Disabled */
1423
+ .ui.ui.inverted.menu .item.disabled {
1424
+ color: @invertedDisabledTextColor;
1476
1425
  }
1477
- }
1478
1426
 
1479
- /*--- Active Hover ---*/
1480
- .ui.inverted.menu .active.item:hover {
1481
- background: @invertedActiveHoverBackground;
1482
- color: @invertedActiveHoverColor !important;
1483
- }
1484
- & when (@variationMenuPointing) {
1485
- .ui.inverted.pointing.menu .active.item:hover::after {
1486
- background: @invertedArrowActiveHoverColor;
1427
+ /* --- Hover --- */
1428
+ .ui.link.inverted.menu .item:hover,
1429
+ .ui.inverted.menu .dropdown.item:hover,
1430
+ .ui.inverted.menu .link.item:hover,
1431
+ .ui.inverted.menu a.item:hover {
1432
+ background: @invertedHoverBackground;
1433
+ color: @invertedHoverColor;
1434
+ }
1435
+ & when (@variationMenuVertical) {
1436
+ .ui.vertical.inverted.menu .item .menu a.item:hover,
1437
+ .ui.vertical.inverted.menu .item .menu .link.item:hover {
1438
+ background: @invertedSubMenuBackground;
1439
+ color: @invertedSubMenuHoverColor;
1440
+ }
1441
+ }
1442
+
1443
+ /* --- Pressed --- */
1444
+ .ui.inverted.menu a.item:active,
1445
+ .ui.inverted.menu .link.item:active {
1446
+ background: @invertedMenuPressedBackground;
1447
+ color: @invertedMenuPressedColor;
1448
+ }
1449
+
1450
+ /* --- Active --- */
1451
+ .ui.inverted.menu .active.item {
1452
+ background: @invertedActiveBackground;
1453
+ color: @invertedActiveColor !important;
1454
+ }
1455
+ & when (@variationMenuVertical) {
1456
+ .ui.inverted.vertical.menu .item .menu .active.item {
1457
+ background: @invertedSubMenuActiveBackground;
1458
+ color: @invertedSubMenuActiveColor;
1459
+ }
1460
+ }
1461
+ & when (@variationMenuPointing) {
1462
+ .ui.inverted.pointing.menu .active.item::after {
1463
+ background: @invertedArrowActiveColor;
1464
+ margin: 0 !important;
1465
+ box-shadow: none !important;
1466
+ border: none !important;
1467
+ }
1468
+ }
1469
+
1470
+ /* --- Active Hover --- */
1471
+ .ui.inverted.menu .active.item:hover {
1472
+ background: @invertedActiveHoverBackground;
1473
+ color: @invertedActiveHoverColor !important;
1474
+ }
1475
+ & when (@variationMenuPointing) {
1476
+ .ui.inverted.pointing.menu .active.item:hover::after {
1477
+ background: @invertedArrowActiveHoverColor;
1478
+ }
1487
1479
  }
1488
- }
1489
1480
  }
1490
1481
 
1491
1482
  & when (@variationMenuFloated) {
1492
- /*--------------
1493
- Floated
1494
- ---------------*/
1483
+ /* --------------
1484
+ Floated
1485
+ --------------- */
1495
1486
 
1496
- .ui.floated.menu {
1497
- float: left;
1498
- margin: 0 @floatedDistance 0 0;
1499
- }
1500
- .ui.floated.menu .item:last-child::before {
1501
- display: none;
1502
- }
1487
+ .ui.floated.menu {
1488
+ float: left;
1489
+ margin: 0 @floatedDistance 0 0;
1490
+ }
1491
+ .ui.floated.menu .item:last-child::before {
1492
+ display: none;
1493
+ }
1503
1494
 
1504
- .ui.right.floated.menu {
1505
- float: right;
1506
- margin: 0 0 0 @floatedDistance;
1507
- }
1495
+ .ui.right.floated.menu {
1496
+ float: right;
1497
+ margin: 0 0 0 @floatedDistance;
1498
+ }
1508
1499
  }
1509
1500
 
1510
1501
  & when (@variationMenuCentered) {
1511
- .ui.center.aligned.menu,
1512
- .ui.centered.menu {
1513
- display: inline-flex;
1514
- transform: translateX(-50%);
1515
- margin-left:50%;
1516
- }
1502
+ .ui.center.aligned.menu,
1503
+ .ui.centered.menu {
1504
+ display: inline-flex;
1505
+ transform: translateX(-50%);
1506
+ margin-left: 50%;
1507
+ }
1517
1508
  }
1518
1509
 
1519
1510
  & when (@variationMenuInverted) {
1520
- /*--------------
1521
- Inverted
1522
- ---------------*/
1523
- & when not (@variationMenuColors = false) {
1524
- each(@variationMenuColors, {
1525
- @color: @value;
1526
- @c: @colors[@@color][color];
1527
- @h: @colors[@@color][hover];
1528
-
1529
- & when not (@color=secondary) {
1530
- .ui.ui.ui.inverted.menu .@{color}.active.item,
1531
- .ui.ui.inverted.@{color}.menu {
1532
- background-color: @c;
1533
- }
1534
- .ui.inverted.@{color}.menu .item::before {
1535
- background-color: @invertedColoredDividerBackground;
1511
+ /* --------------
1512
+ Inverted
1513
+ --------------- */
1514
+ & when not (@variationMenuColors = false) {
1515
+ each(@variationMenuColors, {
1516
+ @color: @value;
1517
+ @c: @colors[@@color][color];
1518
+ @h: @colors[@@color][hover];
1519
+
1520
+ & when not (@color=secondary) {
1521
+ .ui.ui.ui.inverted.menu .@{color}.active.item,
1522
+ .ui.ui.inverted.@{color}.menu {
1523
+ background-color: @c;
1524
+ }
1525
+ .ui.inverted.@{color}.menu .item::before {
1526
+ background-color: @invertedColoredDividerBackground;
1527
+ }
1528
+ .ui.ui.inverted.@{color}.menu .active.item {
1529
+ background-color: @invertedColoredActiveBackground;
1530
+ }
1531
+ & when (@variationMenuPointing) {
1532
+ .ui.inverted.pointing.@{color}.menu .active.item {
1533
+ background-color: @h;
1534
+ }
1535
+ }
1536
+ }
1537
+ })
1538
+ }
1539
+
1540
+ & when (@variationMenuPointing) {
1541
+ .ui.ui.ui.inverted.pointing.menu .active.item::after {
1542
+ background-color: inherit;
1536
1543
  }
1537
- .ui.ui.inverted.@{color}.menu .active.item {
1538
- background-color: @invertedColoredActiveBackground;
1539
- }
1540
- & when (@variationMenuPointing) {
1541
- .ui.inverted.pointing.@{color}.menu .active.item {
1542
- background-color: @h;
1543
- }
1544
- }
1545
- }
1546
- })
1547
- }
1548
-
1549
- & when (@variationMenuPointing) {
1550
- .ui.ui.ui.inverted.pointing.menu .active.item::after {
1551
- background-color: inherit;
1552
1544
  }
1553
- }
1554
1545
  }
1555
1546
 
1556
1547
  & when (@variationMenuFitted) {
1557
- /*--------------
1558
- Fitted
1559
- ---------------*/
1548
+ /* --------------
1549
+ Fitted
1550
+ --------------- */
1560
1551
 
1561
- .ui.fitted.menu .item,
1562
- .ui.fitted.menu .item .menu .item,
1563
- .ui.menu .fitted.item {
1564
- padding: 0;
1565
- }
1566
- .ui.horizontally.fitted.menu .item,
1567
- .ui.horizontally.fitted.menu .item .menu .item,
1568
- .ui.menu .horizontally.fitted.item {
1569
- padding-top: @itemVerticalPadding;
1570
- padding-bottom: @itemVerticalPadding;
1571
- }
1572
- .ui.vertically.fitted.menu .item,
1573
- .ui.vertically.fitted.menu .item .menu .item,
1574
- .ui.menu .vertically.fitted.item {
1575
- padding-left: @itemHorizontalPadding;
1576
- padding-right: @itemHorizontalPadding;
1577
- }
1552
+ .ui.fitted.menu .item,
1553
+ .ui.fitted.menu .item .menu .item,
1554
+ .ui.menu .fitted.item {
1555
+ padding: 0;
1556
+ }
1557
+ .ui.horizontally.fitted.menu .item,
1558
+ .ui.horizontally.fitted.menu .item .menu .item,
1559
+ .ui.menu .horizontally.fitted.item {
1560
+ padding-top: @itemVerticalPadding;
1561
+ padding-bottom: @itemVerticalPadding;
1562
+ }
1563
+ .ui.vertically.fitted.menu .item,
1564
+ .ui.vertically.fitted.menu .item .menu .item,
1565
+ .ui.menu .vertically.fitted.item {
1566
+ padding-left: @itemHorizontalPadding;
1567
+ padding-right: @itemHorizontalPadding;
1568
+ }
1578
1569
  }
1579
1570
 
1580
1571
  & when (@variationMenuBorderless) {
1581
- /*--------------
1582
- Borderless
1583
- ---------------*/
1572
+ /* --------------
1573
+ Borderless
1574
+ --------------- */
1584
1575
 
1585
- .ui.borderless.menu .item::before,
1586
- .ui.borderless.menu .item .menu .item::before,
1587
- .ui.menu .borderless.item::before {
1588
- background: none !important;
1589
- }
1576
+ .ui.borderless.menu .item::before,
1577
+ .ui.borderless.menu .item .menu .item::before,
1578
+ .ui.menu .borderless.item::before {
1579
+ background: none !important;
1580
+ }
1590
1581
  }
1591
1582
 
1592
1583
  & when (@variationMenuCompact) {
1593
- /*-------------------
1594
- Compact
1595
- --------------------*/
1584
+ /* -------------------
1585
+ Compact
1586
+ -------------------- */
1596
1587
 
1597
- .ui.compact.menu {
1598
- display: inline-flex;
1599
- margin: 0;
1600
- vertical-align: middle;
1601
- }
1602
- & when (@variationMenuVertical) {
1603
- .ui.compact.vertical.menu {
1604
- & when (@supportIE) {
1605
- /* IE hack to make dropdown icons appear inline */
1606
- display: -ms-inline-flexbox !important;
1607
- }
1608
- display: inline-block;
1588
+ .ui.compact.menu {
1589
+ display: inline-flex;
1590
+ margin: 0;
1591
+ vertical-align: middle;
1609
1592
  }
1610
- }
1611
- .ui.compact.menu:not(.secondary) .item:last-child {
1612
- border-radius: 0 @borderRadius @borderRadius 0;
1613
- }
1614
- .ui.compact.menu .item:last-child::before {
1615
- display: none;
1616
- }
1617
- & when (@variationMenuVertical) {
1618
- .ui.compact.vertical.menu {
1619
- width: auto !important;
1593
+ & when (@variationMenuVertical) {
1594
+ .ui.compact.vertical.menu {
1595
+ & when (@supportIE) {
1596
+ /* IE hack to make dropdown icons appear inline */
1597
+ display: -ms-inline-flexbox !important;
1598
+ }
1599
+ display: inline-block;
1600
+ }
1620
1601
  }
1621
- .ui.compact.vertical.menu .item:last-child::before {
1622
- display: block;
1602
+ .ui.compact.menu:not(.secondary) .item:last-child {
1603
+ border-radius: 0 @borderRadius @borderRadius 0;
1604
+ }
1605
+ .ui.compact.menu .item:last-child::before {
1606
+ display: none;
1607
+ }
1608
+ & when (@variationMenuVertical) {
1609
+ .ui.compact.vertical.menu {
1610
+ width: auto !important;
1611
+ }
1612
+ .ui.compact.vertical.menu .item:last-child::before {
1613
+ display: block;
1614
+ }
1623
1615
  }
1624
- }
1625
1616
  }
1626
1617
 
1627
1618
  & when (@variationMenuFluid) {
1628
- /*-------------------
1629
- Fluid
1630
- --------------------*/
1619
+ /* -------------------
1620
+ Fluid
1621
+ -------------------- */
1631
1622
 
1632
- .ui.menu.fluid,
1633
- .ui.vertical.menu.fluid {
1634
- width: 100% !important;
1635
- }
1623
+ .ui.menu.fluid,
1624
+ .ui.vertical.menu.fluid {
1625
+ width: 100% !important;
1626
+ }
1636
1627
  }
1637
1628
 
1638
-
1639
- /*-------------------
1629
+ /* -------------------
1640
1630
  Evenly Sized
1641
- --------------------*/
1631
+ -------------------- */
1642
1632
 
1643
1633
  .ui.item.menu,
1644
1634
  .ui.item.menu .item {
1645
- width: 100%;
1646
- padding-left: 0 !important;
1647
- padding-right: 0 !important;
1648
- margin-left: 0 !important;
1649
- margin-right: 0 !important;
1650
- text-align: center;
1651
- justify-content: center;
1635
+ width: 100%;
1636
+ padding-left: 0 !important;
1637
+ padding-right: 0 !important;
1638
+ margin-left: 0 !important;
1639
+ margin-right: 0 !important;
1640
+ text-align: center;
1641
+ justify-content: center;
1652
1642
  }
1653
1643
  .ui.attached.item.menu:not(.tabular) {
1654
- margin: 0 @attachedHorizontalOffset !important;
1644
+ margin: 0 @attachedHorizontalOffset !important;
1655
1645
  }
1656
1646
 
1657
1647
  .ui.item.menu .item:last-child::before {
1658
- display: none;
1648
+ display: none;
1659
1649
  }
1660
1650
 
1661
1651
  & when (@variationMenuEqualWidth) {
1662
- .ui.menu.two.item .item {
1663
- width: 50%;
1664
- }
1665
- .ui.menu.three.item .item {
1666
- width: 33.333%;
1667
- }
1668
- .ui.menu.four.item .item {
1669
- width: 25%;
1670
- }
1671
- .ui.menu.five.item .item {
1672
- width: 20%;
1673
- }
1674
- .ui.menu.six.item .item {
1675
- width: 16.666%;
1676
- }
1677
- .ui.menu.seven.item .item {
1678
- width: 14.285%;
1679
- }
1680
- .ui.menu.eight.item .item {
1681
- width: 12.500%;
1682
- }
1683
- .ui.menu.nine.item .item {
1684
- width: 11.11%;
1685
- }
1686
- .ui.menu.ten.item .item {
1687
- width: 10.0%;
1688
- }
1689
- .ui.menu.eleven.item .item {
1690
- width: 9.09%;
1691
- }
1692
- .ui.menu.twelve.item .item {
1693
- width: 8.333%;
1694
- }
1652
+ .ui.menu.two.item .item {
1653
+ width: 50%;
1654
+ }
1655
+ .ui.menu.three.item .item {
1656
+ width: 33.333%;
1657
+ }
1658
+ .ui.menu.four.item .item {
1659
+ width: 25%;
1660
+ }
1661
+ .ui.menu.five.item .item {
1662
+ width: 20%;
1663
+ }
1664
+ .ui.menu.six.item .item {
1665
+ width: 16.666%;
1666
+ }
1667
+ .ui.menu.seven.item .item {
1668
+ width: 14.285%;
1669
+ }
1670
+ .ui.menu.eight.item .item {
1671
+ width: 12.500%;
1672
+ }
1673
+ .ui.menu.nine.item .item {
1674
+ width: 11.11%;
1675
+ }
1676
+ .ui.menu.ten.item .item {
1677
+ width: 10.0%;
1678
+ }
1679
+ .ui.menu.eleven.item .item {
1680
+ width: 9.09%;
1681
+ }
1682
+ .ui.menu.twelve.item .item {
1683
+ width: 8.333%;
1684
+ }
1695
1685
  }
1696
1686
 
1697
1687
  & when (@variationMenuFixed) {
1698
- /*--------------
1699
- Fixed
1700
- ---------------*/
1701
-
1702
- .ui.menu.fixed {
1703
- position: fixed;
1704
- z-index: 101;
1705
- margin: 0;
1706
- width: 100%;
1707
- }
1708
- .ui.menu.fixed,
1709
- .ui.menu.fixed .item:first-child,
1710
- .ui.menu.fixed .item:last-child {
1711
- border-radius: 0 !important;
1712
- }
1688
+ /* --------------
1689
+ Fixed
1690
+ --------------- */
1691
+
1692
+ .ui.menu.fixed {
1693
+ position: fixed;
1694
+ z-index: 101;
1695
+ margin: 0;
1696
+ width: 100%;
1697
+ }
1698
+ .ui.menu.fixed,
1699
+ .ui.menu.fixed .item:first-child,
1700
+ .ui.menu.fixed .item:last-child {
1701
+ border-radius: 0 !important;
1702
+ }
1713
1703
 
1714
- .ui.fixed.menu,
1715
- .ui[class*="top fixed"].menu {
1716
- top: 0;
1717
- left: 0;
1718
- right: auto;
1719
- bottom: auto;
1720
- }
1721
- .ui[class*="top fixed"].menu {
1722
- border-top: none;
1723
- border-left: none;
1724
- border-right: none;
1725
- }
1726
- .ui[class*="right fixed"].menu {
1727
- border-top: none;
1728
- border-bottom: none;
1729
- border-right: none;
1730
- top: 0;
1731
- right: 0;
1732
- left: auto;
1733
- bottom: auto;
1734
- width: auto;
1735
- height: 100%;
1736
- }
1737
- .ui[class*="bottom fixed"].menu {
1738
- border-bottom: none;
1739
- border-left: none;
1740
- border-right: none;
1741
- bottom: 0;
1742
- left: 0;
1743
- top: auto;
1744
- right: auto;
1745
- }
1746
- .ui[class*="left fixed"].menu {
1747
- border-top: none;
1748
- border-bottom: none;
1749
- border-left: none;
1750
- top: 0;
1751
- left: 0;
1752
- right: auto;
1753
- bottom: auto;
1754
- width: auto;
1755
- height: 100%;
1756
- }
1704
+ .ui.fixed.menu,
1705
+ .ui[class*="top fixed"].menu {
1706
+ top: 0;
1707
+ left: 0;
1708
+ right: auto;
1709
+ bottom: auto;
1710
+ }
1711
+ .ui[class*="top fixed"].menu {
1712
+ border-top: none;
1713
+ border-left: none;
1714
+ border-right: none;
1715
+ }
1716
+ .ui[class*="right fixed"].menu {
1717
+ border-top: none;
1718
+ border-bottom: none;
1719
+ border-right: none;
1720
+ top: 0;
1721
+ right: 0;
1722
+ left: auto;
1723
+ bottom: auto;
1724
+ width: auto;
1725
+ height: 100%;
1726
+ }
1727
+ .ui[class*="bottom fixed"].menu {
1728
+ border-bottom: none;
1729
+ border-left: none;
1730
+ border-right: none;
1731
+ bottom: 0;
1732
+ left: 0;
1733
+ top: auto;
1734
+ right: auto;
1735
+ }
1736
+ .ui[class*="left fixed"].menu {
1737
+ border-top: none;
1738
+ border-bottom: none;
1739
+ border-left: none;
1740
+ top: 0;
1741
+ left: 0;
1742
+ right: auto;
1743
+ bottom: auto;
1744
+ width: auto;
1745
+ height: 100%;
1746
+ }
1757
1747
 
1758
- /* Coupling with Grid */
1759
- .ui.fixed.menu + .ui.grid {
1760
- padding-top: @fixedPrecedingGridMargin;
1761
- }
1748
+ /* Coupling with Grid */
1749
+ .ui.fixed.menu + .ui.grid {
1750
+ padding-top: @fixedPrecedingGridMargin;
1751
+ }
1762
1752
  }
1763
1753
 
1764
1754
  & when (@variationMenuPointing) {
1765
- /*-------------------
1766
- Pointing
1767
- --------------------*/
1768
-
1769
- .ui.pointing.menu .item::after {
1770
- visibility: hidden;
1771
- position: absolute;
1772
- content: '';
1773
- top: 100%;
1774
- left: 50%;
1775
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
1776
- background: none;
1777
-
1778
- margin: (@arrowBorderWidth / 2) 0 0;
1779
- width: @arrowSize;
1780
- height: @arrowSize;
1781
-
1782
- border: none;
1783
- border-bottom: @arrowBorder;
1784
- border-right: @arrowBorder;
1785
-
1786
- z-index: @arrowZIndex;
1787
- transition: @arrowTransition;
1788
- }
1789
- & when (@variationMenuVertical) {
1790
- .ui.vertical.pointing.menu .item::after {
1791
- position: absolute;
1792
- top: 50%;
1793
- right: 0;
1794
- bottom: auto;
1795
- left: auto;
1796
-
1797
- transform: translateX(50%) translateY(-50%) rotate(45deg);
1798
- margin: 0 -(@arrowBorderWidth / 2) 0 0;
1799
-
1800
- border: none;
1801
- border-top: @arrowBorder;
1802
- border-right: @arrowBorder;
1755
+ /* -------------------
1756
+ Pointing
1757
+ -------------------- */
1758
+
1759
+ .ui.pointing.menu .item::after {
1760
+ visibility: hidden;
1761
+ position: absolute;
1762
+ content: '';
1763
+ top: 100%;
1764
+ left: 50%;
1765
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
1766
+ background: none;
1767
+
1768
+ margin: (@arrowBorderWidth / 2) 0 0;
1769
+ width: @arrowSize;
1770
+ height: @arrowSize;
1771
+
1772
+ border: none;
1773
+ border-bottom: @arrowBorder;
1774
+ border-right: @arrowBorder;
1775
+
1776
+ z-index: @arrowZIndex;
1777
+ transition: @arrowTransition;
1778
+ }
1779
+ & when (@variationMenuVertical) {
1780
+ .ui.vertical.pointing.menu .item::after {
1781
+ position: absolute;
1782
+ top: 50%;
1783
+ right: 0;
1784
+ bottom: auto;
1785
+ left: auto;
1786
+
1787
+ transform: translateX(50%) translateY(-50%) rotate(45deg);
1788
+ margin: 0 -(@arrowBorderWidth / 2) 0 0;
1789
+
1790
+ border: none;
1791
+ border-top: @arrowBorder;
1792
+ border-right: @arrowBorder;
1793
+ }
1794
+ }
1795
+ .ui.pointing.menu .ui.dropdown .menu .item::after,
1796
+ .ui.vertical.pointing.menu .ui.dropdown .menu .item::after {
1797
+ display: none;
1803
1798
  }
1804
- }
1805
- .ui.pointing.menu .ui.dropdown .menu .item::after,
1806
- .ui.vertical.pointing.menu .ui.dropdown .menu .item::after {
1807
- display: none;
1808
- }
1809
1799
 
1810
- /* Active */
1811
- .ui.pointing.menu .active.item::after {
1812
- visibility: visible;
1813
- }
1814
- .ui.pointing.menu .active.dropdown.item::after {
1815
- visibility: hidden;
1816
- }
1800
+ /* Active */
1801
+ .ui.pointing.menu .active.item::after {
1802
+ visibility: visible;
1803
+ }
1804
+ .ui.pointing.menu .active.dropdown.item::after {
1805
+ visibility: hidden;
1806
+ }
1817
1807
 
1818
- /* Don't double up pointers */
1819
- .ui.pointing.menu .dropdown.active.item::after,
1820
- .ui.pointing.menu .active.item .menu .active.item::after {
1821
- display: none;
1822
- }
1808
+ /* Don't double up pointers */
1809
+ .ui.pointing.menu .dropdown.active.item::after,
1810
+ .ui.pointing.menu .active.item .menu .active.item::after {
1811
+ display: none;
1812
+ }
1823
1813
 
1824
- /* Colors */
1825
- .ui.pointing.menu .active.item:hover::after {
1826
- background-color: @arrowHoverColor;
1827
- }
1828
- .ui.pointing.menu .active.item::after {
1829
- background-color: @arrowActiveColor;
1830
- }
1831
- .ui.pointing.menu .active.item:hover::after {
1832
- background-color: @arrowActiveHoverColor;
1833
- }
1834
- & when (@variationMenuVertical) {
1835
- .ui.vertical.pointing.menu .active.item:hover::after {
1836
- background-color: @arrowVerticalHoverColor;
1814
+ /* Colors */
1815
+ .ui.pointing.menu .active.item:hover::after {
1816
+ background-color: @arrowHoverColor;
1837
1817
  }
1838
- .ui.vertical.pointing.menu .active.item::after {
1839
- background-color: @arrowVerticalActiveColor;
1818
+ .ui.pointing.menu .active.item::after {
1819
+ background-color: @arrowActiveColor;
1840
1820
  }
1841
- .ui.vertical.pointing.menu .menu .active.item::after {
1842
- background-color: @arrowVerticalSubMenuColor;
1821
+ .ui.pointing.menu .active.item:hover::after {
1822
+ background-color: @arrowActiveHoverColor;
1843
1823
  }
1844
- & when (@variationMenuFluid) and (@variationGridStackable) {
1845
- @media only screen and (max-width: @largestMobileScreen) {
1846
- .ui.stackable.grid .ui.fluid.vertical.pointing.menu .active.item::after {
1847
- display: none;
1824
+ & when (@variationMenuVertical) {
1825
+ .ui.vertical.pointing.menu .active.item:hover::after {
1826
+ background-color: @arrowVerticalHoverColor;
1827
+ }
1828
+ .ui.vertical.pointing.menu .active.item::after {
1829
+ background-color: @arrowVerticalActiveColor;
1830
+ }
1831
+ .ui.vertical.pointing.menu .menu .active.item::after {
1832
+ background-color: @arrowVerticalSubMenuColor;
1833
+ }
1834
+ & when (@variationMenuFluid) and (@variationGridStackable) {
1835
+ @media only screen and (max-width: @largestMobileScreen) {
1836
+ .ui.stackable.grid .ui.fluid.vertical.pointing.menu .active.item::after {
1837
+ display: none;
1838
+ }
1839
+ }
1848
1840
  }
1849
- }
1850
1841
  }
1851
- }
1852
1842
  }
1853
1843
 
1854
1844
  & when not (@variationMenuColors = false) {
1855
- each(@variationMenuColors, {
1856
- @color: @value;
1857
- @c: @colors[@@color][color];
1845
+ each(@variationMenuColors, {
1846
+ @color: @value;
1847
+ @c: @colors[@@color][color];
1858
1848
 
1859
- .ui.inverted.pointing.menu .@{color}.active.item::after {
1860
- background-color: @c;
1861
- }
1862
- })
1849
+ .ui.inverted.pointing.menu .@{color}.active.item::after {
1850
+ background-color: @c;
1851
+ }
1852
+ })
1863
1853
  }
1864
1854
 
1865
1855
  & when (@variationMenuAttached) {
1866
- /*--------------
1867
- Attached
1868
- ---------------*/
1856
+ /* --------------
1857
+ Attached
1858
+ --------------- */
1869
1859
 
1870
- /* Middle */
1871
- .ui.attached.menu {
1872
- top: 0;
1873
- bottom: 0;
1874
- border-radius: 0;
1875
- margin: 0 @attachedHorizontalOffset;
1876
- width: @attachedWidth;
1877
- max-width: @attachedWidth;
1878
- box-shadow: @attachedBoxShadow;
1879
- }
1880
- .ui.attached + .ui.attached.menu:not(.top) {
1881
- border-top: none;
1882
- }
1860
+ /* Middle */
1861
+ .ui.attached.menu {
1862
+ top: 0;
1863
+ bottom: 0;
1864
+ border-radius: 0;
1865
+ margin: 0 @attachedHorizontalOffset;
1866
+ width: @attachedWidth;
1867
+ max-width: @attachedWidth;
1868
+ box-shadow: @attachedBoxShadow;
1869
+ }
1870
+ .ui.attached + .ui.attached.menu:not(.top) {
1871
+ border-top: none;
1872
+ }
1883
1873
 
1884
- /* Top */
1885
- .ui[class*="top attached"].menu {
1886
- bottom: 0;
1887
- margin-bottom: 0;
1888
- top: @attachedTopOffset;
1889
- margin-top: @verticalMargin;
1890
- border-radius: @borderRadius @borderRadius 0 0;
1891
- }
1892
- .ui.menu[class*="top attached"]:first-child {
1893
- margin-top: 0;
1894
- }
1874
+ /* Top */
1875
+ .ui[class*="top attached"].menu {
1876
+ bottom: 0;
1877
+ margin-bottom: 0;
1878
+ top: @attachedTopOffset;
1879
+ margin-top: @verticalMargin;
1880
+ border-radius: @borderRadius @borderRadius 0 0;
1881
+ }
1882
+ .ui.menu[class*="top attached"]:first-child {
1883
+ margin-top: 0;
1884
+ }
1895
1885
 
1896
- /* Bottom */
1897
- .ui[class*="bottom attached"].menu {
1898
- bottom: 0;
1899
- margin-top: 0;
1900
- top: @attachedBottomOffset;
1901
- margin-bottom: @verticalMargin;
1902
- box-shadow: @attachedBottomBoxShadow;
1903
- border-radius: 0 0 @borderRadius @borderRadius;
1904
- }
1905
- .ui[class*="bottom attached"].menu:last-child {
1906
- margin-bottom: 0;
1907
- }
1886
+ /* Bottom */
1887
+ .ui[class*="bottom attached"].menu {
1888
+ bottom: 0;
1889
+ margin-top: 0;
1890
+ top: @attachedBottomOffset;
1891
+ margin-bottom: @verticalMargin;
1892
+ box-shadow: @attachedBottomBoxShadow;
1893
+ border-radius: 0 0 @borderRadius @borderRadius;
1894
+ }
1895
+ .ui[class*="bottom attached"].menu:last-child {
1896
+ margin-bottom: 0;
1897
+ }
1908
1898
 
1909
- /* Attached Menu Item */
1910
- .ui.top.attached.menu > .item:first-child {
1911
- border-radius: @borderRadius 0 0 0;
1912
- }
1913
- .ui.bottom.attached.menu > .item:first-child {
1914
- border-radius: 0 0 0 @borderRadius;
1915
- }
1899
+ /* Attached Menu Item */
1900
+ .ui.top.attached.menu > .item:first-child {
1901
+ border-radius: @borderRadius 0 0 0;
1902
+ }
1903
+ .ui.bottom.attached.menu > .item:first-child {
1904
+ border-radius: 0 0 0 @borderRadius;
1905
+ }
1916
1906
 
1917
- /* Tabular Attached */
1918
- .ui.attached.menu:not(.tabular):not(.text) {
1919
- border: @attachedBorder;
1920
- }
1921
- & when (@variationMenuInverted) {
1922
- .ui.attached.inverted.menu {
1923
- border: none;
1907
+ /* Tabular Attached */
1908
+ .ui.attached.menu:not(.tabular):not(.text) {
1909
+ border: @attachedBorder;
1924
1910
  }
1925
- & when (@variationMenuTabular) {
1926
- .ui[class*="top attached"].inverted.tabular.menu {
1927
- border-bottom: @invertedTabularBorder;
1928
- }
1911
+ & when (@variationMenuInverted) {
1912
+ .ui.attached.inverted.menu {
1913
+ border: none;
1914
+ }
1915
+ & when (@variationMenuTabular) {
1916
+ .ui[class*="top attached"].inverted.tabular.menu {
1917
+ border-bottom: @invertedTabularBorder;
1918
+ }
1919
+ }
1929
1920
  }
1930
- }
1931
- & when (@variationMenuTabular) {
1932
- .ui.attached.tabular.menu {
1933
- margin-left: 0;
1934
- margin-right: 0;
1935
- width: 100%;
1921
+ & when (@variationMenuTabular) {
1922
+ .ui.attached.tabular.menu {
1923
+ margin-left: 0;
1924
+ margin-right: 0;
1925
+ width: 100%;
1926
+ }
1936
1927
  }
1937
- }
1938
1928
  }
1939
1929
 
1940
- /*--------------
1930
+ /* --------------
1941
1931
  Sizes
1942
- ---------------*/
1932
+ --------------- */
1943
1933
 
1944
1934
  .ui.menu {
1945
- font-size: @medium;
1935
+ font-size: @medium;
1946
1936
  }
1947
1937
  & when (@variationMenuVertical) {
1948
- .ui.vertical.menu {
1949
- width: @mediumWidth;
1950
- }
1938
+ .ui.vertical.menu {
1939
+ width: @mediumWidth;
1940
+ }
1951
1941
  }
1952
1942
  & when not (@variationMenuSizes = false) {
1953
- each(@variationMenuSizes, {
1954
- @w: @{value}Width;
1955
- @s: @@value;
1956
- .ui.@{value}.menu,
1957
- .ui.@{value}.menu .dropdown,
1958
- .ui.@{value}.menu .dropdown .menu > .item {
1959
- font-size: @s;
1960
- }
1961
- & when (@variationMenuVertical) {
1962
- .ui.@{value}.vertical.menu:not(.icon) {
1963
- width: @@w;
1964
- }
1965
- }
1966
- })
1943
+ each(@variationMenuSizes, {
1944
+ @w: @{value}Width;
1945
+ @s: @@value;
1946
+ .ui.@{value}.menu,
1947
+ .ui.@{value}.menu .dropdown,
1948
+ .ui.@{value}.menu .dropdown .menu > .item {
1949
+ font-size: @s;
1950
+ }
1951
+ & when (@variationMenuVertical) {
1952
+ .ui.@{value}.vertical.menu:not(.icon) {
1953
+ width: @@w;
1954
+ }
1955
+ }
1956
+ })
1967
1957
  }
1968
1958
 
1969
- /*-------------------
1959
+ /* -------------------
1970
1960
  Inverted dropdowns
1971
- --------------------*/
1961
+ -------------------- */
1972
1962
  .ui.menu .ui.inverted.inverted.dropdown.item .menu {
1973
- background: @invertedDropdownBackground;
1974
- box-shadow: @invertedDropdownMenuBoxShadow;
1963
+ background: @invertedDropdownBackground;
1964
+ box-shadow: @invertedDropdownMenuBoxShadow;
1975
1965
  }
1976
1966
 
1977
1967
  .ui.menu .ui.inverted.dropdown .menu > .item {
1978
- color: @invertedDropdownItemColor !important;
1968
+ color: @invertedDropdownItemColor !important;
1979
1969
  }
1980
1970
 
1981
1971
  .ui.menu .ui.inverted.dropdown .menu > .active.item {
1982
- background: @invertedDropdownActiveItemBackground !important;
1983
- color: @invertedDropdownActiveItemColor !important;
1972
+ background: @invertedDropdownActiveItemBackground !important;
1973
+ color: @invertedDropdownActiveItemColor !important;
1984
1974
  }
1985
1975
 
1986
1976
  .ui.menu .ui.inverted.dropdown .menu > .item:hover {
1987
- background: @invertedDropdownHoveredItemBackground !important;
1988
- color: @invertedDropdownHoveredItemColor !important;
1977
+ background: @invertedDropdownHoveredItemBackground !important;
1978
+ color: @invertedDropdownHoveredItemColor !important;
1989
1979
  }
1990
1980
 
1991
1981
  .ui.menu .ui.inverted.dropdown .menu > .selected.item {
1992
- background: @invertedDropdownSelectedItemBackground !important;
1993
- color: @invertedDropdownSelectedItemColor !important;
1982
+ background: @invertedDropdownSelectedItemBackground !important;
1983
+ color: @invertedDropdownSelectedItemColor !important;
1994
1984
  }
1995
1985
 
1996
1986
  & when (@variationMenuVertical) {
1997
- /* Vertical */
1998
- .ui.vertical.menu .inverted.dropdown.item .menu {
1999
- box-shadow: @invertedDropdownMenuBoxShadow;
2000
- }
1987
+ /* Vertical */
1988
+ .ui.vertical.menu .inverted.dropdown.item .menu {
1989
+ box-shadow: @invertedDropdownMenuBoxShadow;
1990
+ }
2001
1991
  }
2002
1992
 
2003
1993
  .loadUIOverrides();