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.
245 lines
6.1 KiB
245 lines
6.1 KiB
/*******************************
|
|
Button
|
|
*******************************/
|
|
|
|
/*-------------------
|
|
Element
|
|
--------------------*/
|
|
|
|
@verticalMargin: 0em;
|
|
@horizontalMargin: 0.25em;
|
|
@textTransform: none;
|
|
@tapColor: transparent;
|
|
|
|
@fontWeight: bold;
|
|
@textColor: rgba(0, 0, 0, 0.6);
|
|
@textShadow: none;
|
|
@invertedTextShadow: none;
|
|
@borderRadius: 0.25em;
|
|
@borderBoxShadowColor: transparent;
|
|
@borderBoxShadowWidth: 1px;
|
|
@verticalAlign: baseline;
|
|
|
|
/* Shadow */
|
|
@shadowDistance: 0em;
|
|
@shadowOffset: (@shadowDistance / 2);
|
|
|
|
@shadowBoxShadow: 0px -@shadowDistance 0px 0px @borderColor inset;
|
|
@borderBoxShadow: 0px 0px 0px @borderBoxShadowWidth @borderBoxShadowColor inset;
|
|
|
|
@backgroundColor: #E0E0E0;
|
|
@backgroundImage: none;
|
|
@boxShadow:
|
|
@borderBoxShadow,
|
|
@shadowBoxShadow
|
|
;
|
|
|
|
/* transitions */
|
|
@transition:
|
|
opacity @transitionDuration @transitionEasing,
|
|
background-color @transitionDuration @transitionEasing,
|
|
color @transitionDuration @transitionEasing,
|
|
box-shadow @transitionDuration @transitionEasing,
|
|
background @transitionDuration @transitionEasing
|
|
;
|
|
|
|
/* Padding */
|
|
@verticalPadding: 0.8em;
|
|
@horizontalPadding: 1.5em;
|
|
|
|
/* Icon */
|
|
@iconOpacity: 0.8;
|
|
@iconDistance: 0.4em;
|
|
@iconTransition: opacity @transitionDuration @transitionEasing;
|
|
@iconMargin: 0em @iconDistance 0em -(@iconDistance / 2);
|
|
@rightIconMargin: 0em -(@iconDistance / 2) 0em @iconDistance;
|
|
@iconVerticalAlign: baseline;
|
|
|
|
/* Loader */
|
|
@loaderPath: "@{imagePath}/loader-mini.gif";
|
|
@hugeLoaderPath: "@{imagePath}/loader-small.gif";
|
|
@massiveLoaderPath: "@{imagePath}/loader-medium.gif";
|
|
|
|
/*-------------------
|
|
Group
|
|
--------------------*/
|
|
|
|
@groupBoxShadow: none;
|
|
@groupButtonBoxShadow: @boxShadow;
|
|
@verticalBoxShadow: none;
|
|
@groupButtonOffset: 0px 0px 0px 0px;
|
|
@verticalGroupOffset: 0px 0px 0px 0px;
|
|
|
|
/*-------------------
|
|
States
|
|
--------------------*/
|
|
|
|
/* Hovered */
|
|
@hoverBackgroundColor: #E8E8E8;
|
|
@hoverBackgroundImage: none;
|
|
@hoverBoxShadow: '';
|
|
@hoverColor: @hoveredTextColor;
|
|
@iconHoverOpacity: 0.85;
|
|
|
|
/* Focused */
|
|
@focusBackgroundColor: '';
|
|
@focusBackgroundImage: '';
|
|
@focusBoxShadow:
|
|
@borderBoxShadow,
|
|
0px 0px 1px rgba(81, 167, 232, 0.8) inset,
|
|
0px 0px 3px 2px rgba(81, 167, 232, 0.8)
|
|
;
|
|
@focusColor: @hoveredTextColor;
|
|
@iconFocusOpacity: 0.85;
|
|
|
|
/* Pressed Down */
|
|
@downBackgroundColor: #CCCCCC;
|
|
@downBackgroundImage: '';
|
|
@downBoxShadow:
|
|
@borderBoxShadow,
|
|
0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset !important
|
|
;
|
|
@downColor: @pressedTextColor;
|
|
|
|
/* Active */
|
|
@activeBackgroundColor: #D0D0D0;
|
|
@activeBackgroundImage: none;
|
|
@activeColor: @selectedTextColor;
|
|
@activeBoxShadow: @borderBoxShadow;
|
|
|
|
/* Active + Hovered */
|
|
@activeHoverBackgroundColor: #D0D0D0;
|
|
@activeHoverBackgroundImage: none;
|
|
@activeHoverBoxShadow: @borderBoxShadow;
|
|
@activeHoverColor: @selectedTextColor;
|
|
|
|
/* Loading */
|
|
@loadingBackground: rgba(0, 0, 0, 0.04);
|
|
|
|
/*-------------------
|
|
Types
|
|
--------------------*/
|
|
|
|
/* Or */
|
|
@orWidth: 0.3em;
|
|
@orHeight: 1.1em;
|
|
|
|
@orVerticalOffset: -0.1em;
|
|
@orHorizontalOffset: -0.9em;
|
|
|
|
@orTextStyle: normal;
|
|
@orTextWeight: bold;
|
|
|
|
@orCircleSize: 1.8em;
|
|
@orLineHeight: 1.6;
|
|
@orBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
|
|
|
|
@orSpacerHeight: 0.5em;
|
|
@orSpacerColor: transparent;
|
|
|
|
/* Icon */
|
|
@iconButtonOpacity: 0.9;
|
|
|
|
/* Labeled Icon */
|
|
@labeledIconWidth: 1em + (@verticalPadding * 2);
|
|
@labeledIconBackgroundColor: rgba(0, 0, 0, 0.05);
|
|
@labeledIconPadding: (@horizontalPadding + @labeledIconWidth);
|
|
@labeledIconBorder: transparent;
|
|
@labeledIconColor: '';
|
|
|
|
@labeledIconLeftShadow: -1px 0px 0px 0px @labeledIconBorder inset;
|
|
@labeledIconRightShadow: 1px 0px 0px 0px @labeledIconBorder inset;
|
|
|
|
/* Inverted */
|
|
@invertedBorderSize: 2px;
|
|
@invertedTextColor: @white;
|
|
@invertedTextHoverColor: @hoverColor;
|
|
@invertedGroupButtonOffset: 0px 0px 0px -(@invertedBorderSize);
|
|
@invertedVerticalGroupButtonOffset: 0px 0px -(@invertedBorderSize) 0px;
|
|
|
|
/* Basic */
|
|
@basicBorderRadius: @borderRadius;
|
|
@basicBorderSize: 1px;
|
|
@basicColoredBorderSize: 2px;
|
|
@basicPadding: @verticalPadding @horizontalPadding;
|
|
|
|
@basicBackground: transparent;
|
|
@basicFontWeight: normal;
|
|
@basicBoxShadow: 0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.1) inset;
|
|
@iconOffset: 0.05em;
|
|
@basicLoadingColor: #FFFFFF;
|
|
@basicTextTransform: none;
|
|
|
|
/* Basic Hover */
|
|
@basicHoverBackground: #FAFAFA;
|
|
@basicHoverBoxShadow:
|
|
0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.1) inset,
|
|
0px 0px 0px 0px rgba(0, 0, 0, 0.1) inset
|
|
;
|
|
/* Basic Down */
|
|
@basicDownBackground: #F8F8F8;
|
|
@basicDownBoxShadow:
|
|
0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.15) inset,
|
|
0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset
|
|
;
|
|
/* Basic Active */
|
|
@basicActiveBackground: @transparentBlack;
|
|
@basicActiveColor: @selectedTextColor;
|
|
|
|
/* Basic Inverted */
|
|
@basicInvertedBackground: transparent;
|
|
@basicInvertedHoverBackground: transparent;
|
|
@basicInvertedDownBackground: @transparentWhite;
|
|
@basicInvertedActiveBackground: @transparentWhite;
|
|
|
|
@basicInvertedBoxShadow: 0px 0px 0px @invertedBorderSize rgba(255, 255, 255, 0.5) inset;
|
|
@basicInvertedHoverBoxShadow: 0px 0px 0px @invertedBorderSize rgba(255, 255, 255, 1) inset;
|
|
@basicInvertedDownBoxShadow: 0px 0px 0px @invertedBorderSize rgba(255, 255, 255, 0.9) inset;
|
|
@basicInvertedActiveBoxShadow: 0px 0px 0px @invertedBorderSize rgba(255, 255, 255, 0.7) inset;
|
|
|
|
@basicInvertedColor: @darkWhite;
|
|
@basicInvertedHoverColor: @darkWhiteHover;
|
|
@basicInvertedDownColor: @darkWhiteActive;
|
|
@basicInvertedActiveColor: @invertedTextColor;
|
|
|
|
|
|
/* Basic Group */
|
|
@basicGroupBorder: 1px solid @borderColor;
|
|
@basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
|
|
|
|
/*-------------------
|
|
Variations
|
|
--------------------*/
|
|
|
|
/* Colors */
|
|
@coloredBackgroundImage: none;
|
|
@coloredBoxShadow: @shadowBoxShadow;
|
|
|
|
/* Compact */
|
|
@compactVerticalPadding: (@verticalPadding * 0.75);
|
|
@compactHorizontalPadding: (@horizontalPadding * 0.75);
|
|
|
|
/* Attached */
|
|
@attachedOffset: -1px;
|
|
@attachedBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
|
|
@attachedHorizontalPadding: 0.75em;
|
|
|
|
/* Floated */
|
|
@floatedMargin: 0.25em;
|
|
|
|
/* Animated */
|
|
@animationDuration: 0.3s;
|
|
@animationEasing: ease;
|
|
@fadeScaleHigh: 1.5;
|
|
@fadeScaleLow: 0.75;
|
|
|
|
/* Sizing */
|
|
@mini: 0.7rem;
|
|
@tiny: 0.8rem;
|
|
@small: 0.875rem;
|
|
@medium: 1rem;
|
|
@large: 1.125rem;
|
|
@big: 1.25rem;
|
|
@huge: 1.375rem;
|
|
@massive: 1.5rem;
|
|
|