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
7a155282
Commit
7a155282
authored
Mar 12, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed gf-form-margin variable and replaced with space- variables where it was used
parent
1432fdd1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
18 deletions
+19
-18
packages/grafana-ui/src/components/FormField/_FormField.scss
+1
-1
packages/grafana-ui/src/components/Select/_Select.scss
+1
-1
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
+1
-1
packages/grafana-ui/src/themes/default.ts
+1
-0
packages/grafana-ui/src/types/theme.ts
+1
-0
public/sass/_variables.generated.scss
+1
-1
public/sass/base/_type.scss
+1
-1
public/sass/components/_gf-form.scss
+8
-9
public/sass/components/_infobox.scss
+1
-1
public/sass/utils/_widths.scss
+3
-3
No files found.
packages/grafana-ui/src/components/FormField/_FormField.scss
View file @
7a155282
.form-field
{
margin-bottom
:
$
gf-form-margin
;
margin-bottom
:
$
space-xxs
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
...
...
packages/grafana-ui/src/components/Select/_Select.scss
View file @
7a155282
...
...
@@ -3,7 +3,7 @@ $select-input-bg-disabled: $input-bg-disabled;
@mixin
select-control
()
{
width
:
100%
;
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
@include
border-radius
(
$input-border-radius-sm
);
background-color
:
$input-bg
;
}
...
...
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
View file @
7a155282
...
...
@@ -17,6 +17,7 @@ $enable-hover-media-query: false !default;
// Control the default styling of most Bootstrap elements by modifying these
// variables. Mostly focused on spacing.
$space-xxs:
${
theme
.
spacing
.
xxs
}
!default;
$space-xs:
${
theme
.
spacing
.
xs
}
!default;
$space-sm:
${
theme
.
spacing
.
s
}
!default;
$space-md:
${
theme
.
spacing
.
m
}
!default;
...
...
@@ -164,7 +165,6 @@ $input-padding-y-lg: 10px !default;
$input-height: 35px !default;
$gf-form-margin: 3px;
$gf-form-input-height: 35px;
$cursor-disabled: not-allowed !default;
...
...
packages/grafana-ui/src/themes/default.ts
View file @
7a155282
...
...
@@ -44,6 +44,7 @@ const theme: GrafanaThemeCommons = {
},
spacing
:
{
d
:
'14px'
,
xxs
:
'2px'
,
xs
:
'4px'
,
s
:
'8px'
,
m
:
'16px'
,
...
...
packages/grafana-ui/src/types/theme.ts
View file @
7a155282
...
...
@@ -49,6 +49,7 @@ export interface GrafanaThemeCommons {
};
spacing
:
{
d
:
string
;
xxs
:
string
;
xs
:
string
;
s
:
string
;
m
:
string
;
...
...
public/sass/_variables.generated.scss
View file @
7a155282
...
...
@@ -20,6 +20,7 @@ $enable-hover-media-query: false !default;
// Control the default styling of most Bootstrap elements by modifying these
// variables. Mostly focused on spacing.
$space-xxs
:
2px
!
default
;
$space-xs
:
4px
!
default
;
$space-sm
:
8px
!
default
;
$space-md
:
16px
!
default
;
...
...
@@ -167,7 +168,6 @@ $input-padding-y-lg: 10px !default;
$input-height
:
35px
!
default
;
$gf-form-margin
:
3px
;
$gf-form-input-height
:
35px
;
$cursor-disabled
:
not
-
allowed
!
default
;
...
...
public/sass/base/_type.scss
View file @
7a155282
...
...
@@ -109,7 +109,7 @@ h6,
.h4
,
.h5
,
.h6
{
margin-bottom
:
$space-s
;
margin-bottom
:
$space-s
m
;
font-family
:
$headings-font-family
;
font-weight
:
$headings-font-weight
;
line-height
:
$headings-line-height
;
...
...
public/sass/components/_gf-form.scss
View file @
7a155282
$gf-form-margin
:
3px
;
$input-border
:
1px
solid
$input-border-color
;
.gf-form
{
margin-bottom
:
$
gf-form-margin
;
margin-bottom
:
$
space-xxs
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
flex-start
;
...
...
@@ -33,7 +32,7 @@ $input-border: 1px solid $input-border-color;
.gf-form--has-input-icon
{
position
:
relative
;
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
.gf-form-input-icon
{
position
:
absolute
;
...
...
@@ -82,7 +81,7 @@ $input-border: 1px solid $input-border-color;
align-content
:
flex-start
;
.gf-form
+
.gf-form
{
margin-left
:
$
gf-form-margin
;
margin-left
:
$
space-xs
;
}
&
--nowrap
{
...
...
@@ -147,14 +146,14 @@ $input-border: 1px solid $input-border-color;
}
.gf-form-label
+
.gf-form-label
{
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
}
.gf-form-pre
{
display
:
block
;
flex-grow
:
1
;
margin
:
0
;
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
border
:
$input-btn-border-width
solid
transparent
;
border-left
:
none
;
@include
border-radius
(
$label-border-radius-sm
);
...
...
@@ -336,7 +335,7 @@ $input-border: 1px solid $input-border-color;
.gf-form-btn
{
padding
:
$input-padding-y
$input-padding-x
;
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
line-height
:
$input-line-height
;
font-size
:
$font-size-sm
;
...
...
@@ -354,7 +353,7 @@ $input-border: 1px solid $input-border-color;
}
.gf-form-dropdown-typeahead
{
margin-right
:
$gf-form-margin
;
//margin-right: $space-xs; ?
position
:
relative
;
&
:
:
after
{
...
...
@@ -391,7 +390,7 @@ $input-border: 1px solid $input-border-color;
}
&
--header
{
margin-bottom
:
$
gf-form-margin
;
margin-bottom
:
$
space-xxs
;
}
&
--no-padding
{
...
...
public/sass/components/_infobox.scss
View file @
7a155282
...
...
@@ -5,7 +5,7 @@
margin-bottom
:
2rem
;
border-top
:
3px
solid
$info-box-border-color
;
margin-bottom
:
$spacer
;
margin-right
:
$
gf-form-margin
;
margin-right
:
$
space-xs
;
box-shadow
:
$card-shadow
;
flex-grow
:
1
;
...
...
public/sass/utils/_widths.scss
View file @
7a155282
...
...
@@ -8,20 +8,20 @@
// widths
@for
$i
from
1
through
30
{
.width-
#{
$i
}
{
width
:
(
$spacer
*
$i
)
-
$
gf-form-margin
!
important
;
width
:
(
$spacer
*
$i
)
-
$
space-xs
!
important
;
}
}
@for
$i
from
1
through
30
{
.max-width-
#{
$i
}
{
max-width
:
(
$spacer
*
$i
)
-
$
gf-form-margin
!
important
;
max-width
:
(
$spacer
*
$i
)
-
$
space-xs
!
important
;
flex-grow
:
1
;
}
}
@for
$i
from
1
through
30
{
.min-width-
#{
$i
}
{
min-width
:
(
$spacer
*
$i
)
-
$
gf-form-margin
!
important
;
min-width
:
(
$spacer
*
$i
)
-
$
space-xs
!
important
;
}
}
...
...
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