Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
27a1a9e8
Commit
27a1a9e8
authored
Feb 06, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused theme variables, removed empty sections, aligned the order of sections in the files
parent
809d4b04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
105 deletions
+43
-105
public/sass/_variables.dark.scss
+1
-24
public/sass/_variables.light.scss
+42
-81
No files found.
public/sass/_variables.dark.scss
View file @
27a1a9e8
...
...
@@ -6,9 +6,6 @@ $theme-name: dark;
// Grays
// -------------------------
$black
:
#000
;
// -------------------------
$black
:
#000
;
$dark-1
:
#141414
;
$dark-2
:
#1f1f20
;
$dark-3
:
#262628
;
...
...
@@ -19,7 +16,6 @@ $gray-2: #8e8e8e;
$gray-3
:
#b3b3b3
;
$gray-4
:
#d8d9da
;
$gray-5
:
#ececec
;
$gray-6
:
#f4f5f8
;
$gray-7
:
#fbfbfb
;
$gray-blue
:
#212327
;
...
...
@@ -34,7 +30,6 @@ $blue-dark: #005f81;
$green
:
#299c46
;
$red
:
#d44a3a
;
$yellow
:
#ecbb13
;
$pink
:
#ff4444
;
$purple
:
#9933cc
;
$variable
:
#32d1df
;
$orange
:
#eb7b18
;
...
...
@@ -68,7 +63,6 @@ $text-color-weak: $gray-2;
$text-color-faint
:
$dark-5
;
$text-color-emphasis
:
$gray-5
;
$text-shadow-strong
:
1px
1px
4px
$black
;
$text-shadow-faint
:
1px
1px
4px
rgb
(
45
,
45
,
45
);
// gradients
...
...
@@ -100,8 +94,7 @@ $hr-border-color: $dark-4;
// Panel
// -------------------------
$panel-bg
:
#212124
;
$panel-border-color
:
$dark-1
;
$panel-border
:
solid
1px
$panel-border-color
;
$panel-border
:
solid
1px
$dark-1
;
$panel-header-hover-bg
:
$dark-4
;
$panel-corner
:
$panel-bg
;
...
...
@@ -144,7 +137,6 @@ $scrollbarBorder: black;
// -------------------------
$table-bg
:
transparent
;
// overall background-color
$table-bg-accent
:
$dark-3
;
// for striping
$table-bg-hover
:
$dark-4
;
// for hover
$table-border
:
$dark-3
;
// table and cell border
$table-bg-odd
:
$dark-2
;
...
...
@@ -173,9 +165,6 @@ $btn-inverse-bg-hl: lighten($dark-3, 4%);
$btn-inverse-text-color
:
$link-color
;
$btn-inverse-text-shadow
:
0px
1px
0
rgba
(
0
,
0
,
0
,
0
.1
);
$btn-active-bg
:
$gray-4
;
$btn-active-text-color
:
$blue-dark
;
$btn-link-color
:
$gray-3
;
$iconContainerBackground
:
$black
;
...
...
@@ -215,13 +204,11 @@ $dropdownBackground: $dark-3;
$dropdownBorder
:
rgba
(
0
,
0
,
0
,
0
.2
);
$dropdownDividerTop
:
transparent
;
$dropdownDividerBottom
:
#444
;
$dropdownDivider
:
$dropdownDividerBottom
;
$dropdownLinkColor
:
$text-color
;
$dropdownLinkColorHover
:
$white
;
$dropdownLinkColorActive
:
$white
;
$dropdownLinkBackgroundActive
:
$dark-4
;
$dropdownLinkBackgroundHover
:
$dark-4
;
// COMPONENT VARIABLES
...
...
@@ -264,9 +251,6 @@ $menu-dropdown-bg: $body-bg;
$menu-dropdown-hover-bg
:
$dark-2
;
$menu-dropdown-shadow
:
5px
5px
20px
-5px
$black
;
// Breadcrumb
// -------------------------
// Tabs
// -------------------------
$tab-border-color
:
$dark-4
;
...
...
@@ -274,9 +258,6 @@ $tab-border-color: $dark-4;
// Toolbar
$toolbar-bg
:
$input-black
;
// Pagination
// -------------------------
// Form states and alerts
// -------------------------
$warning-text-color
:
$warn
;
...
...
@@ -311,7 +292,6 @@ $tooltipBackground: $black;
$tooltipColor
:
$gray-4
;
$tooltipArrowColor
:
$tooltipBackground
;
$tooltipBackgroundError
:
$brand-danger
;
$tooltipBackgroundBrand
:
$brand-primary
;
// images
$checkboxImageUrl
:
'../img/checkbox.png'
;
...
...
@@ -380,9 +360,7 @@ $checkbox-color: $dark-1;
//Panel Edit
// -------------------------
$panel-editor-shadow
:
0
0
20px
black
;
$panel-editor-border
:
1px
solid
$dark-3
;
$panel-editor-side-menu-shadow
:
drop-shadow
(
0
0
10px
$black
);
$panel-editor-toolbar-view-bg
:
$input-black
;
$panel-editor-viz-item-shadow
:
0
0
8px
$dark-5
;
$panel-editor-viz-item-border
:
1px
solid
$dark-5
;
$panel-editor-viz-item-shadow-hover
:
0
0
4px
$blue
;
...
...
@@ -390,7 +368,6 @@ $panel-editor-viz-item-border-hover: 1px solid $blue;
$panel-editor-viz-item-bg
:
$input-black
;
$panel-editor-tabs-line-color
:
#e3e3e3
;
$panel-editor-viz-item-bg-hover
:
darken
(
$blue
,
47%
);
$panel-editor-viz-item-bg-hover-active
:
darken
(
$orange
,
45%
);
$panel-options-group-border
:
none
;
$panel-options-group-header-bg
:
$gray-blue
;
...
...
public/sass/_variables.light.scss
View file @
27a1a9e8
// Cosmo 2.3.2
// Variables
// --------------------------------------------------
// Global values
// --------------------------------------------------
...
...
@@ -10,10 +6,6 @@ $theme-name: light;
// Grays
// -------------------------
$black
:
#000
;
// -------------------------
$black
:
#000
;
$dark-1
:
#13161d
;
$dark-2
:
#1e2028
;
$dark-3
:
#303133
;
$dark-4
:
#35373f
;
...
...
@@ -31,13 +23,11 @@ $white: #fff;
// Accent colors
// -------------------------
$blue
:
#0083b3
;
$blue-dark
:
#005f81
;
$blue-light
:
#00a8e6
;
$green
:
#3aa655
;
$red
:
#d44939
;
$yellow
:
#ff851b
;
$orange
:
#ff7941
;
$pink
:
#e671b8
;
$purple
:
#9954bb
;
$variable
:
$blue
;
...
...
@@ -60,9 +50,9 @@ $critical: #ec2128;
// Scaffolding
// -------------------------
$body-bg
:
$gray-7
;
$page-bg
:
$gray-7
;
$body-color
:
$gray-1
;
$text-color
:
$gray-1
;
$text-color-strong
:
$dark-2
;
...
...
@@ -70,12 +60,17 @@ $text-color-weak: $gray-2;
$text-color-faint
:
$gray-4
;
$text-color-emphasis
:
$dark-5
;
$text-shadow-strong
:
none
;
$text-shadow-faint
:
none
;
$textShadow
:
none
;
// gradients
$brand-gradient
:
linear-gradient
(
to
right
,
rgba
(
255
,
213
,
0
,
1
)
0%
,
rgba
(
255
,
68
,
0
,
1
)
99%
,
rgba
(
255
,
68
,
0
,
1
)
100%
);
$brand-gradient
:
linear-gradient
(
to
right
,
rgba
(
255
,
213
,
0
,
1
)
0%
,
rgba
(
255
,
68
,
0
,
1
)
99%
,
rgba
(
255
,
68
,
0
,
1
)
100%
);
$page-gradient
:
linear-gradient
(
180deg
,
$white
10px
,
$gray-7
100px
);
$edit-gradient
:
linear-gradient
(
-60deg
,
$gray-7
,
#f5f6f9
70%
,
$gray-7
98%
);
...
...
@@ -96,10 +91,8 @@ $hr-border-color: $dark-3 !default;
// Panel
// -------------------------
$panel-bg
:
$white
;
$panel-border-color
:
$gray-5
;
$panel-border
:
solid
1px
$panel-border-color
;
$panel-border
:
solid
1px
$gray-5
;
$panel-header-hover-bg
:
$gray-6
;
$panel-corner
:
$gray-4
;
...
...
@@ -112,7 +105,6 @@ $divider-border-color: $gray-2;
// Graphite Target Editor
$tight-form-bg
:
#eaebee
;
$tight-form-func-bg
:
$gray-5
;
$tight-form-func-highlight-bg
:
$gray-6
;
...
...
@@ -130,24 +122,23 @@ $list-item-bg: linear-gradient(135deg, $gray-5, $gray-6); //$card-background;
$list-item-hover-bg
:
darken
(
$gray-5
,
5%
);
$list-item-link-color
:
$text-color
;
$list-item-shadow
:
$card-shadow
;
$empty-list-cta-bg
:
$gray-6
;
// Scrollbars
$scrollbarBackground
:
$gray-5
;
$scrollbarBackground2
:
$gray-5
;
$scrollbarBorder
:
$gray-4
;
// Tables
// -------------------------
$table-bg
:
transparent
;
// overall background-color
$table-bg-accent
:
$gray-5
;
// for striping
$table-bg-hover
:
$gray-5
;
// for hover
$table-bg-active
:
$table-bg-hover
!
default
;
$table-border
:
$gray-3
;
// table and cell border
$table-bg-odd
:
$gray-6
;
$table-bg-hover
:
$gray-5
;
// Scrollbars
$scrollbarBackground
:
$gray-5
;
$scrollbarBackground2
:
$gray-5
;
$scrollbarBorder
:
$gray-4
;
// Buttons
// -------------------------
$btn-primary-bg
:
$brand-primary
;
...
...
@@ -170,16 +161,14 @@ $btn-inverse-bg-hl: darken($gray-6, 5%);
$btn-inverse-text-color
:
$gray-1
;
$btn-inverse-text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0
.4
);
$btn-active-bg
:
$white
;
$btn-active-text-color
:
$blue
;
$btn-link-color
:
$gray-1
;
$iconContainerBackground
:
$white
;
$btn-divider-left
:
$gray-4
;
$btn-divider-right
:
$gray-7
;
$btn-drag-image
:
'../img/grab_light.svg'
;
$
iconContainerBackground
:
$white
;
$
btn-drag-image
:
'../img/grab_light.svg'
;
// Forms
// -------------------------
...
...
@@ -196,29 +185,8 @@ $input-label-bg: $gray-5;
$input-label-border-color
:
$gray-5
;
$input-color-select-arrow
:
$gray-1
;
// Sidemenu
// -------------------------
$side-menu-bg
:
$dark-2
;
$side-menu-bg-mobile
:
rgba
(
0
,
0
,
0
,
0
);
//$gray-6;
$side-menu-item-hover-bg
:
$gray-1
;
$side-menu-shadow
:
5px
0px
10px
-5px
$gray-1
;
$side-menu-link-color
:
$gray-6
;
// Menu dropdowns
// -------------------------
$menu-dropdown-bg
:
$gray-7
;
$menu-dropdown-hover-bg
:
$gray-6
;
$menu-dropdown-shadow
:
5px
5px
10px
-5px
$gray-1
;
// Breadcrumb
// -------------------------
// Tabs
// -------------------------
$tab-border-color
:
$gray-5
;
// Toolbar
$toolbar-bg
:
white
;
// Input placeholder text color
$placeholderText
:
$gray-2
;
// search
$search-shadow
:
0
5px
30px
0
$gray-4
;
...
...
@@ -235,52 +203,52 @@ $dropdownBackground: $white;
$dropdownBorder
:
$gray-4
;
$dropdownDividerTop
:
$gray-6
;
$dropdownDividerBottom
:
$white
;
$dropdownDivider
:
$dropdownDividerTop
;
$dropdownLinkColor
:
$dark-3
;
$dropdownLinkColorHover
:
$link-color
;
$dropdownLinkColorActive
:
$link-color
;
$dropdownLinkBackgroundActive
:
$gray-6
;
$dropdownLinkBackgroundHover
:
$gray-6
;
// COMPONENT VARIABLES
// --------------------------------------------------
// Input placeholder text color
// -------------------------
$placeholderText
:
$gray-2
;
// Hr border color
// -------------------------
$hrBorder
:
$gray-3
;
// Horizontal forms & lists
// -------------------------
$horizontalComponentOffset
:
180px
;
// Wells
// -------------------------
// Navbar
// -------------------------
$navbarHeight
:
52px
;
$navbarBackground
:
$white
;
$navbarBorder
:
1px
solid
$gray-4
;
$navbarShadow
:
0
0
3px
#c1c1c1
;
$navbarLinkColor
:
#444
;
$navbarBrandColor
:
$navbarLinkColor
;
$navbarButtonBackground
:
lighten
(
$navbarBackground
,
3%
);
$navbarButtonBackgroundHighlight
:
lighten
(
$navbarBackground
,
5%
);
$navbar-button-border
:
$gray-4
;
//
Pagination
//
Sidemenu
// -------------------------
$side-menu-bg
:
$dark-2
;
$side-menu-bg-mobile
:
rgba
(
0
,
0
,
0
,
0
);
//$gray-6;
$side-menu-item-hover-bg
:
$gray-1
;
$side-menu-shadow
:
5px
0px
10px
-5px
$gray-1
;
$side-menu-link-color
:
$gray-6
;
// Menu dropdowns
// -------------------------
$menu-dropdown-bg
:
$gray-7
;
$menu-dropdown-hover-bg
:
$gray-6
;
$menu-dropdown-shadow
:
5px
5px
10px
-5px
$gray-1
;
// Tabs
// -------------------------
$tab-border-color
:
$gray-5
;
// Toolbar
$toolbar-bg
:
white
;
// Form states and alerts
// -------------------------
...
...
@@ -302,6 +270,7 @@ $popover-shadow: 0 0 20px $white;
$popover-help-bg
:
$blue
;
$popover-help-color
:
$gray-6
;
$popover-error-bg
:
$btn-danger-bg
;
// Tooltips and popovers
...
...
@@ -315,7 +284,6 @@ $tooltipBackground: $gray-1;
$tooltipColor
:
$gray-7
;
$tooltipArrowColor
:
$tooltipBackground
;
// Used by Angular tooltip
$tooltipBackgroundError
:
$brand-danger
;
$tooltipBackgroundBrand
:
$brand-primary
;
// images
$checkboxImageUrl
:
'../img/checkbox_white.png'
;
...
...
@@ -327,8 +295,6 @@ $info-box-border-color: lighten($blue, 20%);
$footer-link-color
:
$gray-3
;
$footer-link-hover
:
$dark-5
;
// collapse box
// json explorer
$json-explorer-default-color
:
black
;
$json-explorer-string-color
:
green
;
...
...
@@ -348,9 +314,6 @@ $json-explorer-url-color: blue;
$diff-label-bg
:
$gray-5
;
$diff-label-fg
:
$gray-2
;
$diff-switch-bg
:
$gray-7
;
$diff-switch-disabled
:
$gray-5
;
$diff-arrow-color
:
$dark-3
;
$diff-group-bg
:
$gray-7
;
...
...
@@ -365,6 +328,7 @@ $diff-json-new: #664e33;
$diff-json-changed-fg
:
$gray-6
;
$diff-json-changed-num
:
$gray-4
;
$diff-json-icon
:
$gray-4
;
//Submenu
...
...
@@ -388,9 +352,7 @@ $checkbox-color: $gray-7;
//Panel Edit
// -------------------------
$panel-editor-shadow
:
0px
0px
8px
$gray-3
;
$panel-editor-border
:
1px
solid
$dark-4
;
$panel-editor-side-menu-shadow
:
drop-shadow
(
0
0
2px
$gray-3
);
$panel-editor-toolbar-view-bg
:
$white
;
$panel-editor-viz-item-shadow
:
0
0
4px
$gray-3
;
$panel-editor-viz-item-border
:
1px
solid
$gray-3
;
$panel-editor-viz-item-shadow-hover
:
0
0
4px
$blue-light
;
...
...
@@ -398,7 +360,6 @@ $panel-editor-viz-item-border-hover: 1px solid $blue-light;
$panel-editor-viz-item-bg
:
$white
;
$panel-editor-tabs-line-color
:
$dark-5
;
$panel-editor-viz-item-bg-hover
:
lighten
(
$blue
,
62%
);
$panel-editor-viz-item-bg-hover-active
:
lighten
(
$orange
,
34%
);
$panel-options-group-border
:
none
;
$panel-options-group-header-bg
:
$gray-5
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment