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
de127775
Commit
de127775
authored
Oct 24, 2013
by
Brian Talbot
Committed by
Diana Huang
Oct 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplifying semantic and stylistic properties of skip nav UI
parent
43bdb5da
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
30 deletions
+35
-30
cms/static/sass/_base.scss
+17
-1
cms/templates/base.html
+1
-7
common/static/sass/_mixins.scss
+0
-7
lms/static/sass/base/_base.scss
+16
-1
lms/static/sass/base/_mixins.scss
+0
-7
lms/templates/main.html
+1
-7
No files found.
cms/static/sass/_base.scss
View file @
de127775
...
...
@@ -833,7 +833,23 @@ hr.divider {
// ui - skipnav
.nav-skip
{
@extend
%cont-text-sr
;
@include
font-size
(
13
);
display
:
block
;
position
:
absolute
;
left
:
0px
;
top
:
-
(
$baseline
*
30
);
width
:
1px
;
height
:
1px
;
overflow
:
hidden
;
background
:
$white
;
border-bottom
:
1px
solid
$gray-l4
;
padding
:
(
$baseline
*
0
.75
)
(
$baseline
/
2
);
&
:focus
,
&
:active
{
position
:
static
;
width
:
auto
;
height
:
auto
;
}
}
// ====================
...
...
cms/templates/base.html
View file @
de127775
...
...
@@ -30,13 +30,7 @@
</head>
<body
class=
"<%block name='bodyclass'></%block> hide-wip"
>
<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>
<a
class=
"nav-skip"
href=
"#content"
>
${_("Skip to this view's content")}
</a>
<script
type=
"text/javascript"
>
window
.
baseUrl
=
"${settings.STATIC_URL}"
;
...
...
common/static/sass/_mixins.scss
View file @
de127775
...
...
@@ -240,13 +240,6 @@
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 @
de127775
...
...
@@ -288,5 +288,20 @@ mark {
// ui - skipnav
.nav-skip
{
@extend
%text-sr
;
display
:
block
;
position
:
absolute
;
left
:
0px
;
top
:
-
(
$baseline
*
30
);
width
:
1px
;
height
:
1px
;
overflow
:
hidden
;
background
:
$white
;
border-bottom
:
1px
solid
$border-color-4
;
padding
:
(
$baseline
*
0
.75
)
(
$baseline
/
2
);
&
:focus
,
&
:active
{
position
:
static
;
width
:
auto
;
height
:
auto
;
}
}
lms/static/sass/base/_mixins.scss
View file @
de127775
...
...
@@ -83,13 +83,6 @@
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 @
de127775
...
...
@@ -78,13 +78,7 @@
</head>
<body
class=
"<%block name='bodyclass'/>"
>
<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>
<a
class=
"nav-skip"
href=
"#content"
>
${_("Skip to this view's content")}
</a>
<
%
include
file=
"mathjax_accessible.html"
/>
...
...
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