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.

1767 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 !important;
  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. /* Vertical */
  634. .ui.basic.buttons .button:hover {
  635. box-shadow: @basicHoverBoxShadow inset;
  636. }
  637. .ui.basic.buttons .button:active {
  638. box-shadow: @basicDownBoxShadow inset;
  639. }
  640. .ui.basic.buttons .button.active {
  641. box-shadow: @selectedBorderColor inset;
  642. }
  643. /* Inverted */
  644. .ui.basic.inverted.buttons .button,
  645. .ui.basic.inverted.button {
  646. background-color: transparent !important;
  647. color: @offWhite !important;
  648. box-shadow: @whiteBorderColor;
  649. }
  650. .ui.basic.inverted.buttons .button:hover,
  651. .ui.basic.inverted.button:hover {
  652. color: @white !important;
  653. box-shadow: @whiteBorderColor;
  654. }
  655. .ui.basic.inverted.buttons .button:active,
  656. .ui.basic.inverted.button:active {
  657. background-color: @transparentWhite !important;
  658. color: @white !important;
  659. box-shadow: @selectedWhiteBorderColor !important;
  660. }
  661. .ui.basic.inverted.buttons .button.active,
  662. .ui.basic.inverted.button.active {
  663. background-color: @transparentWhite;
  664. color: @invertedTextColor;
  665. text-shadow: @invertedTextShadow;
  666. box-shadow: none;
  667. }
  668. .ui.basic.inverted.buttons .button.active:hover,
  669. .ui.basic.inverted.button.active:hover {
  670. background-color: @strongTransparentWhite;
  671. }
  672. /* Loading */
  673. .ui.basic.loading.button:after {
  674. background-color: @basicLoadingColor;
  675. border-radius: @borderRadius;
  676. }
  677. /* Basic Group */
  678. .ui.basic.buttons .button {
  679. border-left: @basicGroupBorder;
  680. box-shadow: none;
  681. }
  682. .ui.basic.vertical.buttons .button {
  683. border-left: none;
  684. }
  685. /*--------------
  686. Labeled Icon
  687. ---------------*/
  688. .ui.labeled.icon.buttons .button,
  689. .ui.labeled.icon.button {
  690. position: relative;
  691. padding-left: @labeledIconPadding !important;
  692. padding-right: @horizontalPadding !important;
  693. }
  694. .ui.labeled.icon.buttons > .button > .icon,
  695. .ui.labeled.icon.button > .icon {
  696. position: absolute;
  697. top: 0em;
  698. left: 0em;
  699. box-sizing: border-box;
  700. width: @labeledIconWidth;
  701. height: 100%;
  702. padding-top: (@verticalPadding + @iconOffset);
  703. background-color: @labeledIconBackgroundColor;
  704. text-align: center;
  705. color: @labeledIconColor;
  706. border-radius: @borderRadius 0px 0px @borderRadius;
  707. line-height: 1;
  708. box-shadow: @labeledIconLeftShadow;
  709. }
  710. .ui.labeled.icon.buttons .button > .icon {
  711. border-radius: 0em;
  712. }
  713. .ui.labeled.icon.buttons .button:first-child > .icon {
  714. border-top-left-radius: @borderRadius;
  715. border-bottom-left-radius: @borderRadius;
  716. }
  717. .ui.labeled.icon.buttons .button:last-child > .icon {
  718. border-top-right-radius: @borderRadius;
  719. border-bottom-right-radius: @borderRadius;
  720. }
  721. .ui.vertical.labeled.icon.buttons .button:first-child > .icon {
  722. border-radius: 0em;
  723. border-top-left-radius: @borderRadius;
  724. }
  725. .ui.vertical.labeled.icon.buttons .button:last-child > .icon {
  726. border-radius: 0em;
  727. border-bottom-left-radius: @borderRadius;
  728. }
  729. .ui.right.labeled.icon.button {
  730. padding-right: @labeledIconPadding !important;
  731. padding-left: @horizontalPadding !important;
  732. }
  733. .ui.left.fluid.labeled.icon.button,
  734. .ui.right.fluid.labeled.icon.button {
  735. padding-left: @horizontalPadding !important;
  736. padding-right: @horizontalPadding !important;
  737. }
  738. .ui.right.labeled.icon.button .icon {
  739. left: auto;
  740. right: 0em;
  741. border-radius: 0em @borderRadius @borderRadius 0em;
  742. box-shadow: @labeledIconRightShadow;
  743. }
  744. /*--------------
  745. Toggle
  746. ---------------*/
  747. /* Toggle (Modifies active state to give affordances) */
  748. .ui.toggle.buttons .active.button,
  749. .ui.buttons .button.toggle.active,
  750. .ui.button.toggle.active {
  751. background-color: @positiveColor !important;
  752. box-shadow: none !important;
  753. text-shadow: @invertedTextShadow;
  754. color: @invertedTextColor !important;
  755. }
  756. .ui.button.toggle.active:hover {
  757. background-color: @positiveColorHover !important;
  758. text-shadow: @invertedTextShadow;
  759. color: @invertedTextColor !important;
  760. }
  761. /*--------------
  762. Circular
  763. ---------------*/
  764. .ui.circular.button {
  765. border-radius: 10em;
  766. }
  767. /*--------------
  768. Attached
  769. ---------------*/
  770. .ui.attached.button {
  771. display: block;
  772. margin: 0em;
  773. box-shadow: @attachedBoxShadow !important;
  774. }
  775. .ui.attached.top.button {
  776. border-radius: @borderRadius @borderRadius 0em 0em;
  777. }
  778. .ui.attached.bottom.button {
  779. border-radius: 0em 0em @borderRadius @borderRadius;
  780. }
  781. .ui.attached.left.button {
  782. display: inline-block;
  783. border-left: none;
  784. padding-right: @attachedHorizontalPadding;
  785. text-align: right;
  786. border-radius: @borderRadius 0em 0em @borderRadius;
  787. }
  788. .ui.attached.right.button {
  789. display: inline-block;
  790. padding-left: @attachedHorizontalPadding;
  791. text-align: left;
  792. border-radius: 0em @borderRadius @borderRadius 0em;
  793. }
  794. /*-------------------
  795. Or Buttons
  796. --------------------*/
  797. .ui.buttons .or {
  798. position: relative;
  799. float: left;
  800. width: @orWidth;
  801. height: @orHeight;
  802. z-index: 3;
  803. }
  804. .ui.buttons .or:before {
  805. position: absolute;
  806. top: 50%;
  807. left: 50%;
  808. content: 'or';
  809. background-color: @white;
  810. text-shadow: @invertedTextShadow;
  811. margin-top: @orVerticalOffset;
  812. margin-left: @orHorizontalOffset;
  813. width: @orCircleSize;
  814. height: @orCircleSize;
  815. line-height: @orLineHeight;
  816. color: @lightTextColor;
  817. font-style: @orTextStyle;
  818. font-weight: @orTextWeight;
  819. text-align: center;
  820. border-radius: 500em;
  821. box-shadow: @orBoxShadow;
  822. box-sizing: border-box;
  823. }
  824. .ui.buttons .or:after {
  825. position: absolute;
  826. top: 0em;
  827. left: 0em;
  828. content: ' ';
  829. background-color: transparent;
  830. width: @orWidth;
  831. height: (@orHeight + (@orSpacerHeight * 2));
  832. border-top: @orSpacerHeight solid @orSpacerColor;
  833. border-bottom: @orSpacerHeight solid @orSpacerColor;
  834. }
  835. /* Fluid Or */
  836. .ui.fluid.buttons .or {
  837. width: 0em !important;
  838. }
  839. .ui.fluid.buttons .or:after{
  840. display: none;
  841. }
  842. /*-------------------
  843. Attached
  844. --------------------*/
  845. /* Plural Attached */
  846. .attached.ui.buttons {
  847. margin: 0px;
  848. border-radius: @borderRadius @borderRadius 0em 0em;
  849. }
  850. .attached.ui.buttons .button:first-child {
  851. border-radius: @borderRadius 0em 0em 0em;
  852. }
  853. .attached.ui.buttons .button:last-child {
  854. border-radius: 0em @borderRadius 0em 0em;
  855. }
  856. /* Bottom Side */
  857. .bottom.attached.ui.buttons {
  858. margin-top: @attachedOffset;
  859. border-radius: 0em 0em @borderRadius @borderRadius;
  860. }
  861. .bottom.attached.ui.buttons .button:first-child {
  862. border-radius: 0em 0em 0em @borderRadius;
  863. }
  864. .bottom.attached.ui.buttons .button:last-child {
  865. border-radius: 0em 0em @borderRadius 0em;
  866. }
  867. /* Left Side */
  868. .left.attached.ui.buttons {
  869. margin-left: @attachedOffset;
  870. border-radius: 0em @borderRadius @borderRadius 0em;
  871. }
  872. .left.attached.ui.buttons .button:first-child {
  873. margin-left: @attachedOffset;
  874. border-radius: 0em @borderRadius 0em 0em;
  875. }
  876. .left.attached.ui.buttons .button:last-child {
  877. margin-left: @attachedOffset;
  878. border-radius: 0em 0em @borderRadius 0em;
  879. }
  880. /* Right Side */
  881. .right.attached.ui.buttons,
  882. .right.attached.ui.buttons .button {
  883. margin-right: @attachedOffset;
  884. border-radius: @borderRadius 0em 0em @borderRadius;
  885. }
  886. .right.attached.ui.buttons .button:first-child {
  887. margin-left: @attachedOffset;
  888. border-radius: @borderRadius 0em 0em 0em;
  889. }
  890. .right.attached.ui.buttons .button:last-child {
  891. margin-left: @attachedOffset;
  892. border-radius: 0em 0em 0em @borderRadius;
  893. }
  894. /* Fluid */
  895. .ui.fluid.buttons,
  896. .ui.button.fluid,
  897. .ui.fluid.buttons > .button {
  898. display: block;
  899. width: 100%;
  900. }
  901. .ui.\32.buttons > .button,
  902. .ui.two.buttons > .button {
  903. width: 50%;
  904. }
  905. .ui.\33.buttons > .button,
  906. .ui.three.buttons > .button {
  907. width: 33.333%;
  908. }
  909. .ui.\34.buttons > .button,
  910. .ui.four.buttons > .button {
  911. width: 25%;
  912. }
  913. .ui.\35.buttons > .button,
  914. .ui.five.buttons > .button {
  915. width: 20%;
  916. }
  917. .ui.\36.buttons > .button,
  918. .ui.six.buttons > .button {
  919. width: 16.666%;
  920. }
  921. .ui.\37.buttons > .button,
  922. .ui.seven.buttons > .button {
  923. width: 14.285%;
  924. }
  925. .ui.\38.buttons > .button,
  926. .ui.eight.buttons > .button {
  927. width: 12.500%;
  928. }
  929. .ui.\39.buttons > .button,
  930. .ui.nine.buttons > .button {
  931. width: 11.11%;
  932. }
  933. .ui.\31\30.buttons > .button,
  934. .ui.ten.buttons > .button {
  935. width: 10%;
  936. }
  937. .ui.\31\31.buttons > .button,
  938. .ui.eleven.buttons > .button {
  939. width: 9.09%;
  940. }
  941. .ui.\31\32.buttons > .button,
  942. .ui.twelve.buttons > .button {
  943. width: 8.3333%;
  944. }
  945. /* Fluid Vertical Buttons */
  946. .ui.fluid.vertical.buttons,
  947. .ui.fluid.vertical.buttons > .button {
  948. display: block;
  949. width: auto;
  950. box-sizing: border-box;
  951. }
  952. .ui.\32.vertical.buttons > .button,
  953. .ui.two.vertical.buttons > .button {
  954. height: 50%;
  955. }
  956. .ui.\33.vertical.buttons > .button,
  957. .ui.three.vertical.buttons > .button {
  958. height: 33.333%;
  959. }
  960. .ui.\34.vertical.buttons > .button,
  961. .ui.four.vertical.buttons > .button {
  962. height: 25%;
  963. }
  964. .ui.\35.vertical.buttons > .button,
  965. .ui.five.vertical.buttons > .button {
  966. height: 20%;
  967. }
  968. .ui.\36.vertical.buttons > .button,
  969. .ui.six.vertical.buttons > .button {
  970. height: 16.666%;
  971. }
  972. .ui.\37.vertical.buttons > .button,
  973. .ui.seven.vertical.buttons > .button {
  974. height: 14.285%;
  975. }
  976. .ui.\38.vertical.buttons > .button,
  977. .ui.eight.vertical.buttons > .button {
  978. height: 12.500%;
  979. }
  980. .ui.\39.vertical.buttons > .button,
  981. .ui.nine.vertical.buttons > .button {
  982. height: 11.11%;
  983. }
  984. .ui.\31\30.vertical.buttons > .button,
  985. .ui.ten.vertical.buttons > .button {
  986. height: 10%;
  987. }
  988. .ui.\31\31.vertical.buttons > .button,
  989. .ui.eleven.vertical.buttons > .button {
  990. height: 9.09%;
  991. }
  992. .ui.\31\32.vertical.buttons > .button,
  993. .ui.twelve.vertical.buttons > .button {
  994. height: 8.3333%;
  995. }
  996. /*-------------------
  997. Colors
  998. --------------------*/
  999. /*--- Black ---*/
  1000. .ui.black.buttons .button,
  1001. .ui.black.button {
  1002. background-color: @black;
  1003. color: @invertedTextColor;
  1004. text-shadow: @invertedTextShadow;
  1005. background-image: @coloredBackgroundImage;
  1006. box-shadow: @coloredBoxShadow;
  1007. }
  1008. .ui.black.buttons .button:hover,
  1009. .ui.black.button:hover {
  1010. background-color: @blackHover;
  1011. color: @invertedTextColor;
  1012. text-shadow: @invertedTextShadow;
  1013. }
  1014. .ui.black.buttons .button:active,
  1015. .ui.black.button:active {
  1016. background-color: @blackDown;
  1017. color: @invertedTextColor;
  1018. text-shadow: @invertedTextShadow;
  1019. }
  1020. .ui.black.buttons .button.active,
  1021. .ui.black.buttons .button.active:active,
  1022. .ui.black.button.active,
  1023. .ui.black.button .button.active:active {
  1024. background-color: @blackActive;
  1025. color: @invertedTextColor;
  1026. text-shadow: @invertedTextShadow;
  1027. }
  1028. .ui.inverted.black.buttons .button,
  1029. .ui.inverted.black.button {
  1030. background-color: transparent;
  1031. box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
  1032. color: @lightBlack;
  1033. }
  1034. .ui.inverted.black.buttons .button:hover,
  1035. .ui.inverted.black.button:hover {
  1036. box-shadow: 0px 0px 0px 2px @black inset !important;
  1037. background-color: @black;
  1038. color: @white;
  1039. }
  1040. .ui.inverted.black.basic.buttons .button,
  1041. .ui.inverted.black.buttons .basic.button,
  1042. .ui.inverted.black.basic.button {
  1043. background-color: transparent;
  1044. box-shadow: 0px 0px 0px 2px @white inset !important;
  1045. color: @white;
  1046. }
  1047. .ui.inverted.black.basic.buttons .button:hover,
  1048. .ui.inverted.black.buttons .basic.button:hover,
  1049. .ui.inverted.black.basic.button:hover {
  1050. box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
  1051. color: @white !important;
  1052. }
  1053. /*--- Blue ---*/
  1054. .ui.blue.buttons .button,
  1055. .ui.blue.button {
  1056. background-color: @blue;
  1057. color: @invertedTextColor;
  1058. text-shadow: @invertedTextShadow;
  1059. background-image: @coloredBackgroundImage;
  1060. box-shadow: @coloredBoxShadow;
  1061. }
  1062. .ui.blue.buttons .button:hover,
  1063. .ui.blue.button:hover {
  1064. background-color: @blueHover;
  1065. color: @invertedTextColor;
  1066. text-shadow: @invertedTextShadow;
  1067. }
  1068. .ui.blue.buttons .button:active,
  1069. .ui.blue.button:active {
  1070. background-color: @blueDown;
  1071. color: @invertedTextColor;
  1072. text-shadow: @invertedTextShadow;
  1073. }
  1074. .ui.blue.buttons .button.active,
  1075. .ui.blue.buttons .button.active:active,
  1076. .ui.blue.button.active,
  1077. .ui.blue.button .button.active:active {
  1078. background-color: @blueActive;
  1079. color: @invertedTextColor;
  1080. text-shadow: @invertedTextShadow;
  1081. }
  1082. /* Inverted */
  1083. .ui.inverted.blue.buttons .button,
  1084. .ui.inverted.blue.button {
  1085. background-color: transparent;
  1086. box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
  1087. color: @lightBlue;
  1088. }
  1089. .ui.inverted.blue.buttons .button:hover,
  1090. .ui.inverted.blue.button:hover {
  1091. box-shadow: 0px 0px 0px 2px @blue inset !important;
  1092. background-color: @blue;
  1093. color: @white;
  1094. }
  1095. .ui.inverted.blue.basic.buttons .button,
  1096. .ui.inverted.blue.buttons .basic.button,
  1097. .ui.inverted.blue.basic.button {
  1098. background-color: transparent;
  1099. box-shadow: 0px 0px 0px 2px @white inset !important;
  1100. color: @white;
  1101. }
  1102. .ui.inverted.blue.basic.buttons .button:hover,
  1103. .ui.inverted.blue.buttons .basic.button:hover,
  1104. .ui.inverted.blue.basic.button:hover {
  1105. box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
  1106. color: @lightBlue !important;
  1107. }
  1108. /*--- Green ---*/
  1109. .ui.green.buttons .button,
  1110. .ui.green.button {
  1111. background-color: @green;
  1112. color: @invertedTextColor;
  1113. text-shadow: @invertedTextShadow;
  1114. background-image: @coloredBackgroundImage;
  1115. box-shadow: @coloredBoxShadow;
  1116. }
  1117. .ui.green.buttons .button:hover,
  1118. .ui.green.button:hover {
  1119. background-color: @greenHover;
  1120. color: @invertedTextColor;
  1121. text-shadow: @invertedTextShadow;
  1122. }
  1123. .ui.green.buttons .button:active,
  1124. .ui.green.button:active {
  1125. background-color: @greenDown;
  1126. color: @invertedTextColor;
  1127. text-shadow: @invertedTextShadow;
  1128. }
  1129. .ui.green.buttons .button.active,
  1130. .ui.green.buttons .button.active:active,
  1131. .ui.green.button.active,
  1132. .ui.green.button .button.active:active {
  1133. background-color: @greenActive;
  1134. color: @invertedTextColor;
  1135. text-shadow: @invertedTextShadow;
  1136. }
  1137. /* Inverted */
  1138. .ui.inverted.green.buttons .button,
  1139. .ui.inverted.green.button {
  1140. background-color: transparent;
  1141. box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
  1142. color: @lightGreen;
  1143. }
  1144. .ui.inverted.green.buttons .button:hover,
  1145. .ui.inverted.green.button:hover {
  1146. box-shadow: 0px 0px 0px 2px @green inset !important;
  1147. background-color: @green;
  1148. color: @white;
  1149. }
  1150. .ui.inverted.green.basic.buttons .button,
  1151. .ui.inverted.green.buttons .basic.button,
  1152. .ui.inverted.green.basic.button {
  1153. background-color: transparent;
  1154. box-shadow: 0px 0px 0px 2px @white inset !important;
  1155. color: @white;
  1156. }
  1157. .ui.inverted.green.basic.buttons .button:hover,
  1158. .ui.inverted.green.buttons .basic.button:hover,
  1159. .ui.inverted.green.basic.button:hover {
  1160. box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
  1161. color: @lightGreen !important;
  1162. }
  1163. /*--- Orange ---*/
  1164. .ui.orange.buttons .button,
  1165. .ui.orange.button {
  1166. background-color: @orange;
  1167. color: @invertedTextColor;
  1168. text-shadow: @invertedTextShadow;
  1169. background-image: @coloredBackgroundImage;
  1170. box-shadow: @coloredBoxShadow;
  1171. }
  1172. .ui.orange.buttons .button:hover,
  1173. .ui.orange.button:hover {
  1174. background-color: @orangeHover;
  1175. color: @invertedTextColor;
  1176. text-shadow: @invertedTextShadow;
  1177. }
  1178. .ui.orange.buttons .button:active,
  1179. .ui.orange.button:active {
  1180. background-color: @orangeDown;
  1181. color: @invertedTextColor;
  1182. text-shadow: @invertedTextShadow;
  1183. }
  1184. .ui.orange.buttons .button.active,
  1185. .ui.orange.buttons .button.active:active,
  1186. .ui.orange.button.active,
  1187. .ui.orange.button .button.active:active {
  1188. background-color: @blackActive;
  1189. color: @invertedTextColor;
  1190. text-shadow: @invertedTextShadow;
  1191. }
  1192. /* Inverted */
  1193. .ui.inverted.orange.buttons .button,
  1194. .ui.inverted.orange.button {
  1195. background-color: transparent;
  1196. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1197. color: @lightOrange;
  1198. }
  1199. .ui.inverted.orange.buttons .button:hover,
  1200. .ui.inverted.orange.button:hover {
  1201. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1202. background-color: @lightOrange;
  1203. color: @white;
  1204. }
  1205. .ui.inverted.orange.basic.buttons .button,
  1206. .ui.inverted.orange.buttons .basic.button,
  1207. .ui.inverted.orange.basic.button {
  1208. background-color: transparent;
  1209. box-shadow: 0px 0px 0px 2px @white inset !important;
  1210. color: @white;
  1211. }
  1212. .ui.inverted.orange.basic.buttons .button:hover,
  1213. .ui.inverted.orange.buttons .basic.button:hover,
  1214. .ui.inverted.orange.basic.button:hover {
  1215. box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
  1216. color: @lightOrange !important;
  1217. }
  1218. /*--- Pink ---*/
  1219. .ui.pink.buttons .button,
  1220. .ui.pink.button {
  1221. background-color: @pink;
  1222. color: @invertedTextColor;
  1223. text-shadow: @invertedTextShadow;
  1224. background-image: @coloredBackgroundImage;
  1225. box-shadow: @coloredBoxShadow;
  1226. }
  1227. .ui.pink.buttons .button:hover,
  1228. .ui.pink.button:hover {
  1229. background-color: @pinkHover;
  1230. color: @invertedTextColor;
  1231. text-shadow: @invertedTextShadow;
  1232. }
  1233. .ui.pink.buttons .button:active,
  1234. .ui.pink.button:active {
  1235. background-color: @pinkDown;
  1236. color: @invertedTextColor;
  1237. text-shadow: @invertedTextShadow;
  1238. }
  1239. .ui.pink.buttons .button.active,
  1240. .ui.pink.buttons .button.active:active,
  1241. .ui.pink.button.active,
  1242. .ui.pink.button .button.active:active {
  1243. background-color: @pinkActive;
  1244. color: @invertedTextColor;
  1245. text-shadow: @invertedTextShadow;
  1246. }
  1247. /* Inverted */
  1248. .ui.inverted.pink.buttons .button,
  1249. .ui.inverted.pink.button {
  1250. background-color: transparent;
  1251. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1252. color: @lightPink;
  1253. }
  1254. .ui.inverted.pink.buttons .button:hover,
  1255. .ui.inverted.pink.button:hover {
  1256. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1257. background-color: @lightPink;
  1258. color: @white;
  1259. }
  1260. .ui.inverted.pink.basic.buttons .button,
  1261. .ui.inverted.pink.buttons .basic.button,
  1262. .ui.inverted.pink.basic.button {
  1263. background-color: transparent;
  1264. box-shadow: 0px 0px 0px 2px @white inset !important;
  1265. color: @white;
  1266. }
  1267. .ui.inverted.pink.basic.buttons .button:hover,
  1268. .ui.inverted.pink.buttons .basic.button:hover,
  1269. .ui.inverted.pink.basic.button:hover {
  1270. box-shadow: 0px 0px 0px 2px @lightPink inset !important;
  1271. color: @lightPink !important;
  1272. }
  1273. /*--- Purple ---*/
  1274. .ui.purple.buttons .button,
  1275. .ui.purple.button {
  1276. background-color: @purple;
  1277. color: @invertedTextColor;
  1278. text-shadow: @invertedTextShadow;
  1279. background-image: @coloredBackgroundImage;
  1280. box-shadow: @coloredBoxShadow;
  1281. }
  1282. .ui.purple.buttons .button:hover,
  1283. .ui.purple.button:hover {
  1284. background-color: @purpleHover;
  1285. color: @invertedTextColor;
  1286. text-shadow: @invertedTextShadow;
  1287. }
  1288. .ui.purple.buttons .button:active,
  1289. .ui.purple.button:active {
  1290. background-color: @purpleDown;
  1291. color: @invertedTextColor;
  1292. text-shadow: @invertedTextShadow;
  1293. }
  1294. .ui.purple.buttons .button.active,
  1295. .ui.purple.buttons .button.active:active,
  1296. .ui.purple.button.active,
  1297. .ui.purple.button .button.active:active {
  1298. background-color: @purpleActive;
  1299. color: @invertedTextColor;
  1300. text-shadow: @invertedTextShadow;
  1301. }
  1302. /* Inverted */
  1303. .ui.inverted.purple.buttons .button,
  1304. .ui.inverted.purple.button {
  1305. background-color: transparent;
  1306. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1307. color: @lightPurple;
  1308. }
  1309. .ui.inverted.purple.buttons .button:hover,
  1310. .ui.inverted.purple.button:hover {
  1311. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1312. background-color: @lightPurple;
  1313. color: @white;
  1314. }
  1315. .ui.inverted.purple.basic.buttons .button,
  1316. .ui.inverted.purple.buttons .basic.button,
  1317. .ui.inverted.purple.basic.button {
  1318. background-color: transparent;
  1319. box-shadow: 0px 0px 0px 2px @white inset !important;
  1320. color: @white;
  1321. }
  1322. .ui.inverted.purple.basic.buttons .button:hover,
  1323. .ui.inverted.purple.buttons .basic.button:hover,
  1324. .ui.inverted.purple.basic.button:hover {
  1325. box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
  1326. color: @lightPurple !important;
  1327. }
  1328. /*--- Red ---*/
  1329. .ui.red.buttons .button,
  1330. .ui.red.button {
  1331. background-color: @red;
  1332. color: @invertedTextColor;
  1333. text-shadow: @invertedTextShadow;
  1334. background-image: @coloredBackgroundImage;
  1335. box-shadow: @coloredBoxShadow;
  1336. }
  1337. .ui.red.buttons .button:hover,
  1338. .ui.red.button:hover {
  1339. background-color: @redHover;
  1340. color: @invertedTextColor;
  1341. text-shadow: @invertedTextShadow;
  1342. }
  1343. .ui.red.buttons .button:active,
  1344. .ui.red.button:active {
  1345. background-color: @redDown;
  1346. color: @invertedTextColor;
  1347. text-shadow: @invertedTextShadow;
  1348. }
  1349. .ui.red.buttons .button.active,
  1350. .ui.red.buttons .button.active:active,
  1351. .ui.red.button.active,
  1352. .ui.red.button .button.active:active {
  1353. background-color: @redActive;
  1354. color: @invertedTextColor;
  1355. text-shadow: @invertedTextShadow;
  1356. }
  1357. /* Inverted */
  1358. .ui.inverted.red.buttons .button,
  1359. .ui.inverted.red.button {
  1360. background-color: transparent;
  1361. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1362. color: @lightRed;
  1363. }
  1364. .ui.inverted.red.buttons .button:hover,
  1365. .ui.inverted.red.button:hover {
  1366. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1367. background-color: @lightRed;
  1368. color: @white;
  1369. }
  1370. .ui.inverted.red.basic.buttons .button,
  1371. .ui.inverted.red.buttons .basic.button,
  1372. .ui.inverted.red.basic.button {
  1373. background-color: transparent;
  1374. box-shadow: 0px 0px 0px 2px @white inset !important;
  1375. color: @white;
  1376. }
  1377. .ui.inverted.red.basic.buttons .button:hover,
  1378. .ui.inverted.red.buttons .basic.button:hover,
  1379. .ui.inverted.red.basic.button:hover {
  1380. box-shadow: 0px 0px 0px 2px @lightRed inset !important;
  1381. color: @lightRed !important;
  1382. }
  1383. /*--- Teal ---*/
  1384. .ui.teal.buttons .button,
  1385. .ui.teal.button {
  1386. background-color: @teal;
  1387. color: @invertedTextColor;
  1388. text-shadow: @invertedTextShadow;
  1389. background-image: @coloredBackgroundImage;
  1390. box-shadow: @coloredBoxShadow;
  1391. }
  1392. .ui.teal.buttons .button:hover,
  1393. .ui.teal.button:hover {
  1394. background-color: @tealHover;
  1395. color: @invertedTextColor;
  1396. text-shadow: @invertedTextShadow;
  1397. }
  1398. .ui.teal.buttons .button:active,
  1399. .ui.teal.button:active {
  1400. background-color: @tealDown;
  1401. color: @invertedTextColor;
  1402. text-shadow: @invertedTextShadow;
  1403. }
  1404. .ui.teal.buttons .button.active,
  1405. .ui.teal.buttons .button.active:active,
  1406. .ui.teal.button.active,
  1407. .ui.teal.button .button.active:active {
  1408. background-color: @tealActive;
  1409. color: @invertedTextColor;
  1410. text-shadow: @invertedTextShadow;
  1411. }
  1412. /* Inverted */
  1413. .ui.inverted.teal.buttons .button,
  1414. .ui.inverted.teal.button {
  1415. background-color: transparent;
  1416. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1417. color: @lightTeal;
  1418. }
  1419. .ui.inverted.teal.buttons .button:hover,
  1420. .ui.inverted.teal.button:hover {
  1421. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1422. background-color: @lightTeal;
  1423. color: @white;
  1424. }
  1425. .ui.inverted.teal.basic.buttons .button,
  1426. .ui.inverted.teal.buttons .basic.button,
  1427. .ui.inverted.teal.basic.button {
  1428. background-color: transparent;
  1429. box-shadow: 0px 0px 0px 2px @white inset !important;
  1430. color: @white;
  1431. }
  1432. .ui.inverted.teal.basic.buttons .button:hover,
  1433. .ui.inverted.teal.buttons .basic.button:hover,
  1434. .ui.inverted.teal.basic.button:hover {
  1435. box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
  1436. color: @lightTeal !important;
  1437. }
  1438. /*--- Yellow ---*/
  1439. .ui.yellow.buttons .button,
  1440. .ui.yellow.button {
  1441. background-color: @yellow;
  1442. color: @invertedTextColor;
  1443. text-shadow: @invertedTextShadow;
  1444. background-image: @coloredBackgroundImage;
  1445. box-shadow: @coloredBoxShadow;
  1446. }
  1447. .ui.yellow.buttons .button:hover,
  1448. .ui.yellow.button:hover {
  1449. background-color: @yellowHover;
  1450. color: @invertedTextColor;
  1451. text-shadow: @invertedTextShadow;
  1452. }
  1453. .ui.yellow.buttons .button:active,
  1454. .ui.yellow.button:active {
  1455. background-color: @yellowDown;
  1456. color: @invertedTextColor;
  1457. text-shadow: @invertedTextShadow;
  1458. }
  1459. .ui.yellow.buttons .button.active,
  1460. .ui.yellow.buttons .button.active:active,
  1461. .ui.yellow.button.active,
  1462. .ui.yellow.button .button.active:active {
  1463. background-color: @yellowActive;
  1464. color: @invertedTextColor;
  1465. text-shadow: @invertedTextShadow;
  1466. }
  1467. /* Inverted */
  1468. .ui.inverted.yellow.buttons .button,
  1469. .ui.inverted.yellow.button {
  1470. background-color: transparent;
  1471. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1472. color: @lightYellow;
  1473. }
  1474. .ui.inverted.yellow.buttons .button:hover,
  1475. .ui.inverted.yellow.button:hover {
  1476. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1477. background-color: @lightYellow;
  1478. color: @white;
  1479. }
  1480. .ui.inverted.yellow.basic.buttons .button,
  1481. .ui.inverted.yellow.buttons .basic.button,
  1482. .ui.inverted.yellow.basic.button {
  1483. background-color: transparent;
  1484. box-shadow: 0px 0px 0px 2px @white inset !important;
  1485. color: @white;
  1486. }
  1487. .ui.inverted.yellow.basic.buttons .button:hover,
  1488. .ui.inverted.yellow.buttons .basic.button:hover,
  1489. .ui.inverted.yellow.basic.button:hover {
  1490. box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
  1491. color: @lightYellow !important;
  1492. }
  1493. /*---------------
  1494. Positive
  1495. ----------------*/
  1496. .ui.positive.buttons .button,
  1497. .ui.positive.button {
  1498. background-color: @positiveColor !important;
  1499. color: @invertedTextColor;
  1500. text-shadow: @invertedTextShadow;
  1501. background-image: @coloredBackgroundImage;
  1502. box-shadow: @coloredBoxShadow;
  1503. }
  1504. .ui.positive.buttons .button:hover,
  1505. .ui.positive.button:hover,
  1506. .ui.positive.buttons .active.button,
  1507. .ui.positive.button.active {
  1508. background-color: @positiveColorHover !important;
  1509. color: @invertedTextColor;
  1510. text-shadow: @invertedTextShadow;
  1511. }
  1512. .ui.positive.buttons .button:active,
  1513. .ui.positive.button:active {
  1514. background-color: @positiveColorDown !important;
  1515. color: @invertedTextColor;
  1516. text-shadow: @invertedTextShadow;
  1517. }
  1518. .ui.positive.buttons .button.active,
  1519. .ui.positive.buttons .button.active:active,
  1520. .ui.positive.button.active,
  1521. .ui.positive.button .button.active:active {
  1522. background-color: @positiveColorActive;
  1523. color: @invertedTextColor;
  1524. text-shadow: @invertedTextShadow;
  1525. }
  1526. /*---------------
  1527. Negative
  1528. ----------------*/
  1529. .ui.negative.buttons .button,
  1530. .ui.negative.button {
  1531. background-color: @negativeColor !important;
  1532. color: @invertedTextColor;
  1533. text-shadow: @invertedTextShadow;
  1534. background-image: @coloredBackgroundImage;
  1535. box-shadow: @coloredBoxShadow;
  1536. }
  1537. .ui.negative.buttons .button:hover,
  1538. .ui.negative.button:hover,
  1539. .ui.negative.buttons .active.button,
  1540. .ui.negative.button.active {
  1541. background-color: @negativeColorHover !important;
  1542. color: @invertedTextColor;
  1543. text-shadow: @invertedTextShadow;
  1544. }
  1545. .ui.negative.buttons .button:active,
  1546. .ui.negative.button:active {
  1547. background-color: @negativeColorDown !important;
  1548. color: @invertedTextColor;
  1549. text-shadow: @invertedTextShadow;
  1550. }
  1551. .ui.negative.buttons .button.active,
  1552. .ui.negative.buttons .button.active:active,
  1553. .ui.negative.button.active,
  1554. .ui.negative.button .button.active:active {
  1555. background-color: @negativeColorActive;
  1556. color: @invertedTextColor;
  1557. text-shadow: @invertedTextShadow;
  1558. }
  1559. /*******************************
  1560. Groups
  1561. *******************************/
  1562. .ui.buttons {
  1563. display: inline-block;
  1564. vertical-align: middle;
  1565. margin: @verticalMargin @horizontalMargin 0em 0em;
  1566. }
  1567. .ui.buttons:after {
  1568. content: ".";
  1569. display: block;
  1570. height: 0;
  1571. clear: both;
  1572. visibility: hidden;
  1573. }
  1574. .ui.buttons .button:first-child {
  1575. border-left: none;
  1576. }
  1577. .ui.buttons .button {
  1578. margin: 0em;
  1579. float: left;
  1580. border-radius: 0em;
  1581. margin: 0px 0px 0px -1px;
  1582. }
  1583. .ui.buttons .button:first-child {
  1584. margin-left: 0em;
  1585. border-top-left-radius: @borderRadius;
  1586. border-bottom-left-radius: @borderRadius;
  1587. }
  1588. .ui.buttons .button:last-child {
  1589. border-top-right-radius: @borderRadius;
  1590. border-bottom-right-radius: @borderRadius;
  1591. }
  1592. /* Vertical Style */
  1593. .ui.vertical.buttons {
  1594. display: inline-block;
  1595. }
  1596. .ui.vertical.buttons .button {
  1597. display: block;
  1598. float: none;
  1599. margin: 0px 0px -1px 0px;
  1600. box-shadow: @verticalBoxShadow;
  1601. }
  1602. .ui.vertical.buttons .button:first-child,
  1603. .ui.vertical.buttons .mini.button:first-child,
  1604. .ui.vertical.buttons .tiny.button:first-child,
  1605. .ui.vertical.buttons .small.button:first-child,
  1606. .ui.vertical.buttons .massive.button:first-child,
  1607. .ui.vertical.buttons .huge.button:first-child {
  1608. border-radius: @borderRadius @borderRadius 0px 0px;
  1609. }
  1610. .ui.vertical.buttons .button:last-child,
  1611. .ui.vertical.buttons .mini.button:last-child,
  1612. .ui.vertical.buttons .tiny.button:last-child,
  1613. .ui.vertical.buttons .small.button:last-child,
  1614. .ui.vertical.buttons .massive.button:last-child,
  1615. .ui.vertical.buttons .huge.button:last-child,
  1616. .ui.vertical.buttons .gigantic.button:last-child {
  1617. margin-bottom: 0px;
  1618. border-radius: 0px 0px @borderRadius @borderRadius;
  1619. }
  1620. .loadUIOverrides();