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.
 
 
 

1778 lines
42 KiB

/*
* # Semantic - Button
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Theme
*******************************/
@type : 'element';
@element : 'button';
@import '../../semantic.config';
/*******************************
Button
*******************************/
/* Prototype */
.ui.button {
cursor: pointer;
display: inline-block;
vertical-align: middle;
min-height: 1em;
outline: none;
border: none;
background-color: @backgroundColor;
color: @textColor;
margin: 0em @horizontalMargin @verticalMargin 0em;
padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
font-family: @pageFont;
text-transform: @textTransform;
text-shadow: @textShadow;
font-weight: @fontWeight;
line-height: 1;
font-style: normal;
text-align: center;
text-decoration: none;
background-image: @backgroundImage;
border-radius: @borderRadius;
box-shadow: @boxShadow;
user-select: none;
box-sizing: border-box;
transition: @transition;
}
/*******************************
States
*******************************/
/*--------------
Hover
---------------*/
.ui.button:hover {
background-color: @hoverBackgroundColor;
background-image: @hoverBackgroundImage;
color: @selectedTextColor;
}
.ui.button:hover .icon {
opacity: @iconHoverOpacity;
}
/*--------------
Focus
---------------*/
.ui.button:focus {
background-color: @focusBackgroundColor;
background-image: @focusBackgroundImage;
box-shadow: @focusBoxShadow;
color: @selectedTextColor;
}
.ui.button:focus .icon {
opacity: @iconFocusOpacity;
}
/*--------------
Down
---------------*/
.ui.button:active,
.ui.active.button:active {
background-color: @downBackgroundColor;
background-image: @downBackgroundImage;
color: @selectedTextColor;
box-shadow: @downBoxShadow;
}
/*--------------
Active
---------------*/
.ui.active.button {
background-color: @activeBackgroundColor;
background-image: @activeBackgroundImage;
box-shadow: @activeBoxShadow;
color: @textColor;
}
.ui.button.active:hover {
background-color: @activeBackgroundColor;
background-image: @activeBackgroundImage;
}
.ui.button.active:active {
background-color: @activeBackgroundColor;
background-image: @activeBackgroundImage;
}
/*--------------
Loading
---------------*/
.ui.loading.button {
position: relative;
cursor: default;
background-color: @loadingBackgroundColor !important;
text-shadow: none !important;
color: transparent !important;
transition: all 0s linear;
box-shadow: @boxShadow;
}
.ui.loading.button:after {
position: absolute;
top: 0em;
left: 0em;
width: 100%;
height: 100%;
content: '';
background: transparent url(@loaderPath) no-repeat 50% 50%;
}
.ui.labeled.icon.loading.button .icon {
background-color: transparent;
box-shadow: none;
}
/*-------------------
Disabled
--------------------*/
.ui.buttons .disabled.button,
.ui.disabled.button,
.ui.disabled.button:hover,
.ui.disabled.button.active {
cursor: default;
background-color: @lightGrey !important;
color: @lightTextColor !important;
opacity: @disabledOpacity !important;
background-image: none !important;
box-shadow: none !important;
pointer-events: none;
}
/*******************************
Types
*******************************/
/*-------------------
Animated
--------------------*/
.ui.animated.button {
position: relative;
overflow: hidden;
}
.ui.animated.button .visible.content {
position: relative;
}
.ui.animated.button .hidden.content {
position: absolute;
width: 100%;
}
/* Horizontal */
.ui.animated.button .visible.content,
.ui.animated.button .hidden.content {
transition: right @animationDuration @animationEasing 0s;
}
.ui.animated.button .visible.content {
left: auto;
right: 0%;
}
.ui.animated.button .hidden.content {
top: 50%;
left: auto;
right: -100%;
margin-top: -0.5em;
}
.ui.animated.button:hover .visible.content {
left: auto;
right: 200%;
}
.ui.animated.button:hover .hidden.content {
left: auto;
right: 0%;
}
/* Vertical */
.ui.vertical.animated.button .visible.content,
.ui.vertical.animated.button .hidden.content {
transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
}
.ui.vertical.animated.button .visible.content {
transform: translateY(0%);
right: auto;
}
.ui.vertical.animated.button .hidden.content {
top: -100%;
left: 0%;
right: auto;
}
.ui.vertical.animated.button:hover .visible.content {
transform: translateY(200%);
right: auto;
}
.ui.vertical.animated.button:hover .hidden.content {
top: 50%;
right: auto;
}
/* Fade */
.ui.fade.animated.button .visible.content,
.ui.fade.animated.button .hidden.content {
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
}
.ui.fade.animated.button .visible.content {
left: auto;
right: auto;
opacity: 1;
transform: scale(1);
}
.ui.fade.animated.button .hidden.content {
opacity: 0;
left: 0%;
right: auto;
transform: scale(@fadeScaleHigh);
}
.ui.fade.animated.button:hover .visible.content {
left: auto;
right: auto;
opacity: 0;
transform: scale(@fadeScaleLow);
}
.ui.fade.animated.button:hover .hidden.content {
left: 0%;
right: auto;
opacity: 1;
transform: scale(1);
}
/*-------------------
Inverted
--------------------*/
.ui.inverted.button {
box-shadow: 0px 0px 0px 2px @white inset !important;
background: transparent none;
color: @white;
text-shadow: none !important;
}
.ui.inverted.button:hover {
background: @white none;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @textColor;
}
/*-------------------
Primary
--------------------*/
.ui.primary.buttons .button,
.ui.primary.button {
background-color: @primaryColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.primary.button {
box-shadow: @coloredBoxShadow;
}
.ui.primary.buttons .button:hover,
.ui.primary.button:hover {
background-color: @primaryColorHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.primary.buttons .button:active,
.ui.primary.button:active {
background-color: @primaryColorDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.primary.buttons .active.button,
.ui.primary.button.active {
background-color: @primaryColorActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/*-------------------
Secondary
--------------------*/
.ui.secondary.buttons .button,
.ui.secondary.button {
background-color: @secondaryColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.secondary.button {
box-shadow: @coloredBoxShadow;
}
.ui.secondary.buttons .button:hover,
.ui.secondary.button:hover {
background-color: @secondaryColorHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.secondary.buttons .button:active,
.ui.secondary.button:active {
background-color: @secondaryColorDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.secondary.buttons .active.button,
.ui.secondary.button.active {
background-color: @secondaryColorActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/*-------------------
Social
--------------------*/
/* Facebook */
.ui.facebook.button {
background-color: @facebookColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.facebook.button:hover {
background-color: @facebookHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.facebook.button:active {
background-color: @facebookDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Twitter */
.ui.twitter.button {
background-color: @twitterColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.twitter.button:hover {
background-color: @twitterHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.twitter.button:active {
background-color: @twitterDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Google Plus */
.ui.google.plus.button {
background-color: @googlePlusColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.google.plus.button:hover {
background-color: @googlePlusHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.google.plus.button:active {
background-color: @googlePlusDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Linked In */
.ui.linkedin.button {
background-color: @linkedInColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.linkedin.button:hover {
background-color: @linkedInHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.linkedin.button:active {
background-color: @linkedInDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* YouTube */
.ui.youtube.button {
background-color: @youtubeColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.youtube.button:hover {
background-color: @youtubeHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.youtube.button:active {
background-color: @youtubeDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Instagram */
.ui.instagram.button {
background-color: @instagramColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.instagram.button:hover {
background-color: @instagramHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.instagram.button:active {
background-color: @instagramDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Pinterest */
.ui.pinterest.button {
background-color: @pinterestColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.pinterest.button:hover {
background-color: @pinterestHoverColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.pinterest.button:active {
background-color: @pinterestDownColor;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* VK */
.ui.vk.button {
background-color: #4D7198;
color: @white;
background-image: @coloredBackgroundImage;
box-shadow: @coloredBoxShadow;
}
.ui.vk.button:hover {
background-color: @vkHoverColor;
color: @white;
}
.ui.vk.button:active {
background-color: @vkDownColor;
color: @white;
}
/*--------------
Icon
---------------*/
.ui.button > .icon {
opacity: @iconOpacity;
margin: @iconMargin;
transition: @iconTransition;
vertical-align: @iconVerticalAlign;
}
/*******************************
Variations
*******************************/
/*-------------------
Floated
--------------------*/
.ui.left.floated.buttons,
.ui.left.floated.button {
float: left;
margin-left: 0em;
margin-right: @floatedMargin;
}
.ui.right.floated.buttons,
.ui.right.floated.button {
float: right;
margin-right: 0em;
margin-left: @floatedMargin;
}
/*-------------------
Compact
--------------------*/
.ui.compact.buttons .button,
.ui.compact.button {
padding: @compactVerticalPadding @compactHorizontalPadding ( @compactVerticalPadding + @shadowOffset );
}
.ui.compact.icon.buttons .button,
.ui.compact.icon.button {
padding: @compactVerticalPadding @compactVerticalPadding ( @compactVerticalPadding + @shadowOffset );
}
.ui.compact.labeled.icon.buttons .button,
.ui.compact.labeled.icon.button {
padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) ( @compactVerticalPadding + @shadowOffset );
}
.ui.compact.labeled.icon.buttons > .button > .icon,
.ui.compact.labeled.icon.button > .icon {
padding-top: (@compactVerticalPadding + @iconOffset) !important;
}
/*-------------------
Sizes
--------------------*/
.ui.mini.buttons .button,
.ui.mini.buttons .or,
.ui.mini.button {
font-size: @mini;
}
.ui.tiny.buttons .button,
.ui.tiny.buttons .or,
.ui.tiny.button {
font-size: @tiny;
}
.ui.small.buttons .button,
.ui.small.buttons .or,
.ui.small.button {
font-size: @small;
}
.ui.buttons .button,
.ui.button {
font-size: @medium;
}
.ui.large.buttons .button,
.ui.large.buttons .or,
.ui.large.button {
font-size: @large;
}
.ui.big.buttons .button,
.ui.big.buttons .or,
.ui.big.button {
font-size: @big;
}
.ui.huge.buttons .button,
.ui.huge.buttons .or,
.ui.huge.button {
font-size: @huge;
}
.ui.massive.buttons .button,
.ui.massive.buttons .or,
.ui.massive.button {
font-size: @massive;
}
/* Or resize */
.ui.tiny.buttons .or:before,
.ui.mini.buttons .or:before {
width: 1.45em;
height: 1.55em;
line-height: 1.4;
margin-left: -0.725em;
margin-top: -0.25em;
}
.ui.tiny.buttons .or:after,
.ui.mini.buttons .or:after {
height: 1.45em;
}
/* Loading Resize */
.ui.huge.loading.button:after,
.ui.huge.loading.button.active:after {
background-image: url(@hugeLoaderPath);
}
.ui.massive.buttons .loading.button:after,
.ui.gigantic.buttons .loading.button:after,
.ui.massive.loading.button:after,
.ui.gigantic.loading.button:after,
.ui.massive.buttons .loading.button.active:after,
.ui.gigantic.buttons .loading.button.active:after,
.ui.massive.loading.button.active:after,
.ui.gigantic.loading.button.active:after {
background-image: url(@massiveLoaderPath);
}
/*--------------
Icon Only
---------------*/
.ui.icon.buttons .button,
.ui.icon.button {
padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
}
.ui.icon.buttons .button > .icon,
.ui.icon.button > .icon {
opacity: @iconButtonOpacity;
margin: 0em;
}
.ui.icon.buttons .button > .icon,
.ui.icon.button > .icon {
height: 0em;
vertical-align: top;
}
/*-------------------
Basic
--------------------*/
.ui.basic.buttons .button,
.ui.basic.button {
background-color: transparent !important;
background-image: none;
color: @textColor !important;
font-weight: normal;
text-transform: none;
text-shadow: none !important;
box-shadow: @basicBoxShadow;
}
.ui.basic.labeled.icon.button > .icon {
padding-top: (@verticalPadding + @iconOffset) !important;
}
.ui.basic.buttons {
box-shadow: @basicGroupBoxShadow;
border-radius: @borderRadius;
}
.ui.basic.buttons .button:hover,
.ui.basic.button:hover {
background: @basicHoverBackground !important;
color: @selectedTextColor !important;
box-shadow: @basicHoverBoxShadow;
}
.ui.basic.buttons .button:active,
.ui.basic.button:active {
background: @basicDownBackground !important;
color: @selectedTextColor !important;
box-shadow: @basicDownBoxShadow;
}
.ui.basic.buttons .button.active,
.ui.basic.button.active {
background: @basicActiveBackground !important;
color: @basicActiveColor;
box-shadow: @selectedBorderColor;
}
.ui.basic.buttons .button.active:hover,
.ui.basic.button.active:hover {
background-color: @transparentBlack;
}
/* Vertical */
.ui.basic.buttons .button:hover {
box-shadow: @basicHoverBoxShadow inset;
}
.ui.basic.buttons .button:active {
box-shadow: @basicDownBoxShadow inset;
}
.ui.basic.buttons .button.active {
box-shadow: @selectedBorderColor inset;
}
/* Inverted */
.ui.basic.inverted.buttons .button,
.ui.basic.inverted.button {
background-color: transparent !important;
color: @offWhite !important;
box-shadow: @whiteBorderColor;
}
.ui.basic.inverted.buttons .button:hover,
.ui.basic.inverted.button:hover {
color: @white !important;
box-shadow: @whiteBorderColor;
}
.ui.basic.inverted.buttons .button:active,
.ui.basic.inverted.button:active {
background-color: @transparentWhite !important;
color: @white !important;
box-shadow: @selectedWhiteBorderColor !important;
}
.ui.basic.inverted.buttons .button.active,
.ui.basic.inverted.button.active {
background-color: @transparentWhite;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
box-shadow: none;
}
.ui.basic.inverted.buttons .button.active:hover,
.ui.basic.inverted.button.active:hover {
background-color: @strongTransparentWhite;
}
/* Loading */
.ui.basic.loading.button:after {
background-color: @basicLoadingColor;
border-radius: @borderRadius;
}
/* Basic Group */
.ui.basic.buttons .button {
border-left: @basicGroupBorder;
box-shadow: none;
}
.ui.basic.vertical.buttons .button {
border-left: none;
}
/*--------------
Labeled Icon
---------------*/
.ui.labeled.icon.buttons .button,
.ui.labeled.icon.button {
position: relative;
padding-left: @labeledIconPadding !important;
padding-right: @horizontalPadding !important;
}
.ui.labeled.icon.buttons > .button > .icon,
.ui.labeled.icon.button > .icon {
position: absolute;
top: 0em;
left: 0em;
box-sizing: border-box;
width: @labeledIconWidth;
height: 100%;
padding-top: (@verticalPadding + @iconOffset);
background-color: @labeledIconBackgroundColor;
text-align: center;
color: @labeledIconColor;
border-radius: @borderRadius 0px 0px @borderRadius;
line-height: 1;
box-shadow: @labeledIconLeftShadow;
}
.ui.labeled.icon.buttons .button > .icon {
border-radius: 0em;
}
.ui.labeled.icon.buttons .button:first-child > .icon {
border-top-left-radius: @borderRadius;
border-bottom-left-radius: @borderRadius;
}
.ui.labeled.icon.buttons .button:last-child > .icon {
border-top-right-radius: @borderRadius;
border-bottom-right-radius: @borderRadius;
}
.ui.vertical.labeled.icon.buttons .button:first-child > .icon {
border-radius: 0em;
border-top-left-radius: @borderRadius;
}
.ui.vertical.labeled.icon.buttons .button:last-child > .icon {
border-radius: 0em;
border-bottom-left-radius: @borderRadius;
}
.ui.right.labeled.icon.button {
padding-right: @labeledIconPadding !important;
padding-left: @horizontalPadding !important;
}
.ui.left.fluid.labeled.icon.button,
.ui.right.fluid.labeled.icon.button {
padding-left: @horizontalPadding !important;
padding-right: @horizontalPadding !important;
}
.ui.right.labeled.icon.button .icon {
left: auto;
right: 0em;
border-radius: 0em @borderRadius @borderRadius 0em;
box-shadow: @labeledIconRightShadow;
}
/*--------------
Toggle
---------------*/
/* Toggle (Modifies active state to give affordances) */
.ui.toggle.buttons .active.button,
.ui.buttons .button.toggle.active,
.ui.button.toggle.active {
background-color: @positiveColor !important;
box-shadow: none !important;
text-shadow: @invertedTextShadow;
color: @invertedTextColor !important;
}
.ui.button.toggle.active:hover {
background-color: @positiveColorHover !important;
text-shadow: @invertedTextShadow;
color: @invertedTextColor !important;
}
/*--------------
Circular
---------------*/
.ui.circular.button {
border-radius: 10em;
}
/*--------------
Attached
---------------*/
.ui.attached.button {
display: block;
margin: 0em;
box-shadow: @attachedBoxShadow !important;
}
.ui.attached.top.button {
border-radius: @borderRadius @borderRadius 0em 0em;
}
.ui.attached.bottom.button {
border-radius: 0em 0em @borderRadius @borderRadius;
}
.ui.attached.left.button {
display: inline-block;
border-left: none;
padding-right: @attachedHorizontalPadding;
text-align: right;
border-radius: @borderRadius 0em 0em @borderRadius;
}
.ui.attached.right.button {
display: inline-block;
padding-left: @attachedHorizontalPadding;
text-align: left;
border-radius: 0em @borderRadius @borderRadius 0em;
}
/*-------------------
Or Buttons
--------------------*/
.ui.buttons .or {
position: relative;
float: left;
width: @orWidth;
height: @orHeight;
z-index: 3;
}
.ui.buttons .or:before {
position: absolute;
top: 50%;
left: 50%;
content: 'or';
background-color: @white;
text-shadow: @invertedTextShadow;
margin-top: @orVerticalOffset;
margin-left: @orHorizontalOffset;
width: @orCircleSize;
height: @orCircleSize;
line-height: @orLineHeight;
color: @lightTextColor;
font-style: @orTextStyle;
font-weight: @orTextWeight;
text-align: center;
border-radius: 500em;
box-shadow: @orBoxShadow;
box-sizing: border-box;
}
.ui.buttons .or:after {
position: absolute;
top: 0em;
left: 0em;
content: ' ';
background-color: transparent;
width: @orWidth;
height: (@orHeight + (@orSpacerHeight * 2));
border-top: @orSpacerHeight solid @orSpacerColor;
border-bottom: @orSpacerHeight solid @orSpacerColor;
}
/* Fluid Or */
.ui.fluid.buttons .or {
width: 0em !important;
}
.ui.fluid.buttons .or:after{
display: none;
}
/*-------------------
Attached
--------------------*/
/* Plural Attached */
.attached.ui.buttons {
margin: 0px;
border-radius: @borderRadius @borderRadius 0em 0em;
}
.attached.ui.buttons .button:first-child {
border-radius: @borderRadius 0em 0em 0em;
}
.attached.ui.buttons .button:last-child {
border-radius: 0em @borderRadius 0em 0em;
}
/* Bottom Side */
.bottom.attached.ui.buttons {
margin-top: @attachedOffset;
border-radius: 0em 0em @borderRadius @borderRadius;
}
.bottom.attached.ui.buttons .button:first-child {
border-radius: 0em 0em 0em @borderRadius;
}
.bottom.attached.ui.buttons .button:last-child {
border-radius: 0em 0em @borderRadius 0em;
}
/* Left Side */
.left.attached.ui.buttons {
margin-left: @attachedOffset;
border-radius: 0em @borderRadius @borderRadius 0em;
}
.left.attached.ui.buttons .button:first-child {
margin-left: @attachedOffset;
border-radius: 0em @borderRadius 0em 0em;
}
.left.attached.ui.buttons .button:last-child {
margin-left: @attachedOffset;
border-radius: 0em 0em @borderRadius 0em;
}
/* Right Side */
.right.attached.ui.buttons,
.right.attached.ui.buttons .button {
margin-right: @attachedOffset;
border-radius: @borderRadius 0em 0em @borderRadius;
}
.right.attached.ui.buttons .button:first-child {
margin-left: @attachedOffset;
border-radius: @borderRadius 0em 0em 0em;
}
.right.attached.ui.buttons .button:last-child {
margin-left: @attachedOffset;
border-radius: 0em 0em 0em @borderRadius;
}
/* Fluid */
.ui.fluid.buttons,
.ui.button.fluid,
.ui.fluid.buttons > .button {
display: block;
width: 100%;
}
.ui.\32.buttons > .button,
.ui.two.buttons > .button {
width: 50%;
}
.ui.\33.buttons > .button,
.ui.three.buttons > .button {
width: 33.333%;
}
.ui.\34.buttons > .button,
.ui.four.buttons > .button {
width: 25%;
}
.ui.\35.buttons > .button,
.ui.five.buttons > .button {
width: 20%;
}
.ui.\36.buttons > .button,
.ui.six.buttons > .button {
width: 16.666%;
}
.ui.\37.buttons > .button,
.ui.seven.buttons > .button {
width: 14.285%;
}
.ui.\38.buttons > .button,
.ui.eight.buttons > .button {
width: 12.500%;
}
.ui.\39.buttons > .button,
.ui.nine.buttons > .button {
width: 11.11%;
}
.ui.\31\30.buttons > .button,
.ui.ten.buttons > .button {
width: 10%;
}
.ui.\31\31.buttons > .button,
.ui.eleven.buttons > .button {
width: 9.09%;
}
.ui.\31\32.buttons > .button,
.ui.twelve.buttons > .button {
width: 8.3333%;
}
/* Fluid Vertical Buttons */
.ui.fluid.vertical.buttons,
.ui.fluid.vertical.buttons > .button {
display: block;
width: auto;
box-sizing: border-box;
}
.ui.\32.vertical.buttons > .button,
.ui.two.vertical.buttons > .button {
height: 50%;
}
.ui.\33.vertical.buttons > .button,
.ui.three.vertical.buttons > .button {
height: 33.333%;
}
.ui.\34.vertical.buttons > .button,
.ui.four.vertical.buttons > .button {
height: 25%;
}
.ui.\35.vertical.buttons > .button,
.ui.five.vertical.buttons > .button {
height: 20%;
}
.ui.\36.vertical.buttons > .button,
.ui.six.vertical.buttons > .button {
height: 16.666%;
}
.ui.\37.vertical.buttons > .button,
.ui.seven.vertical.buttons > .button {
height: 14.285%;
}
.ui.\38.vertical.buttons > .button,
.ui.eight.vertical.buttons > .button {
height: 12.500%;
}
.ui.\39.vertical.buttons > .button,
.ui.nine.vertical.buttons > .button {
height: 11.11%;
}
.ui.\31\30.vertical.buttons > .button,
.ui.ten.vertical.buttons > .button {
height: 10%;
}
.ui.\31\31.vertical.buttons > .button,
.ui.eleven.vertical.buttons > .button {
height: 9.09%;
}
.ui.\31\32.vertical.buttons > .button,
.ui.twelve.vertical.buttons > .button {
height: 8.3333%;
}
/*-------------------
Colors
--------------------*/
/*--- Black ---*/
.ui.black.buttons .button,
.ui.black.button {
background-color: @black;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.black.button {
box-shadow: @coloredBoxShadow;
}
.ui.black.buttons .button:hover,
.ui.black.button:hover {
background-color: @blackHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.black.buttons .button:active,
.ui.black.button:active {
background-color: @blackDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.black.buttons .button.active,
.ui.black.buttons .button.active:active,
.ui.black.button.active,
.ui.black.button .button.active:active {
background-color: @blackActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.inverted.black.buttons .button,
.ui.inverted.black.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
color: @lightBlack;
}
.ui.inverted.black.buttons .button:hover,
.ui.inverted.black.button:hover {
box-shadow: 0px 0px 0px 2px @black inset !important;
background-color: @black;
color: @white;
}
.ui.inverted.black.basic.buttons .button,
.ui.inverted.black.buttons .basic.button,
.ui.inverted.black.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.black.basic.buttons .button:hover,
.ui.inverted.black.buttons .basic.button:hover,
.ui.inverted.black.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightBlack inset !important;
color: @white !important;
}
/*--- Blue ---*/
.ui.blue.buttons .button,
.ui.blue.button {
background-color: @blue;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.blue.button {
box-shadow: @coloredBoxShadow;
}
.ui.blue.buttons .button:hover,
.ui.blue.button:hover {
background-color: @blueHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.blue.buttons .button:active,
.ui.blue.button:active {
background-color: @blueDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.blue.buttons .button.active,
.ui.blue.buttons .button.active:active,
.ui.blue.button.active,
.ui.blue.button .button.active:active {
background-color: @blueActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.blue.buttons .button,
.ui.inverted.blue.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
color: @lightBlue;
}
.ui.inverted.blue.buttons .button:hover,
.ui.inverted.blue.button:hover {
box-shadow: 0px 0px 0px 2px @blue inset !important;
background-color: @blue;
color: @white;
}
.ui.inverted.blue.basic.buttons .button,
.ui.inverted.blue.buttons .basic.button,
.ui.inverted.blue.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.blue.basic.buttons .button:hover,
.ui.inverted.blue.buttons .basic.button:hover,
.ui.inverted.blue.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightBlue inset !important;
color: @lightBlue !important;
}
/*--- Green ---*/
.ui.green.buttons .button,
.ui.green.button {
background-color: @green;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.green.button {
box-shadow: @coloredBoxShadow;
}
.ui.green.buttons .button:hover,
.ui.green.button:hover {
background-color: @greenHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.green.buttons .button:active,
.ui.green.button:active {
background-color: @greenDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.green.buttons .button.active,
.ui.green.buttons .button.active:active,
.ui.green.button.active,
.ui.green.button .button.active:active {
background-color: @greenActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.green.buttons .button,
.ui.inverted.green.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
color: @lightGreen;
}
.ui.inverted.green.buttons .button:hover,
.ui.inverted.green.button:hover {
box-shadow: 0px 0px 0px 2px @green inset !important;
background-color: @green;
color: @white;
}
.ui.inverted.green.basic.buttons .button,
.ui.inverted.green.buttons .basic.button,
.ui.inverted.green.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.green.basic.buttons .button:hover,
.ui.inverted.green.buttons .basic.button:hover,
.ui.inverted.green.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightGreen inset !important;
color: @lightGreen !important;
}
/*--- Orange ---*/
.ui.orange.buttons .button,
.ui.orange.button {
background-color: @orange;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.orange.button {
box-shadow: @coloredBoxShadow;
}
.ui.orange.buttons .button:hover,
.ui.orange.button:hover {
background-color: @orangeHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.orange.buttons .button:active,
.ui.orange.button:active {
background-color: @orangeDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.orange.buttons .button.active,
.ui.orange.buttons .button.active:active,
.ui.orange.button.active,
.ui.orange.button .button.active:active {
background-color: @blackActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.orange.buttons .button,
.ui.inverted.orange.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
color: @lightOrange;
}
.ui.inverted.orange.buttons .button:hover,
.ui.inverted.orange.button:hover {
box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
background-color: @lightOrange;
color: @white;
}
.ui.inverted.orange.basic.buttons .button,
.ui.inverted.orange.buttons .basic.button,
.ui.inverted.orange.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.orange.basic.buttons .button:hover,
.ui.inverted.orange.buttons .basic.button:hover,
.ui.inverted.orange.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightOrange inset !important;
color: @lightOrange !important;
}
/*--- Pink ---*/
.ui.pink.buttons .button,
.ui.pink.button {
background-color: @pink;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.pink.button {
box-shadow: @coloredBoxShadow;
}
.ui.pink.buttons .button:hover,
.ui.pink.button:hover {
background-color: @pinkHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.pink.buttons .button:active,
.ui.pink.button:active {
background-color: @pinkDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.pink.buttons .button.active,
.ui.pink.buttons .button.active:active,
.ui.pink.button.active,
.ui.pink.button .button.active:active {
background-color: @pinkActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.pink.buttons .button,
.ui.inverted.pink.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightPink inset !important;
color: @lightPink;
}
.ui.inverted.pink.buttons .button:hover,
.ui.inverted.pink.button:hover {
box-shadow: 0px 0px 0px 2px @lightPink inset !important;
background-color: @lightPink;
color: @white;
}
.ui.inverted.pink.basic.buttons .button,
.ui.inverted.pink.buttons .basic.button,
.ui.inverted.pink.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.pink.basic.buttons .button:hover,
.ui.inverted.pink.buttons .basic.button:hover,
.ui.inverted.pink.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightPink inset !important;
color: @lightPink !important;
}
/*--- Purple ---*/
.ui.purple.buttons .button,
.ui.purple.button {
background-color: @purple;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.purple.button {
box-shadow: @coloredBoxShadow;
}
.ui.purple.buttons .button:hover,
.ui.purple.button:hover {
background-color: @purpleHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.purple.buttons .button:active,
.ui.purple.button:active {
background-color: @purpleDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.purple.buttons .button.active,
.ui.purple.buttons .button.active:active,
.ui.purple.button.active,
.ui.purple.button .button.active:active {
background-color: @purpleActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.purple.buttons .button,
.ui.inverted.purple.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
color: @lightPurple;
}
.ui.inverted.purple.buttons .button:hover,
.ui.inverted.purple.button:hover {
box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
background-color: @lightPurple;
color: @white;
}
.ui.inverted.purple.basic.buttons .button,
.ui.inverted.purple.buttons .basic.button,
.ui.inverted.purple.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.purple.basic.buttons .button:hover,
.ui.inverted.purple.buttons .basic.button:hover,
.ui.inverted.purple.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightPurple inset !important;
color: @lightPurple !important;
}
/*--- Red ---*/
.ui.red.buttons .button,
.ui.red.button {
background-color: @red;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.red.button {
box-shadow: @coloredBoxShadow;
}
.ui.red.buttons .button:hover,
.ui.red.button:hover {
background-color: @redHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.red.buttons .button:active,
.ui.red.button:active {
background-color: @redDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.red.buttons .button.active,
.ui.red.buttons .button.active:active,
.ui.red.button.active,
.ui.red.button .button.active:active {
background-color: @redActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.red.buttons .button,
.ui.inverted.red.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightRed inset !important;
color: @lightRed;
}
.ui.inverted.red.buttons .button:hover,
.ui.inverted.red.button:hover {
box-shadow: 0px 0px 0px 2px @lightRed inset !important;
background-color: @lightRed;
color: @white;
}
.ui.inverted.red.basic.buttons .button,
.ui.inverted.red.buttons .basic.button,
.ui.inverted.red.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.red.basic.buttons .button:hover,
.ui.inverted.red.buttons .basic.button:hover,
.ui.inverted.red.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightRed inset !important;
color: @lightRed !important;
}
/*--- Teal ---*/
.ui.teal.buttons .button,
.ui.teal.button {
background-color: @teal;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.teal.button {
box-shadow: @coloredBoxShadow;
}
.ui.teal.buttons .button:hover,
.ui.teal.button:hover {
background-color: @tealHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.teal.buttons .button:active,
.ui.teal.button:active {
background-color: @tealDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.teal.buttons .button.active,
.ui.teal.buttons .button.active:active,
.ui.teal.button.active,
.ui.teal.button .button.active:active {
background-color: @tealActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.teal.buttons .button,
.ui.inverted.teal.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
color: @lightTeal;
}
.ui.inverted.teal.buttons .button:hover,
.ui.inverted.teal.button:hover {
box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
background-color: @lightTeal;
color: @white;
}
.ui.inverted.teal.basic.buttons .button,
.ui.inverted.teal.buttons .basic.button,
.ui.inverted.teal.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.teal.basic.buttons .button:hover,
.ui.inverted.teal.buttons .basic.button:hover,
.ui.inverted.teal.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightTeal inset !important;
color: @lightTeal !important;
}
/*--- Yellow ---*/
.ui.yellow.buttons .button,
.ui.yellow.button {
background-color: @yellow;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.yellow.button {
box-shadow: @coloredBoxShadow;
}
.ui.yellow.buttons .button:hover,
.ui.yellow.button:hover {
background-color: @yellowHover;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.yellow.buttons .button:active,
.ui.yellow.button:active {
background-color: @yellowDown;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.yellow.buttons .button.active,
.ui.yellow.buttons .button.active:active,
.ui.yellow.button.active,
.ui.yellow.button .button.active:active {
background-color: @yellowActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/* Inverted */
.ui.inverted.yellow.buttons .button,
.ui.inverted.yellow.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
color: @lightYellow;
}
.ui.inverted.yellow.buttons .button:hover,
.ui.inverted.yellow.button:hover {
box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
background-color: @lightYellow;
color: @white;
}
.ui.inverted.yellow.basic.buttons .button,
.ui.inverted.yellow.buttons .basic.button,
.ui.inverted.yellow.basic.button {
background-color: transparent;
box-shadow: 0px 0px 0px 2px @white inset !important;
color: @white;
}
.ui.inverted.yellow.basic.buttons .button:hover,
.ui.inverted.yellow.buttons .basic.button:hover,
.ui.inverted.yellow.basic.button:hover {
box-shadow: 0px 0px 0px 2px @lightYellow inset !important;
color: @lightYellow !important;
}
/*---------------
Positive
----------------*/
.ui.positive.buttons .button,
.ui.positive.button {
background-color: @positiveColor !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.positive.button {
box-shadow: @coloredBoxShadow;
}
.ui.positive.buttons .button:hover,
.ui.positive.button:hover,
.ui.positive.buttons .active.button,
.ui.positive.button.active {
background-color: @positiveColorHover !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.positive.buttons .button:active,
.ui.positive.button:active {
background-color: @positiveColorDown !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.positive.buttons .button.active,
.ui.positive.buttons .button.active:active,
.ui.positive.button.active,
.ui.positive.button .button.active:active {
background-color: @positiveColorActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/*---------------
Negative
----------------*/
.ui.negative.buttons .button,
.ui.negative.button {
background-color: @negativeColor !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
background-image: @coloredBackgroundImage;
}
.ui.negative.button {
box-shadow: @coloredBoxShadow;
}
.ui.negative.buttons .button:hover,
.ui.negative.button:hover,
.ui.negative.buttons .active.button,
.ui.negative.button.active {
background-color: @negativeColorHover !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.negative.buttons .button:active,
.ui.negative.button:active {
background-color: @negativeColorDown !important;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
.ui.negative.buttons .button.active,
.ui.negative.buttons .button.active:active,
.ui.negative.button.active,
.ui.negative.button .button.active:active {
background-color: @negativeColorActive;
color: @invertedTextColor;
text-shadow: @invertedTextShadow;
}
/*******************************
Groups
*******************************/
.ui.buttons {
display: inline-block;
vertical-align: middle;
margin: @verticalMargin @horizontalMargin 0em 0em;
}
.ui.buttons:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui.buttons .button:first-child {
border-left: none;
}
.ui.buttons .button {
margin: 0em;
float: left;
border-radius: 0em;
margin: 0px 0px 0px -1px;
}
.ui.buttons .button:first-child {
margin-left: 0em;
border-top-left-radius: @borderRadius;
border-bottom-left-radius: @borderRadius;
}
.ui.buttons .button:last-child {
border-top-right-radius: @borderRadius;
border-bottom-right-radius: @borderRadius;
}
/* Vertical Style */
.ui.vertical.buttons {
display: inline-block;
}
.ui.vertical.buttons .button {
display: block;
float: none;
margin: 0px 0px -1px 0px;
box-shadow: @verticalBoxShadow;
}
.ui.vertical.buttons .button:first-child,
.ui.vertical.buttons .mini.button:first-child,
.ui.vertical.buttons .tiny.button:first-child,
.ui.vertical.buttons .small.button:first-child,
.ui.vertical.buttons .massive.button:first-child,
.ui.vertical.buttons .huge.button:first-child {
border-radius: @borderRadius @borderRadius 0px 0px;
}
.ui.vertical.buttons .button:last-child,
.ui.vertical.buttons .mini.button:last-child,
.ui.vertical.buttons .tiny.button:last-child,
.ui.vertical.buttons .small.button:last-child,
.ui.vertical.buttons .massive.button:last-child,
.ui.vertical.buttons .huge.button:last-child,
.ui.vertical.buttons .gigantic.button:last-child {
margin-bottom: 0px;
border-radius: 0px 0px @borderRadius @borderRadius;
}
.loadUIOverrides();