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.

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