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
6803db87
Unverified
Commit
6803db87
authored
Apr 01, 2020
by
Torkel Ödegaard
Committed by
GitHub
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theme: Clean up placeholder variables (#23257)
* Theme: Clean up placeholder variables * Updated snapshot
parent
fb114a75
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
26 deletions
+8
-26
packages/grafana-ui/src/components/TimePicker/__snapshots__/TimePicker.test.tsx.snap
+2
-2
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
+0
-3
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
+1
-4
packages/grafana-ui/src/themes/dark.ts
+1
-1
public/sass/_variables.dark.generated.scss
+1
-4
public/sass/_variables.light.generated.scss
+1
-4
public/sass/mixins/_mixins.scss
+2
-8
No files found.
packages/grafana-ui/src/components/TimePicker/__snapshots__/TimePicker.test.tsx.snap
View file @
6803db87
...
...
@@ -111,7 +111,7 @@ exports[`TimePicker renders buttons correctly 1`] = `
"formInputBorderHover": "#464c54",
"formInputBorderInvalid": "#e02f44",
"formInputDisabledText": "#9fa7b3",
"formInputPlaceholderText": "#
464c54
",
"formInputPlaceholderText": "#
555555
",
"formInputText": "#c7d0d9",
"formInputTextStrong": "#c7d0d9",
"formInputTextWhite": "#ffffff",
...
...
@@ -421,7 +421,7 @@ exports[`TimePicker renders content correctly after beeing open 1`] = `
"formInputBorderHover": "#464c54",
"formInputBorderInvalid": "#e02f44",
"formInputDisabledText": "#9fa7b3",
"formInputPlaceholderText": "#
464c54
",
"formInputPlaceholderText": "#
555555
",
"formInputText": "#c7d0d9",
"formInputTextStrong": "#c7d0d9",
"formInputTextWhite": "#ffffff",
...
...
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
View file @
6803db87
...
...
@@ -213,9 +213,6 @@ $input-label-bg: $gray-blue;
$input-label-border-color: $dark-6;
$input-color-select-arrow: $white;
// Input placeholder text color
$placeholderText: darken($text-color, 25%);
// Search
$search-shadow: 0 0 30px 0 $black;
...
...
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
View file @
6803db87
...
...
@@ -200,14 +200,11 @@ $input-border-color: $gray-5;
$input-box-shadow: none;
$input-border-focus: $gray-5 !default;
$input-box-shadow-focus: $blue-light !default;
$input-color-placeholder: $
gray-4 !default
;
$input-color-placeholder:
$
{
theme
.
colors
.
formInputPlaceholderText
}
;
$input-label-bg: $gray-5;
$input-label-border-color: $gray-5;
$input-color-select-arrow: $gray-1;
// Input placeholder text color
$placeholderText: $gray-2;
// search
$search-shadow: 0 1px 5px 0 $gray-5;
...
...
packages/grafana-ui/src/themes/dark.ts
View file @
6803db87
...
...
@@ -88,7 +88,7 @@ const darkTheme: GrafanaTheme = {
formInputBorderHover
:
basicColors
.
gray33
,
formInputBorderActive
:
basicColors
.
blue95
,
formInputBorderInvalid
:
basicColors
.
red88
,
formInputPlaceholderText
:
basicColors
.
gray
33
,
formInputPlaceholderText
:
basicColors
.
gray
1
,
formInputText
:
basicColors
.
gray85
,
formInputDisabledText
:
basicColors
.
gray70
,
formInputTextStrong
:
basicColors
.
gray85
,
...
...
public/sass/_variables.dark.generated.scss
View file @
6803db87
...
...
@@ -211,14 +211,11 @@ $input-border-color: $dark-6;
$input-box-shadow
:
inset
1px
0px
4px
0px
rgba
(
150
,
150
,
150
,
0
.1
);
$input-border-focus
:
$dark-6
!
default
;
$input-box-shadow-focus
:
$blue-light
!
default
;
$input-color-placeholder
:
#
464c54
;
$input-color-placeholder
:
#
555555
;
$input-label-bg
:
$gray-blue
;
$input-label-border-color
:
$dark-6
;
$input-color-select-arrow
:
$white
;
// Input placeholder text color
$placeholderText
:
darken
(
$text-color
,
25%
);
// Search
$search-shadow
:
0
0
30px
0
$black
;
...
...
public/sass/_variables.light.generated.scss
View file @
6803db87
...
...
@@ -203,14 +203,11 @@ $input-border-color: $gray-5;
$input-box-shadow
:
none
;
$input-border-focus
:
$gray-5
!
default
;
$input-box-shadow-focus
:
$blue-light
!
default
;
$input-color-placeholder
:
$gray-4
!
default
;
$input-color-placeholder
:
#9fa7b3
;
$input-label-bg
:
$gray-5
;
$input-label-border-color
:
$gray-5
;
$input-color-select-arrow
:
$gray-1
;
// Input placeholder text color
$placeholderText
:
$gray-2
;
// search
$search-shadow
:
0
1px
5px
0
$gray-5
;
...
...
public/sass/mixins/_mixins.scss
View file @
6803db87
...
...
@@ -44,14 +44,8 @@
// Placeholder text
// -------------------------
@mixin
placeholder
(
$color
:
$placeholderText
)
{
&
:
-
moz-placeholder
{
color
:
$color
;
}
&
:
-
ms-input-placeholder
{
color
:
$color
;
}
&
:
:-
webkit-input-placeholder
{
@mixin
placeholder
(
$color
:
$input-color-placeholder
)
{
&
:
:
placeholder
{
color
:
$color
;
}
}
...
...
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