Component.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. $touch-theme-neptune: true;
  2. /**
  3. * @class Global_CSS
  4. */
  5. /**
  6. * @var {boolean} $include-default-uis
  7. * Decides whether or not to include the default UIs for all components.
  8. */
  9. $include-default-uis: dynamic(true); //legacy fallback < 6.1
  10. $enable-default-uis: dynamic($include-default-uis);
  11. /**
  12. * @var {boolean} $enable-highlights=true
  13. * Optionally disable all gradients, text-shadows, and box-shadows. Useful for CSS debugging,
  14. * non-performant browsers, or minimalist designs.
  15. */
  16. $include-highlights: dynamic(true);
  17. $enable-highlights: dynamic($include-highlights); // Can disable all theme-generated gradients, text-shadows, and box-shadows.
  18. /**
  19. * @var {boolean} $include-border-radius
  20. * Optionally disable all border-radius. Useful for CSS debugging, non-performant browsers, or minimalist designs.
  21. */
  22. $include-border-radius: dynamic(true); //legacy fallback < 6.1
  23. $enable-border-radius: dynamic($include-border-radius); // Can disable all rounded corners
  24. /**
  25. * @var {boolean} $basic-slider
  26. * Optionally remove CSS3 effects from the slider component for improved performance.
  27. */
  28. $basic-slider: dynamic(false);
  29. /**
  30. * @var {color} $base-color
  31. * The primary color variable from which most elements derive their color scheme.
  32. */
  33. $base-color: dynamic(#157fcc);
  34. /**
  35. * @var {color}
  36. * A slightly lightened shade of the base color
  37. */
  38. $base-highlight-color: dynamic(mix(#fff, $base-color, 15%));
  39. /**
  40. * @var {color}
  41. * A light shade of the base color
  42. */
  43. $base-light-color: dynamic(mix(#fff, $base-color, 65%));
  44. /**
  45. * @var {color}
  46. * A dark shade of the base color
  47. */
  48. $base-dark-color: dynamic(mix(#000, $base-color, 14%));
  49. /**
  50. * @var {color}
  51. * Base neutral color from which neutral colors throughout the theme are derived
  52. */
  53. $neutral-color: dynamic(#e1e1e1);
  54. /**
  55. * @var {color}
  56. * A light shade of the neutral color
  57. */
  58. $neutral-light-color: dynamic(mix(#fff, $neutral-color, 68%));
  59. /**
  60. * @var {color}
  61. * A light shade of the neutral color
  62. */
  63. $neutral-highlight-color: dynamic(mix(#fff, $neutral-color, 50%));
  64. /**
  65. * @var {color}
  66. * A medium-dark shade of the neutral color
  67. */
  68. $neutral-medium-dark-color: dynamic(mix(#000, $neutral-color, 14%));
  69. /**
  70. * @var {color}
  71. * A dark shade of the neutral color
  72. */
  73. $neutral-dark-color: dynamic(mix(#000, $neutral-color, 22%));
  74. /**
  75. * @var {color}
  76. * Base text color to be used throughout the theme
  77. */
  78. $color: dynamic(#000);
  79. /**
  80. * @var {color}
  81. * A somewhat lightened shade of the base text color
  82. */
  83. $highlight-color: dynamic(#666);
  84. /**
  85. * @var {color}
  86. * A light text color for use on dark backgrounds
  87. */
  88. $light-color: dynamic(#fff);
  89. /**
  90. * @var {string} $base-background-gradient
  91. * The primary gradient variable from which most elements derive their color scheme.
  92. *
  93. * See background-gradient mixin.
  94. */
  95. $base-background-gradient: dynamic(if($enable-highlights, matte, null));
  96. /**
  97. * @var {string} $font-family
  98. * The font-family to be used throughout the theme.
  99. *
  100. * See background-gradient mixin.
  101. */
  102. $font-family: dynamic(helvetica, arial, sans-serif);
  103. /**
  104. * @var {number} $font-size
  105. * The base font-size to be used throughout the theme.
  106. */
  107. $font-size: dynamic(13px);
  108. /**
  109. * @var {number}
  110. * The base font-size to be used throughout the theme in the
  111. * {@link Global_CSS#$enable-big big} sizing scheme
  112. */
  113. $font-size-big: dynamic(15px);
  114. /**
  115. * @var {number} $line-height
  116. * The base line-height to be used throughout the theme.
  117. */
  118. $line-height: dynamic(1.25);
  119. /**
  120. * @var {color} $alert-color
  121. * Color used for elements like badges, errors, and "decline" UIs (eg. on buttons).
  122. */
  123. $alert-color: dynamic(#c30);
  124. /**
  125. * @var {color} $confirm-color
  126. * Color used for elements like success messages, and "confirm" UIs (eg. on buttons).
  127. */
  128. $confirm-color: dynamic(#92cf00); // Green
  129. /**
  130. * @var {color} $active-color
  131. * Color used for elements like selected rows and certain overlays like the picker mask.
  132. */
  133. $active-color: dynamic(darken(saturate($base-color, 55%), 10%));
  134. /**
  135. * @var {measurement} $global-row-height
  136. * The minimum row height for items like toolbars.
  137. * @private
  138. */
  139. $global-row-height: dynamic(34px);
  140. /**
  141. * @var {measurement} $global-list-height
  142. * The minimum row height for items like toolbars.
  143. @private
  144. */
  145. $global-list-height: dynamic(46px);
  146. /**
  147. * @var {color} $loading-spinner-color
  148. * Background-color for the bars in the loading spinner.
  149. */
  150. $loading-spinner-color: dynamic(#333);
  151. /**
  152. * @var {boolean}
  153. * `true` to enable support for a "big" sizing scheme.
  154. * "Big" sizing is enabled by a `'x-big'` CSS class on the `<html>` element.
  155. * Typically used to provide "tappable sizing for touch-enabled devices.
  156. */
  157. $enable-big: dynamic(true);
  158. /**
  159. * @var {string/number}
  160. * The "normal" font-weight to be used throughout the theme.
  161. */
  162. $font-weight-normal: dynamic(normal);
  163. /**
  164. * @var {string/number}
  165. * The "bold" font-weight to be used throughout the theme.
  166. */
  167. $font-weight-bold: dynamic(bold);
  168. //# fashion replaces $include-css-variables
  169. /**
  170. * @var {boolean} $enable-css-variables
  171. * When true will reference CSS variables for all exported variables
  172. * used in the theme. Otherwise normal sass conversion will apply.
  173. */
  174. $enable-css-variables: dynamic(true);
  175. /**
  176. * @var {string} $css-variable-selector
  177. * Selector to determine where CSS variables are inserted
  178. */
  179. $css-variable-selector: dynamic(':root');
  180. /**
  181. * @var {number} $default-calc-value
  182. * Number that is used to replace null values in calc formulas
  183. * @private
  184. */
  185. $default-calc-value: dynamic(0%);
  186. $background-color: dynamic(#fff);
  187. $color-by-background-dark-color: dynamic($highlight-color);
  188. $color-by-background-light-color: dynamic($light-color);
  189. /**
  190. * @var {string}
  191. * Cursor for draggable components
  192. */
  193. $draggable-cursor: dynamic(move);