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
b1aa8480
Commit
b1aa8480
authored
Feb 12, 2019
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add css-support for invalid form input elements
parent
e5759fa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
public/sass/components/_gf-form.scss
+5
-1
public/sass/mixins/_forms.scss
+10
-3
No files found.
public/sass/components/_gf-form.scss
View file @
b1aa8480
...
@@ -203,7 +203,7 @@ $input-border: 1px solid $input-border-color;
...
@@ -203,7 +203,7 @@ $input-border: 1px solid $input-border-color;
}
}
// Customize the `:focus` state to imitate native WebKit styles.
// Customize the `:focus` state to imitate native WebKit styles.
@include
form-control-focus
();
@include
form-control-focus
(
false
);
// Placeholder
// Placeholder
&
:
:
placeholder
{
&
:
:
placeholder
{
...
@@ -251,6 +251,10 @@ $input-border: 1px solid $input-border-color;
...
@@ -251,6 +251,10 @@ $input-border: 1px solid $input-border-color;
&
--plaintext
{
&
--plaintext
{
white-space
:
unset
;
white-space
:
unset
;
}
}
&
--invalid
{
@include
form-control-focus
(
true
);
}
}
}
.gf-form-hint
{
.gf-form-hint
{
...
...
public/sass/mixins/_forms.scss
View file @
b1aa8480
...
@@ -30,12 +30,19 @@
...
@@ -30,12 +30,19 @@
}
}
}
}
@mixin
form-control-focus
()
{
@mixin
form-control-focus
(
$error
)
{
&
:focus
{
&
:focus
{
$shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.075
)
,
0
0
5px
$input-box-shadow-focus
;
border-color
:
$input-border-focus
;
border-color
:
$input-border-focus
;
outline
:
none
;
outline
:
none
;
$shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.075
)
,
0
0
5px
$input-box-shadow-focus
;
@if
$error
==
true
{
border-color
:
$brand-warning
;
$shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.075
)
,
0
0
5px
$brand-warning
;
}
@include
box-shadow
(
$shadow
);
@include
box-shadow
(
$shadow
);
}
}
}
}
...
...
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