_variables.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. // ==========================================================================
  2. // Materialize variables
  3. // ==========================================================================
  4. //
  5. // Table of Contents:
  6. //
  7. // 1. Colors
  8. // 2. Badges
  9. // 3. Buttons
  10. // 4. Cards
  11. // 5. Carousel
  12. // 6. Collapsible
  13. // 7. Chips
  14. // 8. Date + Time Picker
  15. // 9. Dropdown
  16. // 10. Forms
  17. // 11. Global
  18. // 12. Grid
  19. // 13. Navigation Bar
  20. // 14. Side Navigation
  21. // 15. Photo Slider
  22. // 16. Spinners | Loaders
  23. // 17. Tabs
  24. // 18. Tables
  25. // 19. Toasts
  26. // 20. Typography
  27. // 21. Footer
  28. // 22. Flow Text
  29. // 23. Collections
  30. // 24. Progress Bar
  31. // 1. Colors
  32. // ==========================================================================
  33. $primary-color: color("light-blue", "lighten-2") !default;
  34. $primary-color-light: lighten($primary-color, 15%) !default;
  35. $primary-color-dark: darken($primary-color, 15%) !default;
  36. $secondary-color: color("blue", "lighten-1") !default;
  37. $success-color: color("green", "base") !default;
  38. $error-color: color("red", "base") !default;
  39. $link-color: color("light-blue", "darken-1") !default;
  40. // 2. Badges
  41. // ==========================================================================
  42. $badge-bg-color: $secondary-color !default;
  43. $badge-height: 22px !default;
  44. // 3. Buttons
  45. // ==========================================================================
  46. // Shared styles
  47. $button-border: none !default;
  48. $button-background-focus: lighten($secondary-color, 4%) !default;
  49. $button-font-size: 14px !default;
  50. $button-icon-font-size: 1.3rem !default;
  51. $button-height: 36px !default;
  52. $button-padding: 0 16px !default;
  53. $button-radius: 2px !default;
  54. // Disabled styles
  55. $button-disabled-background: #DFDFDF !default;
  56. $button-disabled-color: #9F9F9F !default;
  57. // Raised buttons
  58. $button-raised-background: $secondary-color !default;
  59. $button-raised-background-hover: lighten($button-raised-background, 5%) !default;
  60. $button-raised-color: #fff !default;
  61. // Large buttons
  62. $button-large-font-size: 15px !default;
  63. $button-large-icon-font-size: 1.6rem !default;
  64. $button-large-height: $button-height * 1.5 !default;
  65. $button-floating-large-size: 56px !default;
  66. // Small buttons
  67. $button-small-font-size: 13px !default;
  68. $button-small-icon-font-size: 1.2rem !default;
  69. $button-small-height: $button-height * .9 !default;
  70. $button-floating-small-size: $button-height * .9 !default;
  71. // Flat buttons
  72. $button-flat-color: color("blue", "darken-4") !default;
  73. $button-flat-color-hover: color("blue", "darken-1") !default;
  74. $button-flat-disabled-color: lighten(#999, 10%) !default;
  75. // Floating buttons
  76. $button-floating-background: $secondary-color !default;
  77. $button-floating-background-hover: $button-floating-background !default;
  78. $button-floating-color: #fff !default;
  79. $button-floating-size: 40px !default;
  80. $button-floating-radius: 50% !default;
  81. // 4. Cards
  82. // ==========================================================================
  83. $card-padding: 24px !default;
  84. $card-bg-color: #fff !default;
  85. $card-link-color: color("blue", "darken-4") !default;
  86. $card-link-color-light: color("blue", "darken-1") !default;
  87. // 5. Carousel
  88. // ==========================================================================
  89. $carousel-height: 400px !default;
  90. $carousel-item-height: $carousel-height / 2 !default;
  91. $carousel-item-width: $carousel-item-height !default;
  92. // 6. Collapsible
  93. // ==========================================================================
  94. $collapsible-height: 3rem !default;
  95. $collapsible-line-height: $collapsible-height !default;
  96. $collapsible-header-color: #fff !default;
  97. $collapsible-border-color: #ddd !default;
  98. // 7. Chips
  99. // ==========================================================================
  100. $chip-bg-color: #e4e4e4 !default;
  101. $chip-border-color: #9e9e9e !default;
  102. $chip-selected-color: #26a69a !default;
  103. $chip-margin: 5px !default;
  104. // 8. Date + Time Picker
  105. // ==========================================================================
  106. $datepicker-display-font-size: 2.8rem;
  107. $datepicker-calendar-header-color: #999;
  108. $datepicker-weekday-color: rgba(0, 0, 0, .87) !default;
  109. $datepicker-weekday-bg: darken($secondary-color, 7%) !default;
  110. $datepicker-date-bg: $secondary-color !default;
  111. $datepicker-year: rgba(255, 255, 255, .7) !default;
  112. $datepicker-focus: rgba(0,0,0, .05) !default;
  113. $datepicker-selected: $secondary-color !default;
  114. $datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
  115. $datepicker-day-focus: transparentize(desaturate($secondary-color, 5%), .75) !default;
  116. $datepicker-disabled-day-color: rgba(0, 0, 0, .3) !default;
  117. $timepicker-clock-color: rgba(0, 0, 0, .87) !default;
  118. $timepicker-clock-plate-bg: #eee !default;
  119. // 9. Dropdown
  120. // ==========================================================================
  121. $dropdown-bg-color: #fff !default;
  122. $dropdown-hover-bg-color: #eee !default;
  123. $dropdown-color: $secondary-color !default;
  124. $dropdown-item-height: 50px !default;
  125. // 10. Forms
  126. // ==========================================================================
  127. // Text Inputs + Textarea
  128. $input-height: 3rem !default;
  129. $input-border-color: color("grey", "base") !default;
  130. $input-border: 1px solid $input-border-color !default;
  131. $input-background: #fff !default;
  132. $input-error-color: $error-color !default;
  133. $input-success-color: $success-color !default;
  134. $input-focus-color: $secondary-color !default;
  135. $input-font-size: 16px !default;
  136. $input-margin-bottom: 8px;
  137. $input-margin: 0 0 $input-margin-bottom 0 !default;
  138. $input-padding: 0 !default;
  139. $label-font-size: .8rem !default;
  140. $input-disabled-color: rgba(0,0,0, .42) !default;
  141. $input-disabled-solid-color: #949494 !default;
  142. $input-disabled-border: 1px dotted $input-disabled-color !default;
  143. $input-invalid-border: 1px solid $input-error-color !default;
  144. $input-icon-size: 2rem;
  145. $placeholder-text-color: lighten($input-border-color, 20%) !default;
  146. // Radio Buttons
  147. $radio-fill-color: $secondary-color !default;
  148. $radio-empty-color: #5a5a5a !default;
  149. $radio-border: 2px solid $radio-fill-color !default;
  150. // Range
  151. $range-height: 14px !default;
  152. $range-width: 14px !default;
  153. $track-height: 3px !default;
  154. // Select
  155. $select-border: 1px solid #f2f2f2 !default;
  156. $select-background: rgba(255, 255, 255, 0.90) !default;
  157. $select-focus: 1px solid lighten($secondary-color, 47%) !default;
  158. $select-option-hover: rgba(0,0,0,.08) !default;
  159. $select-option-focus: rgba(0,0,0,.08) !default;
  160. $select-option-selected: rgba(0,0,0,.03) !default;
  161. $select-padding: 5px !default;
  162. $select-radius: 2px !default;
  163. $select-disabled-color: rgba(0,0,0,.3) !default;
  164. // Switches
  165. $switch-bg-color: $secondary-color !default;
  166. $switch-checked-lever-bg: desaturate(lighten($switch-bg-color, 25%), 25%) !default;
  167. $switch-unchecked-bg: #F1F1F1 !default;
  168. $switch-unchecked-lever-bg: rgba(0,0,0,.38) !default;
  169. $switch-radius: 15px !default;
  170. // 11. Global
  171. // ==========================================================================
  172. // Media Query Ranges
  173. $small-screen-up: 601px !default;
  174. $medium-screen-up: 993px !default;
  175. $large-screen-up: 1201px !default;
  176. $small-screen: 600px !default;
  177. $medium-screen: 992px !default;
  178. $large-screen: 1200px !default;
  179. $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
  180. $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
  181. $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
  182. $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
  183. $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
  184. $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
  185. // 12. Grid
  186. // ==========================================================================
  187. $num-cols: 12 !default;
  188. $gutter-width: 1.5rem !default;
  189. $element-top-margin: $gutter-width/3 !default;
  190. $element-bottom-margin: ($gutter-width*2)/3 !default;
  191. // 13. Navigation Bar
  192. // ==========================================================================
  193. $navbar-height: 64px !default;
  194. $navbar-line-height: $navbar-height !default;
  195. $navbar-height-mobile: 56px !default;
  196. $navbar-line-height-mobile: $navbar-height-mobile !default;
  197. $navbar-font-size: 1rem !default;
  198. $navbar-font-color: #fff !default;
  199. $navbar-brand-font-size: 2.1rem !default;
  200. // 14. Side Navigation
  201. // ==========================================================================
  202. $sidenav-width: 300px !default;
  203. $sidenav-font-size: 14px !default;
  204. $sidenav-font-color: rgba(0,0,0,.87) !default;
  205. $sidenav-bg-color: #fff !default;
  206. $sidenav-padding: 16px !default;
  207. $sidenav-item-height: 48px !default;
  208. $sidenav-line-height: $sidenav-item-height !default;
  209. // 15. Photo Slider
  210. // ==========================================================================
  211. $slider-bg-color: color('grey', 'base') !default;
  212. $slider-bg-color-light: color('grey', 'lighten-2') !default;
  213. $slider-indicator-color: color('green', 'base') !default;
  214. // 16. Spinners | Loaders
  215. // ==========================================================================
  216. $spinner-default-color: $secondary-color !default;
  217. // 17. Tabs
  218. // ==========================================================================
  219. $tabs-underline-color: $primary-color-light !default;
  220. $tabs-text-color: $primary-color !default;
  221. $tabs-bg-color: #fff !default;
  222. // 18. Tables
  223. // ==========================================================================
  224. $table-border-color: rgba(0,0,0,.12) !default;
  225. $table-striped-color: rgba(242, 242, 242, 0.5) !default;
  226. // 19. Toasts
  227. // ==========================================================================
  228. $toast-height: 48px !default;
  229. $toast-color: #323232 !default;
  230. $toast-text-color: #fff !default;
  231. $toast-action-color: #eeff41;
  232. // 20. Typography
  233. // ==========================================================================
  234. $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
  235. $off-black: rgba(0, 0, 0, 0.87) !default;
  236. // Header Styles
  237. $h1-fontsize: 4.2rem !default;
  238. $h2-fontsize: 3.56rem !default;
  239. $h3-fontsize: 2.92rem !default;
  240. $h4-fontsize: 2.28rem !default;
  241. $h5-fontsize: 1.64rem !default;
  242. $h6-fontsize: 1.15rem !default;
  243. // 21. Footer
  244. // ==========================================================================
  245. $footer-font-color: #fff !default;
  246. $footer-bg-color: $primary-color !default;
  247. $footer-copyright-font-color: rgba(255,255,255,.8) !default;
  248. $footer-copyright-bg-color: rgba(51,51,51,.08) !default;
  249. // 22. Flow Text
  250. // ==========================================================================
  251. $range : $large-screen - $small-screen !default;
  252. $intervals: 20 !default;
  253. $interval-size: $range / $intervals !default;
  254. // 23. Collections
  255. // ==========================================================================
  256. $collection-border-color: #e0e0e0 !default;
  257. $collection-bg-color: #fff !default;
  258. $collection-active-bg-color: $secondary-color !default;
  259. $collection-active-color: lighten($secondary-color, 55%) !default;
  260. $collection-hover-bg-color: #ddd !default;
  261. $collection-link-color: $secondary-color !default;
  262. $collection-line-height: 1.5rem !default;
  263. // 24. Progress Bar
  264. // ==========================================================================
  265. $progress-bar-color: $secondary-color !default;