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
c54f2912
Commit
c54f2912
authored
Mar 12, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed default variables: s -> sm, m -> md, l -> lg
parent
51c06a8c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
42 deletions
+42
-42
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
+12
-12
packages/grafana-ui/src/themes/default.ts
+15
-15
packages/grafana-ui/src/types/theme.ts
+15
-15
No files found.
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
View file @
c54f2912
...
...
@@ -18,9 +18,9 @@ $enable-hover-media-query: false !default;
// variables. Mostly focused on spacing.
$space-xs:
${
theme
.
spacing
.
xs
}
!default;
$space-sm:
${
theme
.
spacing
.
s
}
!default;
$space-md:
${
theme
.
spacing
.
m
}
!default;
$space-lg:
${
theme
.
spacing
.
l
}
!default;
$space-sm:
${
theme
.
spacing
.
s
m
}
!default;
$space-md:
${
theme
.
spacing
.
m
d
}
!default;
$space-lg:
${
theme
.
spacing
.
l
g
}
!default;
$space-xl:
${
theme
.
spacing
.
xl
}
!default;
$spacer:
${
theme
.
spacing
.
d
}
!default;
$spacer-x: $spacer !default;
...
...
@@ -51,7 +51,7 @@ $spacers: (
),
),
) !default;
$border-width:
${
theme
.
border
.
width
.
s
}
!default;
$border-width:
${
theme
.
border
.
width
.
s
m
}
!default;
// Grid breakpoints
//
...
...
@@ -60,9 +60,9 @@ $border-width: ${theme.border.width.s} !default;
$grid-breakpoints: (
xs:
${
theme
.
breakpoints
.
xs
}
,
sm:
${
theme
.
breakpoints
.
s
}
,
md:
${
theme
.
breakpoints
.
m
}
,
lg:
${
theme
.
breakpoints
.
l
}
,
sm:
${
theme
.
breakpoints
.
s
m
}
,
md:
${
theme
.
breakpoints
.
m
d
}
,
lg:
${
theme
.
breakpoints
.
l
g
}
,
xl:
${
theme
.
breakpoints
.
xl
}
,
) !default;
...
...
@@ -96,12 +96,12 @@ $font-family-base: $font-family-sans-serif !default;
$font-size-root:
${
theme
.
typography
.
size
.
root
}
!default;
$font-size-base:
${
theme
.
typography
.
size
.
base
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
g
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
d
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
m
}
!default;
$font-size-xs:
${
theme
.
typography
.
size
.
xs
}
!default;
$line-height-base:
${
theme
.
typography
.
lineHeight
.
l
}
!default;
$line-height-base:
${
theme
.
typography
.
lineHeight
.
l
g
}
!default;
$font-weight-semi-bold:
${
theme
.
typography
.
weight
.
semibold
}
;
$font-size-h1:
${
theme
.
typography
.
heading
.
h1
}
!default;
...
...
@@ -114,7 +114,7 @@ $font-size-h6: ${theme.typography.heading.h6} !default;
$headings-margin-bottom: ($spacer / 2) !default;
$headings-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$headings-font-weight:
${
theme
.
typography
.
weight
.
normal
}
!default;
$headings-line-height:
${
theme
.
typography
.
lineHeight
.
s
}
!default;
$headings-line-height:
${
theme
.
typography
.
lineHeight
.
s
m
}
!default;
$hr-border-width: $border-width !default;
$dt-font-weight: bold !default;
...
...
packages/grafana-ui/src/themes/default.ts
View file @
c54f2912
...
...
@@ -11,9 +11,9 @@ const theme: GrafanaThemeCommons = {
root
:
'14px'
,
base
:
'13px'
,
xs
:
'10px'
,
s
:
'12px'
,
m
:
'14px'
,
l
:
'18px'
,
s
m
:
'12px'
,
m
d
:
'14px'
,
l
g
:
'18px'
,
},
heading
:
{
h1
:
'28px'
,
...
...
@@ -30,35 +30,35 @@ const theme: GrafanaThemeCommons = {
},
lineHeight
:
{
xs
:
1
,
s
:
1.1
,
m
:
4
/
3
,
l
:
1.5
,
s
m
:
1.1
,
m
d
:
4
/
3
,
l
g
:
1.5
,
},
},
breakpoints
:
{
xs
:
'0'
,
s
:
'544px'
,
m
:
'768px'
,
l
:
'992px'
,
s
m
:
'544px'
,
m
d
:
'768px'
,
l
g
:
'992px'
,
xl
:
'1200px'
,
},
spacing
:
{
d
:
'14px'
,
xs
:
'4px'
,
s
:
'8px'
,
m
:
'16px'
,
l
:
'24px'
,
s
m
:
'8px'
,
m
d
:
'16px'
,
l
g
:
'24px'
,
xl
:
'32px'
,
gutter
:
'30px'
,
},
border
:
{
radius
:
{
xs
:
'2px'
,
s
:
'3px'
,
m
:
'5px'
,
s
m
:
'3px'
,
m
d
:
'5px'
,
},
width
:
{
s
:
'1px'
,
s
m
:
'1px'
,
},
},
};
...
...
packages/grafana-ui/src/types/theme.ts
View file @
c54f2912
...
...
@@ -8,9 +8,9 @@ export interface GrafanaThemeCommons {
// TODO: not sure if should be a part of theme
breakpoints
:
{
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
xl
:
string
;
};
typography
:
{
...
...
@@ -22,9 +22,9 @@ export interface GrafanaThemeCommons {
root
:
string
;
base
:
string
;
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
};
weight
:
{
light
:
number
;
...
...
@@ -33,9 +33,9 @@ export interface GrafanaThemeCommons {
};
lineHeight
:
{
xs
:
number
;
//1
s
:
number
;
//1.1
m
:
number
;
// 4/3
l
:
number
;
// 1.5
s
m
:
number
;
//1.1
m
d
:
number
;
// 4/3
l
g
:
number
;
// 1.5
};
// TODO: Refactor to use size instead of custom defs
heading
:
{
...
...
@@ -50,20 +50,20 @@ export interface GrafanaThemeCommons {
spacing
:
{
d
:
string
;
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
xl
:
string
;
gutter
:
string
;
};
border
:
{
radius
:
{
xs
:
string
;
s
:
string
;
m
:
string
;
s
m
:
string
;
m
d
:
string
;
};
width
:
{
s
:
string
;
s
m
:
string
;
};
};
}
...
...
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