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.

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