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
44a5c695
Commit
44a5c695
authored
Feb 16, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more style for main navigation
--HG-- branch : templates-ky-new-nav
parent
f155d26b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
18 deletions
+75
-18
.DS_Store
+0
-0
navigation.html
+0
-1
sass/layout/_header.scss
+71
-13
sass/layout/_layout.scss
+4
-4
No files found.
.DS_Store
View file @
44a5c695
No preview for this file type
navigation.html
View file @
44a5c695
...
...
@@ -7,7 +7,6 @@
</hgroup>
<nav
class=
"${active_page}"
>
<ul
class=
"coursenav"
>
<li
class=
"courseware"
><a
href=
"/courseware"
>
Courseware
</a></li>
<li
class=
"info"
><a
href=
"/info"
>
Course Info
</a></li>
...
...
sass/layout/_header.scss
View file @
44a5c695
div
.header-wrapper
{
// @include linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%));
@include
box-shadow
(
inset
0
-1px
2px
darken
(
$mit-red
,
10
%
));
@include
box-shadow
(
inset
0
-4px
6px
darken
(
$mit-red
,
5
%
));
background
:
$mit-red
;
border-bottom
:
1px
solid
#fff
;
...
...
@@ -13,26 +13,38 @@ div.header-wrapper {
hgroup
{
@extend
.clearfix
;
float
:
left
;
padding-top
:
13px
;
min-width
:
flex-grid
(
3
);
h1
{
border-right
:
1px
solid
darken
(
$mit-red
,
5%
);
@include
inline-block
(
);
color
:
darken
(
$mit-red
,
25%
);
font-size
:
20
px
;
font-size
:
18
px
;
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
();
margin
:
0
;
padding
:
0
lh
(
.5
)
0
0
;
text-shadow
:
0
1px
0
lighten
(
$mit-red
,
10%
);
&
:after
{
color
:
darken
(
$mit-red
,
10%
);
content
:
"•"
;
display
:
inline-block
;
font-size
:
10px
;
letter-spacing
:
-2px
;
padding-left
:
lh
(
.5
);
text-shadow
:
0
;
}
}
h2
{
@include
inline-block
();
margin
:
0
;
padding
:
19px
lh
()
9px
0
;
line-height
:
lh
()
;
font-size
:
16px
;
padding
:
0
lh
()
0px
0
;
text-transform
:
none
;
letter-spacing
:
0
;
text-shadow
:
0
-1px
0
darken
(
$mit-red
,
10%
);
-webkit-font-smoothing
:
antialiased
;
a
{
...
...
@@ -72,15 +84,15 @@ div.header-wrapper {
margin
:
0
;
padding
:
0
;
text-shadow
:
0
-1px
0
darken
(
$mit-red
,
10%
);
max-height
:
52px
;
//fix for firefox
-webkit-font-smoothing
:
antialiased
;
background
:
#501016
;
margin-top
:
10px
;
margin-top
:
5px
;
border-bottom
:
1px
solid
darken
(
#501016
,
10%
);
@include
border-radius
(
3px
3px
0
0
);
@include
box-shadow
(
inset
0
0
0
1px
darken
(
#501016
,
5%
)
,
inset
0
2px
0
lighten
(
#501016
,
5%
));
ul
{
@extend
.clearfix
;
display
:
inline-block
;
margin
:
0
;
li
{
...
...
@@ -91,7 +103,7 @@ div.header-wrapper {
a
{
color
:
#fff
;
text-decoration
:
none
;
padding
:
1
2px
lh
()
6
px
;
padding
:
1
0px
lh
()
8
px
;
display
:
block
;
font-weight
:
bold
;
...
...
@@ -103,6 +115,52 @@ div.header-wrapper {
}
}
}
.active
{
background
:
#F4F4F4
;
color
:
#333
;
text-shadow
:
0
1px
0
#fff
;
border
:
1px
solid
darken
(
#501016
,
10%
);
border-bottom
:
0
;
@include
box-shadow
(
0
2px
0
#f4f4f4
,
inset
0
1px
0
#fff
);
@include
border-radius
(
3px
3px
0
0
);
}
&
.courseware
{
li
.courseware
a
{
@extend
.active
;
}
}
&
.book
{
li
.book
a
{
@extend
.active
;
}
}
&
.info
{
li
.info
a
{
@extend
.active
;
}
}
&
.discussion
{
li
.discussion
a
{
@extend
.active
;
}
}
&
.wiki
{
li
.wiki
a
{
@extend
.active
;
}
}
&
.profile
{
li
.profile
a
{
@extend
.active
;
}
}
}
}
}
sass/layout/_layout.scss
View file @
44a5c695
...
...
@@ -12,15 +12,15 @@ html {
@extend
.clearfix
;
@extend
.wrapper
;
@include
box-sizing
(
border-box
);
@include
border-radius
(
4px
);
overflow
:
hidden
;
background
:
#fff
;
border-bottom
:
1px
solid
#bbb
;
@media
screen
and
(
min-width
:
1400px
)
{
// @include border-radius(3px);
margin-top
:
3px
;
@include
box-shadow
(
0
0
4px
#dfdfdf
);
border
:
1px
solid
#bbb
;
@media
screen
and
(
min-width
:
1400px
)
{
@include
border-radius
(
4px
);
margin-top
:
lh
(
.5
);
}
}
...
...
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