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.

139 lines
3.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Checkbox
  3. *******************************/
  4. @checkboxColor: @textColor;
  5. @fontSize: 1em;
  6. @checkboxLineHeight: 15px;
  7. /* Label */
  8. @labelPadding: 1.75em;
  9. @neutralCheckbox: @transparentBlack;
  10. @positiveCheckbox: @positiveColor;
  11. @negativeCheckbox: @negativeColor;
  12. /* Checkbox */
  13. @checkboxSize: 17px;
  14. @checkboxBackground: @white;
  15. @checkboxBorder: 1px solid @solidBorderColor;
  16. @checkboxBorderRadius: 0.25em;
  17. @checkboxTransition:
  18. background-color 0.3s ease,
  19. border 0.3s ease,
  20. box-shadow 0.3s ease
  21. ;
  22. /* Checkmark */
  23. @checkboxCheckTop: 0px;
  24. @checkboxCheckLeft: 0px;
  25. /*-------------------
  26. Coupling
  27. --------------------*/
  28. @labelColor: @textColor;
  29. @labelOpacity: 0.6;
  30. @labelHoverOpacity: 0.8;
  31. @labelSelectedOpacity: 1;
  32. /*-------------------
  33. States
  34. --------------------*/
  35. @checkboxHoverBackground: @checkboxBackground;
  36. @checkboxHoverBorder: 1px solid @selectedBorderColor;
  37. @labelHoverColor: @hoveredTextColor;
  38. @checkboxSelectedBackground: #F5F5F5;
  39. @checkboxSelectedBorder: 1px solid @selectedBorderColor;
  40. @labelSelectedColor: @selectedTextColor;
  41. /* Disabled */
  42. @disabledCheckboxOpacity: 0.5;
  43. @disabledCheckboxLabelColor: rgba(0, 0, 0, 1);
  44. /*-------------------
  45. Types
  46. --------------------*/
  47. /* Radio */
  48. @checkboxRadioSize: 14px;
  49. @checkboxRadioCircleSize: 9px;
  50. @checkboxRadioTop: 1px;
  51. @checkboxRadioLeft: 0px;
  52. @checkboxBulletScale: 0.428571428;
  53. @checkboxBulletColor: @textColor;
  54. @checkboxBulletRadius: @circularRadius;
  55. /* Slider & Toggle Handle */
  56. @handleBackground: @white @subtleGradient;
  57. @handleBoxShadow:
  58. @subtleShadow,
  59. 0px 0px 0px 1px @borderColor inset
  60. ;
  61. /* Slider */
  62. @sliderHandleSize: 1.5rem;
  63. @sliderHandleOffset: (1rem - @sliderHandleSize) / 2;
  64. @sliderLineWidth: 3.5rem;
  65. @sliderWidth: @sliderLineWidth;
  66. @sliderHeight: (@sliderHandleSize + @sliderHandleOffset);
  67. @sliderLineHeight: 0.25rem;
  68. @sliderLineVerticalOffset: 0.4rem;
  69. @sliderLineColor: @neutralCheckbox;
  70. @sliderLineRadius: @circularRadius;
  71. @sliderTravelDistance: @sliderLineWidth - @sliderHandleSize;
  72. @sliderLabelDistance: @sliderLineWidth + 1rem;
  73. @sliderOffLabelColor: @unselectedTextColor;
  74. @sliderOnLineColor: @strongTransparentBlack;
  75. @sliderOnLabelColor: @selectedTextColor;
  76. @sliderLabelLineHeight: 1rem;
  77. @sliderHoverLaneBackground: @strongTransparentBlack;
  78. @sliderHoverLabelColor: @hoveredTextColor;
  79. /* Toggle */
  80. @toggleLaneWidth: 3.5rem;
  81. @toggleHandleSize: 1.5rem;
  82. @toggleWidth: @toggleLaneWidth;
  83. @toggleHeight: @toggleHandleSize;
  84. @toggleHandleRadius: @circularRadius;
  85. @toggleHandleOffset: 0rem;
  86. @toggleHandleTransition:
  87. background 0.3s ease 0s,
  88. left 0.3s ease 0s
  89. ;
  90. @toggleLaneHeight: @toggleHandleSize;
  91. @toggleLaneVerticalOffset: 0rem;
  92. @toggleOffOffset: -0.05rem;
  93. @toggleOnOffset: (@toggleLaneWidth - @toggleHandleSize) + 0.05rem;
  94. @toggleLabelDistance: @toggleLaneWidth + 1rem;
  95. @toggleLabelLineHeight: 1.5rem;
  96. @toggleFocusColor: @strongTransparentBlack;
  97. @toggleHoverColor: @toggleFocusColor;
  98. @toggleOffLabelColor: @checkboxColor;
  99. @toggleOnLabelColor: @positiveCheckbox;
  100. @toggleOnLaneColor: @positiveCheckbox;
  101. /*-------------------
  102. Variations
  103. --------------------*/