Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5b63b176
Commit
5b63b176
authored
Oct 23, 2013
by
Brian Talbot
Committed by
Diana Huang
Oct 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revises semantics and Sass used for skip navigation
parent
20b9258d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
28 deletions
+30
-28
cms/static/sass/_base.scss
+4
-12
cms/templates/base.html
+0
-0
common/static/sass/_mixins.scss
+7
-0
lms/static/sass/base/_base.scss
+3
-14
lms/static/sass/base/_mixins.scss
+7
-0
lms/templates/main.html
+9
-2
No files found.
cms/static/sass/_base.scss
View file @
5b63b176
...
...
@@ -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
;
}
// ====================
...
...
cms/templates/base.html
View file @
5b63b176
This diff is collapsed.
Click to expand it.
common/static/sass/_mixins.scss
View file @
5b63b176
...
...
@@ -240,6 +240,13 @@
padding
:
0
;
position
:
absolute
;
width
:
1px
;
&
:focus
{
@extend
%ui-depth5
;
width
:
auto
;
height
:
auto
;
overflow
:
visible
;
}
}
// extends - content - wrapping
...
...
lms/static/sass/base/_base.scss
View file @
5b63b176
...
...
@@ -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
;
}
lms/static/sass/base/_mixins.scss
View file @
5b63b176
...
...
@@ -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
...
...
lms/templates/main.html
View file @
5b63b176
...
...
@@ -78,7 +78,14 @@
</head>
<body
class=
"<%block name='bodyclass'/>"
>
<div
id=
"skip-link"
><a
href=
"#content-wrapper"
>
Skip to Content
</a></div>
<nav
class=
"nav-skip"
>
<ul
class=
"list-nav"
>
<li
class=
"nav-item"
>
<a
href=
"#content"
>
${_("Skip to this view's content")}
</a>
</li>
</ul>
</nav>
<
%
include
file=
"mathjax_accessible.html"
/>
% if theme_enabled():
...
...
@@ -87,7 +94,7 @@
<
%
include
file=
"navigation.html"
/>
% endif
<section
class=
"content-wrapper"
id=
"content
-wrapper
"
>
<section
class=
"content-wrapper"
id=
"content"
>
${self.body()}
<
%
block
name=
"bodyextra"
/>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment