From 89252ec12d0af8cef8a0c45ce7f3ff0205f27162 Mon Sep 17 00:00:00 2001
From: David Baumgold
Date: Thu, 22 Jan 2015 12:59:18 -0500
Subject: [PATCH 1/4] Put Open edX logo in LMS edx.org footer
---
lms/static/sass/shared/_footer.scss | 23 ++++++++++++++++++++++-
lms/templates/footer-edx-new.html | 6 ++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/lms/static/sass/shared/_footer.scss b/lms/static/sass/shared/_footer.scss
index 0734248493..e2b8d25a25 100644
--- a/lms/static/sass/shared/_footer.scss
+++ b/lms/static/sass/shared/_footer.scss
@@ -307,14 +307,35 @@ $edx-footer-bg-color: rgb(252,252,252);
@extend %edx-footer-title;
}
- .footer-about-logo {
+ .footer-about-logo, .footer-about-openedx-logo {
margin-bottom: $edx-footer-spacing;
+
+ img {
+ height: 47px;
+ }
+
+ a {
+ display: block;
+
+ &:hover {
+ border-bottom: 0;
+ }
+ }
+ }
+
+ .footer-about-logo {
+ float: left;
+ }
+
+ .footer-about-openedx-logo {
+ float: right;
}
.footer-about-copy {
@extend %t-copy-sub1;
margin-bottom: $edx-footer-spacing;
color: rgb(61, 62, 63);
+ clear: both;
p {
// NOTE: needed for poor LMS span styling
diff --git a/lms/templates/footer-edx-new.html b/lms/templates/footer-edx-new.html
index af6a9a0c91..5072e66700 100644
--- a/lms/templates/footer-edx-new.html
+++ b/lms/templates/footer-edx-new.html
@@ -43,6 +43,12 @@
+
+
From 67168869f5edf94924f94c456d260bf0a21b715c Mon Sep 17 00:00:00 2001
From: Brian Talbot
Date: Fri, 13 Feb 2015 11:32:54 -0500
Subject: [PATCH 3/4] Adjust styling for Open edX footer details
---
cms/static/sass/elements/_footer.scss | 40 ++++++++++++----
cms/templates/widgets/footer.html | 67 +++++++++++++++------------
lms/static/sass/shared/_footer.scss | 4 +-
lms/templates/footer.html | 8 ++--
4 files changed, 76 insertions(+), 43 deletions(-)
diff --git a/cms/static/sass/elements/_footer.scss b/cms/static/sass/elements/_footer.scss
index 931c6d7aa9..48cddf308b 100644
--- a/cms/static/sass/elements/_footer.scss
+++ b/cms/static/sass/elements/_footer.scss
@@ -16,9 +16,13 @@
margin: 0 auto;
color: $gray-l1;
+ .footer-content-primary {
+ @include clearfix();
+ }
+
.colophon {
width: flex-grid(4, 12);
- float: left;
+ @include float(left);
margin-right: flex-gutter(2);
}
@@ -32,15 +36,15 @@
.nav-peripheral {
width: flex-grid(6, 12);
- float: right;
- text-align: right;
+ @include float(right);
+ @include text-align(right);
.nav-item {
display: inline-block;
- margin-right: ($baseline/4);
+ @include margin-right($baseline/4);
&:last-child {
- margin-right: 0;
+ @include margin-right(0);
}
a {
@@ -59,17 +63,37 @@
}
}
+ .footer-content-secondary {
+ @include clearfix();
+ margin-top: $baseline;
+ }
+
+ .footer-about-copyright, .footer-about-openedx {
+ display: inline-block;
+ vertical-align: middle;
+ }
+
+ // platform trademarks
+ .footer-about-copyright {
+ width: flex-grid(4, 12);
+ @include float(left);
+ margin-right: flex-gutter(2);
+ }
+
// platform Open edX logo and link
- .powered-by {
+ .footer-about-openedx {
@include float(right);
width: flex-grid(3,12);
- display: inline-block;
- vertical-align: bottom;
@include text-align(right);
a {
display: inline-block;
+ img {
+ display: block;
+ width: ($baseline* 6);
+ }
+
&:hover {
border-bottom: none;
}
diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html
index aeb3aba10e..ae75880557 100644
--- a/cms/templates/widgets/footer.html
+++ b/cms/templates/widgets/footer.html
@@ -3,37 +3,46 @@