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.

106 lines
2.2 KiB

10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Input
  3. *******************************/
  4. /*-------------------
  5. Element
  6. --------------------*/
  7. @pageFont: "Helvetica Neue", "Helvetica", Arial;
  8. @verticalPadding: 0.8em;
  9. @horizontalPadding: 1em;
  10. @lineHeight: 1.2em;
  11. @lineOffset: ((@lineHeight - 1em) / 2);
  12. @padding: (@verticalPadding - @lineOffset) @horizontalPadding;
  13. @background: #FFFFFF;
  14. @borderWidth: 1px;
  15. @border: @borderWidth solid rgba(0, 0, 0, 0.15);
  16. @boxShadow: none;
  17. @borderRadius: 0.3125em;
  18. @transition:
  19. background-color 0.3s ease-out,
  20. box-shadow 0.2s ease,
  21. border-color 0.2s ease
  22. ;
  23. @inputColor: @textColor;
  24. /*-------------------
  25. Types
  26. --------------------*/
  27. /* Icon Input */
  28. @glyphWidth: 1.25em;
  29. @iconWidth: (@verticalPadding * 2) + @glyphWidth;
  30. @iconOpacity: 0.5;
  31. @iconOffset: 0.9em;
  32. @iconFocusOpacity: 1;
  33. @iconSpacing: 0.5em;
  34. @iconMargin: @iconWidth + @iconSpacing;
  35. @iconTransition: opacity 0.3s ease-out;
  36. @transparentIconWidth: @glyphWidth;
  37. @transparentIconOffset: @lineOffset;
  38. @transparentIconMargin: @transparentIconWidth + @iconSpacing;
  39. /* Circular Icon Input */
  40. @circularIconVerticalOffset: 0.35em;
  41. @circularIconHorizontalOffset: 0.5em;
  42. /* Labeled Input */
  43. @labelTop: @borderWidth;
  44. @labelRight: @borderWidth;
  45. @labelSize: 0.75em;
  46. @labeledMargin: 2.5em;
  47. @labeledIconInputMargin: 3.25em;
  48. @labeledIconMargin: 1.25em;
  49. /*-------------------
  50. States
  51. --------------------*/
  52. /* Placeholder */
  53. @placeholderColor: @unselectedTextColor;
  54. @placeholderFocusColor: @textColor;
  55. @placeholderErrorColor: rgba(255, 80, 80, 0.4);
  56. @placeholderErrorFocusColor: rgba(255, 80, 80, 0.7);
  57. /* Down */
  58. @downBorderColor: rgba(0, 0, 0, 0.3);
  59. @downBackground: #FAFAFA;
  60. @downColor: @textColor;
  61. @downBoxShadow: none;
  62. /* Focus */
  63. @focusBorderColor: @selectedBorderColor;
  64. @focusBackground: '';
  65. @focusColor: @selectedTextColor;
  66. @focusBoxShadow: none;
  67. /* Error */
  68. @errorBackground: #FFFAFA;
  69. @errorBorder: #E7BEBE;
  70. @errorColor: #D95C5C;
  71. @errorBoxShadow: none;
  72. /* Loading */
  73. @loadingImage: "@{imagePath}/loader-mini.gif";
  74. /*-------------------
  75. Variations
  76. --------------------*/
  77. /* Sizing */
  78. @mini: 0.8125rem;
  79. @small: 0.875rem;
  80. @medium: 1rem;
  81. @large: 1.125rem;
  82. @big: 1.25rem;
  83. @huge: 1.375rem;
  84. @massive: 1.5rem;