_variables.scss 6.2 KB

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