Skip to content

Commit

Permalink
[WEBDEV-419][WEBDEV-424][WEBDEV-429] Form element styling updates
Browse files Browse the repository at this point in the history
  • Loading branch information
James Vinter authored and jakemulley committed Dec 8, 2017
1 parent 7290743 commit 4f20498
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/stylesheets/elements/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ input {
&[type="radio"]:not(:checked),
&[type="checkbox"]:checked,
&[type="checkbox"]:not(:checked) {
position: absolute;
left: -9999px;
width: 2px;
height: 2px;
opacity: 0;
}
&[type="radio"]:checked + label,
&[type="radio"]:not(:checked) + label,
Expand Down Expand Up @@ -90,7 +91,7 @@ input {
height: 38px;
}
border: 2px solid $grey-1;
background: transparent;
background: $white;
}
&[type="radio"]:checked + label:before,
&[type="radio"]:not(:checked) + label:before {
Expand Down Expand Up @@ -143,7 +144,7 @@ input {
}
&[type="radio"]:focus + label::before,
&[type="checkbox"]:focus + label::before {
box-shadow: 0 0 0 3px $caution;
box-shadow: 0 0 0 3px $grey-2;
}
}

Expand All @@ -167,14 +168,20 @@ select:focus,
textarea:focus {
position: relative;
z-index: 10;
outline: 3px solid $caution;
outline-offset: -3px;
}

input:focus,
select:focus,
textarea:focus {
outline: 3px solid $grey-2;
}

button:focus,
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 3px solid $caution;
outline: 3px solid $mint;
outline-offset: -3px;
}

Expand Down

0 comments on commit 4f20498

Please sign in to comment.