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.

1753 lines
42 KiB

10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Button
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'button';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Button
  19. *******************************/
  20. /* Prototype */
  21. .ui.button {
  22. cursor: pointer;
  23. display: inline-block;
  24. vertical-align: middle;
  25. min-height: 1em;
  26. outline: none;
  27. border: none;
  28. background-color: @backgroundColor;
  29. color: @textColor;
  30. margin: 0em @horizontalMargin @verticalMargin 0em;
  31. padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
  32. font-family: @pageFont;
  33. text-transform: @textTransform;
  34. text-shadow: @textShadow;
  35. font-weight: @fontWeight;
  36. line-height: 1;
  37. font-style: normal;
  38. text-align: center;
  39. text-decoration: none;
  40. background-image: @backgroundImage;
  41. border-radius: @borderRadius;
  42. box-shadow: @boxShadow;
  43. user-select: none;
  44. box-sizing: border-box;
  45. transition: @transition;
  46. }
  47. /*******************************
  48. States
  49. *******************************/
  50. /*--------------
  51. Hover
  52. ---------------*/
  53. .ui.button:hover {
  54. background-color: @hoverBackgroundColor;
  55. background-image: @hoverBackgroundImage;
  56. color: @selectedTextColor;
  57. }
  58. .ui.button:hover .icon {
  59. opacity: @iconHoverOpacity;
  60. }
  61. /*--------------
  62. Focus
  63. ---------------*/
  64. .ui.button:focus {
  65. background-color: @focusBackgroundColor;
  66. background-image: @focusBackgroundImage;
  67. box-shadow: @focusBoxShadow;
  68. color: @selectedTextColor;
  69. }
  70. .ui.button:focus .icon {
  71. opacity: @iconFocusOpacity;
  72. }
  73. /*--------------
  74. Down
  75. ---------------*/
  76. .ui.button:active,
  77. .ui.active.button:active {
  78. background-color: @downBackgroundColor;
  79. background-image: @downBackgroundImage;
  80. color: @selectedTextColor;
  81. box-shadow: @downBoxShadow;
  82. }
  83. /*--------------
  84. Active
  85. ---------------*/
  86. .ui.active.button {
  87. background-color: @activeBackgroundColor;
  88. background-image: @activeBackgroundImage;
  89. box-shadow: @activeBoxShadow;
  90. color: @textColor;
  91. }
  92. .ui.button.active:hover {
  93. background-color: @activeBackgroundColor;
  94. background-image: @activeBackgroundImage;
  95. }
  96. .ui.button.active:active {
  97. background-color: @activeBackgroundColor;
  98. background-image: @activeBackgroundImage;
  99. }
  100. /*--------------
  101. Loading
  102. ---------------*/
  103. .ui.loading.button {
  104. position: relative;
  105. cursor: default;
  106. background-color: @loadingBackgroundColor !important;
  107. text-shadow: none !important;
  108. color: transparent !important;
  109. transition: all 0s linear;
  110. box-shadow: @boxShadow;
  111. }
  112. .ui.loading.button:after {
  113. position: absolute;
  114. top: 0em;
  115. left: 0em;
  116. width: 100%;
  117. height: 100%;
  118. content: '';
  119. background: transparent url(@loaderPath) no-repeat 50% 50%;
  120. }
  121. .ui.labeled.icon.loading.button .icon {
  122. background-color: transparent;
  123. box-shadow: none;
  124. }
  125. /*-------------------
  126. Disabled
  127. --------------------*/
  128. .ui.buttons .disabled.button,
  129. .ui.disabled.button,
  130. .ui.disabled.button:hover,
  131. .ui.disabled.button.active {
  132. cursor: default;
  133. background-color: @lightGrey !important;
  134. color: @lightTextColor !important;
  135. opacity: @disabledOpacity !important;
  136. background-image: none !important;
  137. box-shadow: none !important;
  138. pointer-events: none;
  139. }
  140. /*******************************
  141. Types
  142. *******************************/
  143. /*-------------------
  144. Animated
  145. --------------------*/
  146. .ui.animated.button {
  147. position: relative;
  148. overflow: hidden;
  149. }
  150. .ui.animated.button .visible.content {
  151. position: relative;
  152. }
  153. .ui.animated.button .hidden.content {
  154. position: absolute;
  155. width: 100%;
  156. }
  157. /* Horizontal */
  158. .ui.animated.button .visible.content,
  159. .ui.animated.button .hidden.content {
  160. transition: right @animationDuration @animationEasing 0s;
  161. }
  162. .ui.animated.button .visible.content {
  163. left: auto;
  164. right: 0%;
  165. }
  166. .ui.animated.button .hidden.content {
  167. top: 50%;
  168. left: auto;
  169. right: -100%;
  170. margin-top: -0.5em;
  171. }
  172. .ui.animated.button:hover .visible.content {
  173. left: auto;
  174. right: 200%;
  175. }
  176. .ui.animated.button:hover .hidden.content {
  177. left: auto;
  178. right: 0%;
  179. }
  180. /* Vertical */
  181. .ui.vertical.animated.button .visible.content,
  182. .ui.vertical.animated.button .hidden.content {
  183. transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
  184. }
  185. .ui.vertical.animated.button .visible.content {
  186. transform: translateY(0%);
  187. right: auto;
  188. }
  189. .ui.vertical.animated.button .hidden.content {
  190. top: -100%;
  191. left: 0%;
  192. right: auto;
  193. }
  194. .ui.vertical.animated.button:hover .visible.content {
  195. transform: translateY(200%);
  196. right: auto;
  197. }
  198. .ui.vertical.animated.button:hover .hidden.content {
  199. top: 50%;
  200. right: auto;
  201. }
  202. /* Fade */
  203. .ui.fade.animated.button .visible.content,
  204. .ui.fade.animated.button .hidden.content {
  205. transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
  206. }
  207. .ui.fade.animated.button .visible.content {
  208. left: auto;
  209. right: auto;
  210. opacity: 1;
  211. transform: scale(1);
  212. }
  213. .ui.fade.animated.button .hidden.content {
  214. opacity: 0;
  215. left: 0%;
  216. right: auto;
  217. transform: scale(@fadeScaleHigh);
  218. }
  219. .ui.fade.animated.button:hover .visible.content {
  220. left: auto;
  221. right: auto;
  222. opacity: 0;
  223. transform: scale(@fadeScaleLow);
  224. }
  225. .ui.fade.animated.button:hover .hidden.content {
  226. left: 0%;
  227. right: auto;
  228. opacity: 1;
  229. transform: scale(1);
  230. }
  231. /*-------------------
  232. Inverted
  233. --------------------*/
  234. .ui.inverted.button {
  235. box-shadow: 0px 0px 0px 2px @white inset !important;
  236. background: transparent none;
  237. color: @white;
  238. text-shadow: none !important;
  239. }
  240. .ui.inverted.button:hover {
  241. background: @white none;
  242. box-shadow: 0px 0px 0px 2px @white inset !important;
  243. color: @textColor;
  244. }
  245. /*-------------------
  246. Primary
  247. --------------------*/
  248. .ui.primary.buttons .button,
  249. .ui.primary.button {
  250. background-color: @primaryColor;
  251. color: @invertedTextColor;
  252. text-shadow: @invertedTextShadow;
  253. background-image: @coloredBackgroundImage;
  254. box-shadow: @coloredBoxShadow;
  255. }
  256. .ui.primary.buttons .button:hover,
  257. .ui.primary.button:hover {
  258. background-color: @primaryColorHover;
  259. color: @invertedTextColor;
  260. text-shadow: @invertedTextShadow;
  261. }
  262. .ui.primary.buttons .button:active,
  263. .ui.primary.button:active {
  264. background-color: @primaryColorDown;
  265. color: @invertedTextColor;
  266. text-shadow: @invertedTextShadow;
  267. }
  268. .ui.primary.buttons .active.button,
  269. .ui.primary.button.active {
  270. background-color: @primaryColorActive;
  271. color: @invertedTextColor;
  272. text-shadow: @invertedTextShadow;
  273. }
  274. /*-------------------
  275. Secondary
  276. --------------------*/
  277. .ui.secondary.buttons .button,
  278. .ui.secondary.button {
  279. background-color: @secondaryColor;
  280. color: @invertedTextColor;
  281. text-shadow: @invertedTextShadow;
  282. background-image: @coloredBackgroundImage;
  283. box-shadow: @coloredBoxShadow;
  284. }
  285. .ui.secondary.buttons .button:hover,
  286. .ui.secondary.button:hover {
  287. background-color: @secondaryColorHover;
  288. color: @invertedTextColor;
  289. text-shadow: @invertedTextShadow;
  290. }
  291. .ui.secondary.buttons .button:active,
  292. .ui.secondary.button:active {
  293. background-color: @secondaryColorDown;
  294. color: @invertedTextColor;
  295. text-shadow: @invertedTextShadow;
  296. }
  297. .ui.secondary.buttons .active.button,
  298. .ui.secondary.button.active {
  299. background-color: @secondaryColorActive;
  300. color: @invertedTextColor;
  301. text-shadow: @invertedTextShadow;
  302. }
  303. /*-------------------
  304. Social
  305. --------------------*/
  306. /* Facebook */
  307. .ui.facebook.button {
  308. background-color: @facebookColor;
  309. color: @invertedTextColor;
  310. text-shadow: @invertedTextShadow;
  311. background-image: @coloredBackgroundImage;
  312. box-shadow: @coloredBoxShadow;
  313. }
  314. .ui.facebook.button:hover {
  315. background-color: @facebookHoverColor;
  316. color: @invertedTextColor;
  317. text-shadow: @invertedTextShadow;
  318. }
  319. .ui.facebook.button:active {
  320. background-color: @facebookDownColor;
  321. color: @invertedTextColor;
  322. text-shadow: @invertedTextShadow;
  323. }
  324. /* Twitter */
  325. .ui.twitter.button {
  326. background-color: @twitterColor;
  327. color: @invertedTextColor;
  328. text-shadow: @invertedTextShadow;
  329. background-image: @coloredBackgroundImage;
  330. box-shadow: @coloredBoxShadow;
  331. }
  332. .ui.twitter.button:hover {
  333. background-color: @twitterHoverColor;
  334. color: @invertedTextColor;
  335. text-shadow: @invertedTextShadow;
  336. }
  337. .ui.twitter.button:active {
  338. background-color: @twitterDownColor;
  339. color: @invertedTextColor;
  340. text-shadow: @invertedTextShadow;
  341. }
  342. /* Google Plus */
  343. .ui.google.plus.button {
  344. background-color: @googlePlusColor;
  345. color: @invertedTextColor;
  346. text-shadow: @invertedTextShadow;
  347. background-image: @coloredBackgroundImage;
  348. box-shadow: @coloredBoxShadow;
  349. }
  350. .ui.google.plus.button:hover {
  351. background-color: @googlePlusHoverColor;
  352. color: @invertedTextColor;
  353. text-shadow: @invertedTextShadow;
  354. }
  355. .ui.google.plus.button:active {
  356. background-color: @googlePlusDownColor;
  357. color: @invertedTextColor;
  358. text-shadow: @invertedTextShadow;
  359. }
  360. /* Linked In */
  361. .ui.linkedin.button {
  362. background-color: @linkedInColor;
  363. color: @invertedTextColor;
  364. text-shadow: @invertedTextShadow;
  365. }
  366. .ui.linkedin.button:hover {
  367. background-color: @linkedInHoverColor;
  368. color: @invertedTextColor;
  369. text-shadow: @invertedTextShadow;
  370. }
  371. .ui.linkedin.button:active {
  372. background-color: @linkedInDownColor;
  373. color: @invertedTextColor;
  374. text-shadow: @invertedTextShadow;
  375. }
  376. /* YouTube */
  377. .ui.youtube.button {
  378. background-color: @youtubeColor;
  379. color: @invertedTextColor;
  380. text-shadow: @invertedTextShadow;
  381. background-image: @coloredBackgroundImage;
  382. box-shadow: @coloredBoxShadow;
  383. }
  384. .ui.youtube.button:hover {
  385. background-color: @youtubeHoverColor;
  386. color: @invertedTextColor;
  387. text-shadow: @invertedTextShadow;
  388. }
  389. .ui.youtube.button:active {
  390. background-color: @youtubeDownColor;
  391. color: @invertedTextColor;
  392. text-shadow: @invertedTextShadow;
  393. }
  394. /* Instagram */
  395. .ui.instagram.button {
  396. background-color: @instagramColor;
  397. color: @invertedTextColor;
  398. text-shadow: @invertedTextShadow;
  399. background-image: @coloredBackgroundImage;
  400. box-shadow: @coloredBoxShadow;
  401. }
  402. .ui.instagram.button:hover {
  403. background-color: @instagramHoverColor;
  404. color: @invertedTextColor;
  405. text-shadow: @invertedTextShadow;
  406. }
  407. .ui.instagram.button:active {
  408. background-color: @instagramDownColor;
  409. color: @invertedTextColor;
  410. text-shadow: @invertedTextShadow;
  411. }
  412. /* Pinterest */
  413. .ui.pinterest.button {
  414. background-color: @pinterestColor;
  415. color: @invertedTextColor;
  416. text-shadow: @invertedTextShadow;
  417. background-image: @coloredBackgroundImage;
  418. box-shadow: @coloredBoxShadow;
  419. }
  420. .ui.pinterest.button:hover {
  421. background-color: @pinterestHoverColor;
  422. color: @invertedTextColor;
  423. text-shadow: @invertedTextShadow;
  424. }
  425. .ui.pinterest.button:active {
  426. background-color: @pinterestDownColor;
  427. color: @invertedTextColor;
  428. text-shadow: @invertedTextShadow;
  429. }
  430. /* VK */
  431. .ui.vk.button {
  432. background-color: #4D7198;
  433. color: @white;
  434. background-image: @coloredBackgroundImage;
  435. box-shadow: @coloredBoxShadow;
  436. }
  437. .ui.vk.button:hover {
  438. background-color: @vkHoverColor;
  439. color: @white;
  440. }
  441. .ui.vk.button:active {
  442. background-color: @vkDownColor;
  443. color: @white;
  444. }
  445. /*--------------
  446. Icon
  447. ---------------*/
  448. .ui.button > .icon {
  449. margin-right: @iconMargin;
  450. line-height: 1;
  451. -webkit-transition:
  452. opacity 0.1s @transitionEasing
  453. ;
  454. -moz-transition:
  455. opacity 0.1s @transitionEasing
  456. ;
  457. -o-transition:
  458. opacity 0.1s @transitionEasing
  459. ;
  460. -ms-transition:
  461. opacity 0.1s @transitionEasing
  462. ;
  463. transition:
  464. opacity 0.1s @transitionEasing
  465. ;
  466. }
  467. /*******************************
  468. Variations
  469. *******************************/
  470. /*-------------------
  471. Floated
  472. --------------------*/
  473. .ui.left.floated.buttons,
  474. .ui.left.floated.button {
  475. float: left;
  476. margin-left: 0em;
  477. margin-right: @floatedMargin;
  478. }
  479. .ui.right.floated.buttons,
  480. .ui.right.floated.button {
  481. float: right;
  482. margin-right: 0em;
  483. margin-left: @floatedMargin;
  484. }
  485. /*-------------------
  486. Compact
  487. --------------------*/
  488. .ui.compact.buttons .button,
  489. .ui.compact.button {
  490. padding: @compactVerticalPadding @compactHorizontalPadding ( @compactVerticalPadding + @shadowOffset );
  491. }
  492. .ui.compact.icon.buttons .button,
  493. .ui.compact.icon.button {
  494. padding: @compactVerticalPadding @compactVerticalPadding ( @compactVerticalPadding + @shadowOffset );
  495. }
  496. .ui.compact.labeled.icon.buttons .button,
  497. .ui.compact.labeled.icon.button {
  498. padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) ( @compactVerticalPadding + @shadowOffset );
  499. }
  500. .ui.compact.labeled.icon.buttons > .button > .icon,
  501. .ui.compact.labeled.icon.button > .icon {
  502. padding-top: (@compactVerticalPadding + @iconOffset) !important;
  503. }
  504. /*-------------------
  505. Sizes
  506. --------------------*/
  507. .ui.mini.buttons .button,
  508. .ui.mini.buttons .or,
  509. .ui.mini.button {
  510. font-size: @mini;
  511. }
  512. .ui.tiny.buttons .button,
  513. .ui.tiny.buttons .or,
  514. .ui.tiny.button {
  515. font-size: @tiny;
  516. }
  517. .ui.small.buttons .button,
  518. .ui.small.buttons .or,
  519. .ui.small.button {
  520. font-size: @small;
  521. }
  522. .ui.buttons .button,
  523. .ui.button {
  524. font-size: @medium;
  525. }
  526. .ui.large.buttons .button,
  527. .ui.large.buttons .or,
  528. .ui.large.button {
  529. font-size: @large;
  530. }
  531. .ui.big.buttons .button,
  532. .ui.big.buttons .or,
  533. .ui.big.button {
  534. font-size: @big;
  535. }
  536. .ui.huge.buttons .button,
  537. .ui.huge.buttons .or,
  538. .ui.huge.button {
  539. font-size: @huge;
  540. }
  541. .ui.massive.buttons .button,
  542. .ui.massive.buttons .or,
  543. .ui.massive.button {
  544. font-size: @massive;
  545. }
  546. /* Or resize */
  547. .ui.tiny.buttons .or:before,
  548. .ui.mini.buttons .or:before {
  549. width: 1.45em;
  550. height: 1.55em;
  551. line-height: 1.4;
  552. margin-left: -0.725em;
  553. margin-top: -0.25em;
  554. }
  555. .ui.tiny.buttons .or:after,
  556. .ui.mini.buttons .or:after {
  557. height: 1.45em;
  558. }
  559. /* Loading Resize */
  560. .ui.huge.loading.button:after,
  561. .ui.huge.loading.button.active:after {
  562. background-image: url(@hugeLoaderPath);
  563. }
  564. .ui.massive.buttons .loading.button:after,
  565. .ui.gigantic.buttons .loading.button:after,
  566. .ui.massive.loading.button:after,
  567. .ui.gigantic.loading.button:after,
  568. .ui.massive.buttons .loading.button.active:after,
  569. .ui.gigantic.buttons .loading.button.active:after,
  570. .ui.massive.loading.button.active:after,
  571. .ui.gigantic.loading.button.active:after {
  572. background-image: url(@massiveLoaderPath);
  573. }
  574. /*--------------
  575. Icon Only
  576. ---------------*/
  577. .ui.icon.buttons .button,
  578. .ui.icon.button {
  579. padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
  580. }
  581. .ui.icon.buttons .button > .icon,
  582. .ui.icon.button > .icon {
  583. opacity: @iconButtonOpacity;
  584. margin: 0em;
  585. }
  586. .ui.icon.buttons .button > .icon,
  587. .ui.icon.button > .icon {
  588. height: 0em;
  589. vertical-align: top;
  590. }
  591. /*-------------------
  592. Basic
  593. --------------------*/
  594. .ui.basic.buttons .button,
  595. .ui.basic.button {
  596. background-color: transparent !important;
  597. background-image: none;
  598. color: @textColor !important;
  599. font-weight: normal;
  600. text-transform: none;
  601. text-shadow: none !important;
  602. box-shadow: @basicBoxShadow;
  603. }
  604. .ui.basic.labeled.icon.button > .icon {
  605. padding-top: (@verticalPadding + @iconOffset) !important;
  606. }
  607. .ui.basic.buttons {
  608. box-shadow: @basicGroupBoxShadow;
  609. border-radius: @borderRadius;
  610. }
  611. .ui.basic.buttons .button:hover,
  612. .ui.basic.button:hover {
  613. background: @basicHoverBackground;
  614. color: @selectedTextColor !important;
  615. box-shadow: @basicHoverBoxShadow;
  616. }
  617. .ui.basic.buttons .button:active,
  618. .ui.basic.button:active {
  619. background: @basicDownBackground !important;
  620. color: @selectedTextColor !important;
  621. box-shadow: @basicDownBoxShadow;
  622. }
  623. .ui.basic.buttons .button.active,
  624. .ui.basic.button.active {
  625. background: @basicActiveBackground !important;
  626. color: @basicActiveColor;
  627. box-shadow: @selectedBorderColor;
  628. }
  629. .ui.basic.buttons .button.active:hover,
  630. .ui.basic.button.active:hover {
  631. background-color: @transparentBlack;
  632. }
  633. /* Inverted */
  634. .ui.basic.inverted.buttons .button,
  635. .ui.basic.inverted.button {
  636. background: @basicInvertedBackground !important;
  637. color: @basicInvertedColor !important;
  638. box-shadow: @basicInvertedBoxShadow !important;
  639. }
  640. .ui.basic.inverted.buttons .button:hover,
  641. .ui.basic.inverted.button:hover {
  642. background: @basicInvertedHoverBackground !important;
  643. color: @basicInvertedHoverColor !important;
  644. box-shadow: @basicInvertedHoverBoxShadow !important;
  645. }
  646. .ui.basic.inverted.buttons .button:active,
  647. .ui.basic.inverted.button:active {
  648. background: @basicInvertedDownBackground !important;
  649. color: @basicInvertedDownColor !important;
  650. box-shadow: @basicInvertedDownBoxShadow !important;
  651. }
  652. .ui.basic.inverted.buttons .button.active,
  653. .ui.basic.inverted.button.active {
  654. background: @basicInvertedActiveColor !important;
  655. color: @basicInvertedActiveColor !important;
  656. text-shadow: @invertedTextShadow !important;
  657. box-shadow: @basicInvertedActiveColor !important;
  658. }
  659. .ui.basic.inverted.buttons .button.active:hover,
  660. .ui.basic.inverted.button.active:hover {
  661. background-color: @basicInvertedHoverColor !important;
  662. }
  663. /* Loading */
  664. .ui.basic.loading.button:after {
  665. background-color: @basicLoadingColor;
  666. border-radius: @borderRadius;
  667. }
  668. /* Basic Group */
  669. .ui.basic.buttons .button {
  670. border-left: @basicGroupBorder;
  671. box-shadow: none;
  672. }
  673. /*--------------
  674. Labeled Icon
  675. ---------------*/
  676. .ui.labeled.icon.buttons .button,
  677. .ui.labeled.icon.button {
  678. position: relative;
  679. padding-left: @labeledIconPadding !important;
  680. padding-right: @horizontalPadding !important;
  681. }
  682. .ui.labeled.icon.buttons > .button > .icon,
  683. .ui.labeled.icon.button > .icon {
  684. position: absolute;
  685. top: 0em;
  686. left: 0em;
  687. box-sizing: border-box;
  688. width: @labeledIconWidth;
  689. height: 100%;
  690. padding-top: (@verticalPadding + @iconOffset);
  691. background-color: @labeledIconBackgroundColor;
  692. text-align: center;
  693. color: @labeledIconColor;
  694. border-radius: @borderRadius 0px 0px @borderRadius;
  695. line-height: 1;
  696. box-shadow: @labeledIconLeftShadow;
  697. }
  698. .ui.labeled.icon.buttons .button > .icon {
  699. border-radius: 0em;
  700. }
  701. .ui.labeled.icon.buttons .button:first-child > .icon {
  702. border-top-left-radius: @borderRadius;
  703. border-bottom-left-radius: @borderRadius;
  704. }
  705. .ui.labeled.icon.buttons .button:last-child > .icon {
  706. border-top-right-radius: @borderRadius;
  707. border-bottom-right-radius: @borderRadius;
  708. }
  709. .ui.vertical.labeled.icon.buttons .button:first-child > .icon {
  710. border-radius: 0em;
  711. border-top-left-radius: @borderRadius;
  712. }
  713. .ui.vertical.labeled.icon.buttons .button:last-child > .icon {
  714. border-radius: 0em;
  715. border-bottom-left-radius: @borderRadius;
  716. }
  717. .ui.right.labeled.icon.button {
  718. padding-right: @labeledIconPadding !important;
  719. padding-left: @horizontalPadding !important;
  720. }
  721. .ui.left.fluid.labeled.icon.button,
  722. .ui.right.fluid.labeled.icon.button {
  723. padding-left: @horizontalPadding !important;
  724. padding-right: @horizontalPadding !important;
  725. }
  726. .ui.right.labeled.icon.button .icon {
  727. left: auto;
  728. right: 0em;
  729. border-radius: 0em @borderRadius @borderRadius 0em;
  730. box-shadow: @labeledIconRightShadow;
  731. }
  732. /*--------------
  733. Toggle
  734. ---------------*/
  735. /* Toggle (Modifies active state to give affordances) */
  736. .ui.toggle.buttons .active.button,
  737. .ui.buttons .button.toggle.active,
  738. .ui.button.toggle.active {
  739. background-color: @positiveColor !important;
  740. box-shadow: none !important;
  741. text-shadow: @invertedTextShadow;
  742. color: @invertedTextColor !important;
  743. }
  744. .ui.button.toggle.active:hover {
  745. background-color: @positiveColorHover !important;
  746. text-shadow: @invertedTextShadow;
  747. color: @invertedTextColor !important;
  748. }
  749. /*--------------
  750. Circular
  751. ---------------*/
  752. .ui.circular.button {
  753. border-radius: 10em;
  754. }
  755. /*--------------
  756. Attached
  757. ---------------*/
  758. .ui.attached.button {
  759. display: block;
  760. margin: 0em;
  761. box-shadow: @attachedBoxShadow !important;
  762. }
  763. .ui.attached.top.button {
  764. border-radius: @borderRadius @borderRadius 0em 0em;
  765. }
  766. .ui.attached.bottom.button {
  767. border-radius: 0em 0em @borderRadius @borderRadius;
  768. }
  769. .ui.attached.left.button {
  770. display: inline-block;
  771. border-left: none;
  772. padding-right: @attachedHorizontalPadding;
  773. text-align: right;
  774. border-radius: @borderRadius 0em 0em @borderRadius;
  775. }
  776. .ui.attached.right.button {
  777. display: inline-block;
  778. padding-left: @attachedHorizontalPadding;
  779. text-align: left;
  780. border-radius: 0em @borderRadius @borderRadius 0em;
  781. }
  782. /*-------------------
  783. Or Buttons
  784. --------------------*/
  785. .ui.buttons .or {
  786. position: relative;
  787. float: left;
  788. width: @orWidth;
  789. height: @orHeight;
  790. z-index: 3;
  791. }
  792. .ui.buttons .or:before {
  793. position: absolute;
  794. top: 50%;
  795. left: 50%;
  796. content: 'or';
  797. background-color: @white;
  798. text-shadow: @invertedTextShadow;
  799. margin-top: @orVerticalOffset;
  800. margin-left: @orHorizontalOffset;
  801. width: @orCircleSize;
  802. height: @orCircleSize;
  803. line-height: @orLineHeight;
  804. color: @lightTextColor;
  805. font-style: @orTextStyle;
  806. font-weight: @orTextWeight;
  807. text-align: center;
  808. border-radius: 500em;
  809. box-shadow: @orBoxShadow;
  810. box-sizing: border-box;
  811. }
  812. .ui.buttons .or:after {
  813. position: absolute;
  814. top: 0em;
  815. left: 0em;
  816. content: ' ';
  817. background-color: transparent;
  818. width: @orWidth;
  819. height: (@orHeight + (@orSpacerHeight * 2));
  820. border-top: @orSpacerHeight solid @orSpacerColor;
  821. border-bottom: @orSpacerHeight solid @orSpacerColor;
  822. }
  823. /* Fluid Or */
  824. .ui.fluid.buttons .or {
  825. width: 0em !important;
  826. }
  827. .ui.fluid.buttons .or:after{
  828. display: none;
  829. }
  830. /*-------------------
  831. Attached
  832. --------------------*/
  833. /* Plural Attached */
  834. .attached.ui.buttons {
  835. margin: 0px;
  836. border-radius: @borderRadius @borderRadius 0em 0em;
  837. }
  838. .attached.ui.buttons .button:first-child {
  839. border-radius: @borderRadius 0em 0em 0em;
  840. }
  841. .attached.ui.buttons .button:last-child {
  842. border-radius: 0em @borderRadius 0em 0em;
  843. }
  844. /* Bottom Side */
  845. .bottom.attached.ui.buttons {
  846. margin-top: @attachedOffset;
  847. border-radius: 0em 0em @borderRadius @borderRadius;
  848. }
  849. .bottom.attached.ui.buttons .button:first-child {
  850. border-radius: 0em 0em 0em @borderRadius;
  851. }
  852. .bottom.attached.ui.buttons .button:last-child {
  853. border-radius: 0em 0em @borderRadius 0em;
  854. }
  855. /* Left Side */
  856. .left.attached.ui.buttons {
  857. margin-left: @attachedOffset;
  858. border-radius: 0em @borderRadius @borderRadius 0em;
  859. }
  860. .left.attached.ui.buttons .button:first-child {
  861. margin-left: @attachedOffset;
  862. border-radius: 0em @borderRadius 0em 0em;
  863. }
  864. .left.attached.ui.buttons .button:last-child {
  865. margin-left: @attachedOffset;
  866. border-radius: 0em 0em @borderRadius 0em;
  867. }
  868. /* Right Side */
  869. .right.attached.ui.buttons,
  870. .right.attached.ui.buttons .button {
  871. margin-right: @attachedOffset;
  872. border-radius: @borderRadius 0em 0em @borderRadius;
  873. }
  874. .right.attached.ui.buttons .button:first-child {
  875. margin-left: @attachedOffset;
  876. border-radius: @borderRadius 0em 0em 0em;
  877. }
  878. .right.attached.ui.buttons .button:last-child {
  879. margin-left: @attachedOffset;
  880. border-radius: 0em 0em 0em @borderRadius;
  881. }
  882. /* Fluid */
  883. .ui.fluid.buttons,
  884. .ui.button.fluid,
  885. .ui.fluid.buttons > .button {
  886. display: block;
  887. width: 100%;
  888. }
  889. .ui.\32.buttons > .button,
  890. .ui.two.buttons > .button {
  891. width: 50%;
  892. }
  893. .ui.\33.buttons > .button,
  894. .ui.three.buttons > .button {
  895. width: 33.333%;
  896. }
  897. .ui.\34.buttons > .button,
  898. .ui.four.buttons > .button {
  899. width: 25%;
  900. }
  901. .ui.\35.buttons > .button,
  902. .ui.five.buttons > .button {
  903. width: 20%;
  904. }
  905. .ui.\36.buttons > .button,
  906. .ui.six.buttons > .button {
  907. width: 16.666%;
  908. }
  909. .ui.\37.buttons > .button,
  910. .ui.seven.buttons > .button {
  911. width: 14.285%;
  912. }
  913. .ui.\38.buttons > .button,
  914. .ui.eight.buttons > .button {
  915. width: 12.500%;
  916. }
  917. .ui.\39.buttons > .button,
  918. .ui.nine.buttons > .button {
  919. width: 11.11%;
  920. }
  921. .ui.\31\30.buttons > .button,
  922. .ui.ten.buttons > .button {
  923. width: 10%;
  924. }
  925. .ui.\31\31.buttons > .button,
  926. .ui.eleven.buttons > .button {
  927. width: 9.09%;
  928. }
  929. .ui.\31\32.buttons > .button,
  930. .ui.twelve.buttons > .button {
  931. width: 8.3333%;
  932. }
  933. /* Fluid Vertical Buttons */
  934. .ui.fluid.vertical.buttons,
  935. .ui.fluid.vertical.buttons > .button {
  936. display: block;
  937. width: auto;
  938. box-sizing: border-box;
  939. }
  940. .ui.\32.vertical.buttons > .button,
  941. .ui.two.vertical.buttons > .button {
  942. height: 50%;
  943. }
  944. .ui.\33.vertical.buttons > .button,
  945. .ui.three.vertical.buttons > .button {
  946. height: 33.333%;
  947. }
  948. .ui.\34.vertical.buttons > .button,
  949. .ui.four.vertical.buttons > .button {
  950. height: 25%;
  951. }
  952. .ui.\35.vertical.buttons > .button,
  953. .ui.five.vertical.buttons > .button {
  954. height: 20%;
  955. }
  956. .ui.\36.vertical.buttons > .button,
  957. .ui.six.vertical.buttons > .button {
  958. height: 16.666%;
  959. }
  960. .ui.\37.vertical.buttons > .button,
  961. .ui.seven.vertical.buttons > .button {
  962. height: 14.285%;
  963. }
  964. .ui.\38.vertical.buttons > .button,
  965. .ui.eight.vertical.buttons > .button {
  966. height: 12.500%;
  967. }
  968. .ui.\39.vertical.buttons > .button,
  969. .ui.nine.vertical.buttons > .button {
  970. height: 11.11%;
  971. }
  972. .ui.\31\30.vertical.buttons > .button,
  973. .ui.ten.vertical.buttons > .button {
  974. height: 10%;
  975. }
  976. .ui.\31\31.vertical.buttons > .button,
  977. .ui.eleven.vertical.buttons > .button {
  978. height: 9.09%;
  979. }
  980. .ui.\31\32.vertical.buttons > .button,
  981. .ui.twelve.vertical.buttons > .button {
  982. height: 8.3333%;
  983. }
  984. /*-------------------
  985. Colors
  986. --------------------*/
  987. /*--- Black ---*/
  988. .ui.black.buttons .button,
  989. .ui.black.button {
  990. background-color: @black;
  991. color: @invertedTextColor;
  992. text-shadow: @invertedTextShadow;
  993. background-image: @coloredBackgroundImage;
  994. box-shadow: @coloredBoxShadow;
  995. }
  996. .ui.black.buttons .button:hover,
  997. .ui.black.button:hover {
  998. background-color: @blackHover;
  999. color: @invertedTextColor;
  1000. text-shadow: @invertedTextShadow;
  1001. }
  1002. .ui.black.buttons .button:active,
  1003. .ui.black.button:active {
  1004. background-color: @blackDown;
  1005. color: @invertedTextColor;
  1006. text-shadow: @invertedTextShadow;
  1007. }
  1008. .ui.black.buttons .button.active,
  1009. .ui.black.buttons .button.active:active,
  1010. .ui.black.button.active,
  1011. .ui.black.button .button.active:active {
  1012. background-color: @blackActive;
  1013. color: @invertedTextColor;
  1014. text-shadow: @invertedTextShadow;
  1015. }
  1016. .ui.inverted.black.buttons .button,
  1017. .ui.inverted.black.button {
  1018. background-color: transparent;
  1019. box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
  1020. color: @lightBlack;
  1021. }
  1022. .ui.inverted.black.buttons .button:hover,
  1023. .ui.inverted.black.button:hover {
  1024. box-shadow: 0px 0px 0px 2px @black inset !important;
  1025. background-color: @black;
  1026. color: @white;
  1027. }
  1028. .ui.inverted.black.basic.buttons .button,
  1029. .ui.inverted.black.buttons .basic.button,
  1030. .ui.inverted.black.basic.button {
  1031. background-color: transparent;
  1032. box-shadow: 0px 0px 0px 2px @white inset !important;
  1033. color: @white;
  1034. }
  1035. .ui.inverted.black.basic.buttons .button:hover,
  1036. .ui.inverted.black.buttons .basic.button:hover,
  1037. .ui.inverted.black.basic.button:hover {
  1038. box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
  1039. color: @white !important;
  1040. }
  1041. /*--- Blue ---*/
  1042. .ui.blue.buttons .button,
  1043. .ui.blue.button {
  1044. background-color: @blue;
  1045. color: @invertedTextColor;
  1046. text-shadow: @invertedTextShadow;
  1047. background-image: @coloredBackgroundImage;
  1048. box-shadow: @coloredBoxShadow;
  1049. }
  1050. .ui.blue.buttons .button:hover,
  1051. .ui.blue.button:hover {
  1052. background-color: @blueHover;
  1053. color: @invertedTextColor;
  1054. text-shadow: @invertedTextShadow;
  1055. }
  1056. .ui.blue.buttons .button:active,
  1057. .ui.blue.button:active {
  1058. background-color: @blueDown;
  1059. color: @invertedTextColor;
  1060. text-shadow: @invertedTextShadow;
  1061. }
  1062. .ui.blue.buttons .button.active,
  1063. .ui.blue.buttons .button.active:active,
  1064. .ui.blue.button.active,
  1065. .ui.blue.button .button.active:active {
  1066. background-color: @blueActive;
  1067. color: @invertedTextColor;
  1068. text-shadow: @invertedTextShadow;
  1069. }
  1070. /* Inverted */
  1071. .ui.inverted.blue.buttons .button,
  1072. .ui.inverted.blue.button {
  1073. background-color: transparent;
  1074. box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
  1075. color: @lightBlue;
  1076. }
  1077. .ui.inverted.blue.buttons .button:hover,
  1078. .ui.inverted.blue.button:hover {
  1079. box-shadow: 0px 0px 0px 2px @blue inset !important;
  1080. background-color: @blue;
  1081. color: @white;
  1082. }
  1083. .ui.inverted.blue.basic.buttons .button,
  1084. .ui.inverted.blue.buttons .basic.button,
  1085. .ui.inverted.blue.basic.button {
  1086. background-color: transparent;
  1087. box-shadow: 0px 0px 0px 2px @white inset !important;
  1088. color: @white;
  1089. }
  1090. .ui.inverted.blue.basic.buttons .button:hover,
  1091. .ui.inverted.blue.buttons .basic.button:hover,
  1092. .ui.inverted.blue.basic.button:hover {
  1093. box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
  1094. color: @lightBlue !important;
  1095. }
  1096. /*--- Green ---*/
  1097. .ui.green.buttons .button,
  1098. .ui.green.button {
  1099. background-color: @green;
  1100. color: @invertedTextColor;
  1101. text-shadow: @invertedTextShadow;
  1102. background-image: @coloredBackgroundImage;
  1103. box-shadow: @coloredBoxShadow;
  1104. }
  1105. .ui.green.buttons .button:hover,
  1106. .ui.green.button:hover {
  1107. background-color: @greenHover;
  1108. color: @invertedTextColor;
  1109. text-shadow: @invertedTextShadow;
  1110. }
  1111. .ui.green.buttons .button:active,
  1112. .ui.green.button:active {
  1113. background-color: @greenDown;
  1114. color: @invertedTextColor;
  1115. text-shadow: @invertedTextShadow;
  1116. }
  1117. .ui.green.buttons .button.active,
  1118. .ui.green.buttons .button.active:active,
  1119. .ui.green.button.active,
  1120. .ui.green.button .button.active:active {
  1121. background-color: @greenActive;
  1122. color: @invertedTextColor;
  1123. text-shadow: @invertedTextShadow;
  1124. }
  1125. /* Inverted */
  1126. .ui.inverted.green.buttons .button,
  1127. .ui.inverted.green.button {
  1128. background-color: transparent;
  1129. box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
  1130. color: @lightGreen;
  1131. }
  1132. .ui.inverted.green.buttons .button:hover,
  1133. .ui.inverted.green.button:hover {
  1134. box-shadow: 0px 0px 0px 2px @green inset !important;
  1135. background-color: @green;
  1136. color: @white;
  1137. }
  1138. .ui.inverted.green.basic.buttons .button,
  1139. .ui.inverted.green.buttons .basic.button,
  1140. .ui.inverted.green.basic.button {
  1141. background-color: transparent;
  1142. box-shadow: 0px 0px 0px 2px @white inset !important;
  1143. color: @white;
  1144. }
  1145. .ui.inverted.green.basic.buttons .button:hover,
  1146. .ui.inverted.green.buttons .basic.button:hover,
  1147. .ui.inverted.green.basic.button:hover {
  1148. box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
  1149. color: @lightGreen !important;
  1150. }
  1151. /*--- Orange ---*/
  1152. .ui.orange.buttons .button,
  1153. .ui.orange.button {
  1154. background-color: @orange;
  1155. color: @invertedTextColor;
  1156. text-shadow: @invertedTextShadow;
  1157. background-image: @coloredBackgroundImage;
  1158. box-shadow: @coloredBoxShadow;
  1159. }
  1160. .ui.orange.buttons .button:hover,
  1161. .ui.orange.button:hover {
  1162. background-color: @orangeHover;
  1163. color: @invertedTextColor;
  1164. text-shadow: @invertedTextShadow;
  1165. }
  1166. .ui.orange.buttons .button:active,
  1167. .ui.orange.button:active {
  1168. background-color: @orangeDown;
  1169. color: @invertedTextColor;
  1170. text-shadow: @invertedTextShadow;
  1171. }
  1172. .ui.orange.buttons .button.active,
  1173. .ui.orange.buttons .button.active:active,
  1174. .ui.orange.button.active,
  1175. .ui.orange.button .button.active:active {
  1176. background-color: @blackActive;
  1177. color: @invertedTextColor;
  1178. text-shadow: @invertedTextShadow;
  1179. }
  1180. /* Inverted */
  1181. .ui.inverted.orange.buttons .button,
  1182. .ui.inverted.orange.button {
  1183. background-color: transparent;
  1184. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1185. color: @lightOrange;
  1186. }
  1187. .ui.inverted.orange.buttons .button:hover,
  1188. .ui.inverted.orange.button:hover {
  1189. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1190. background-color: @lightOrange;
  1191. color: @white;
  1192. }
  1193. .ui.inverted.orange.basic.buttons .button,
  1194. .ui.inverted.orange.buttons .basic.button,
  1195. .ui.inverted.orange.basic.button {
  1196. background-color: transparent;
  1197. box-shadow: 0px 0px 0px 2px @white inset !important;
  1198. color: @white;
  1199. }
  1200. .ui.inverted.orange.basic.buttons .button:hover,
  1201. .ui.inverted.orange.buttons .basic.button:hover,
  1202. .ui.inverted.orange.basic.button:hover {
  1203. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1204. color: @lightOrange !important;
  1205. }
  1206. /*--- Pink ---*/
  1207. .ui.pink.buttons .button,
  1208. .ui.pink.button {
  1209. background-color: @pink;
  1210. color: @invertedTextColor;
  1211. text-shadow: @invertedTextShadow;
  1212. background-image: @coloredBackgroundImage;
  1213. box-shadow: @coloredBoxShadow;
  1214. }
  1215. .ui.pink.buttons .button:hover,
  1216. .ui.pink.button:hover {
  1217. background-color: @pinkHover;
  1218. color: @invertedTextColor;
  1219. text-shadow: @invertedTextShadow;
  1220. }
  1221. .ui.pink.buttons .button:active,
  1222. .ui.pink.button:active {
  1223. background-color: @pinkDown;
  1224. color: @invertedTextColor;
  1225. text-shadow: @invertedTextShadow;
  1226. }
  1227. .ui.pink.buttons .button.active,
  1228. .ui.pink.buttons .button.active:active,
  1229. .ui.pink.button.active,
  1230. .ui.pink.button .button.active:active {
  1231. background-color: @pinkActive;
  1232. color: @invertedTextColor;
  1233. text-shadow: @invertedTextShadow;
  1234. }
  1235. /* Inverted */
  1236. .ui.inverted.pink.buttons .button,
  1237. .ui.inverted.pink.button {
  1238. background-color: transparent;
  1239. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1240. color: @lightPink;
  1241. }
  1242. .ui.inverted.pink.buttons .button:hover,
  1243. .ui.inverted.pink.button:hover {
  1244. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1245. background-color: @lightPink;
  1246. color: @white;
  1247. }
  1248. .ui.inverted.pink.basic.buttons .button,
  1249. .ui.inverted.pink.buttons .basic.button,
  1250. .ui.inverted.pink.basic.button {
  1251. background-color: transparent;
  1252. box-shadow: 0px 0px 0px 2px @white inset !important;
  1253. color: @white;
  1254. }
  1255. .ui.inverted.pink.basic.buttons .button:hover,
  1256. .ui.inverted.pink.buttons .basic.button:hover,
  1257. .ui.inverted.pink.basic.button:hover {
  1258. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1259. color: @lightPink !important;
  1260. }
  1261. /*--- Purple ---*/
  1262. .ui.purple.buttons .button,
  1263. .ui.purple.button {
  1264. background-color: @purple;
  1265. color: @invertedTextColor;
  1266. text-shadow: @invertedTextShadow;
  1267. background-image: @coloredBackgroundImage;
  1268. box-shadow: @coloredBoxShadow;
  1269. }
  1270. .ui.purple.buttons .button:hover,
  1271. .ui.purple.button:hover {
  1272. background-color: @purpleHover;
  1273. color: @invertedTextColor;
  1274. text-shadow: @invertedTextShadow;
  1275. }
  1276. .ui.purple.buttons .button:active,
  1277. .ui.purple.button:active {
  1278. background-color: @purpleDown;
  1279. color: @invertedTextColor;
  1280. text-shadow: @invertedTextShadow;
  1281. }
  1282. .ui.purple.buttons .button.active,
  1283. .ui.purple.buttons .button.active:active,
  1284. .ui.purple.button.active,
  1285. .ui.purple.button .button.active:active {
  1286. background-color: @purpleActive;
  1287. color: @invertedTextColor;
  1288. text-shadow: @invertedTextShadow;
  1289. }
  1290. /* Inverted */
  1291. .ui.inverted.purple.buttons .button,
  1292. .ui.inverted.purple.button {
  1293. background-color: transparent;
  1294. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1295. color: @lightPurple;
  1296. }
  1297. .ui.inverted.purple.buttons .button:hover,
  1298. .ui.inverted.purple.button:hover {
  1299. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1300. background-color: @lightPurple;
  1301. color: @white;
  1302. }
  1303. .ui.inverted.purple.basic.buttons .button,
  1304. .ui.inverted.purple.buttons .basic.button,
  1305. .ui.inverted.purple.basic.button {
  1306. background-color: transparent;
  1307. box-shadow: 0px 0px 0px 2px @white inset !important;
  1308. color: @white;
  1309. }
  1310. .ui.inverted.purple.basic.buttons .button:hover,
  1311. .ui.inverted.purple.buttons .basic.button:hover,
  1312. .ui.inverted.purple.basic.button:hover {
  1313. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1314. color: @lightPurple !important;
  1315. }
  1316. /*--- Red ---*/
  1317. .ui.red.buttons .button,
  1318. .ui.red.button {
  1319. background-color: @red;
  1320. color: @invertedTextColor;
  1321. text-shadow: @invertedTextShadow;
  1322. background-image: @coloredBackgroundImage;
  1323. box-shadow: @coloredBoxShadow;
  1324. }
  1325. .ui.red.buttons .button:hover,
  1326. .ui.red.button:hover {
  1327. background-color: @redHover;
  1328. color: @invertedTextColor;
  1329. text-shadow: @invertedTextShadow;
  1330. }
  1331. .ui.red.buttons .button:active,
  1332. .ui.red.button:active {
  1333. background-color: @redDown;
  1334. color: @invertedTextColor;
  1335. text-shadow: @invertedTextShadow;
  1336. }
  1337. .ui.red.buttons .button.active,
  1338. .ui.red.buttons .button.active:active,
  1339. .ui.red.button.active,
  1340. .ui.red.button .button.active:active {
  1341. background-color: @redActive;
  1342. color: @invertedTextColor;
  1343. text-shadow: @invertedTextShadow;
  1344. }
  1345. /* Inverted */
  1346. .ui.inverted.red.buttons .button,
  1347. .ui.inverted.red.button {
  1348. background-color: transparent;
  1349. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1350. color: @lightRed;
  1351. }
  1352. .ui.inverted.red.buttons .button:hover,
  1353. .ui.inverted.red.button:hover {
  1354. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1355. background-color: @lightRed;
  1356. color: @white;
  1357. }
  1358. .ui.inverted.red.basic.buttons .button,
  1359. .ui.inverted.red.buttons .basic.button,
  1360. .ui.inverted.red.basic.button {
  1361. background-color: transparent;
  1362. box-shadow: 0px 0px 0px 2px @white inset !important;
  1363. color: @white;
  1364. }
  1365. .ui.inverted.red.basic.buttons .button:hover,
  1366. .ui.inverted.red.buttons .basic.button:hover,
  1367. .ui.inverted.red.basic.button:hover {
  1368. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1369. color: @lightRed !important;
  1370. }
  1371. /*--- Teal ---*/
  1372. .ui.teal.buttons .button,
  1373. .ui.teal.button {
  1374. background-color: @teal;
  1375. color: @invertedTextColor;
  1376. text-shadow: @invertedTextShadow;
  1377. background-image: @coloredBackgroundImage;
  1378. box-shadow: @coloredBoxShadow;
  1379. }
  1380. .ui.teal.buttons .button:hover,
  1381. .ui.teal.button:hover {
  1382. background-color: @tealHover;
  1383. color: @invertedTextColor;
  1384. text-shadow: @invertedTextShadow;
  1385. }
  1386. .ui.teal.buttons .button:active,
  1387. .ui.teal.button:active {
  1388. background-color: @tealDown;
  1389. color: @invertedTextColor;
  1390. text-shadow: @invertedTextShadow;
  1391. }
  1392. .ui.teal.buttons .button.active,
  1393. .ui.teal.buttons .button.active:active,
  1394. .ui.teal.button.active,
  1395. .ui.teal.button .button.active:active {
  1396. background-color: @tealActive;
  1397. color: @invertedTextColor;
  1398. text-shadow: @invertedTextShadow;
  1399. }
  1400. /* Inverted */
  1401. .ui.inverted.teal.buttons .button,
  1402. .ui.inverted.teal.button {
  1403. background-color: transparent;
  1404. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1405. color: @lightTeal;
  1406. }
  1407. .ui.inverted.teal.buttons .button:hover,
  1408. .ui.inverted.teal.button:hover {
  1409. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1410. background-color: @lightTeal;
  1411. color: @white;
  1412. }
  1413. .ui.inverted.teal.basic.buttons .button,
  1414. .ui.inverted.teal.buttons .basic.button,
  1415. .ui.inverted.teal.basic.button {
  1416. background-color: transparent;
  1417. box-shadow: 0px 0px 0px 2px @white inset !important;
  1418. color: @white;
  1419. }
  1420. .ui.inverted.teal.basic.buttons .button:hover,
  1421. .ui.inverted.teal.buttons .basic.button:hover,
  1422. .ui.inverted.teal.basic.button:hover {
  1423. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1424. color: @lightTeal !important;
  1425. }
  1426. /*--- Yellow ---*/
  1427. .ui.yellow.buttons .button,
  1428. .ui.yellow.button {
  1429. background-color: @yellow;
  1430. color: @invertedTextColor;
  1431. text-shadow: @invertedTextShadow;
  1432. background-image: @coloredBackgroundImage;
  1433. box-shadow: @coloredBoxShadow;
  1434. }
  1435. .ui.yellow.buttons .button:hover,
  1436. .ui.yellow.button:hover {
  1437. background-color: @yellowHover;
  1438. color: @invertedTextColor;
  1439. text-shadow: @invertedTextShadow;
  1440. }
  1441. .ui.yellow.buttons .button:active,
  1442. .ui.yellow.button:active {
  1443. background-color: @yellowDown;
  1444. color: @invertedTextColor;
  1445. text-shadow: @invertedTextShadow;
  1446. }
  1447. .ui.yellow.buttons .button.active,
  1448. .ui.yellow.buttons .button.active:active,
  1449. .ui.yellow.button.active,
  1450. .ui.yellow.button .button.active:active {
  1451. background-color: @yellowActive;
  1452. color: @invertedTextColor;
  1453. text-shadow: @invertedTextShadow;
  1454. }
  1455. /* Inverted */
  1456. .ui.inverted.yellow.buttons .button,
  1457. .ui.inverted.yellow.button {
  1458. background-color: transparent;
  1459. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1460. color: @lightYellow;
  1461. }
  1462. .ui.inverted.yellow.buttons .button:hover,
  1463. .ui.inverted.yellow.button:hover {
  1464. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1465. background-color: @lightYellow;
  1466. color: @white;
  1467. }
  1468. .ui.inverted.yellow.basic.buttons .button,
  1469. .ui.inverted.yellow.buttons .basic.button,
  1470. .ui.inverted.yellow.basic.button {
  1471. background-color: transparent;
  1472. box-shadow: 0px 0px 0px 2px @white inset !important;
  1473. color: @white;
  1474. }
  1475. .ui.inverted.yellow.basic.buttons .button:hover,
  1476. .ui.inverted.yellow.buttons .basic.button:hover,
  1477. .ui.inverted.yellow.basic.button:hover {
  1478. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1479. color: @lightYellow !important;
  1480. }
  1481. /*---------------
  1482. Positive
  1483. ----------------*/
  1484. .ui.positive.buttons .button,
  1485. .ui.positive.button {
  1486. background-color: @positiveColor !important;
  1487. color: @invertedTextColor;
  1488. text-shadow: @invertedTextShadow;
  1489. background-image: @coloredBackgroundImage;
  1490. box-shadow: @coloredBoxShadow;
  1491. }
  1492. .ui.positive.buttons .button:hover,
  1493. .ui.positive.button:hover,
  1494. .ui.positive.buttons .active.button,
  1495. .ui.positive.button.active {
  1496. background-color: @positiveColorHover !important;
  1497. color: @invertedTextColor;
  1498. text-shadow: @invertedTextShadow;
  1499. }
  1500. .ui.positive.buttons .button:active,
  1501. .ui.positive.button:active {
  1502. background-color: @positiveColorDown !important;
  1503. color: @invertedTextColor;
  1504. text-shadow: @invertedTextShadow;
  1505. }
  1506. .ui.positive.buttons .button.active,
  1507. .ui.positive.buttons .button.active:active,
  1508. .ui.positive.button.active,
  1509. .ui.positive.button .button.active:active {
  1510. background-color: @positiveColorActive;
  1511. color: @invertedTextColor;
  1512. text-shadow: @invertedTextShadow;
  1513. }
  1514. /*---------------
  1515. Negative
  1516. ----------------*/
  1517. .ui.negative.buttons .button,
  1518. .ui.negative.button {
  1519. background-color: @negativeColor !important;
  1520. color: @invertedTextColor;
  1521. text-shadow: @invertedTextShadow;
  1522. background-image: @coloredBackgroundImage;
  1523. box-shadow: @coloredBoxShadow;
  1524. }
  1525. .ui.negative.buttons .button:hover,
  1526. .ui.negative.button:hover,
  1527. .ui.negative.buttons .active.button,
  1528. .ui.negative.button.active {
  1529. background-color: @negativeColorHover !important;
  1530. color: @invertedTextColor;
  1531. text-shadow: @invertedTextShadow;
  1532. }
  1533. .ui.negative.buttons .button:active,
  1534. .ui.negative.button:active {
  1535. background-color: @negativeColorDown !important;
  1536. color: @invertedTextColor;
  1537. text-shadow: @invertedTextShadow;
  1538. }
  1539. .ui.negative.buttons .button.active,
  1540. .ui.negative.buttons .button.active:active,
  1541. .ui.negative.button.active,
  1542. .ui.negative.button .button.active:active {
  1543. background-color: @negativeColorActive;
  1544. color: @invertedTextColor;
  1545. text-shadow: @invertedTextShadow;
  1546. }
  1547. /*******************************
  1548. Groups
  1549. *******************************/
  1550. .ui.buttons {
  1551. display: inline-block;
  1552. vertical-align: middle;
  1553. margin: @verticalMargin @horizontalMargin 0em 0em;
  1554. }
  1555. .ui.buttons:after {
  1556. content: ".";
  1557. display: block;
  1558. height: 0;
  1559. clear: both;
  1560. visibility: hidden;
  1561. }
  1562. .ui.buttons .button:first-child {
  1563. border-left: none;
  1564. }
  1565. .ui.buttons .button {
  1566. margin: 0em;
  1567. float: left;
  1568. border-radius: 0em;
  1569. margin: 0px 0px 0px -1px;
  1570. }
  1571. .ui.buttons .button:first-child {
  1572. margin-left: 0em;
  1573. border-top-left-radius: @borderRadius;
  1574. border-bottom-left-radius: @borderRadius;
  1575. }
  1576. .ui.buttons .button:last-child {
  1577. border-top-right-radius: @borderRadius;
  1578. border-bottom-right-radius: @borderRadius;
  1579. }
  1580. /* Vertical Style */
  1581. .ui.vertical.buttons {
  1582. display: inline-block;
  1583. }
  1584. .ui.vertical.buttons .button {
  1585. display: block;
  1586. float: none;
  1587. margin: 0px 0px -1px 0px;
  1588. box-shadow: @verticalBoxShadow;
  1589. }
  1590. .ui.vertical.buttons .button:first-child,
  1591. .ui.vertical.buttons .mini.button:first-child,
  1592. .ui.vertical.buttons .tiny.button:first-child,
  1593. .ui.vertical.buttons .small.button:first-child,
  1594. .ui.vertical.buttons .massive.button:first-child,
  1595. .ui.vertical.buttons .huge.button:first-child {
  1596. border-radius: @borderRadius @borderRadius 0px 0px;
  1597. }
  1598. .ui.vertical.buttons .button:last-child,
  1599. .ui.vertical.buttons .mini.button:last-child,
  1600. .ui.vertical.buttons .tiny.button:last-child,
  1601. .ui.vertical.buttons .small.button:last-child,
  1602. .ui.vertical.buttons .massive.button:last-child,
  1603. .ui.vertical.buttons .huge.button:last-child,
  1604. .ui.vertical.buttons .gigantic.button:last-child {
  1605. margin-bottom: 0px;
  1606. border-radius: 0px 0px @borderRadius @borderRadius;
  1607. }
  1608. .loadUIOverrides();