2016-02-15 08:27:41 -06:00
|
|
|
// Cosmo 2.3.2
|
|
|
|
// Variables
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Global values
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Grays
|
|
|
|
// -------------------------
|
|
|
|
$black: #000;
|
2016-02-16 01:30:37 -06:00
|
|
|
$gray-darker: lighten(#000, 11.5%); // #222
|
|
|
|
$gray-dark: lighten(#000, 20%); // #333
|
2016-02-15 08:27:41 -06:00
|
|
|
$gray: lighten(#000, 33.5%); // #555
|
2016-02-16 01:30:37 -06:00
|
|
|
$gray-light: lighten(#000, 60%); // #999
|
|
|
|
$gray-lighter: lighten(#000, 97.5%); // #eee
|
2016-02-15 08:27:41 -06:00
|
|
|
$white: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
// Accent colors
|
|
|
|
// -------------------------
|
|
|
|
$blue: #2AB2E4;
|
2016-02-16 01:17:08 -06:00
|
|
|
$blue-dark: #75CAEB;
|
2016-02-15 08:27:41 -06:00
|
|
|
$green: #28B62C;
|
|
|
|
$red: #FF4136;
|
|
|
|
$yellow: #FF851B;
|
|
|
|
$orange: #FF7518;
|
|
|
|
$pink: #E671B8;
|
|
|
|
$purple: #9954BB;
|
|
|
|
$variable: #2AB2E4;
|
|
|
|
|
|
|
|
// Status colors
|
|
|
|
// -------------------------
|
|
|
|
$online: #01A64F;
|
|
|
|
$warn: #F79520;
|
|
|
|
$critical: #EC2128;
|
|
|
|
|
2016-02-15 09:02:58 -06:00
|
|
|
// Scaffolding
|
|
|
|
// -------------------------
|
2016-02-15 08:27:41 -06:00
|
|
|
|
2016-02-16 03:42:06 -06:00
|
|
|
$body-bg: rgb(20,20,20);
|
|
|
|
$page-bg: $gray-darker;
|
|
|
|
$body-color: $gray-lighter;
|
|
|
|
$text-color: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Links
|
|
|
|
// -------------------------
|
2016-02-16 02:42:46 -06:00
|
|
|
$link-color: $gray;
|
|
|
|
$link-color-disabled: lighten($link-color,30%);
|
2016-02-16 03:42:06 -06:00
|
|
|
$link-hover-color: darken($link-color, 20%);
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Typography
|
|
|
|
// -------------------------
|
2016-02-16 03:42:06 -06:00
|
|
|
$headings-color: $text-color;
|
|
|
|
$abbr-border-color: $gray-light !default;
|
|
|
|
$text-muted: darken($link-color,30%);
|
|
|
|
|
|
|
|
$blockquote-small-color: $gray-light !default;
|
|
|
|
$blockquote-border-color: $gray-lighter !default;
|
|
|
|
|
|
|
|
$hr-border-color: rgba(0,0,0,.1) !default;
|
2016-02-16 02:42:46 -06:00
|
|
|
|
|
|
|
// Panel
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
$panel-bg: $gray-lighter;
|
|
|
|
$panel-border: solid 1px #ddd;
|
|
|
|
|
|
|
|
$divider-border-color: $gray-light;
|
|
|
|
|
|
|
|
// Submenu
|
|
|
|
$submenuBackground: rgb(218, 217, 217);
|
|
|
|
$submenuBorder: $white;
|
|
|
|
|
|
|
|
// Graphite Target Editor
|
|
|
|
$tight-form-border: #ddd;
|
|
|
|
$tight-form-bg: #efefef;
|
|
|
|
|
|
|
|
$tight-form-func-bg: darken($tight-form-bg, 5%);
|
|
|
|
$tight-form-func-highlight-bg: darken($tight-form-bg, 10%);
|
2016-02-15 08:27:41 -06:00
|
|
|
|
2016-02-16 02:42:46 -06:00
|
|
|
$modal-background: $body-bg;
|
|
|
|
$code-tag-bg: #ddd;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Component sizing
|
|
|
|
// -------------------------
|
|
|
|
// Based on 14px font-size and 20px line-height
|
|
|
|
|
2016-02-16 03:42:06 -06:00
|
|
|
$font-size-lg: $font-size-base * 1.25; // ~18px
|
|
|
|
$font-size-sm: $font-size-base * 0.85; // ~12px
|
|
|
|
$font-size-xs: $font-size-base * 0.75; // ~11px
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
$paddingLarge: 22px 30px; // 66px
|
|
|
|
$paddingSmall: 2px 10px; // 26px
|
|
|
|
$paddingMini: 2px 6px; // 24px
|
|
|
|
|
|
|
|
$baseBorderRadius: 3px;
|
|
|
|
$borderRadiusLarge: 4px;
|
|
|
|
$borderRadiusSmall: 2px;
|
|
|
|
|
|
|
|
// Lists
|
2016-02-16 01:17:08 -06:00
|
|
|
$grafanaListBackground: darken($gray-lighter,5%);
|
|
|
|
$grafanaListAccent: darken($gray-lighter,8%);
|
2016-02-15 08:27:41 -06:00
|
|
|
$grafanaListBorderTop: #eee;
|
|
|
|
$grafanaListBorderBottom: #eee;
|
2016-02-16 01:17:08 -06:00
|
|
|
$grafanaListHighlight: darken($gray-lighter,10%);
|
2016-02-15 08:27:41 -06:00
|
|
|
$grafanaListHighlightContrast: #ddd;
|
2016-02-16 02:42:46 -06:00
|
|
|
$grafanaListMainLinkColor: $text-color;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
|
|
|
|
// Tables
|
|
|
|
// -------------------------
|
2016-02-16 03:42:06 -06:00
|
|
|
$table-bg: transparent; // overall background-color
|
|
|
|
$table-bg-accent: #f9f9f9; // for striping
|
|
|
|
$table-bg-hover: #E8F8FD; // for hover
|
|
|
|
$table-bg-active: $table-bg-hover !default;
|
|
|
|
$table-border: #ddd; // table and cell border
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Scrollbars
|
2016-02-16 01:17:08 -06:00
|
|
|
$scrollbarBackground: $gray-lighter;
|
|
|
|
$scrollbarBackground2: $gray-lighter;
|
|
|
|
$scrollbarBorder: $gray-light;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Buttons
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$btnBackground: $gray-lighter;
|
|
|
|
$btnBackgroundHighlight: darken($gray-lighter, 15%);
|
2016-02-15 08:27:41 -06:00
|
|
|
$btnBorder: #bbb;
|
|
|
|
|
|
|
|
$btnPrimaryBackground: lighten($blue, 3%);
|
|
|
|
$btnPrimaryBackgroundHighlight: darken($blue, 3%);
|
|
|
|
|
|
|
|
$btnInfoBackground: lighten($purple, 3%);
|
|
|
|
$btnInfoBackgroundHighlight: darken($purple, 3%);
|
|
|
|
|
|
|
|
$btnSuccessBackground: lighten($green, 3%);
|
|
|
|
$btnSuccessBackgroundHighlight: darken($green, 3%);
|
|
|
|
|
|
|
|
$btnWarningBackground: lighten($orange, 3%);
|
|
|
|
$btnWarningBackgroundHighlight: darken($orange, 3%);
|
|
|
|
|
|
|
|
$btnDangerBackground: lighten($red, 3%);
|
|
|
|
$btnDangerBackgroundHighlight: darken($red, 3%);
|
|
|
|
|
2016-02-16 01:17:08 -06:00
|
|
|
$btnInverseBackground: $gray-lighter;
|
|
|
|
$btnInverseBackgroundHighlight: darken($gray-lighter, 5%);
|
2016-02-15 08:27:41 -06:00
|
|
|
$btnInverseText: $black;
|
2016-02-16 01:17:08 -06:00
|
|
|
$btnInverseBorder: $gray-light;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
2016-02-16 01:17:08 -06:00
|
|
|
$btnText: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
$iconContainerBackground: $white;
|
|
|
|
$iconContainerBackgroundHighlight: lighten($white, 5%);
|
|
|
|
$iconContainerBorder: 1px solid rgba(0,0,0, 0.05);
|
|
|
|
$iconContainerShadow: 0 0 14px 2px rgba(0,0,0, 0.05);
|
|
|
|
|
|
|
|
|
|
|
|
// Forms
|
|
|
|
// -------------------------
|
|
|
|
$inputBackground: $white;
|
2016-02-16 01:17:08 -06:00
|
|
|
$inputBorder: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
$inputBorderRadius: $baseBorderRadius;
|
2016-02-16 01:17:08 -06:00
|
|
|
$inputDisabledBackground: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
$formActionsBackground: #f5f5f5;
|
2016-02-16 03:42:06 -06:00
|
|
|
$inputHeight: $line-height-base + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
2016-02-15 08:27:41 -06:00
|
|
|
$inputText: #020202;
|
|
|
|
$labelBackground: #f8f8f8;
|
|
|
|
|
|
|
|
|
|
|
|
// Sidemenu
|
|
|
|
// -------------------------
|
2016-02-16 01:30:37 -06:00
|
|
|
$sideMenuBackground: $panel-bg;
|
2016-02-15 08:27:41 -06:00
|
|
|
$sideMenuBackgroundHighlight: darken($sideMenuBackground, 4%);
|
|
|
|
|
|
|
|
// search
|
2016-02-16 01:17:08 -06:00
|
|
|
$searchShadow: 0 5px 30px 0 lighten($gray-light, 30%);
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
// Dropdowns
|
|
|
|
// -------------------------
|
|
|
|
$dropdownBackground: $white;
|
2016-02-16 02:42:46 -06:00
|
|
|
$dropdownBorder: $tight-form-border;
|
2016-02-15 08:27:41 -06:00
|
|
|
$dropdownDividerTop: #e5e5e5;
|
|
|
|
$dropdownDividerBottom: $white;
|
|
|
|
$dropdownDivider: $dropdownDividerTop;
|
|
|
|
$dropdownTitle: #333;
|
|
|
|
|
2016-02-16 01:17:08 -06:00
|
|
|
$dropdownLinkColor: $gray-dark;
|
2016-02-15 08:27:41 -06:00
|
|
|
$dropdownLinkColorHover: $white;
|
|
|
|
$dropdownLinkColorActive: $white;
|
|
|
|
|
|
|
|
$dropdownLinkBackgroundActive: $blue;
|
|
|
|
$dropdownLinkBackgroundHover: $blue;
|
|
|
|
|
|
|
|
|
|
|
|
// COMPONENT VARIABLES
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Z-index master list
|
|
|
|
// -------------------------
|
|
|
|
// Used for a bird's eye view of components dependent on the z-axis
|
|
|
|
// Try to avoid customizing these :)
|
|
|
|
$zindexDropdown: 1000;
|
|
|
|
$zindexPopover: 1010;
|
|
|
|
$zindexTooltip: 1030;
|
|
|
|
$zindexFixedNavbar: 1030;
|
|
|
|
$zindexModalBackdrop: 1040;
|
|
|
|
$zindexModal: 1050;
|
|
|
|
|
|
|
|
|
|
|
|
// Input placeholder text color
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$placeholderText: $gray-light;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
|
|
|
|
// Hr border color
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$hrBorder: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
|
|
|
|
// Horizontal forms & lists
|
|
|
|
// -------------------------
|
|
|
|
$horizontalComponentOffset: 180px;
|
|
|
|
|
|
|
|
|
|
|
|
// Wells
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$wellBackground: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
|
|
|
|
// Navbar
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
$navbarHeight: 52px;
|
|
|
|
$navbarBackgroundHighlight: #f8f8f8;
|
|
|
|
$navbarBackground: #f8f8f8;
|
2016-02-16 02:42:46 -06:00
|
|
|
$navbarBorder: 1px solid $tight-form-border;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
$navbarText: #666;
|
|
|
|
$navbarLinkColor: #666;
|
|
|
|
$navbarLinkColorHover: #333;
|
|
|
|
$navbarLinkColorActive: #555;
|
|
|
|
$navbarLinkBackgroundHover: transparent;
|
|
|
|
$navbarLinkBackgroundActive: darken($navbarBackground, 6.5%);
|
2016-02-16 02:42:46 -06:00
|
|
|
$navbarDropdownShadow: inset 0px 4px 7px -4px darken($body-bg, 20%);
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
$navbarBrandColor: $navbarLinkColor;
|
|
|
|
|
|
|
|
$navbarButtonBackground: lighten($navbarBackground, 3%);
|
|
|
|
$navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
|
|
|
|
|
|
|
|
|
|
|
|
// Pagination
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$paginationBackground: $gray-light;
|
2016-02-15 08:27:41 -06:00
|
|
|
$paginationBorder: transparent;
|
|
|
|
$paginationActiveBackground: $blue;
|
|
|
|
|
|
|
|
|
|
|
|
// Hero unit
|
|
|
|
// -------------------------
|
2016-02-16 01:17:08 -06:00
|
|
|
$heroUnitBackground: $gray-lighter;
|
2016-02-15 08:27:41 -06:00
|
|
|
$heroUnitHeadingColor: inherit;
|
|
|
|
$heroUnitLeadColor: inherit;
|
|
|
|
|
|
|
|
|
|
|
|
// Form states and alerts
|
|
|
|
// -------------------------
|
2016-02-16 03:42:06 -06:00
|
|
|
$state-warning-text: lighten($orange, 10%);
|
|
|
|
$state-warning-bg: $orange;
|
2016-02-15 08:27:41 -06:00
|
|
|
$warningBorder: transparent;
|
|
|
|
|
|
|
|
$errorText: lighten($red, 10%);
|
|
|
|
$errorBackground: $red;
|
|
|
|
$errorBorder: transparent;
|
|
|
|
|
|
|
|
$successText: lighten($green, 10%);
|
|
|
|
$successBackground: $green;
|
|
|
|
$successBorder: transparent;
|
|
|
|
|
|
|
|
$infoText: lighten($purple,10%);
|
|
|
|
$infoBackground: $purple;
|
|
|
|
$infoBorder: transparent;
|
|
|
|
|
|
|
|
|
|
|
|
// Tooltips and popovers
|
|
|
|
// -------------------------
|
|
|
|
$tooltipColor: $white;
|
2016-02-16 01:17:08 -06:00
|
|
|
$tooltipBackground: $gray-dark;
|
2016-02-15 08:27:41 -06:00
|
|
|
$tooltipArrowWidth: 5px;
|
|
|
|
$tooltipArrowColor: $tooltipBackground;
|
|
|
|
$tooltipLinkColor: darken($white,11%);
|
|
|
|
|
|
|
|
$popoverBackground: $white;
|
|
|
|
$popoverArrowWidth: 15px;
|
|
|
|
$popoverArrowColor: $white;
|
|
|
|
$popoverTitleBackground: $white;
|
|
|
|
|
|
|
|
// Special enhancement for popovers
|
|
|
|
$popoverArrowOuterWidth: $popoverArrowWidth + 1;
|
|
|
|
$popoverArrowOuterColor: rgba(0,0,0,.25);
|
|
|
|
|
|
|
|
// images
|
|
|
|
$checkboxImageUrl: '../img/checkbox_white.png';
|
|
|
|
|
|
|
|
// GRID
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Default 940px grid
|
|
|
|
// -------------------------
|
|
|
|
$gridColumns: 12;
|
|
|
|
$gridColumnWidth: 60px;
|
|
|
|
$gridGutterWidth: 20px;
|
|
|
|
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
|
|
|
|
|
|
|
// 1200px min
|
|
|
|
$gridColumnWidth1200: 70px;
|
|
|
|
$gridGutterWidth1200: 30px;
|
|
|
|
$gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1));
|
|
|
|
|
|
|
|
// 768px-979px
|
|
|
|
$gridColumnWidth768: 42px;
|
|
|
|
$gridGutterWidth768: 20px;
|
|
|
|
$gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1));
|
|
|
|
|
|
|
|
|
|
|
|
// Fluid grid
|
|
|
|
// -------------------------
|
|
|
|
$fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth);
|
|
|
|
$fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth);
|
|
|
|
|
|
|
|
// 1200px min
|
|
|
|
$fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200);
|
|
|
|
$fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200);
|
|
|
|
|
|
|
|
// 768px-979px
|
|
|
|
$fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768);
|
|
|
|
$fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768);
|