_variables.scss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. //
  2. // Core: Variables
  3. //
  4. // COLORS
  5. // --------------------------------------------------------
  6. $blue: #0073b7 !default;
  7. $lightblue: #3c8dbc !default;
  8. $navy: #001f3f !default;
  9. $teal: #39cccc !default;
  10. $olive: #3d9970 !default;
  11. $lime: #01ff70 !default;
  12. $orange: #ff851b !default;
  13. $fuchsia: #f012be !default;
  14. $purple: #605ca8 !default;
  15. $maroon: #d81b60 !default;
  16. $black: #111 !default;
  17. $gray-x-light: #d2d6de !default;
  18. $colors: map-merge(
  19. (
  20. "lightblue": $lightblue,
  21. "navy": $navy,
  22. "olive": $olive,
  23. "lime": $lime,
  24. "fuchsia": $fuchsia,
  25. "maroon": $maroon,
  26. ),
  27. $colors
  28. );
  29. // LAYOUT
  30. // --------------------------------------------------------
  31. $font-size-root: 1rem !default;
  32. // Sidebar
  33. $sidebar-width: 250px !default;
  34. $sidebar-padding-x: .5rem !default;
  35. $sidebar-padding-y: 0 !default;
  36. $sidebar-custom-height: 4rem !default;
  37. $sidebar-custom-height-lg: 6rem !default;
  38. $sidebar-custom-height-xl: 8rem !default;
  39. $sidebar-custom-padding-x: .85rem !default;
  40. $sidebar-custom-padding-y: .5rem !default;
  41. // Boxed layout maximum width
  42. $boxed-layout-max-width: 1250px !default;
  43. // Body background (Affects main content background only)
  44. $main-bg: #f4f6f9 !default;
  45. $dark-main-bg: lighten($dark, 7.5%) !important;
  46. // Content padding
  47. $content-padding-y: 0 !default;
  48. $content-padding-x: $navbar-padding-x !default;
  49. // IMAGE SIZES
  50. // --------------------------------------------------------
  51. $img-size-sm: 1.875rem !default;
  52. $img-size-md: 3.75rem !default;
  53. $img-size-lg: 6.25rem !default;
  54. $img-size-push: .625rem !default;
  55. // MAIN HEADER
  56. // --------------------------------------------------------
  57. $main-header-bottom-border-width: $border-width !default;
  58. $main-header-bottom-border-color: $gray-300 !default;
  59. $main-header-bottom-border: $main-header-bottom-border-width solid $main-header-bottom-border-color !default;
  60. $main-header-link-padding-y: $navbar-padding-y !default;
  61. $main-header-height-inner: ($nav-link-height + ($main-header-link-padding-y * 2)) !default;
  62. $main-header-height: calc(#{$main-header-height-inner} + #{$main-header-bottom-border-width}) !default;
  63. $nav-link-sm-padding-y: .35rem !default;
  64. $nav-link-sm-height: ($font-size-sm * $line-height-sm + $nav-link-sm-padding-y * 1.785) !default;
  65. $main-header-height-sm-inner: ($nav-link-sm-height + ($main-header-link-padding-y * 2)) !default;
  66. $main-header-height-sm: calc(#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}) !default;
  67. // Main header skins
  68. $main-header-dark-form-control-bg: $gray-800 !default;
  69. $main-header-dark-form-control-focused-bg: $gray-700 !default;
  70. $main-header-dark-form-control-focused-color: $gray-400 !default;
  71. $main-header-dark-form-control-border-color: $gray-600 !default;
  72. $main-header-dark-form-control-focused-border-color: $gray-600 !default;
  73. $main-header-dark-placeholder-color: rgba($white, .6) !default;
  74. $main-header-light-form-control-bg: darken($gray-200, 5%) !default;
  75. $main-header-light-form-control-focused-bg: darken($gray-200, 7.5%) !default;
  76. $main-header-light-form-control-focused-color: $gray-400 !default;
  77. $main-header-light-form-control-border-color: $gray-400 !default;
  78. $main-header-light-form-control-focused-border-color: darken($gray-400, 2.5%) !default;
  79. $main-header-light-placeholder-color: rgba(0, 0, 0, .6) !default;
  80. // MAIN FOOTER
  81. // --------------------------------------------------------
  82. $main-footer-padding: 1rem !default;
  83. $main-footer-padding-sm: $main-footer-padding * .812 !default;
  84. $main-footer-border-top-width: 1px !default;
  85. $main-footer-border-top-color: $gray-300 !default;
  86. $main-footer-border-top: $main-footer-border-top-width solid $main-footer-border-top-color !default;
  87. $main-footer-height-inner: (($font-size-root * $line-height-base) + ($main-footer-padding * 2)) !default;
  88. $main-footer-height: calc(#{$main-footer-height-inner} + #{$main-footer-border-top-width}) !default;
  89. $main-footer-height-sm-inner: (($font-size-sm * $line-height-base) + ($main-footer-padding-sm * 2)) !default;
  90. $main-footer-height-sm: calc(#{$main-footer-height-sm-inner} + #{$main-footer-border-top-width}) !default;
  91. $main-footer-bg: $white !default;
  92. // SIDEBAR SKINS
  93. // --------------------------------------------------------
  94. // Dark sidebar
  95. $sidebar-dark-bg: $dark !default;
  96. $sidebar-dark-hover-bg: rgba(255, 255, 255, .1) !default;
  97. $sidebar-dark-color: #c2c7d0 !default;
  98. $sidebar-dark-hover-color: $white !default;
  99. $sidebar-dark-active-color: $white !default;
  100. $sidebar-dark-submenu-bg: transparent !default;
  101. $sidebar-dark-submenu-color: #c2c7d0 !default;
  102. $sidebar-dark-submenu-hover-color: $white !default;
  103. $sidebar-dark-submenu-hover-bg: $sidebar-dark-hover-bg !default;
  104. $sidebar-dark-submenu-active-color: $sidebar-dark-bg !default;
  105. $sidebar-dark-submenu-active-bg: rgba(255, 255, 255, .9) !default;
  106. // Light sidebar
  107. $sidebar-light-bg: $white !default;
  108. $sidebar-light-hover-bg: rgba($black, .1) !default;
  109. $sidebar-light-color: $gray-800 !default;
  110. $sidebar-light-hover-color: $gray-900 !default;
  111. $sidebar-light-active-color: $black !default;
  112. $sidebar-light-submenu-bg: transparent !default;
  113. $sidebar-light-submenu-color: #777 !default;
  114. $sidebar-light-submenu-hover-color: $black !default;
  115. $sidebar-light-submenu-hover-bg: $sidebar-light-hover-bg !default;
  116. $sidebar-light-submenu-active-color: $sidebar-light-hover-color !default;
  117. $sidebar-light-submenu-active-bg: $sidebar-light-submenu-hover-bg !default;
  118. // SIDEBAR MINI
  119. // --------------------------------------------------------
  120. $sidebar-mini-width: ($nav-link-padding-x + $sidebar-padding-x + .8rem) * 2 !default;
  121. $sidebar-nav-icon-width: $sidebar-mini-width - (($sidebar-padding-x + $nav-link-padding-x) * 2) !default;
  122. $sidebar-user-image-width: $sidebar-nav-icon-width + ($nav-link-padding-x * .5) !default;
  123. // CONTROL SIDEBAR
  124. // --------------------------------------------------------
  125. $control-sidebar-width: $sidebar-width !default;
  126. // Cards
  127. // --------------------------------------------------------
  128. $card-border-color: $gray-100 !default;
  129. $card-dark-border-color: lighten($gray-900, 10%) !default;
  130. $card-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2) !default;
  131. $card-title-font-size: 1.1rem !default;
  132. $card-title-font-size-sm: 1rem !default;
  133. $card-title-font-weight: $font-weight-normal !default;
  134. $card-nav-link-padding-sm-y: .4rem !default;
  135. $card-nav-link-padding-sm-x: .8rem !default;
  136. $card-img-size: $img-size-sm !default;
  137. // PROGRESS BARS
  138. // --------------------------------------------------------
  139. $progress-bar-border-radius: 1px !default;
  140. // DIRECT CHAT
  141. // --------------------------------------------------------
  142. $direct-chat-default-msg-bg: $gray-x-light !default;
  143. $direct-chat-default-font-color: #444 !default;
  144. $direct-chat-default-msg-border-color: $gray-x-light !default;
  145. // Z-INDEX
  146. // --------------------------------------------------------
  147. $zindex-main-header: $zindex-fixed + 4 !default;
  148. $zindex-main-sidebar: $zindex-fixed + 8 !default;
  149. $zindex-main-footer: $zindex-fixed + 2 !default;
  150. $zindex-control-sidebar: $zindex-fixed + 1 !default;
  151. $zindex-toasts: $zindex-main-sidebar + 2 !default;
  152. $zindex-preloader: 9999 !default;
  153. // TRANSITIONS SETTINGS
  154. // --------------------------------------------------------
  155. // Transition global options
  156. $transition-speed: .3s !default;
  157. $transition-fn: ease-in-out !default;
  158. // TEXT
  159. // --------------------------------------------------------
  160. $font-size-xs: ($font-size-base * .75) !default;
  161. $font-size-xl: ($font-size-base * 2) !default;
  162. // BUTTON
  163. // --------------------------------------------------------
  164. $button-default-background-color: $gray-100 !default;
  165. $button-default-color: #444 !default;
  166. $button-default-border-color: #ddd !default;
  167. $button-padding-y-xs: .125rem !default;
  168. $button-padding-x-xs: .25rem !default;
  169. $button-line-height-xs: $line-height-sm !default;
  170. $button-font-size-xs: ($font-size-base * .75) !default;
  171. $button-border-radius-xs: .15rem !default;
  172. // ELEVATION
  173. // --------------------------------------------------------
  174. $elevations: ();
  175. $elevations: map-merge(
  176. (
  177. 1: unquote("0 1px 3px " + rgba($black, .12) + ", 0 1px 2px " + rgba($black, .24)),
  178. 2: unquote("0 3px 6px " + rgba($black, .16) + ", 0 3px 6px " + rgba($black, .23)),
  179. 3: unquote("0 10px 20px " + rgba($black, .19) + ", 0 6px 6px " + rgba($black, .23)),
  180. 4: unquote("0 14px 28px " + rgba($black, .25) + ", 0 10px 10px " + rgba($black, .22)),
  181. 5: unquote("0 19px 38px " + rgba($black, .3) + ", 0 15px 12px " + rgba($black, .22)),
  182. ),
  183. $elevations
  184. );
  185. // RIBBON
  186. // --------------------------------------------------------
  187. $ribbon-border-size: 3px !default;
  188. $ribbon-line-height: 100% !default;
  189. $ribbon-padding: .375rem 0 !default;
  190. $ribbon-font-size: .8rem !default;
  191. $ribbon-width: 90px !default;
  192. $ribbon-wrapper-size: 70px !default;
  193. $ribbon-top: 10px !default;
  194. $ribbon-right: -2px !default;
  195. $ribbon-lg-wrapper-size: 120px !default;
  196. $ribbon-lg-width: 160px !default;
  197. $ribbon-lg-top: 26px !default;
  198. $ribbon-lg-right: 0 !default;
  199. $ribbon-xl-wrapper-size: 180px !default;
  200. $ribbon-xl-width: 240px !default;
  201. $ribbon-xl-top: 47px !default;
  202. $ribbon-xl-right: 4px !default;
  203. // CUSTOM FORM SELECT
  204. // --------------------------------------------------------
  205. $custom-select-dark-indicator-color: $white !default;
  206. $custom-select-dark-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'><path fill='#{$custom-select-dark-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !default;
  207. $custom-select-dark-background: escape-svg($custom-select-dark-indicator) right $custom-select-padding-x center / $custom-select-bg-size no-repeat !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
  208. // ENABLE DARK MODE
  209. // --------------------------------------------------------
  210. $enable-dark-mode: true !default; // requires `@import "variables-alt";`
  211. //