Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
804c2528
Commit
804c2528
authored
Aug 13, 2014
by
RawKStar77
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add focus state to buttons. Add outline:none; to .form-input:focus and clear:both; to .formfield.
parent
bd4a3230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
forms.scss
h/static/styles/forms.scss
+8
-2
No files found.
h/static/styles/forms.scss
View file @
804c2528
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
@import
"compass/utilities/general/clearfix"
;
@import
"compass/utilities/general/clearfix"
;
.form-field
{
.form-field
{
@include
clearfix
;
clear
:
both
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
}
}
&
:focus
,
&
.js-focus
{
&
:focus
,
&
.js-focus
{
outline
:
none
;
background-color
:
#FFF
;
background-color
:
#FFF
;
border-color
:
#51A7E8
;
border-color
:
#51A7E8
;
box-shadow
:
0px
1px
2px
rgba
(
0
,
0
,
0
,
0
.075
)
inset
,
0px
0px
5px
rgba
(
81
,
167
,
232
,
0
.5
);
box-shadow
:
0px
1px
2px
rgba
(
0
,
0
,
0
,
0
.075
)
inset
,
0px
0px
5px
rgba
(
81
,
167
,
232
,
0
.5
);
...
@@ -222,7 +223,7 @@
...
@@ -222,7 +223,7 @@
border
:
1px
solid
#ACACAC
;
border
:
1px
solid
#ACACAC
;
padding
:
7px
12px
6px
;
padding
:
7px
12px
6px
;
&
:
focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
&
:
hover
,
&
:active
,
&
.js-hover
,
&
.js-active
{
@include
box-shadow
(
0
1px
0
rgba
(
0
,
0
,
0
,
0
.05
));
@include
box-shadow
(
0
1px
0
rgba
(
0
,
0
,
0
,
0
.05
));
outline
:
none
;
outline
:
none
;
color
:
$button-text-color
;
color
:
$button-text-color
;
...
@@ -230,6 +231,11 @@
...
@@ -230,6 +231,11 @@
border-color
:
#bababa
;
border-color
:
#bababa
;
}
}
&
:focus
,
&
.js-focus
{
border-color
:
#51A7E8
;
box-shadow
:
0px
1px
2px
rgba
(
0
,
0
,
0
,
0
.075
)
inset
,
0px
0px
5px
rgba
(
81
,
167
,
232
,
0
.5
);
}
&
:active
,
&
.js-active
{
&
:active
,
&
.js-active
{
@include
box-shadow
(
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0
.1
));
@include
box-shadow
(
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0
.1
));
background
:
$button-background-end
;
background
:
$button-background-end
;
...
...
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