Skip to content

Commit

Permalink
Focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Rodriguez committed Feb 12, 2016
1 parent 1394219 commit 3655775
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
7 changes: 5 additions & 2 deletions cms/static/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,13 @@ hr.divider {
border-bottom: 1px solid $gray-l4;
padding: ($baseline*0.75) ($baseline/2);

&:focus, &:active {
&:focus,
&:active {
position: relative;
top: auto;
width: auto;
height: auto;
margin: 0;
}
}

Expand Down Expand Up @@ -722,4 +726,3 @@ hr.divider {
color: $gray-l1;
}
}

6 changes: 5 additions & 1 deletion cms/static/sass/elements/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ nav {
border-bottom: 1px solid $gray-l4;
padding: ($baseline*0.75) ($baseline/2);

&:focus, &:active {
&:focus,
&:active {
position: relative;
top: auto;
width: auto;
height: auto;
margin: 0;
}
}

Expand Down
10 changes: 5 additions & 5 deletions lms/static/sass/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ a, a:visited {
margin: 0 auto;
background: $content-wrapper-bg;

&:focus {
outline: none;
}

@media print {
padding-bottom: 0;
}
Expand Down Expand Up @@ -349,8 +345,12 @@ mark {
border-bottom: 1px solid $border-color-4;
padding: ($baseline*0.75) ($baseline/2);

&:focus, &:active {
&:focus,
&:active {
position: relative;
top: auto;
width: auto;
height: auto;
margin: 0;
}
}
2 changes: 1 addition & 1 deletion lms/templates/wiki/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div class="article-wrapper">

<article class="main-article" id="main-article">
<article class="main-article" id="main-article" tabindex="-1">
{% if selected_tab != "edit" %}
<h1>{{ article.current_revision.title }}</h1>

Expand Down

0 comments on commit 3655775

Please sign in to comment.