mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
255 lines
7.1 KiB
SCSS
255 lines
7.1 KiB
SCSS
// Global values
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Grays
|
|
// -------------------------
|
|
$black: #000;
|
|
|
|
// -------------------------
|
|
$black: #000;
|
|
$dark-1: #141414; // (body)
|
|
$dark-2: #1f1d1d; // ($gray-darker)
|
|
$dark-3: #262626; // ($gray-dark)
|
|
$dark-4: #333333;
|
|
$dark-5: #444444;
|
|
$gray-1: #555555;
|
|
$gray-2: #6e7580;
|
|
$gray-3: #b3b3b3;
|
|
$gray-4: #cfd4d9;
|
|
$gray-5: #e8edf0;
|
|
$gray-6: #f7f9fa;
|
|
$gray-7: #fbfbfb;
|
|
|
|
$white: #fff;
|
|
|
|
// Accent colors
|
|
// -------------------------
|
|
$blue: #33B5E5;
|
|
$blue-dark: #005f81;
|
|
$green: #669900;
|
|
$red: #CC3900;
|
|
$yellow: #ECBB13;
|
|
$pink: #FF4444;
|
|
$purple: #9933CC;
|
|
$variable: #32D1DF;
|
|
$orange: #dF7518;
|
|
|
|
$brand-primary: $orange;
|
|
$brand-success: $green;
|
|
$brand-warning: $brand-primary;
|
|
$brand-danger: $red;
|
|
|
|
// Status colors
|
|
// -------------------------
|
|
$online: #10a345;
|
|
$warn: #ffc03c;
|
|
$critical: #ed2e18;
|
|
|
|
// Scaffolding
|
|
// -------------------------
|
|
$body-bg: rgb(20,20,20);
|
|
$page-bg: $dark-2;
|
|
$pageImageUrl: '../img/angle_gradient_rev.png';
|
|
$body-color: $gray-4;
|
|
$text-color: $gray-4;
|
|
|
|
// Links
|
|
// -------------------------
|
|
$link-color: darken($white,11%);
|
|
$link-color-disabled: darken($link-color,30%);
|
|
$link-hover-color: $white;
|
|
|
|
// Typography
|
|
// -------------------------
|
|
$headings-color: darken($white,11%);
|
|
$abbr-border-color: $gray-3 !default;
|
|
$text-muted: darken($link-color,30%);
|
|
|
|
$blockquote-small-color: $gray-3 !default;
|
|
$blockquote-border-color: $gray-4 !default;
|
|
|
|
$hr-border-color: rgba(0,0,0,.1) !default;
|
|
|
|
// Components
|
|
$component-active-color: #fff !default;
|
|
$component-active-bg: $brand-primary !default;
|
|
|
|
|
|
// Panel
|
|
// -------------------------
|
|
$panel-bg: $dark-2;
|
|
$panel-border: solid 1px $dark-3;
|
|
|
|
$divider-border-color: #555;
|
|
|
|
// Graphite Target Editor
|
|
$tight-form-border: #050505;
|
|
$tight-form-bg: $dark-3;
|
|
|
|
$tight-form-func-bg: #333;
|
|
$tight-form-func-highlight-bg: #444;
|
|
|
|
$modal-background: $black;
|
|
$code-tag-bg: #444;
|
|
|
|
// Lists
|
|
$grafanaListBackground: $dark-3;
|
|
$grafanaListAccent: lighten($dark-2, 2%);
|
|
$grafanaListBorderTop: $dark-3;
|
|
$grafanaListBorderBottom: $black;
|
|
$grafanaListHighlight: #333;
|
|
$grafanaListMainLinkColor: $text-color;
|
|
|
|
// Scrollbars
|
|
$scrollbarBackground: #3a3a3a;
|
|
$scrollbarBackground2: #3a3a3a;
|
|
$scrollbarBorder: black;
|
|
|
|
// Tables
|
|
// -------------------------
|
|
$table-bg: transparent; // overall background-color
|
|
$table-bg-accent: rgba(100, 100, 100, 0.3); // for striping
|
|
$table-bg-hover: $dark-3; // for hover
|
|
$table-border: $dark-3; // table and cell border
|
|
|
|
// Buttons
|
|
// -------------------------
|
|
|
|
$btn-primary-bg: $brand-primary;
|
|
$btn-primary-bg-hl: lighten($brand-primary, 8%);
|
|
|
|
$btn-secondary-bg: $blue-dark;
|
|
$btn-secondary-bg-hl: lighten($blue-dark, 8%);
|
|
|
|
$btn-info-bg: lighten($purple, 3%);
|
|
$btn-info-bg-hl: darken($purple, 3%);
|
|
|
|
$btn-success-bg-hl: darken($green, 3%);
|
|
$btn-success-bg: lighten($green, 3%);
|
|
|
|
$btn-warning-bg: $brand-warning;
|
|
$btn-warning-bg-hl: lighten($brand-warning, 8%);
|
|
|
|
$btn-danger-bg: lighten($red, 3%);
|
|
$btn-danger-bg-hl: darken($red, 3%);
|
|
|
|
$btn-inverse-bg: $dark-3;
|
|
$btn-inverse-bg-hl: lighten($dark-3, 1%);
|
|
$btn-inverse-text-color: $link-color;
|
|
|
|
$btn-link-color: $gray-3;
|
|
|
|
$iconContainerBackground: $black;
|
|
|
|
// Forms
|
|
// -------------------------
|
|
$input-bg: lighten($dark-3,5%);
|
|
$input-bg-disabled: #555;
|
|
|
|
$input-color: $gray-4;
|
|
$input-border-color: lighten($dark-2,5%);
|
|
$input-box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !default;
|
|
$input-border-focus: $input-border-color !default;
|
|
$input-box-shadow-focus: rgba(102,175,233,.6) !default;
|
|
$input-color-placeholder: #999 !default;
|
|
$input-label-bg: $dark-3;
|
|
|
|
// Search
|
|
$searchShadow: 0 0 35px 0 $body-bg;
|
|
|
|
// Dropdowns
|
|
// -------------------------
|
|
$dropdownBackground: $dark-3;
|
|
$dropdownBorder: rgba(0,0,0,.2);
|
|
$dropdownDividerTop: transparent;
|
|
$dropdownDividerBottom: #444;
|
|
$dropdownDivider: $dropdownDividerBottom;
|
|
$dropdownTitle: $link-color-disabled;
|
|
|
|
$dropdownLinkColor: $text-color;
|
|
$dropdownLinkColorHover: $white;
|
|
$dropdownLinkColorActive: $white;
|
|
|
|
$dropdownLinkBackgroundActive: $blue-dark;
|
|
$dropdownLinkBackgroundHover: $blue-dark;
|
|
|
|
|
|
// COMPONENT VARIABLES
|
|
// --------------------------------------------------
|
|
|
|
// -------------------------
|
|
$placeholderText: darken($text-color, 25%);
|
|
|
|
|
|
// Horizontal forms & lists
|
|
// -------------------------
|
|
$horizontalComponentOffset: 180px;
|
|
|
|
|
|
// Wells
|
|
// -------------------------
|
|
$wellBackground: #131517;
|
|
|
|
$navbarHeight: 52px;
|
|
$navbarBackgroundHighlight: $dark-3;
|
|
$navbarBackground: $dark-3;
|
|
$navbarBorder: 1px solid $body-bg;
|
|
|
|
$navbarText: $gray-4;
|
|
$navbarLinkColor: $gray-4;
|
|
$navbarLinkColorHover: $white;
|
|
$navbarLinkColorActive: $navbarLinkColorHover;
|
|
$navbarLinkBackgroundHover: transparent;
|
|
$navbarLinkBackgroundActive: $navbarBackground;
|
|
$navbarBrandColor: $link-color;
|
|
$navbarDropdownShadow: inset 0px 4px 10px -4px $body-bg;
|
|
|
|
$navbarButtonBackground: lighten($navbarBackground, 3%);
|
|
$navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
|
|
|
|
// Sidemenu
|
|
// -------------------------
|
|
$side-menu-bg: $body-bg;
|
|
$side-menu-item-hover-bg: $dark-4;
|
|
|
|
// Pagination
|
|
// -------------------------
|
|
$paginationBackground: $body-bg;
|
|
$paginationBorder: transparent;
|
|
$paginationActiveBackground: $blue;
|
|
|
|
// Form states and alerts
|
|
// -------------------------
|
|
$state-warning-text: darken(#c09853, 10%);
|
|
$state-warning-bg: $brand-warning;
|
|
|
|
$errorText: #b94a48;
|
|
$errorBackground: $btn-danger-bg;
|
|
|
|
$successText: #468847;
|
|
$successBackground: $btn-success-bg;
|
|
|
|
$infoText: $blue-dark;
|
|
$infoBackground: $btn-info-bg;
|
|
|
|
// Tooltips and popovers
|
|
// -------------------------
|
|
$tooltipColor: $white;
|
|
$tooltipBackground: rgb(58, 57, 57);
|
|
$tooltipArrowWidth: 5px;
|
|
$tooltipArrowColor: $tooltipBackground;
|
|
$tooltipLinkColor: $link-color;
|
|
|
|
$popoverBackground: $dropdownBackground;
|
|
$popoverArrowWidth: 10px;
|
|
$popoverArrowColor: $popoverBackground;
|
|
$popoverTitleBackground: $popoverBackground;
|
|
|
|
// Special enhancement for popovers
|
|
$popoverArrowOuterWidth: $popoverArrowWidth + 1;
|
|
$popoverArrowOuterColor: rgba(0,0,0,.25);
|
|
|
|
// images
|
|
$checkboxImageUrl: '../img/checkbox.png';
|