diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 852be14801..d724af368d 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -826,22 +826,14 @@ hr.divide { word-wrap: break-word; } +// ui - semantic + visual divider hr.divider { @extend %cont-text-sr; } -/* show skip links on focus */ -#skip-link a{ - position:absolute; - &:focus { - width: auto; - height: auto; - overflow: visible; - background-color: #fff; - border: 2px solid black; - padding: 3px; - z-index: 1005; - } +// ui - skipnav +.nav-skip { + @extend %cont-text-sr; } // ==================== diff --git a/cms/templates/base.html b/cms/templates/base.html index 734e4b5715..ce6522a000 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -29,213 +29,215 @@
- - - + }; + + -## js templates - + ## js templates + % if context_course: - + % endif diff --git a/common/static/sass/_mixins.scss b/common/static/sass/_mixins.scss index 3c53f0f4cf..8e0971acef 100644 --- a/common/static/sass/_mixins.scss +++ b/common/static/sass/_mixins.scss @@ -240,6 +240,13 @@ padding: 0; position: absolute; width: 1px; + + &:focus { + @extend %ui-depth5; + width: auto; + height: auto; + overflow: visible; + } } // extends - content - wrapping diff --git a/lms/static/sass/base/_base.scss b/lms/static/sass/base/_base.scss index 1e2383cb58..b23f1855dc 100644 --- a/lms/static/sass/base/_base.scss +++ b/lms/static/sass/base/_base.scss @@ -286,18 +286,7 @@ mark { height: 150px; } - -/* show skip links on focus */ -#skip-link a{ - position:absolute; - &:focus { - width: auto; - height: auto; - overflow: visible; - background-color: #fff; - border: 2px solid black; - padding: 3px; - z-index: 1005; - } +// ui - skipnav +.nav-skip { + @extend %text-sr; } - diff --git a/lms/static/sass/base/_mixins.scss b/lms/static/sass/base/_mixins.scss index 5a5a4fde94..c2c45dd6e0 100644 --- a/lms/static/sass/base/_mixins.scss +++ b/lms/static/sass/base/_mixins.scss @@ -83,6 +83,13 @@ padding: 0; position: absolute; width: 1px; + + &:focus { + @extend %ui-depth5; + width: auto; + height: auto; + overflow: visible; + } } // extends - UI - removes list styling/spacing when using uls, ols for navigation and less content-centric cases diff --git a/lms/templates/main.html b/lms/templates/main.html index 41d7266480..e06dc02303 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -78,7 +78,14 @@ - + + <%include file="mathjax_accessible.html" /> % if theme_enabled(): @@ -87,7 +94,7 @@ <%include file="navigation.html" /> % endif -