Browse Source

Fix checkbox needs slower transition

pull/2369/head
jlukic 9 years ago
parent
commit
6213cbb5db
1 changed files with 9 additions and 5 deletions
  1. 14
      src/themes/default/modules/checkbox.variables

14
src/themes/default/modules/checkbox.variables

@ -6,6 +6,7 @@
@fontSize: 1em; @fontSize: 1em;
@checkboxLineHeight: 15px; @checkboxLineHeight: 15px;
/* Label */ /* Label */
@labelPadding: 1.75em; @labelPadding: 1.75em;
@ -87,9 +88,11 @@
/* Slider */ /* Slider */
@sliderHandleSize: 1.5rem; @sliderHandleSize: 1.5rem;
@sliderHandleOffset: (1rem - @sliderHandleSize) / 2;
@sliderHandleTransition: left @defaultDuration @defaultEasing;
@sliderLineWidth: 3.5rem; @sliderLineWidth: 3.5rem;
@sliderTransitionDuration: 0.3s;
@sliderHandleOffset: (1rem - @sliderHandleSize) / 2;
@sliderHandleTransition: left @sliderTransitionDuration @defaultEasing;
@sliderWidth: @sliderLineWidth; @sliderWidth: @sliderLineWidth;
@sliderHeight: (@sliderHandleSize + @sliderHandleOffset); @sliderHeight: (@sliderHandleSize + @sliderHandleOffset);
@ -98,7 +101,7 @@
@sliderLineVerticalOffset: 0.4rem; @sliderLineVerticalOffset: 0.4rem;
@sliderLineColor: @neutralCheckbox; @sliderLineColor: @neutralCheckbox;
@sliderLineRadius: @circularRadius; @sliderLineRadius: @circularRadius;
@sliderLineTransition: background @defaultDuration @defaultEasing;
@sliderLineTransition: background @sliderTransitionDuration @defaultEasing;
@sliderTravelDistance: @sliderLineWidth - @sliderHandleSize; @sliderTravelDistance: @sliderLineWidth - @sliderHandleSize;
@ -116,6 +119,7 @@
/* Toggle */ /* Toggle */
@toggleLaneWidth: 3.5rem; @toggleLaneWidth: 3.5rem;
@toggleHandleSize: 1.5rem; @toggleHandleSize: 1.5rem;
@toggleTransitionDuration: 0.2s;
@toggleWidth: @toggleLaneWidth; @toggleWidth: @toggleLaneWidth;
@toggleHeight: @toggleHandleSize; @toggleHeight: @toggleHandleSize;
@ -123,8 +127,8 @@
@toggleHandleRadius: @circularRadius; @toggleHandleRadius: @circularRadius;
@toggleHandleOffset: 0rem; @toggleHandleOffset: 0rem;
@toggleHandleTransition: @toggleHandleTransition:
background @defaultDuration @defaultEasing,
left @defaultDuration @defaultEasing
background @sliderTransitionDuration @defaultEasing,
left @sliderTransitionDuration @defaultEasing
; ;
@toggleLaneHeight: @toggleHandleSize; @toggleLaneHeight: @toggleHandleSize;

Loading…
Cancel
Save