_variables.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. // Options
  2. //
  3. // Quickly modify global styling by enabling or disabling optional features.
  4. $enable-flex: true !default;
  5. $enable-hover-media-query: false !default;
  6. // Spacing
  7. //
  8. // Control the default styling of most Bootstrap elements by modifying these
  9. // variables. Mostly focused on spacing.
  10. $spacer: 1rem !default;
  11. $spacer-x: $spacer !default;
  12. $spacer-y: $spacer !default;
  13. $spacers: (
  14. 0: (
  15. x: 0,
  16. y: 0,
  17. ),
  18. 1: (
  19. x: $spacer-x,
  20. y: $spacer-y,
  21. ),
  22. 2: (
  23. x: (
  24. $spacer-x * 1.5,
  25. ),
  26. y: (
  27. $spacer-y * 1.5,
  28. ),
  29. ),
  30. 3: (
  31. x: (
  32. $spacer-x * 3,
  33. ),
  34. y: (
  35. $spacer-y * 3,
  36. ),
  37. ),
  38. ) !default;
  39. $border-width: 1px !default;
  40. // Grid breakpoints
  41. //
  42. // Define the minimum and maximum dimensions at which your layout will change,
  43. // adapting to different screen sizes, for use in media queries.
  44. $grid-breakpoints: (
  45. xs: 0,
  46. sm: 544px,
  47. md: 768px,
  48. lg: 992px,
  49. xl: 1200px,
  50. ) !default;
  51. // Grid containers
  52. //
  53. // Define the maximum width of `.container` for different screen sizes.
  54. $container-max-widths: (
  55. sm: 576px,
  56. md: 720px,
  57. lg: 940px,
  58. xl: 1080px,
  59. ) !default;
  60. // Grid columns
  61. //
  62. // Set the number of columns and specify the width of the gutters.
  63. $grid-columns: 12 !default;
  64. $grid-gutter-width: 30px !default;
  65. $enable-flex: true;
  66. // Typography
  67. // -------------------------
  68. $font-family-sans-serif: 'Roboto', Helvetica, Arial, sans-serif;
  69. $font-family-serif: Georgia, 'Times New Roman', Times, serif;
  70. $font-family-monospace: Menlo, Monaco, Consolas, 'Courier New', monospace;
  71. $font-family-base: $font-family-sans-serif !default;
  72. $font-size-root: 14px !default;
  73. $font-size-base: 13px !default;
  74. $font-size-lg: 18px !default;
  75. $font-size-md: 14px !default;
  76. $font-size-sm: 12px !default;
  77. $font-size-xs: 10px !default;
  78. $line-height-base: 1.5 !default;
  79. $font-weight-semi-bold: 500;
  80. $font-size-h1: 2rem !default;
  81. $font-size-h2: 1.75rem !default;
  82. $font-size-h3: 1.5rem !default;
  83. $font-size-h4: 1.3rem !default;
  84. $font-size-h5: 1.2rem !default;
  85. $font-size-h6: 1rem !default;
  86. $display1-size: 6rem !default;
  87. $display2-size: 5.5rem !default;
  88. $display3-size: 4.5rem !default;
  89. $display4-size: 3.5rem !default;
  90. $display1-weight: 400 !default;
  91. $display2-weight: 400 !default;
  92. $display3-weight: 400 !default;
  93. $display4-weight: 400 !default;
  94. $lead-font-size: 1.25rem !default;
  95. $lead-font-weight: 300 !default;
  96. $headings-margin-bottom: ($spacer / 2) !default;
  97. $headings-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  98. $headings-font-weight: 400 !default;
  99. $headings-line-height: 1.1 !default;
  100. $hr-border-width: $border-width !default;
  101. $dt-font-weight: bold !default;
  102. // Components
  103. //
  104. // Define common padding and border radius sizes and more.
  105. $line-height-lg: (4 / 3) !default;
  106. $line-height-sm: 1.5 !default;
  107. $border-radius: 3px !default;
  108. $border-radius-lg: 5px !default;
  109. $border-radius-sm: 2px !default;
  110. // Page
  111. $page-sidebar-width: 11rem;
  112. $page-sidebar-margin: 4rem;
  113. // Links
  114. // -------------------------
  115. $link-decoration: none !default;
  116. $link-hover-decoration: none !default;
  117. // Tables
  118. //
  119. // Customizes the `.table` component with basic values, each used across all table variations.
  120. $table-cell-padding: 4px 10px !default;
  121. // Forms
  122. $input-padding-x: 10px !default;
  123. $input-padding-y: 8px !default;
  124. $input-line-height: 18px !default;
  125. $input-btn-border-width: 1px;
  126. $input-border-radius: 0 $border-radius $border-radius 0 !default;
  127. $input-border-radius-sm: 0 $border-radius-sm $border-radius-sm 0 !default;
  128. $label-border-radius: $border-radius 0 0 $border-radius !default;
  129. $label-border-radius-sm: $border-radius-sm 0 0 $border-radius-sm !default;
  130. $input-padding-y-sm: 4px !default;
  131. $input-padding-x-lg: 20px !default;
  132. $input-padding-y-lg: 10px !default;
  133. $input-height: 35px !default;
  134. $gf-form-margin: 0.2rem;
  135. $gf-form-input-height: 35px;
  136. $cursor-disabled: not-allowed !default;
  137. // Form validation icons
  138. $form-icon-success: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%235cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") !default;
  139. $form-icon-warning: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E") !default;
  140. $form-icon-danger: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E") !default;
  141. // Z-index master list
  142. // -------------------------
  143. // Used for a bird's eye view of components dependent on the z-axis
  144. // Try to avoid customizing these :)
  145. $zindex-dropdown: 1000;
  146. $zindex-navbar-fixed: 1020;
  147. $zindex-sidemenu: 1025;
  148. $zindex-tooltip: 1030;
  149. $zindex-modal-backdrop: 1040;
  150. $zindex-modal: 1050;
  151. $zindex-typeahead: 1060;
  152. // Buttons
  153. //
  154. $btn-padding-x: 1rem !default;
  155. $btn-padding-y: 0.7rem !default;
  156. $btn-line-height: 1 !default;
  157. $btn-font-weight: 500 !default;
  158. $btn-padding-x-sm: 0.5rem !default;
  159. $btn-padding-y-sm: 0.25rem !default;
  160. $btn-padding-x-lg: 21px !default;
  161. $btn-padding-y-lg: 11px !default;
  162. $btn-padding-x-xl: 21px !default;
  163. $btn-padding-y-xl: 11px !default;
  164. $btn-border-radius: 2px;
  165. $btn-semi-transparent: rgba(0, 0, 0, 0.2) !default;
  166. // sidemenu
  167. $side-menu-width: 60px;
  168. // dashboard
  169. $panel-margin: 10px;
  170. $dashboard-padding: $panel-margin * 2;
  171. $panel-horizontal-padding: 10;
  172. $panel-vertical-padding: 5;
  173. $panel-padding: 0px $panel-horizontal-padding + 0px $panel-vertical-padding + 0px $panel-horizontal-padding + 0px;
  174. // tabs
  175. $tabs-padding: 10px 15px 9px;
  176. $external-services: (
  177. github: (
  178. bgColor: #464646,
  179. borderColor: #393939,
  180. icon: '',
  181. ),
  182. gitlab: (
  183. bgColor: #fc6d26,
  184. borderColor: #e24329,
  185. icon: '',
  186. ),
  187. google: (
  188. bgColor: #e84d3c,
  189. borderColor: #b83e31,
  190. icon: '',
  191. ),
  192. grafanacom: (
  193. bgColor: #262628,
  194. borderColor: #393939,
  195. icon: '',
  196. ),
  197. oauth: (
  198. bgColor: #262628,
  199. borderColor: #393939,
  200. icon: '',
  201. ),
  202. ) !default;
  203. :export {
  204. panelhorizontalpadding: $panel-horizontal-padding;
  205. panelverticalpadding: $panel-vertical-padding;
  206. }