You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1623 lines
32 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
  1. /*
  2. * # Semantic - Menu
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'collection';
  15. @element : 'menu';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Standard
  19. *******************************/
  20. /*--------------
  21. Menu
  22. ---------------*/
  23. .ui.menu {
  24. margin: @margin;
  25. background: @background;
  26. font-size: 0px;
  27. font-weight: @fontWeight;
  28. box-shadow: @boxShadow;
  29. border-radius: @borderRadius;
  30. }
  31. .ui.menu:first-child {
  32. margin-top: 0rem;
  33. }
  34. .ui.menu:last-child {
  35. margin-bottom: 0rem;
  36. }
  37. .ui.menu:after {
  38. content: ".";
  39. display: block;
  40. height: 0;
  41. clear: both;
  42. visibility: hidden;
  43. }
  44. .ui.menu > .item:first-child {
  45. border-radius: @borderRadius 0px 0px @borderRadius;
  46. }
  47. /*--------------
  48. Colors
  49. ---------------*/
  50. /* Text Color */
  51. .ui.menu .item {
  52. color: @menuTextColor;
  53. }
  54. .ui.menu .item .item {
  55. color: @subMenuTextColor;
  56. }
  57. /* Hover */
  58. .ui.menu .item .menu a.item:hover,
  59. .ui.menu .item .menu .link.item:hover {
  60. color: @darkTextColor;
  61. }
  62. /* Active */
  63. .ui.menu .active.item {
  64. color: @selectedTextColor;
  65. }
  66. /*--------------
  67. Items
  68. ---------------*/
  69. .ui.menu .item {
  70. position: relative;
  71. display: inline-block;
  72. padding: @verticalPadding @horizontalPadding;
  73. border-top: @borderSize solid transparent;
  74. background: @itemBackground;
  75. vertical-align: middle;
  76. line-height: 1;
  77. text-decoration: none;
  78. box-sizing: border-box;
  79. -webkit-tap-highlight-color: transparent;
  80. user-select: none;
  81. transition: @transition;
  82. }
  83. .ui.menu .menu {
  84. margin: 0em;
  85. }
  86. /* Floated Content */
  87. .ui.menu:not(.vertical) .item.left,
  88. .ui.menu:not(.vertical) .menu.left {
  89. float: left;
  90. }
  91. .ui.menu:not(.vertical) .item.right,
  92. .ui.menu:not(.vertical) .menu.right {
  93. float: right;
  94. }
  95. /*--------------
  96. Borders
  97. ---------------*/
  98. .ui.menu .item:before {
  99. position: absolute;
  100. content: '';
  101. top: 0%;
  102. right: 0px;
  103. width: @dividerSize;
  104. height: 100%;
  105. background: @dividerBackground;
  106. }
  107. .ui.menu > .right.menu:first-child {
  108. display: none;
  109. }
  110. .ui.menu .menu.right .item:before,
  111. .ui.menu .item.right:before {
  112. right: auto;
  113. left: 0px;
  114. }
  115. /*--------------
  116. Text Content
  117. ---------------*/
  118. .ui.menu .text.item > *,
  119. .ui.menu .item > a:not(.ui),
  120. .ui.menu .item > p:only-child {
  121. user-select: text;
  122. line-height: @textLineHeight;
  123. color: @textColor;
  124. }
  125. .ui.menu .item > p:first-child {
  126. margin-top: 0;
  127. }
  128. .ui.menu .item > p:last-child {
  129. margin-bottom: 0;
  130. }
  131. /*--------------
  132. Icons
  133. ---------------*/
  134. .ui.menu .item > i.icon {
  135. opacity: @iconOpacity;
  136. float: @iconFloat;
  137. margin: @iconMargin;
  138. }
  139. .ui.menu .item > i.dropdown.icon {
  140. float: @dropdownIconFloat;
  141. margin-left: @dropdownIconDistance;
  142. }
  143. /*--------------
  144. Button
  145. ---------------*/
  146. .ui.menu:not(.vertical) .item > .button {
  147. position: relative;
  148. top: @buttonOffset;
  149. margin: -@buttonVerticalPadding 0;
  150. padding-bottom: @buttonVerticalPadding;
  151. padding-top: @buttonVerticalPadding;
  152. font-size: @buttonSize;
  153. }
  154. /*--------------
  155. Inputs
  156. ---------------*/
  157. .ui.menu:not(.vertical) .item > .input {
  158. position: relative;
  159. top: @inputOffset;
  160. margin: @inputVerticalMargin 0em;
  161. width: 100%;
  162. }
  163. .ui.menu:not(.vertical) .item > .input input {
  164. font-size: @inputSize;
  165. padding-top: @inputVerticalPadding;
  166. padding-bottom: @inputVerticalPadding;
  167. }
  168. /* Action Input */
  169. .ui.menu:not(.vertical) .item .action.input > .button {
  170. font-size: @buttonSize;
  171. padding: @buttonVerticalPadding @actionButtonHorizontalPadding;
  172. }
  173. /* Resizes */
  174. .ui.small.menu:not(.vertical) .item > .input input {
  175. top: @smallInputOffset;
  176. padding-top: @smallInputVerticalPadding;
  177. padding-bottom: @smallInputVerticalPadding;
  178. }
  179. .ui.large.menu:not(.vertical) .item > .input input {
  180. top: @largeInputOffset;
  181. padding-bottom: @largeInputVerticalPadding;
  182. padding-top: @largeInputVerticalPadding;
  183. }
  184. .ui.large.menu:not(.vertical) .item .action.input > .button {
  185. padding: 0.9em;
  186. }
  187. .ui.large.menu:not(.vertical) .item .action.input > .button > .icon {
  188. padding-top: 0.8em;
  189. }
  190. /*--------------
  191. Header
  192. ---------------*/
  193. .ui.menu .header.item,
  194. .ui.vertical.menu .header.item {
  195. background: @headerBackground;
  196. margin: 0em;
  197. text-transform: @headerTextTransform;
  198. font-weight: @headerWeight;
  199. }
  200. /*--------------
  201. Dropdowns
  202. ---------------*/
  203. /* Dropdown */
  204. .ui.menu .ui.dropdown.visible {
  205. background: @subtleTransparentBlack;
  206. border-bottom-right-radius: 0em;
  207. border-bottom-left-radius: 0em;
  208. }
  209. .ui.menu .ui.dropdown.active {
  210. box-shadow: none;
  211. }
  212. /* Menu Position */
  213. .ui.menu .dropdown.item .menu {
  214. background: @dropdownBackground;
  215. left: 0px;
  216. margin: @dropdownMenuOffset 0px 0px;
  217. min-width: ~"calc(100% - 1px)";
  218. box-shadow: @dropdownBoxShadow;
  219. }
  220. .ui.menu .pointing.dropdown.item .menu {
  221. margin-top: @dropdownPointingDistance;
  222. border-top-left-radius: 0em;
  223. border-top-right-radius: 0em;
  224. }
  225. .ui.menu .simple.dropdown.item .menu {
  226. margin: 0px !important;
  227. }
  228. /* Secondary Menu Dropdown */
  229. .ui.secondary.menu > .menu > .active.dropdown.item {
  230. background-color: transparent;
  231. }
  232. .ui.secondary.menu .dropdown.item .menu {
  233. left: 0px;
  234. min-width: 100%;
  235. }
  236. /* Even Width Menu Dropdown */
  237. .ui.item.menu .dropdown .menu .item {
  238. width: 100%;
  239. }
  240. /*--------------
  241. Labels
  242. ---------------*/
  243. .ui.menu .item > .label {
  244. background: @labelBackground;
  245. color: @labelTextColor;
  246. margin: @labelOffset 0em @labelOffset @labelTextMargin;
  247. padding: @labelVerticalPadding @labelHorizontalPadding;
  248. vertical-align: baseline;
  249. }
  250. .ui.menu .item > .floating.label {
  251. padding: @labelVerticalPadding @labelHorizontalPadding;
  252. }
  253. /*--------------
  254. Images
  255. ---------------*/
  256. .ui.menu .item > img:only-child {
  257. display: block;
  258. max-width: 100%;
  259. margin: 0em auto;
  260. }
  261. /*******************************
  262. States
  263. *******************************/
  264. /*--------------
  265. Hover
  266. ---------------*/
  267. .ui.link.menu > .item:hover,
  268. .ui.menu > .link.item:hover,
  269. .ui.menu > a.item:hover,
  270. .ui.link.menu .menu > .item:hover,
  271. .ui.menu .menu > .link.item:hover,
  272. .ui.menu .menu > a.item:hover {
  273. cursor: pointer;
  274. background: @hoverBackground;
  275. color: @hoverColor;
  276. }
  277. /*--------------
  278. Pressed
  279. ---------------*/
  280. .ui.link.menu .item:active,
  281. .ui.menu .link.item:active,
  282. .ui.menu a.item:active {
  283. background: @pressedBackground;
  284. color: @pressedColor;
  285. }
  286. /*--------------
  287. Active
  288. ---------------*/
  289. .ui.menu .active.item {
  290. background: @activeBackground;
  291. color: @darkTextColor;
  292. font-weight: @activeFontWeight;
  293. box-shadow: 0em @activeBorderSize 0em inset;
  294. }
  295. .ui.menu .active.item > i.icon {
  296. opacity: @activeIconOpacity;
  297. }
  298. /* Vertical */
  299. .ui.vertical.menu .active.item {
  300. background: @activeBackground;
  301. border-radius: 0em;
  302. box-shadow: @activeBorderSize 0em 0em inset;
  303. }
  304. .ui.vertical.menu > .active.item:first-child {
  305. border-radius: 0em @borderRadius 0em 0em;
  306. }
  307. .ui.vertical.menu > .active.item:last-child {
  308. border-radius: 0em 0em @borderRadius 0em;
  309. }
  310. .ui.vertical.menu > .active.item:only-child {
  311. border-radius: 0em @borderRadius @borderRadius 0em;
  312. }
  313. .ui.vertical.menu .active.item .menu .active.item {
  314. border-left: none;
  315. }
  316. .ui.vertical.menu .item .menu .active.item {
  317. background-color: @subMenuActiveBackground;
  318. box-shadow: none;
  319. }
  320. /*--------------
  321. Active Hover
  322. ---------------*/
  323. .ui.vertical.menu .active.item:hover,
  324. .ui.menu .active.item:hover {
  325. background-color: @activeHoverBackground;
  326. }
  327. /*--------------
  328. Disabled
  329. ---------------*/
  330. .ui.menu .item.disabled,
  331. .ui.menu .item.disabled:hover {
  332. cursor: default;
  333. color: @disabledTextColor;
  334. background-color: transparent !important;
  335. }
  336. /*--------------------
  337. Loading
  338. ---------------------*/
  339. /* On Form */
  340. .ui.menu.loading {
  341. position: relative;
  342. }
  343. .ui.menu.loading:after {
  344. position: absolute;
  345. top: 0%;
  346. left: 0%;
  347. content: '';
  348. width: 100%;
  349. height: 100%;
  350. background: @loadingBackgroundColor url("@{loadingImage}") no-repeat @loadingPosition;
  351. visibility: visible;
  352. }
  353. /*******************************
  354. Types
  355. *******************************/
  356. /*--------------
  357. Vertical
  358. ---------------*/
  359. .ui.vertical.menu {
  360. background: @verticalBackground;
  361. }
  362. /*--- Item ---*/
  363. .ui.vertical.menu .item {
  364. background: @verticalItemBackground;
  365. display: block;
  366. height: auto !important;
  367. border-top: none;
  368. border-left: @borderSize solid transparent;
  369. border-right: none;
  370. }
  371. .ui.vertical.menu > .item:first-child {
  372. border-radius: @borderRadius @borderRadius 0px 0px;
  373. }
  374. .ui.vertical.menu > .item:last-child {
  375. border-radius: 0px 0px @borderRadius @borderRadius;
  376. }
  377. /*--- Label ---*/
  378. .ui.vertical.menu .item > .label {
  379. float: right;
  380. text-align: center;
  381. }
  382. /*--- Icon ---*/
  383. .ui.vertical.menu .item > i.icon {
  384. width: @iconWidth;
  385. float: @verticalIconFloat;
  386. margin: @verticalIconMargin;
  387. }
  388. .ui.vertical.menu .item > .label + i.icon {
  389. float: @labelAndIconFloat;
  390. margin: @labelAndIconMargin;
  391. }
  392. /*--- Border ---*/
  393. .ui.vertical.menu .item:before {
  394. position: absolute;
  395. content: '';
  396. top: 0%;
  397. left: 0px;
  398. width: 100%;
  399. height: @dividerSize;
  400. background: @verticalDividerBackground;
  401. height: 1px;
  402. }
  403. .ui.vertical.menu .item:first-child:before {
  404. background: none !important;
  405. }
  406. /*--- Dropdown ---*/
  407. .ui.vertical.menu .dropdown.item > .icon {
  408. float: right;
  409. content: "\f0da";
  410. margin-left: 1em;
  411. }
  412. .ui.vertical.menu .dropdown.item .menu {
  413. top: 0% !important;
  414. left: 100%;
  415. margin: @dropdownMenuOffset 0px 0px @dropdownMenuOffset;
  416. box-shadow: @dropdownVerticalBoxShadow;
  417. }
  418. .ui.vertical.menu .dropdown.item.active {
  419. border-top-right-radius: 0em;
  420. border-bottom-right-radius: 0em;
  421. }
  422. .ui.vertical.menu .dropdown.item .menu .item {
  423. font-size: 1rem;
  424. }
  425. .ui.vertical.menu .dropdown.item .menu .item i.icon {
  426. margin-right: 0em;
  427. }
  428. .ui.vertical.menu .dropdown.item.active {
  429. box-shadow: none;
  430. }
  431. /*--- Sub Menu ---*/
  432. .ui.vertical.menu .item:not(.dropdown) > .menu {
  433. margin: @subMenuMargin -@horizontalPadding 0em;
  434. }
  435. .ui.vertical.menu .item:not(.dropdown) > .menu > .item {
  436. background: none;
  437. padding: @subMenuHorizontalPadding @subMenuVerticalPadding;
  438. font-size: @subMenuFontSize;
  439. }
  440. .ui.vertical.menu .item > .menu > .item:before {
  441. display: none;
  442. }
  443. /*--------------
  444. Tiered
  445. ---------------*/
  446. .ui.tiered.menu > .menu > .item:hover {
  447. color: @tieredSubMenuActiveColor;
  448. }
  449. .ui.tiered.menu .active.item {
  450. background: @tieredActiveItemBackground;
  451. }
  452. .ui.tiered.menu > .menu .item.active:after {
  453. position: absolute;
  454. content: '';
  455. margin-top: -@dividerSize;
  456. top: 100%;
  457. left: 0px;
  458. width: 100%;
  459. height: 2px;
  460. background-color: @tieredActiveMenuBackground;
  461. }
  462. /* Sub Menu */
  463. .ui.tiered.menu .sub.menu {
  464. background-color: @tieredActiveMenuBackground;
  465. border-radius: 0em;
  466. border-top: 1px solid @borderColor;
  467. box-shadow: none;
  468. }
  469. .ui.tiered.menu > .sub.menu > .item {
  470. color: @tieredSubMenuColor;
  471. font-weight: @tieredSubMenuFontWeight;
  472. text-transform: @tieredSubMenuTextTransform;
  473. font-size: @subMenuFontSize;
  474. }
  475. /* Sub Menu Divider */
  476. .ui.tiered.menu .sub.menu .item:before {
  477. background: none;
  478. }
  479. /* Sub Menu Hover */
  480. .ui.tiered.menu .sub.menu .item:hover {
  481. background: @tieredSubMenuHoverBackground;
  482. color: @tieredSubMenuHoverColor;
  483. }
  484. /* Sub Menu Active */
  485. .ui.tiered.menu .sub.menu .active.item {
  486. padding-top: @verticalPadding;
  487. background: @tieredSubMenuActiveBackground;
  488. border-radius: 0;
  489. border-top: medium none;
  490. box-shadow: none;
  491. color: @tieredSubMenuActiveColor !important;
  492. }
  493. .ui.tiered.menu .sub.menu .active.item:after {
  494. display: none;
  495. }
  496. /* Inverted Tiered Menu */
  497. .ui.inverted.tiered.menu > .menu > .item {
  498. color: @invertedUnselectedTextColor;
  499. }
  500. .ui.inverted.tiered.menu .sub.menu {
  501. background-color: @tieredInvertedSubMenuBackground;
  502. }
  503. .ui.inverted.tiered.menu .sub.menu .item {
  504. color: @invertedLightTextColor;
  505. }
  506. .ui.inverted.tiered.menu > .menu > .item:hover {
  507. color: @invertedSelectedTextColor;
  508. }
  509. .ui.inverted.tiered.menu .active.item:after {
  510. display: none;
  511. }
  512. .ui.inverted.tiered.menu > .sub.menu > .active.item,
  513. .ui.inverted.tiered.menu > .menu > .active.item {
  514. color: @invertedSelectedTextColor !important;
  515. box-shadow: none;
  516. }
  517. /* Tiered Pointing */
  518. .ui.pointing.tiered.menu > .menu > .item:after {
  519. display: none;
  520. }
  521. .ui.pointing.tiered.menu > .sub.menu > .item:after {
  522. display: block;
  523. }
  524. /*--------------
  525. Tabular
  526. ---------------*/
  527. .ui.tabular.menu {
  528. background-color: transparent;
  529. border-bottom: @tabularBorderWidth solid @tabularBorderColor;
  530. border-radius: 0em;
  531. box-shadow: none !important;
  532. }
  533. .ui.tabular.menu .item {
  534. background-color: transparent;
  535. border-left: @tabularBorderWidth solid transparent;
  536. border-right: @tabularBorderWidth solid transparent;
  537. border-top: @tabularBorderWidth solid transparent;
  538. padding-left: @tabularHorizontalPadding;
  539. padding-right: @tabularHorizontalPadding;
  540. color: @tabularMenuTextColor;
  541. }
  542. .ui.tabular.menu .item:before {
  543. display: none;
  544. }
  545. /* Hover */
  546. .ui.tabular.menu .item:hover {
  547. background-color: transparent;
  548. color: @selectedTextColor;
  549. }
  550. /* Active */
  551. .ui.tabular.menu .active.item {
  552. position: relative;
  553. background-color: @tabularMenuActiveBackground;
  554. color: @tabularActiveColor;
  555. border-color: @tabularBorderColor;
  556. font-weight: @tabularActiveWeight;
  557. margin-bottom: -@tabularBorderWidth;
  558. border-bottom: @tabularBorderWidth solid @tabularBackgroundColor;
  559. box-shadow: none;
  560. border-radius: @tabularBorderRadius @tabularBorderRadius 0px 0px;
  561. }
  562. /* Coupling with segment for attachment */
  563. .ui.attached.tabular.menu {
  564. position: relative;
  565. z-index: 2;
  566. }
  567. .ui.tabular.menu ~ .bottom.attached.segment {
  568. margin: 0px 0px 0px 1px;
  569. }
  570. /* Coupling with accordion */
  571. .ui.accordion.menu .item .title > i.dropdown.icon {
  572. float: @dropdownIconFloat;
  573. margin-left: @dropdownIconDistance;
  574. }
  575. /*--------------
  576. Pagination
  577. ---------------*/
  578. .ui.pagination.menu {
  579. margin: 0em;
  580. display: inline-block;
  581. vertical-align: middle;
  582. }
  583. .ui.pagination.menu .item {
  584. min-width: @paginationMinWidth;
  585. text-align: center;
  586. }
  587. .ui.pagination.menu .icon.item i.icon {
  588. vertical-align: top;
  589. }
  590. .ui.pagination.menu.floated {
  591. display: block;
  592. }
  593. /* Active */
  594. .ui.pagination.menu .active.item {
  595. border-top: none;
  596. padding-top: @verticalPadding;
  597. background-color: @paginationActiveBackground;
  598. box-shadow: none;
  599. }
  600. /*--------------
  601. Secondary
  602. ---------------*/
  603. .ui.secondary.menu {
  604. background: @secondaryBackground;
  605. border-radius: 0em;
  606. box-shadow: none;
  607. }
  608. .ui.secondary.menu > .menu > .item,
  609. .ui.secondary.menu > .item {
  610. box-shadow: none;
  611. border: none;
  612. height: auto !important;
  613. background: @secondaryItemBackground;
  614. margin: 0em @secondaryMargin;
  615. padding: @secondaryVerticalPadding @secondaryHorizontalPadding;
  616. border-radius: @secondaryBorderRadius;
  617. }
  618. .ui.secondary.menu > .menu > .item:before,
  619. .ui.secondary.menu > .item:before {
  620. display: none !important;
  621. }
  622. .ui.secondary.menu .item > .input input {
  623. background-color: transparent;
  624. border: none;
  625. }
  626. .ui.secondary.menu .link.item,
  627. .ui.secondary.menu a.item {
  628. opacity: @secondaryLinkOpacity;
  629. transition: none;
  630. }
  631. .ui.secondary.menu .header.item {
  632. border-right: @secondaryHeaderBorder;
  633. background: @secondaryHeaderBackground;
  634. border-radius: 0em;
  635. }
  636. /* Hover */
  637. .ui.secondary.menu .link.item:hover,
  638. .ui.secondary.menu a.item:hover {
  639. opacity: 1;
  640. }
  641. /* Active */
  642. .ui.secondary.menu > .menu > .active.item,
  643. .ui.secondary.menu > .active.item {
  644. background: @secondaryActiveBackground;
  645. opacity: 1;
  646. box-shadow: none;
  647. }
  648. .ui.secondary.vertical.menu > .active.item {
  649. border-radius: @secondaryBorderRadius;
  650. }
  651. /* Inverted */
  652. .ui.secondary.inverted.menu .link.item,
  653. .ui.secondary.inverted.menu a.item {
  654. color: @secondaryInvertedColor;
  655. }
  656. .ui.secondary.inverted.menu .link.item:hover,
  657. .ui.secondary.inverted.menu a.item:hover {
  658. color: @secondaryInvertedHoverColor;
  659. }
  660. .ui.secondary.inverted.menu .active.item {
  661. background-color: @secondaryInvertedActiveBackground;
  662. }
  663. /* Disable variations */
  664. .ui.secondary.item.menu > .item {
  665. margin: 0em;
  666. }
  667. .ui.secondary.attached.menu {
  668. box-shadow: none;
  669. }
  670. /*---------------------
  671. Secondary Vertical
  672. -----------------------*/
  673. .ui.secondary.vertical.menu > .item {
  674. border: none;
  675. margin: 0em 0em @secondaryVerticalMargin;
  676. border-radius: @borderRadius;
  677. }
  678. .ui.secondary.vertical.menu > .header.item {
  679. border-radius: 0em;
  680. }
  681. /* Inverted */
  682. .ui.secondary.inverted.menu {
  683. background-color: transparent;
  684. }
  685. .ui.secondary.inverted.pointing.menu {
  686. border-bottom: @secondaryPointingBorderWidth solid rgba(255, 255, 255, 0.1);
  687. }
  688. .ui.secondary.inverted.pointing.menu > .item {
  689. color: rgba(255, 255, 255, 0.7);
  690. }
  691. .ui.secondary.inverted.pointing.menu > .header.item {
  692. color: #FFFFFF !important;
  693. }
  694. /* Hover */
  695. .ui.secondary.inverted.pointing.menu > .menu > .item:hover,
  696. .ui.secondary.inverted.pointing.menu > .item:hover {
  697. color: rgba(255, 255, 255, 0.85);
  698. }
  699. /* Pressed */
  700. .ui.secondary.inverted.pointing.menu > .menu > .item:active,
  701. .ui.secondary.inverted.pointing.menu > .item:active {
  702. border-color: rgba(255, 255, 255, 0.4);
  703. }
  704. /* Active */
  705. .ui.secondary.inverted.pointing.menu > .menu > .item.active,
  706. .ui.secondary.inverted.pointing.menu > .item.active {
  707. border-color: rgba(255, 255, 255, 0.8);
  708. color: rgba(255, 255, 255, 1);
  709. }
  710. /*---------------------
  711. Secondary Pointing
  712. -----------------------*/
  713. .ui.secondary.pointing.menu {
  714. border-bottom: @secondaryPointingBorderWidth solid rgba(0, 0, 0, 0.1);
  715. }
  716. .ui.secondary.pointing.menu > .menu > .item,
  717. .ui.secondary.pointing.menu > .item {
  718. margin: 0em 0em -@secondaryPointingBorderWidth;
  719. padding: @secondaryPointingVerticalPadding @secondaryPointingHorizontalPadding;
  720. border-bottom: @secondaryPointingBorderWidth solid transparent;
  721. border-radius: 0em;
  722. transition: @secondaryTransition;
  723. }
  724. /* Item Types */
  725. .ui.secondary.pointing.menu .header.item {
  726. margin-bottom: -@secondaryPointingBorderWidth;
  727. background-color: transparent !important;
  728. border-right-width: 0px !important;
  729. font-weight: bold !important;
  730. color: @secondaryPointingHeaderColor !important;
  731. }
  732. .ui.secondary.pointing.menu .text.item {
  733. box-shadow: none !important;
  734. }
  735. .ui.secondary.pointing.menu > .menu > .item:after,
  736. .ui.secondary.pointing.menu > .item:after {
  737. display: none;
  738. }
  739. /* Hover */
  740. .ui.secondary.pointing.menu > .menu > .link.item:hover,
  741. .ui.secondary.pointing.menu > .link.item:hover,
  742. .ui.secondary.pointing.menu > .menu > a.item:hover,
  743. .ui.secondary.pointing.menu > a.item:hover {
  744. background-color: transparent;
  745. color: @secondaryPointingHoverTextColor;
  746. }
  747. /* Pressed */
  748. .ui.secondary.pointing.menu > .menu > .link.item:active,
  749. .ui.secondary.pointing.menu > .link.item:active,
  750. .ui.secondary.pointing.menu > .menu > a.item:active,
  751. .ui.secondary.pointing.menu > a.item:active {
  752. background-color: transparent;
  753. border-color: @secondaryPointingBorderColor;
  754. }
  755. /* Active */
  756. .ui.secondary.pointing.menu > .menu > .item.active,
  757. .ui.secondary.pointing.menu > .item.active {
  758. background-color: transparent;
  759. border-color: rgba(0, 0, 0, 0.4);
  760. box-shadow: none;
  761. color: @secondaryPointingActiveTextColor;
  762. }
  763. /* Secondary Vertical Pointing */
  764. .ui.secondary.vertical.pointing.menu {
  765. border: none;
  766. border-right: @secondaryPointingBorderWidth solid rgba(0, 0, 0, 0.1);
  767. }
  768. .ui.secondary.vertical.pointing.menu > .item {
  769. margin: 0em -@secondaryPointingBorderWidth 0em 0em;
  770. border-bottom: none;
  771. border-right: @secondaryPointingBorderWidth solid transparent;
  772. border-radius: 0em;
  773. }
  774. /* Hover */
  775. .ui.secondary.vertical.pointing.menu > .item:hover {
  776. background-color: transparent;
  777. color: rgba(0, 0, 0, 0.7);
  778. }
  779. /* Pressed */
  780. .ui.secondary.vertical.pointing.menu > .item:active {
  781. background-color: transparent;
  782. border-color: rgba(0, 0, 0, 0.2);
  783. }
  784. /* Active */
  785. .ui.secondary.vertical.pointing.menu > .item.active {
  786. background-color: transparent;
  787. border-color: rgba(0, 0, 0, 0.4);
  788. color: rgba(0, 0, 0, 0.85);
  789. }
  790. /* Inverted Vertical Pointing Secondary */
  791. .ui.secondary.inverted.vertical.pointing.menu {
  792. border-right: @secondaryPointingBorderWidth solid rgba(255, 255, 255, 0.1);
  793. border-bottom: none;
  794. }
  795. /*--------------
  796. Text Menu
  797. ---------------*/
  798. .ui.text.menu {
  799. background: none transparent;
  800. margin: 1rem -1rem;
  801. border-radius: 0px;
  802. box-shadow: none;
  803. }
  804. .ui.text.menu > .item {
  805. opacity: 0.8;
  806. margin: 0em 1em;
  807. padding: 0em;
  808. height: auto !important;
  809. border-radius: 0px;
  810. box-shadow: none;
  811. transition: @textMenuTransition;
  812. }
  813. .ui.text.menu > .item:before {
  814. display: none !important;
  815. }
  816. .ui.text.menu .header.item {
  817. background-color: transparent;
  818. opacity: 1;
  819. color: rgba(50, 50, 50, 0.8);
  820. font-size: 0.875rem;
  821. padding: 0em;
  822. text-transform: uppercase;
  823. font-weight: bold;
  824. }
  825. .ui.text.menu .text.item {
  826. opacity: 1;
  827. color: rgba(50, 50, 50, 0.8);
  828. font-weight: bold;
  829. }
  830. /*--- fluid text ---*/
  831. .ui.text.item.menu .item {
  832. margin: 0em;
  833. }
  834. /*--- vertical text ---*/
  835. .ui.vertical.text.menu {
  836. margin: 1rem 0em;
  837. }
  838. .ui.vertical.text.menu:first-child {
  839. margin-top: 0rem;
  840. }
  841. .ui.vertical.text.menu:last-child {
  842. margin-bottom: 0rem;
  843. }
  844. .ui.vertical.text.menu .item {
  845. float: left;
  846. clear: left;
  847. margin: 0.5em 0em;
  848. }
  849. .ui.vertical.text.menu .item > i.icon {
  850. float: none;
  851. margin: 0em @verticalPadding 0em 0em;
  852. }
  853. .ui.vertical.text.menu .header.item {
  854. margin: 0.8em 0em;
  855. }
  856. /*--- hover ---*/
  857. .ui.text.menu .item:hover {
  858. opacity: 1;
  859. background-color: transparent;
  860. }
  861. /*--- active ---*/
  862. .ui.text.menu .active.item {
  863. background-color: transparent;
  864. padding: 0em;
  865. border: none;
  866. opacity: 1;
  867. font-weight: bold;
  868. box-shadow: none;
  869. }
  870. /* disable variations */
  871. .ui.text.pointing.menu .active.item:after {
  872. box-shadow: none;
  873. }
  874. .ui.text.attached.menu {
  875. box-shadow: none;
  876. }
  877. .ui.inverted.text.menu,
  878. .ui.inverted.text.menu .item,
  879. .ui.inverted.text.menu .item:hover,
  880. .ui.inverted.text.menu .item.active {
  881. background-color: transparent;
  882. }
  883. /*--------------
  884. Icon Only
  885. ---------------*/
  886. .ui.icon.menu,
  887. .ui.vertical.icon.menu {
  888. width: auto;
  889. display: inline-block;
  890. height: auto;
  891. }
  892. .ui.icon.menu > .item {
  893. height: auto;
  894. text-align: center;
  895. color: rgba(60, 60, 60, 0.7);
  896. }
  897. .ui.icon.menu > .item > .icon {
  898. display: block;
  899. float: none !important;
  900. opacity: 1;
  901. margin: 0em auto !important;
  902. }
  903. .ui.icon.menu .icon:before {
  904. opacity: 1;
  905. }
  906. /* Item Icon Only */
  907. .ui.menu .icon.item .icon {
  908. margin: 0em;
  909. }
  910. .ui.vertical.icon.menu {
  911. float: none;
  912. }
  913. /*--- inverted ---*/
  914. .ui.inverted.icon.menu .item {
  915. color: rgba(255, 255, 255, 0.8);
  916. }
  917. .ui.inverted.icon.menu .icon {
  918. color: rgba(255, 255, 255, 1);
  919. }
  920. /*--------------
  921. Labeled Icon
  922. ---------------*/
  923. .ui.labeled.icon.menu {
  924. text-align: center;
  925. }
  926. .ui.labeled.icon.menu > .item {
  927. min-width: @labeledIconMinWidth;
  928. }
  929. .ui.labeled.icon.menu > .item > .icon {
  930. display: block;
  931. font-size: @labeledIconSize !important;
  932. margin: 0em auto @labeledIconTextMargin !important;
  933. }
  934. /*******************************
  935. Variations
  936. *******************************/
  937. /*--------------
  938. Colors
  939. ---------------*/
  940. /*--- Light Colors ---*/
  941. .ui.menu .blue.active.item,
  942. .ui.blue.menu .active.item {
  943. border-color: @blue !important;
  944. color: @blue !important;
  945. }
  946. .ui.menu .green.active.item,
  947. .ui.green.menu .active.item {
  948. border-color: @green !important;
  949. color: @green !important;
  950. }
  951. .ui.menu .orange.active.item,
  952. .ui.orange.menu .active.item {
  953. border-color: @orange !important;
  954. color: @orange !important;
  955. }
  956. .ui.menu .pink.active.item,
  957. .ui.pink.menu .active.item {
  958. border-color: @pink !important;
  959. color: @pink !important;
  960. }
  961. .ui.menu .purple.active.item,
  962. .ui.purple.menu .active.item {
  963. border-color: @purple !important;
  964. color: @purple !important;
  965. }
  966. .ui.menu .red.active.item,
  967. .ui.red.menu .active.item {
  968. border-color: @red !important;
  969. color: @red !important;
  970. }
  971. .ui.menu .teal.active.item,
  972. .ui.teal.menu .active.item {
  973. border-color: @teal !important;
  974. color: @teal !important;
  975. }
  976. .ui.menu .yellow.active.item,
  977. .ui.yellow.menu .active.item {
  978. border-color: @yellow !important;
  979. color: @yellow !important;
  980. }
  981. /*--------------
  982. Inverted
  983. ---------------*/
  984. .ui.inverted.menu {
  985. background: @invertedBackground;
  986. box-shadow: @invertedBoxShadow;
  987. }
  988. .ui.inverted.menu .header.item {
  989. margin: 0em;
  990. background: @invertedHeaderBackground;
  991. box-shadow: none;
  992. }
  993. .ui.inverted.menu .item,
  994. .ui.inverted.menu .item > a:not(.ui) {
  995. color: @invertedTextColor;
  996. }
  997. .ui.inverted.menu .item:not(.dropdown).menu {
  998. background: @invertedSubMenuBackground;
  999. }
  1000. .ui.inverted.menu .item .item,
  1001. .ui.inverted.menu .item .item > a:not(.ui) {
  1002. color: @invertedSubMenuColor;
  1003. }
  1004. .ui.inverted.menu .dropdown .menu .item {
  1005. color: @dropdownTextColor !important;
  1006. }
  1007. .ui.inverted.menu .item.disabled,
  1008. .ui.inverted.menu .item.disabled:hover {
  1009. color: @invertedDisabledTextColor;
  1010. }
  1011. /*--- Border ---*/
  1012. .ui.inverted.menu .item:before {
  1013. background: @invertedDividerBackground;
  1014. }
  1015. .ui.vertical.inverted.menu .item:before {
  1016. background: @invertedVerticalDividerBackground;
  1017. }
  1018. /*--- Hover ---*/
  1019. .ui.link.inverted.menu .item:hover,
  1020. .ui.inverted.menu .link.item:hover,
  1021. .ui.inverted.menu a.item:hover,
  1022. .ui.inverted.menu .dropdown.item:hover {
  1023. background: @invertedHoverBackground;
  1024. color: @invertedHoverColor;
  1025. }
  1026. .ui.inverted.menu .item .menu a.item:hover,
  1027. .ui.inverted.menu .item .menu .link.item:hover {
  1028. background: @invertedSubMenuBackground;
  1029. color: @invertedSubMenuHoverColor;
  1030. }
  1031. /*--- Pressed ---*/
  1032. .ui.inverted.menu a.item:active,
  1033. .ui.inverted.menu .dropdown.item:active,
  1034. .ui.inverted.menu .link.item:active,
  1035. .ui.inverted.menu a.item:active {
  1036. background: @invertedMenuPressedBackground;
  1037. color: @invertedMenuPressedColor;
  1038. }
  1039. /*--- Active ---*/
  1040. .ui.inverted.menu .active.item {
  1041. box-shadow: none !important;
  1042. background: @invertedActiveBackground;
  1043. color: @invertedActiveColor !important;
  1044. }
  1045. .ui.inverted.vertical.menu .item .menu .active.item {
  1046. background: @invertedSubMenuActiveBackground;
  1047. color: @invertedSubMenuActiveColor;
  1048. }
  1049. /*--- Pointers ---*/
  1050. .ui.inverted.pointing.menu .active.item:after {
  1051. background: #5B5B5B;
  1052. box-shadow: none;
  1053. }
  1054. .ui.inverted.pointing.menu .active.item:hover:after {
  1055. background: #4A4A4A;
  1056. }
  1057. /*--------------
  1058. Selection
  1059. ---------------*/
  1060. .ui.selection.menu > .item {
  1061. color: rgba(0, 0, 0, 0.4);
  1062. }
  1063. .ui.selection.menu > .item:hover {
  1064. color: rgba(0, 0, 0, 0.6);
  1065. }
  1066. .ui.selection.menu > .item.active {
  1067. color: rgba(0, 0, 0, 0.85);
  1068. }
  1069. .ui.inverted.selection.menu > .item {
  1070. color: rgba(255, 255, 255, 0.4);
  1071. }
  1072. .ui.inverted.selection.menu > .item:hover {
  1073. color: rgba(255, 255, 255, 0.9);
  1074. }
  1075. .ui.inverted.selection.menu > .item.active {
  1076. color: #FFFFFF;
  1077. }
  1078. /*--------------
  1079. Floated
  1080. ---------------*/
  1081. .ui.floated.menu {
  1082. float: left;
  1083. margin: 0rem 0.5rem 0rem 0rem;
  1084. }
  1085. .ui.right.floated.menu {
  1086. float: right;
  1087. margin: 0rem 0rem 0rem 0.5rem;
  1088. }
  1089. /*--------------
  1090. Inverted Colors
  1091. ---------------*/
  1092. /*--- Light Colors ---*/
  1093. .ui.grey.menu {
  1094. background-color: @offWhite;
  1095. }
  1096. /*--- Inverted Colors ---*/
  1097. /* Blue */
  1098. .ui.inverted.blue.menu {
  1099. background-color: @blue;
  1100. }
  1101. .ui.inverted.blue.pointing.menu .active.item:after {
  1102. background-color: @blue;
  1103. }
  1104. /* Green */
  1105. .ui.inverted.green.menu {
  1106. background-color: @green;
  1107. }
  1108. .ui.inverted.green.pointing.menu .active.item:after {
  1109. background-color: @green;
  1110. }
  1111. /* Orange */
  1112. .ui.inverted.orange.menu {
  1113. background-color: @orange;
  1114. }
  1115. .ui.inverted.orange.pointing.menu .active.item:after {
  1116. background-color: @orange;
  1117. }
  1118. /* Pink */
  1119. .ui.inverted.pink.menu {
  1120. background-color: @pink;
  1121. }
  1122. .ui.inverted.pink.pointing.menu .active.item:after {
  1123. background-color: @pink;
  1124. }
  1125. /* Purple */
  1126. .ui.inverted.purple.menu {
  1127. background-color: @purple;
  1128. }
  1129. .ui.inverted.purple.pointing.menu .active.item:after {
  1130. background-color: @purple;
  1131. }
  1132. /* Red */
  1133. .ui.inverted.red.menu {
  1134. background-color: @red;
  1135. }
  1136. .ui.inverted.red.pointing.menu .active.item:after {
  1137. background-color: @red;
  1138. }
  1139. /* Teal */
  1140. .ui.inverted.teal.menu {
  1141. background-color: @teal;
  1142. }
  1143. .ui.inverted.teal.pointing.menu .active.item:after {
  1144. background-color: @teal;
  1145. }
  1146. /* Yellow */
  1147. .ui.inverted.yellow.menu {
  1148. background-color: @yellow;
  1149. }
  1150. .ui.inverted.yellow.pointing.menu .active.item:after {
  1151. background-color: @yellow;
  1152. }
  1153. /*--------------
  1154. Fitted
  1155. ---------------*/
  1156. .ui.fitted.menu .item,
  1157. .ui.fitted.menu .item .menu .item,
  1158. .ui.menu .fitted.item {
  1159. padding: 0em;
  1160. }
  1161. .ui.horizontally.fitted.menu .item,
  1162. .ui.horizontally.fitted.menu .item .menu .item,
  1163. .ui.menu .horizontally.fitted.item {
  1164. padding-top: @verticalPadding;
  1165. padding-bottom: @verticalPadding;
  1166. }
  1167. .ui.vertically.fitted.menu .item,
  1168. .ui.vertically.fitted.menu .item .menu .item,
  1169. .ui.menu .vertically.fitted.item {
  1170. padding-left: @horizontalPadding;
  1171. padding-right: @horizontalPadding;
  1172. }
  1173. /*--------------
  1174. Borderless
  1175. ---------------*/
  1176. .ui.borderless.menu .item:before,
  1177. .ui.borderless.menu .item .menu .item:before,
  1178. .ui.menu .borderless.item:before {
  1179. background: none;
  1180. }
  1181. /*-------------------
  1182. Compact
  1183. --------------------*/
  1184. .ui.compact.menu {
  1185. display: inline-block;
  1186. margin: 0em;
  1187. vertical-align: middle;
  1188. }
  1189. .ui.compact.vertical.menu {
  1190. width: auto !important;
  1191. }
  1192. .ui.compact.vertical.menu .item:last-child::before {
  1193. display: block;
  1194. }
  1195. /*-------------------
  1196. Fluid
  1197. --------------------*/
  1198. .ui.menu.fluid,
  1199. .ui.vertical.menu.fluid {
  1200. display: block;
  1201. width: 100% !important;
  1202. }
  1203. /*-------------------
  1204. Evenly Sized
  1205. --------------------*/
  1206. .ui.item.menu,
  1207. .ui.item.menu .item {
  1208. width: 100%;
  1209. padding-left: 0px !important;
  1210. padding-right: 0px !important;
  1211. text-align: center;
  1212. }
  1213. .ui.item.menu > .item:last-child {
  1214. border-radius: 0px @borderRadius @borderRadius 0px;
  1215. }
  1216. .ui.menu.two.item .item {
  1217. width: 50%;
  1218. }
  1219. .ui.menu.three.item .item {
  1220. width: 33.333%;
  1221. }
  1222. .ui.menu.four.item .item {
  1223. width: 25%;
  1224. }
  1225. .ui.menu.five.item .item {
  1226. width: 20%;
  1227. }
  1228. .ui.menu.six.item .item {
  1229. width: 16.666%;
  1230. }
  1231. .ui.menu.seven.item .item {
  1232. width: 14.285%;
  1233. }
  1234. .ui.menu.eight.item .item {
  1235. width: 12.500%;
  1236. }
  1237. .ui.menu.nine.item .item {
  1238. width: 11.11%;
  1239. }
  1240. .ui.menu.ten.item .item {
  1241. width: 10.0%;
  1242. }
  1243. .ui.menu.eleven.item .item {
  1244. width: 9.09%;
  1245. }
  1246. .ui.menu.twelve.item .item {
  1247. width: 8.333%;
  1248. }
  1249. /*--------------
  1250. Fixed
  1251. ---------------*/
  1252. .ui.menu.fixed {
  1253. position: fixed;
  1254. z-index: 999;
  1255. margin: 0em;
  1256. border: none;
  1257. width: 100%;
  1258. }
  1259. .ui.menu.fixed,
  1260. .ui.menu.fixed .item:first-child,
  1261. .ui.menu.fixed .item:last-child {
  1262. border-radius: 0px !important;
  1263. }
  1264. .ui.menu.fixed.top {
  1265. top: 0px;
  1266. left: 0px;
  1267. right: auto;
  1268. bottom: auto;
  1269. }
  1270. .ui.menu.fixed.right {
  1271. top: 0px;
  1272. right: 0px;
  1273. left: auto;
  1274. bottom: auto;
  1275. width: auto;
  1276. height: 100%;
  1277. }
  1278. .ui.menu.fixed.bottom {
  1279. bottom: 0px;
  1280. left: 0px;
  1281. top: auto;
  1282. right: auto;
  1283. }
  1284. .ui.menu.fixed.left {
  1285. top: 0px;
  1286. left: 0px;
  1287. right: auto;
  1288. bottom: auto;
  1289. width: auto;
  1290. height: 100%;
  1291. }
  1292. /* Coupling with Grid */
  1293. .ui.fixed.menu + .ui.grid {
  1294. padding-top: @fixedGridMargin;
  1295. }
  1296. /*-------------------
  1297. Pointing
  1298. --------------------*/
  1299. .ui.pointing.menu .active.item:after {
  1300. position: absolute;
  1301. bottom: @arrowOffset;
  1302. left: 50%;
  1303. content: '';
  1304. margin-left: @arrowOffset;
  1305. width: @arrowSize;
  1306. height: @arrowSize;
  1307. border: none;
  1308. border-bottom: @arrowBorder;
  1309. border-right: @arrowBorder;
  1310. background: none;
  1311. transform: rotate(45deg);
  1312. z-index: 2;
  1313. transition:
  1314. background 0.2s ease
  1315. ;
  1316. }
  1317. /* Don't double up pointers */
  1318. .ui.pointing.menu .active.item .menu .active.item:after {
  1319. display: none;
  1320. }
  1321. .ui.vertical.pointing.menu .active.item:after {
  1322. position: absolute;
  1323. top: 50%;
  1324. margin-top: @arrowOffset;
  1325. right: @arrowOffset;
  1326. bottom: auto;
  1327. left: auto;
  1328. border: none;
  1329. border-top: @arrowBorder;
  1330. border-right: @arrowBorder;
  1331. }
  1332. /* Colors */
  1333. .ui.pointing.menu .active.item:hover:after {
  1334. background-color: @arrowHoverColor;
  1335. }
  1336. .ui.pointing.menu .active.item:after {
  1337. background-color: @arrowActiveColor;
  1338. }
  1339. .ui.vertical.pointing.menu .item:hover:after {
  1340. background-color: @arrowVerticalHoverColor;
  1341. }
  1342. .ui.vertical.pointing.menu .active.item:after {
  1343. background-color: @arrowVerticalActiveColor;
  1344. }
  1345. /*--------------
  1346. Attached
  1347. ---------------*/
  1348. .ui.menu.attached {
  1349. margin: 0rem;
  1350. border-radius: 0px;
  1351. /* avoid rgba multiplying */
  1352. box-shadow: @attachedBoxShadow;
  1353. }
  1354. .ui.top.attached.menu {
  1355. border-radius: @borderRadius @borderRadius 0em 0em;
  1356. }
  1357. .ui.menu.bottom.attached {
  1358. border-radius: 0em 0em @borderRadius @borderRadius;
  1359. }
  1360. /*--------------
  1361. Sizes
  1362. ---------------*/
  1363. /* Small */
  1364. .ui.small.menu .item {
  1365. font-size: @small;
  1366. }
  1367. .ui.small.vertical.menu {
  1368. width: @smallWidth;
  1369. }
  1370. /* Medium */
  1371. .ui.menu .item {
  1372. font-size: @medium;
  1373. }
  1374. .ui.vertical.menu {
  1375. width: @mediumWidth;
  1376. }
  1377. /* Large */
  1378. .ui.large.menu .item {
  1379. font-size: @large;
  1380. }
  1381. .ui.large.menu .item .item {
  1382. font-size: @largeSubMenu;
  1383. }
  1384. .ui.large.menu .dropdown .item {
  1385. font-size: @largeDropdown;
  1386. }
  1387. .ui.large.vertical.menu {
  1388. width: @largeWidth;
  1389. }
  1390. .loadUIOverrides();