Separate edX / Open edX footer.

We need to use an Open edX footer by default (and that's what all non-edx.org
instances should base their footer off) and only use the edX footer on
edx.org.

This commit uses `SITE_NAME` to determine which footer to use.

Sites using theming or micro-sites with a `SITE_NAME` not ending in `edx.org`
should not be affected.
This commit is contained in:
James Tauber
2014-05-13 17:08:46 -04:00
parent 19a3410b4b
commit 3cb8780284
11 changed files with 257 additions and 101 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -84,63 +84,105 @@
.references {
margin: -10px 0 0 0;
width: flex-grid(4,12);
float: right;
display: inline-block;
}
.nav-social {
margin: 0;
text-align: right;
.wrapper-logo {
margin: ($baseline*.75) 0;
li {
display: inline-block;
a {
display: inline-block;
&:last-child {
margin-right: 0;
}
a {
display: block;
&:hover, &:focus, &:active {
border: none;
}
}
img {
display: block;
}
}
}
.copyright {
margin: -2px 0 8px 0;
font-size: em(11);
color: tint($m-gray,50%);
text-align: right;
}
.nav-legal {
@include clearfix();
text-align: right;
li {
display: inline-block;
font-size: em(11);
a {
display: block;
}
}
.nav-legal-01 a {
&:after {
margin-left: 5px;
content: "-";
}
&:hover {
border-bottom: 0;
}
}
}
.copyright {
margin: -2px 0 8px 0;
font-size: em(11);
color: $gray-l2;
text-align: left;
}
.nav-legal {
@include clearfix();
text-align: left;
li {
display: inline-block;
font-size: em(11);
a {
display: block;
}
}
.nav-legal-01 a {
&:after {
margin-left: 5px;
content: "-";
}
}
}
.nav-social {
margin: 0;
text-align: right;
li {
display: inline-block;
&:last-child {
margin-right: 0;
}
a {
display: block;
&:hover, &:focus, &:active {
border: none;
}
}
img {
display: block;
}
}
}
// platform Open edX logo and link
.powered-by {
width: flex-grid(3,12);
display: inline-block;
vertical-align: bottom;
text-align: right;
a {
display: inline-block;
&:hover {
border-bottom: none;
}
}
}
}
// edx theme overrides
&.edx-footer {
footer {
.copyright {
text-align: right;
}
.nav-legal {
text-align: right;
}
}
}
}