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.
159 lines
4.1 KiB
159 lines
4.1 KiB
/*******************************
|
|
Checkbox
|
|
*******************************/
|
|
|
|
@checkboxSize: 17px;
|
|
@checkboxColor: @textColor;
|
|
@checkboxLineHeight: @checkboxSize;
|
|
|
|
/* Label */
|
|
@labelDistance: 1.85714em; /* 26px @ 14/em */
|
|
|
|
/* Checkbox */
|
|
@checkboxTop: 0px;
|
|
@checkboxLeft: 0px;
|
|
@checkboxBackground: @white;
|
|
@checkboxBorder: 1px solid @solidBorderColor;
|
|
@checkboxBorderRadius: @defaultBorderRadius;
|
|
@checkboxTransition:
|
|
background-color @defaultDuration @defaultEasing,
|
|
border @defaultDuration @defaultEasing,
|
|
opacity @defaultDuration @defaultEasing,
|
|
box-shadow @defaultDuration @defaultEasing
|
|
;
|
|
|
|
/* Checkmark */
|
|
@checkboxCheckFontSize: 14px;
|
|
@checkboxCheckTop: @checkboxTop;
|
|
@checkboxCheckLeft: @checkboxLeft;
|
|
@checkboxCheckLineHeight: @checkboxLineHeight;
|
|
@checkboxCheckSize: @checkboxSize;
|
|
|
|
/* Label */
|
|
@labelFontSize: @relativeMedium;
|
|
@labelColor: @textColor;
|
|
@labelTransition: color @defaultDuration @defaultEasing;
|
|
|
|
/*-------------------
|
|
States
|
|
--------------------*/
|
|
|
|
@checkboxHoverBackground: @checkboxBackground;
|
|
@checkboxHoverBorderColor: @selectedBorderColor;
|
|
@labelHoverColor: @hoveredTextColor;
|
|
|
|
@checkboxPressedBackground: @offWhite;
|
|
@checkboxPressedBorderColor: @selectedBorderColor;
|
|
@checkboxPressedColor: @selectedTextColor;
|
|
@labelPressedColor: @selectedTextColor;
|
|
|
|
@checkboxFocusedBackground: @offWhite;
|
|
@checkboxFocusedBorderColor: @selectedBorderColor;
|
|
@checkboxFocusedColor: @selectedTextColor;
|
|
@labelFocusedColor: @selectedTextColor;
|
|
|
|
@checkboxActiveBackground: #FFFFFF;
|
|
@checkboxActiveBorderColor: @selectedBorderColor;
|
|
@checkboxActiveColor: @selectedTextColor;
|
|
@labelActiveColor: @selectedTextColor;
|
|
|
|
|
|
/* Disabled */
|
|
@disabledCheckboxOpacity: 0.5;
|
|
@disabledCheckboxLabelColor: rgba(0, 0, 0, 1);
|
|
|
|
/*-------------------
|
|
Types
|
|
--------------------*/
|
|
|
|
/* Radio */
|
|
/* Uses px to avoid rounding issues with circles */
|
|
|
|
@radioSize: 14px;
|
|
@radioCircleSize: 9px;
|
|
@radioTop: 1px;
|
|
@radioLeft: 0px;
|
|
@radioLabelDistance: @labelDistance;
|
|
|
|
@bulletScale: (6 / 14); /* 6px as unitless value from radio size */
|
|
@bulletColor: @textColor;
|
|
@bulletRadius: @circularRadius;
|
|
|
|
@radioActiveBackground: @white;
|
|
@radioActiveBulletColor: @checkboxActiveColor;
|
|
|
|
/* Slider & Toggle Handle */
|
|
@handleBackground: @white @subtleGradient;
|
|
@handleBoxShadow:
|
|
@subtleShadow,
|
|
0px 0px 0px 1px @borderColor inset
|
|
;
|
|
|
|
/* Slider */
|
|
@sliderHandleSize: 1.5rem;
|
|
@sliderLineWidth: 3.5rem;
|
|
@sliderTransitionDuration: 0.3s;
|
|
|
|
@sliderHandleOffset: (1rem - @sliderHandleSize) / 2;
|
|
@sliderHandleTransition: left @sliderTransitionDuration @defaultEasing;
|
|
|
|
@sliderWidth: @sliderLineWidth;
|
|
@sliderHeight: (@sliderHandleSize + @sliderHandleOffset);
|
|
|
|
@sliderLineHeight: @3px;
|
|
@sliderLineVerticalOffset: 0.4rem;
|
|
@sliderLineColor: @transparentBlack;
|
|
@sliderLineRadius: @circularRadius;
|
|
@sliderLineTransition: background @sliderTransitionDuration @defaultEasing;
|
|
|
|
@sliderTravelDistance: @sliderLineWidth - @sliderHandleSize;
|
|
|
|
@sliderLabelDistance: @sliderLineWidth + 1rem;
|
|
@sliderOffLabelColor: @unselectedTextColor;
|
|
|
|
@sliderOnLineColor: @lightBlack;
|
|
@sliderOnLabelColor: @selectedTextColor;
|
|
@sliderLabelLineHeight: 1rem;
|
|
|
|
@sliderHoverLaneBackground: @veryStrongTransparentBlack;
|
|
@sliderHoverLabelColor: @hoveredTextColor;
|
|
|
|
|
|
/* Toggle */
|
|
@toggleLaneWidth: 3.5rem;
|
|
@toggleHandleSize: 1.5rem;
|
|
@toggleTransitionDuration: 0.2s;
|
|
|
|
@toggleWidth: @toggleLaneWidth;
|
|
@toggleHeight: @toggleHandleSize;
|
|
|
|
@toggleHandleRadius: @circularRadius;
|
|
@toggleHandleOffset: 0rem;
|
|
@toggleHandleTransition:
|
|
background @sliderTransitionDuration @defaultEasing,
|
|
left @sliderTransitionDuration @defaultEasing
|
|
;
|
|
|
|
@toggleLaneBackground: @transparentBlack;
|
|
@toggleLaneHeight: @toggleHandleSize;
|
|
@toggleLaneVerticalOffset: 0rem;
|
|
@toggleOffOffset: -0.05rem;
|
|
@toggleOnOffset: (@toggleLaneWidth - @toggleHandleSize) + 0.15rem;
|
|
|
|
@toggleLabelDistance: @toggleLaneWidth + 1rem;
|
|
@toggleLabelLineHeight: 1.5rem;
|
|
@toggleLabelOffset: 0.15em;
|
|
|
|
|
|
@toggleFocusColor: @veryStrongTransparentBlack;
|
|
@toggleHoverColor: @toggleFocusColor;
|
|
|
|
@toggleOffLabelColor: @checkboxColor;
|
|
@toggleOnLabelColor: @selectedTextColor;
|
|
@toggleOnLaneColor: @primaryColor;
|
|
|
|
|
|
|
|
/*-------------------
|
|
Variations
|
|
--------------------*/
|