Skip to content

Commit

Permalink
Merge pull request #3491 from davidfischer/alabaster-footer-formatting
Browse files Browse the repository at this point in the history
Small formatting change to the Alabaster footer
  • Loading branch information
ericholscher authored Jan 10, 2018
2 parents d63caef + 9a9ba0e commit 76635e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions readthedocs/core/static-src/core/js/sponsorship.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,16 @@ Promo.prototype.place_promo = function (selector, promo_class) {
Promo.prototype.get_alabaster_promo_selector = function () {
// Return a jQuery selector where the promo goes on the Alabaster theme
var self = this,
selector;
selector,
wrapper;

if (self.display_type === constants.PROMO_TYPES.FOOTER) {
selector = $('<div />')
wrapper = $('<div />')
.attr('class', 'rtd-pro-footer-wrapper body')
.appendTo('div.bodywrapper');
$('<hr />').insertBefore(selector);
$('<hr />').insertAfter(selector);
$('<hr />').appendTo(wrapper);
selector = $('<div />').appendTo(wrapper);
$('<hr />').appendTo(wrapper);
} else {
selector = $('div.sphinxsidebar > div.sphinxsidebarwrapper');
}
Expand Down
Loading

0 comments on commit 76635e6

Please sign in to comment.