_variables.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // Options
  2. //
  3. // Quickly modify global styling by enabling or disabling optional features.
  4. $enable-flex: true !default;
  5. $enable-rounded: true !default;
  6. $enable-shadows: false !default;
  7. $enable-gradients: false !default;
  8. $enable-transitions: false !default;
  9. $enable-hover-media-query: false !default;
  10. $enable-grid-classes: true !default;
  11. $enable-print-styles: true !default;
  12. // Spacing
  13. //
  14. // Control the default styling of most Bootstrap elements by modifying these
  15. // variables. Mostly focused on spacing.
  16. $spacer: 1rem !default;
  17. $spacer-x: $spacer !default;
  18. $spacer-y: $spacer !default;
  19. $spacers: (
  20. 0: (x: 0, y: 0),
  21. 1: (x: $spacer-x, y: $spacer-y),
  22. 2: (x: ($spacer-x * 1.5), y: ($spacer-y * 1.5)),
  23. 3: (x: ($spacer-x * 3), y: ($spacer-y * 3))
  24. )
  25. !default;
  26. $border-width: 1px !default;
  27. // Grid breakpoints
  28. //
  29. // Define the minimum and maximum dimensions at which your layout will change,
  30. // adapting to different screen sizes, for use in media queries.
  31. $grid-breakpoints: (xs: 0, sm: 544px, md: 768px, lg: 992px, xl: 1200px) !default;
  32. // Grid containers
  33. //
  34. // Define the maximum width of `.container` for different screen sizes.
  35. $container-max-widths: (sm: 576px, md: 720px, lg: 940px, xl: 1080px) !default;
  36. // Grid columns
  37. //
  38. // Set the number of columns and specify the width of the gutters.
  39. $grid-columns: 12 !default;
  40. $grid-gutter-width: 30px !default;
  41. $enable-flex: true;
  42. // Typography
  43. // -------------------------
  44. $font-family-sans-serif: "Roboto", Helvetica, Arial, sans-serif;
  45. $font-family-serif: Georgia, "Times New Roman", Times, serif;
  46. $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
  47. $font-family-base: $font-family-sans-serif !default;
  48. $font-size-root: 14px !default;
  49. $font-size-base: 13px !default;
  50. $font-size-lg: 18px !default;
  51. $font-size-md: 14px !default;
  52. $font-size-sm: 12px !default;
  53. $font-size-xs: 10px !default;
  54. $line-height-base: 1.5 !default;
  55. $font-weight-semi-bold: 500;
  56. $font-size-h1: 2rem !default;
  57. $font-size-h2: 1.75rem !default;
  58. $font-size-h3: 1.5rem !default;
  59. $font-size-h4: 1.3rem !default;
  60. $font-size-h5: 1.2rem !default;
  61. $font-size-h6: 1rem !default;
  62. $display1-size: 6rem !default;
  63. $display2-size: 5.5rem !default;
  64. $display3-size: 4.5rem !default;
  65. $display4-size: 3.5rem !default;
  66. $display1-weight: 400 !default;
  67. $display2-weight: 400 !default;
  68. $display3-weight: 400 !default;
  69. $display4-weight: 400 !default;
  70. $lead-font-size: 1.25rem !default;
  71. $lead-font-weight: 300 !default;
  72. $headings-margin-bottom: ($spacer / 2) !default;
  73. $headings-font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  74. $headings-font-weight: 400 !default;
  75. $headings-line-height: 1.1 !default;
  76. $blockquote-font-size: ($font-size-base * 1.25) !default;
  77. $blockquote-border-width: 0.25rem !default;
  78. $hr-border-width: $border-width !default;
  79. $dt-font-weight: bold !default;
  80. $list-inline-padding: 5px !default;
  81. // Components
  82. //
  83. // Define common padding and border radius sizes and more.
  84. $line-height-lg: (4 / 3) !default;
  85. $line-height-sm: 1.5 !default;
  86. $border-radius: 3px !default;
  87. $border-radius-lg: 5px !default;
  88. $border-radius-sm: 2px!default;
  89. $caret-width: 0.3em !default;
  90. $caret-width-lg: $caret-width !default;
  91. // Page
  92. $page-sidebar-width: 11rem;
  93. $page-sidebar-margin: 4rem;
  94. // Links
  95. // -------------------------
  96. $link-decoration: none !default;
  97. $link-hover-decoration: none !default;
  98. // Tables
  99. //
  100. // Customizes the `.table` component with basic values, each used across all table variations.
  101. $table-cell-padding: 4px 10px !default;
  102. $table-sm-cell-padding: 0.3rem !default;
  103. // Forms
  104. $input-padding-x: 10px !default;
  105. $input-padding-y: 8px !default;
  106. $input-line-height: 18px !default;
  107. $input-btn-border-width: 1px;
  108. $input-border-radius: 0 $border-radius $border-radius 0 !default;
  109. $input-border-radius-lg: 0 $border-radius-lg $border-radius-lg 0 !default;
  110. $input-border-radius-sm: 0 $border-radius-sm $border-radius-sm 0 !default;
  111. $label-border-radius: $border-radius 0 0 $border-radius !default;
  112. $label-border-radius-lg: $border-radius-lg 0 0 $border-radius-lg !default;
  113. $label-border-radius-sm: $border-radius-sm 0 0 $border-radius-sm !default;
  114. $input-padding-x-sm: 7px !default;
  115. $input-padding-y-sm: 4px !default;
  116. $input-padding-x-lg: 20px !default;
  117. $input-padding-y-lg: 10px !default;
  118. $input-height: (($font-size-base * $line-height-base) + ($input-padding-y * 2))
  119. !default;
  120. $input-height-lg: (
  121. ($font-size-lg * $line-height-lg) + ($input-padding-y-lg * 2)
  122. )
  123. !default;
  124. $input-height-sm: (
  125. ($font-size-sm * $line-height-sm) + ($input-padding-y-sm * 2)
  126. )
  127. !default;
  128. $form-group-margin-bottom: $spacer-y !default;
  129. $gf-form-margin: 0.2rem;
  130. $cursor-disabled: not-allowed !default;
  131. // Form validation icons
  132. $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")
  133. !default;
  134. $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")
  135. !default;
  136. $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")
  137. !default;
  138. // Z-index master list
  139. // -------------------------
  140. // Used for a bird's eye view of components dependent on the z-axis
  141. // Try to avoid customizing these :)
  142. $zindex-dropdown: 1000;
  143. $zindex-navbar-fixed: 1020;
  144. $zindex-sidemenu: 1025;
  145. $zindex-tooltip: 1030;
  146. $zindex-modal-backdrop: 1040;
  147. $zindex-modal: 1050;
  148. $zindex-typeahead: 1060;
  149. // Buttons
  150. //
  151. $btn-padding-x: 1rem !default;
  152. $btn-padding-y: 0.7rem !default;
  153. $btn-line-height: 1 !default;
  154. $btn-font-weight: 500 !default;
  155. $btn-padding-x-sm: 0.5rem !default;
  156. $btn-padding-y-sm: 0.25rem !default;
  157. $btn-padding-x-lg: 21px !default;
  158. $btn-padding-y-lg: 11px !default;
  159. $btn-padding-x-xl: 21px !default;
  160. $btn-padding-y-xl: 11px !default;
  161. $btn-border-radius: 2px;
  162. $btn-semi-transparent: rgba(0, 0, 0, 0.2) !default;
  163. // sidemenu
  164. $side-menu-width: 60px;
  165. // dashboard
  166. $panel-margin: 10px;
  167. $dashboard-padding: $panel-margin * 2;
  168. $panel-padding: 0px 10px 5px 10px;
  169. // tabs
  170. $tabs-padding: 10px 15px 9px;
  171. $external-services: (
  172. github: (bgColor: #464646, borderColor: #393939, icon: ""),
  173. google: (bgColor: #e84d3c, borderColor: #b83e31, icon: ""),
  174. grafanacom: (bgColor: inherit, borderColor: #393939, icon: ""),
  175. oauth: (bgColor: inherit, borderColor: #393939, icon: "")
  176. )
  177. !default;