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.

145 lines
3.4 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
  1. /*******************************
  2. Form
  3. *******************************/
  4. /*-------------------
  5. Elements
  6. --------------------*/
  7. /* Text */
  8. @paragraphMargin: 1em 0em;
  9. /* Field */
  10. @fieldMargin: 0em 0em 1em;
  11. /* Form Label */
  12. @labelFontSize: 0.9em;
  13. @labelFontWeight: bold;
  14. @labelMargin: 0.3em;
  15. @labelColor: @textColor;
  16. /* Input */
  17. @inputWidth: 100%;
  18. @inputFontSize: 1em;
  19. @inputVerticalPadding: 0.8em;
  20. @inputHorizontalPadding: 1em;
  21. @inputLineHeight: 1.2;
  22. @inputPadding: (@inputVerticalPadding + ((1em - @inputLineHeight) / 2)) @inputHorizontalPadding;
  23. @inputBackground: #FFFFFF;
  24. @inputBorder: 1px solid @borderColor;
  25. @inputBorderRadius: 0.3125em;
  26. @inputColor: @textColor;
  27. @inputTransition:
  28. background-color 0.2s ease,
  29. color 0.2s ease,
  30. box-shadow 0.2s ease,
  31. border-color 0.2s ease
  32. ;
  33. @inputBoxShadow: 0em 0em 0em 0em transparent inset;
  34. @textAreaFontSize: @inputFontSize;
  35. @textAreaHeight: 12em;
  36. @textAreaResize: vertical;
  37. @textAreaLineHeight: 1.33;
  38. @textAreaMinHeight: 8em;
  39. @textAreaMaxHeight: 24em;
  40. /* Checkbox */
  41. @checkboxVerticalAlign: top;
  42. /* Divider */
  43. @dividerMargin: 1em 0em;
  44. /* Validation Prompt */
  45. @validationMargin: 0em 0em 0em 1em;
  46. @validationArrowOffset: -0.3em;
  47. /*-------------------
  48. States
  49. --------------------*/
  50. /* Disabled */
  51. /* Focus */
  52. @inputFocusPointerSize: 1px;
  53. /* Input Focus */
  54. @inputFocusBackground: #FFFFFF;
  55. @inputFocusBorderColor: @selectedBorderColor;
  56. @inputFocusColor: rgba(0, 0, 0, 0.85);
  57. @inputFocusBoxShadow: @inputFocusPointerSize 0em 0em 0em @selectedBorderColor inset;
  58. @inputFocusBorderRadius: 0em @inputBorderRadius @inputBorderRadius 0em;
  59. /* Error */
  60. @formErrorColor: @negativeColor;
  61. @formErrorBorder: @negativeBorderColor;
  62. @formErrorBackground: @negativeBackgroundColor;
  63. /* Input Error */
  64. @inputErrorPointerSize: 3px;
  65. @inputErrorBorderRadius: 0em @inputBorderRadius @inputBorderRadius 0em;
  66. @inputErrorBoxShadow: @inputErrorPointerSize 0em 0em 0em @formErrorColor inset;
  67. /* Dropdown Error */
  68. @dropdownErrorHoverBackground: #FFF2F2;
  69. @dropdownErrorActiveBackground: #FDCFCF;
  70. /* Focused Error */
  71. @inputErrorFocusBackground: @negativeBackgroundColor;
  72. @inputErrorFocusColor: @negativeColorHover;
  73. @inputErrorFocusBorder: @negativeBorderColor;
  74. @inputErrorFocusBoxShadow: @inputErrorPointerSize 0em 0em 0em @negativeColorHover inset;
  75. /* Placeholder */
  76. @inputPlaceholderColor: lighten(@inputColor, 55);
  77. @inputPlaceholderFocusColor: lighten(@inputColor, 35);
  78. @inputErrorPlaceholderColor: lighten(@formErrorColor, 10);
  79. @inputErrorPlaceholderFocusColor: lighten(@formErrorColor, 5);
  80. /* Loading */
  81. @formLoaderDimmerColor: rgba(255, 255, 255, 0.6);
  82. @formLoaderPath: "@{imagePath}/loader-large.gif";
  83. @formLoaderPosition: 50% 50%;
  84. /*-------------------
  85. Types
  86. --------------------*/
  87. /* Required */
  88. @requiredColor: @negativeColor;
  89. @requiredVerticalOffset: -0.2em;
  90. /* Inverted */
  91. @invertedLabelColor: @invertedTextColor;
  92. @formInvertedLoaderPath: "@{imagePath}/loader-large-inverted.gif";
  93. @formInvertedLoaderDimmerColor: rgba(0, 0, 0, 0.8);
  94. /*-------------------
  95. Variations
  96. --------------------*/
  97. /* Grouped Fields */
  98. @groupedMargin: @fieldMargin;
  99. @groupedFieldMargin: 0.5em 0em;
  100. /* Inline */
  101. @inlineLabelFontSize: 1em;
  102. @inlineLabelVerticalAlign: middle;
  103. /* (x) Wide Field */
  104. @gutterWidth: 1%;
  105. /* Sizes */
  106. @small: 0.875em;
  107. @medium: auto;
  108. @large: 1.125em;
  109. @huge: 1.2em;
  110. /*-------------------
  111. Groups
  112. --------------------*/
  113. @inlineFieldsMargin: 0em 1em 0em 0em;