variables.dark.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. // Global values
  2. // --------------------------------------------------
  3. // Grays
  4. // -------------------------
  5. $black: #000;
  6. $gray: #bbb;
  7. $grayDark: #262626;
  8. $grayDarker: #1f1f1f;
  9. $grayLight: #ADAFAE;
  10. $grayLighter: #BBBFC2;
  11. $white: #fff;
  12. // Accent colors
  13. // -------------------------
  14. $blue: #33B5E5;
  15. $blueDark: #005f81;
  16. $green: #669900;
  17. $red: #CC3900;
  18. $yellow: #ECBB13;
  19. $orange: #FF8800;
  20. $pink: #FF4444;
  21. $purple: #9933CC;
  22. $variable: #32D1DF;
  23. // Status colors
  24. // -------------------------
  25. $online: #10a345;
  26. $warn: #ffc03c;
  27. $critical: #ed2e18;
  28. // grafana Variables
  29. // -------------------------
  30. $grafanaPanelBackground: $grayDarker;
  31. $grafanaPanelBorder: solid 1px $grayDark;
  32. $grafanaTriggerBorder: solid 1px #555;
  33. // Graphite Target Editor
  34. $grafanaTargetBorder: $black;
  35. $grafanaTargetBackground: $grayDark;
  36. $grafanaTargetColor: #c8c8c8;
  37. $grafanaTargetColorHide: darken(#c8c8c8, 25%);
  38. $grafanaTargetSegmentBorder: #050505;
  39. $grafanaTargetFuncBackground: #333;
  40. $grafanaTargetFuncHightlight: #444;
  41. $grafanaSelectBackground: $grafanaTargetFuncBackground;
  42. $modalBackground: $black;
  43. $codeTagBackground: #444;
  44. // Scaffolding
  45. // -------------------------
  46. $bodyBackground: rgb(20,20,20);
  47. $pageBackground: $grayDarker;
  48. $textColor: $grayLighter;
  49. // Links
  50. // -------------------------
  51. $linkColor: darken($white,11%);
  52. $linkColorDisabled: darken($linkColor,30%);
  53. $linkColorHover: $white;
  54. // Typography
  55. // -------------------------
  56. $sansFontFamily: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  57. $serifFontFamily: Georgia, "Times New Roman", Times, serif;
  58. $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
  59. $baseFontSize: 14px;
  60. $baseFontWeight: 400;
  61. $baseFontFamily: $sansFontFamily;
  62. $baseLineHeight: 20px;
  63. $altFontFamily: $serifFontFamily;
  64. $fontWeightSemi: 600;
  65. $headingsFontFamily: inherit; // empty to use BS default, $baseFontFamily
  66. $headingsFontWeight: 400; // instead of browser default, bold
  67. $headingsFontStyle: normal;
  68. $headingsColor: darken($white,11%); // empty to use BS default, $textColor
  69. $inputText: $grayLight;
  70. // Component sizing
  71. // -------------------------
  72. // Based on 14px font-size and 20px line-height
  73. $fontSizeLarge: $baseFontSize * 1.25; // ~18px
  74. $fontSizeSmall: $baseFontSize * 0.85; // ~12px
  75. $fontSizeMini: $baseFontSize * 0.75; // ~11px
  76. $paddingLarge: 11px 19px; // 44px
  77. $paddingSmall: 2px 10px; // 26px
  78. $paddingMini: 0px 6px; // 22px
  79. $baseBorderRadius: 3px;
  80. $borderRadiusLarge: 4px;
  81. $borderRadiusSmall: 2px;
  82. // Lists
  83. $grafanaListBackground: $grayDark;
  84. $grafanaListAccent: lighten($grayDarker, 2%);
  85. $grafanaListBorderTop: $grayDark;
  86. $grafanaListBorderBottom: $black;
  87. $grafanaListHighlight: #333;
  88. $grafanaListMainLinkColor: $textColor;
  89. // Scrollbars
  90. $scrollbarBackground: #3a3a3a;
  91. $scrollbarBackground2: #3a3a3a;
  92. $scrollbarBorder: black;
  93. // Tables
  94. // -------------------------
  95. $tableBackground: transparent; // overall background-color
  96. $tableBackgroundAccent: rgba(100, 100, 100, 0.3); // for striping
  97. $tableBackgroundHover: $grayDark; // for hover
  98. $tableBorder: $grayDark; // table and cell border
  99. // Buttons
  100. // -------------------------
  101. $btnBackground: $grayDark;
  102. $btnBackgroundHighlight: darken($grayLight, 15%);
  103. $btnBackgroundShadow: darken($grayLight, 15%);
  104. $btnBorder: #bbb;
  105. $btnPrimaryBackground: $blueDark;
  106. $btnPrimaryBackgroundHighlight: lighten($blueDark, 5%);
  107. $btnInfoBackground: lighten($purple, 3%);
  108. $btnInfoBackgroundHighlight: darken($purple, 3%);
  109. $btnSuccessBackground: lighten($green, 3%);
  110. $btnSuccessBackgroundHighlight: darken($green, 3%);
  111. $btnWarningBackground: lighten($orange, 3%);
  112. $btnWarningBackgroundHighlight: darken($orange, 3%);
  113. $btnDangerBackground: lighten($red, 3%);
  114. $btnDangerBackgroundHighlight: darken($red, 3%);
  115. $btnInverseBackground: $grayDark;
  116. $btnInverseBackgroundHighlight: lighten($grayDark, 1%);
  117. $btnInverseText: $textColor;
  118. $btnInverseBorder: #333;
  119. $btnText: $gray;
  120. $iconContainerBackground: $black;
  121. $iconContainerBackgroundHighlight: lighten($black, 5%);
  122. $iconContainerBorder: 1px solid transparent;
  123. $iconContainerShadow: 0 0 14px 2px rgba(255,255,255, 0.05);
  124. // Hero unit
  125. // -------------------------
  126. $heroUnitBackground: $grayDark;
  127. $heroUnitHeadingColor: inherit;
  128. $heroUnitLeadColor: inherit;
  129. // Forms
  130. // -------------------------
  131. $inputBackground: lighten($grayDark,5%);
  132. $inputBorder: lighten($grayDark,5%);
  133. $inputBorderRadius: $baseBorderRadius;
  134. $inputDisabledBackground: #555;
  135. $formActionsBackground: transparent;
  136. $inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  137. $labelBackground: $grayDark;
  138. // Search
  139. $searchShadow: 0 0 35px 0 $bodyBackground;
  140. // Dropdowns
  141. // -------------------------
  142. $dropdownBackground: $heroUnitBackground;
  143. $dropdownBorder: rgba(0,0,0,.2);
  144. $dropdownDividerTop: transparent;
  145. $dropdownDividerBottom: #444;
  146. $dropdownDivider: $dropdownDividerBottom;
  147. $dropdownTitle: $linkColorDisabled;
  148. $dropdownLinkColor: $textColor;
  149. $dropdownLinkColorHover: $white;
  150. $dropdownLinkColorActive: $white;
  151. $dropdownLinkBackgroundActive: $blueDark;
  152. $dropdownLinkBackgroundHover: $blueDark;
  153. // COMPONENT VARIABLES
  154. // --------------------------------------------------
  155. // Z-index master list
  156. // -------------------------
  157. // Used for a bird's eye view of components dependent on the z-axis
  158. // Try to avoid customizing these :)
  159. $zindexDropdown: 1000;
  160. $zindexPopover: 1010;
  161. $zindexTooltip: 1020;
  162. $zindexFixedNavbar: 1030;
  163. $zindexModalBackdrop: 1040;
  164. $zindexModal: 1050;
  165. // -------------------------
  166. $placeholderText: darken($textColor, 25%);
  167. // Hr border color
  168. // -------------------------
  169. $hrBorder: $grayDark;
  170. // Horizontal forms & lists
  171. // -------------------------
  172. $horizontalComponentOffset: 180px;
  173. // Wells
  174. // -------------------------
  175. $wellBackground: #131517;
  176. $navbarHeight: 52px;
  177. $navbarBackgroundHighlight: $grayDark;
  178. $navbarBackground: $grayDark;
  179. $navbarBorder: 1px solid $bodyBackground;
  180. $navbarText: $grayLight;
  181. $navbarLinkColor: $grayLight;
  182. $navbarLinkColorHover: $white;
  183. $navbarLinkColorActive: $navbarLinkColorHover;
  184. $navbarLinkBackgroundHover: transparent;
  185. $navbarLinkBackgroundActive: $navbarBackground;
  186. $navbarBrandColor: $linkColor;
  187. $navbarDropdownShadow: inset 0px 4px 10px -4px $bodyBackground;
  188. $navbarButtonBackground: lighten($navbarBackground, 3%);
  189. $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
  190. // Sidemenu
  191. // -------------------------
  192. $sideMenuTopShadow: $navbarDropdownShadow;
  193. $sideMenuBackground: $grayDark;
  194. $sideMenuBackgroundHighlight: lighten($grayDark, 4%);
  195. $sideMenuShadow: 0 0 35px 0 $bodyBackground;
  196. // Pagination
  197. // -------------------------
  198. $paginationBackground: $bodyBackground;
  199. $paginationBorder: transparent;
  200. $paginationActiveBackground: $blue;
  201. // Form states and alerts
  202. // -------------------------
  203. $warningText: darken(#c09853, 10%);
  204. $warningBackground: $orange;
  205. $errorText: #b94a48;
  206. $errorBackground: $btnDangerBackground;
  207. $successText: #468847;
  208. $successBackground: $btnSuccessBackground;
  209. $infoText: $blueDark;
  210. $infoBackground: $btnInfoBackground;
  211. // Tooltips and popovers
  212. // -------------------------
  213. $tooltipColor: $white;
  214. $tooltipBackground: rgb(58, 57, 57);
  215. $tooltipArrowWidth: 5px;
  216. $tooltipArrowColor: $tooltipBackground;
  217. $tooltipLinkColor: $linkColor;
  218. $popoverBackground: $heroUnitBackground;
  219. $popoverArrowWidth: 10px;
  220. $popoverArrowColor: $popoverBackground;
  221. $popoverTitleBackground: $popoverBackground;
  222. // Special enhancement for popovers
  223. $popoverArrowOuterWidth: $popoverArrowWidth + 1;
  224. $popoverArrowOuterColor: rgba(0,0,0,.25);
  225. // images
  226. $checkboxImageUrl: '../img/checkbox.png';
  227. // GRID
  228. // --------------------------------------------------
  229. // Default 940px grid
  230. // -------------------------
  231. $gridColumns: 12;
  232. $gridColumnWidth: 60px;
  233. $gridGutterWidth: 20px;
  234. $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
  235. // 1200px min
  236. $gridColumnWidth1200: 70px;
  237. $gridGutterWidth1200: 30px;
  238. $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1));
  239. // 768px-979px
  240. $gridColumnWidth768: 42px;
  241. $gridGutterWidth768: 20px;
  242. $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1));
  243. // Fluid grid
  244. // -------------------------
  245. $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth);
  246. $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth);
  247. // 1200px min
  248. $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200);
  249. $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200);
  250. // 768px-979px
  251. $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768);
  252. $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768);