Commit 6b5d12e4 by Greg Price

Merge pull request #1159 from edx/gprice/forum-focus-color

Make discussion elements change color on focus
parents c1d555be bf5a801f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
text-shadow: 0 1px 0 rgba(0, 0, 0, .3); text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
&:hover { &:hover, &:focus {
border-color: #297095; border-color: #297095;
@include linear-gradient(top, #4fbbe4, #2090d0); @include linear-gradient(top, #4fbbe4, #2090d0);
} }
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
&:hover { &:hover, &:focus {
@include linear-gradient(top, $white, #ddd); @include linear-gradient(top, $white, #ddd);
} }
} }
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
&:hover { &:hover, &:focus {
background: -webkit-linear-gradient(top, #888, #666); background: -webkit-linear-gradient(top, #888, #666);
} }
} }
...@@ -217,8 +217,7 @@ body.discussion { ...@@ -217,8 +217,7 @@ body.discussion {
color: #eee; color: #eee;
@include transition(none); @include transition(none);
&:hover, &:hover, &:focus {
&.focused {
background-color: #666; background-color: #666;
} }
...@@ -305,7 +304,7 @@ body.discussion { ...@@ -305,7 +304,7 @@ body.discussion {
padding-bottom: 2px; padding-bottom: 2px;
height: 37px; height: 37px;
&:hover { &:hover, &:focus {
border-color: #222; border-color: #222;
} }
} }
...@@ -436,7 +435,7 @@ body.discussion { ...@@ -436,7 +435,7 @@ body.discussion {
height: 37px; height: 37px;
border-color: #333; border-color: #333;
&:hover { &:hover, &:focus {
border-color: #222; border-color: #222;
} }
} }
...@@ -714,7 +713,7 @@ body.discussion { ...@@ -714,7 +713,7 @@ body.discussion {
height: 100%; height: 100%;
background-color: #dedede; background-color: #dedede;
&:hover { &:hover, &:focus {
background-color: $white; background-color: $white;
} }
} }
...@@ -881,8 +880,7 @@ body.discussion { ...@@ -881,8 +880,7 @@ body.discussion {
display: none; display: none;
} }
&:hover, &:hover, &:focus {
&.focused {
background-color: #636363; background-color: #636363;
} }
...@@ -1015,7 +1013,7 @@ body.discussion { ...@@ -1015,7 +1013,7 @@ body.discussion {
color: #333; color: #333;
line-height: 17px; line-height: 17px;
&:hover { &:hover, &:focus {
@include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, .2)); @include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, .2));
color: #333; color: #333;
} }
...@@ -1067,7 +1065,7 @@ body.discussion { ...@@ -1067,7 +1065,7 @@ body.discussion {
line-height: 33px; line-height: 33px;
text-align: center; text-align: center;
&:hover { &:hover, &:focus {
background-image: none; background-image: none;
background-color: #e6e6e6; background-color: #e6e6e6;
} }
...@@ -1086,7 +1084,7 @@ body.discussion { ...@@ -1086,7 +1084,7 @@ body.discussion {
background-color: $white; background-color: $white;
@include clearfix; @include clearfix;
&:hover { &:hover, &:focus {
@include linear-gradient(top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); @include linear-gradient(top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
background-color: #eee; background-color: #eee;
} }
...@@ -2225,7 +2223,7 @@ body.discussion { ...@@ -2225,7 +2223,7 @@ body.discussion {
padding-bottom: 2px; padding-bottom: 2px;
border-color: #333; border-color: #333;
&:hover { &:hover, &:focus {
border-color: #222; border-color: #222;
} }
} }
...@@ -2522,7 +2520,7 @@ body.discussion { ...@@ -2522,7 +2520,7 @@ body.discussion {
margin-top: $baseline/2; margin-top: $baseline/2;
padding-bottom: 2px; padding-bottom: 2px;
&:hover { &:hover, &:focus {
border-color: #222; border-color: #222;
} }
} }
...@@ -2596,7 +2594,7 @@ body.discussion { ...@@ -2596,7 +2594,7 @@ body.discussion {
cursor: pointer; cursor: pointer;
} }
&:hover { &:hover, &:focus {
@include transition(opacity .2s linear 0s); @include transition(opacity .2s linear 0s);
opacity: 1.0; opacity: 1.0;
} }
...@@ -2659,7 +2657,7 @@ display:none; ...@@ -2659,7 +2657,7 @@ display:none;
cursor:pointer; cursor:pointer;
opacity: 0.8; opacity: 0.8;
&:hover { &:hover, &:focus {
@include transition(opacity .2s linear 0s); @include transition(opacity .2s linear 0s);
opacity: 1.0; opacity: 1.0;
} }
......
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