Commit 804c2528 authored by RawKStar77's avatar RawKStar77

Add focus state to buttons. Add outline:none; to .form-input:focus and clear:both; to .formfield.

parent bd4a3230
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment