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
34ef0ec8
Commit
34ef0ec8
authored
Feb 06, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added styles for collapsable navigation
parent
3e7afe7f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
22 deletions
+50
-22
navigation.html
+4
-2
sass/_layout.scss
+43
-19
sass/_textbook.scss
+3
-1
No files found.
navigation.html
View file @
34ef0ec8
<
%
page
args=
"active_page"
/>
<div
class=
"header-wrapper"
>
<header>
<h1><em>
MITx
</em></h1>
<hgroup>
<h1><em>
MITx
</em></h1>
<h2><a
href=
"/courseware"
>
Circuits and Electronics
</a></h2>
</hgroup>
<nav
class=
"${active_page}"
>
<h2><a
href=
"/courseware"
>
Circuits and Electronics
</a></h2>
<ul
class=
"coursenav"
>
<li
class=
"courseware"
><a
href=
"/courseware"
>
Courseware
</a></li>
...
...
sass/_layout.scss
View file @
34ef0ec8
...
...
@@ -20,33 +20,29 @@ html {
@include
box-sizing
(
border-box
);
padding
:
0
$body-line-height
;
h1
{
border-right
:
1px
solid
darken
(
$mit-red
,
5%
);
color
:
#000
;
display
:
block
;
hgroup
{
float
:
left
;
font-size
:
20px
;
font-weight
:
800
;
margin
:
0
lh
()
0
0
;
padding
:
17px
lh
()
14px
0
;
text-shadow
:
0
1px
0
lighten
(
$mit-red
,
10%
);
line-height
:
lh
();
}
@extend
.clearfix
;
nav
{
float
:
left
;
display
:
block
;
margin
:
0
;
padding
:
0
;
text-shadow
:
0
-1px
0
darken
(
$mit-red
,
10%
);
-webkit-font-smoothing
:
antialiased
;
h1
{
border-right
:
1px
solid
darken
(
$mit-red
,
5%
);
color
:
darken
(
$mit-red
,
20%
);
font-size
:
20px
;
font-weight
:
800
;
margin
:
0
lh
()
0
0
;
padding
:
17px
lh
()
14px
0
;
text-shadow
:
0
1px
0
lighten
(
$mit-red
,
10%
);
line-height
:
lh
();
@include
inline-block
();
}
h2
{
float
:
left
;
@include
inline-block
()
;
margin
:
0
lh
()
0
0
;
padding
:
19px
lh
()
9px
0
;
line-height
:
lh
();
border-right
:
1px
solid
darken
(
$mit-red
,
5%
);
-webkit-font-smoothing
:
antialiased
;
a
{
color
:
#fff
;
...
...
@@ -58,6 +54,34 @@ html {
}
}
@media
screen
and
(
max-width
:
920px
)
{
border-bottom
:
1px
solid
darken
(
$mit-red
,
5%
);
display
:
block
;
float
:
none
;
h1
{
float
:
left
;
border
:
0
;
}
h2
{
float
:
right
;
border
:
0
;
margin-right
:
0
;
padding-right
:
0
;
}
}
}
nav
{
float
:
left
;
display
:
block
;
margin
:
0
;
padding
:
0
;
text-shadow
:
0
-1px
0
darken
(
$mit-red
,
10%
);
-webkit-font-smoothing
:
antialiased
;
ul
{
@extend
.clearfix
;
display
:
inline-block
;
...
...
sass/_textbook.scss
View file @
34ef0ec8
...
...
@@ -48,6 +48,7 @@ div.book-wrapper {
a
{
@extend
.block-link
;
padding
:
14px
;
}
ul
{
...
...
@@ -74,10 +75,11 @@ div.book-wrapper {
}
section
.page
{
text-align
:
center
;
img
{
border
:
1px
solid
$border-color
;
max-width
:
100%
;
min-width
:
100%
;
}
}
}
...
...
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