add :focus for accessibility

This commit is contained in:
Brittany Chiang
2017-02-09 22:43:56 -05:00
parent 9750776529
commit ef95ae957f
11 changed files with 16 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
</div> </div>
</div> </div>
<div class="scroll-down-wrapper"> <div class="scroll-down-wrapper">
<a href="#about-section" class="scroll-down"> <a href="#about-section" title="About section" class="scroll-down">
<img class="logo" src="img/logo-white.png" alt="scroll down"> <img class="logo" src="img/logo-white.png" alt="scroll down">
<span class="scroll-down-text"> <span class="scroll-down-text">
Learn More Learn More

View File

@@ -101,7 +101,7 @@
border-radius: 30px; border-radius: 30px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
&:hover { &:hover, &:focus {
background: #c74739; background: #c74739;
} }
} }

View File

@@ -14,7 +14,7 @@
letter-spacing: 1px; letter-spacing: 1px;
overflow: hidden; overflow: hidden;
transition: background-color 0.5s linear; transition: background-color 0.5s linear;
&:hover { &:hover, &:focus {
background: $blue; background: $blue;
transition: all 0.3s ease; transition: all 0.3s ease;
.resume-text { .resume-text {

View File

@@ -120,7 +120,7 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover, &:focus {
color: $white; color: $white;
background: $blue; background: $blue;
} }

View File

@@ -26,10 +26,12 @@
display: inline-block; display: inline-block;
transform: scale(0.6); transform: scale(0.6);
} }
&:hover span { &:hover span,
&:focus span {
transform: scale(0.75); transform: scale(0.75);
} }
&:hover .dot-label { &:hover .dot-label,
&:focus .dot-label {
opacity: 1; opacity: 1;
} }
&.is-selected .dot { &.is-selected .dot {

View File

@@ -201,7 +201,7 @@
margin-left: 50px; margin-left: 50px;
padding: 1.5em 1em 2.5em; padding: 1.5em 1em 2.5em;
} }
&:hover { &:hover, &:focus {
opacity: 1; opacity: 1;
+ .timeline-img { + .timeline-img {
background: $blue; background: $blue;
@@ -246,7 +246,7 @@
color: $blue; color: $blue;
display: inline; display: inline;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover, &:focus {
color: #00dded; color: #00dded;
} }
} }

View File

@@ -39,7 +39,7 @@
&.icon { &.icon {
color: $white; color: $white;
fill: $white; fill: $white;
&:hover { &:hover, &:focus {
color: #fff; color: #fff;
fill: #fff; fill: #fff;
transition: all 0.3s ease; transition: all 0.3s ease;

View File

@@ -127,7 +127,7 @@
width: 70px; width: 70px;
margin: 0 auto; margin: 0 auto;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover, &:focus {
transition: all 0.3s ease; transition: all 0.3s ease;
.logo { .logo {
opacity: 0; opacity: 0;

View File

@@ -11,7 +11,7 @@
@include MQ(M) { @include MQ(M) {
display: block; display: block;
} }
&:hover { &:hover, &:focus {
opacity: 0.7; opacity: 0.7;
} }
&.active { &.active {
@@ -155,7 +155,7 @@
&:after { &:after {
transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
} }
&:hover { &:hover, &:focus {
&:before, &:before,
&:after { &:after {
width: 105%; width: 105%;

View File

@@ -184,7 +184,7 @@
margin: 0 10px 30px 0; margin: 0 10px 30px 0;
top: 0px; top: 0px;
} }
&:hover { &:hover, &:focus {
background: $blue; background: $blue;
color: $white; color: $white;
} }

View File

File diff suppressed because one or more lines are too long