Resolve #420
This commit is contained in:
parent
c39c394f36
commit
db7d1a22c8
|
@ -5,8 +5,6 @@ mixin head()
|
||||||
meta(name="author", content="#{siteAuthor}")
|
meta(name="author", content="#{siteAuthor}")
|
||||||
|
|
||||||
title= siteTitle
|
title= siteTitle
|
||||||
link(href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet")
|
|
||||||
//link(href="/css/bootstrap-theme.min.css", rel="stylesheet")
|
|
||||||
link(href="/css/sticky-footer-navbar.css", rel="stylesheet")
|
link(href="/css/sticky-footer-navbar.css", rel="stylesheet")
|
||||||
link(href="/css/cytube.css", rel="stylesheet")
|
link(href="/css/cytube.css", rel="stylesheet")
|
||||||
link(id="usertheme", href="/css/themes/slate.css", rel="stylesheet")
|
link(id="usertheme", href="/css/themes/slate.css", rel="stylesheet")
|
||||||
|
|
5
www/css/themes/bootstrap-theme.min.css
vendored
5
www/css/themes/bootstrap-theme.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -683,7 +683,7 @@ function storeOpts() {
|
||||||
|
|
||||||
function applyOpts() {
|
function applyOpts() {
|
||||||
if ($("#usertheme").attr("href") !== USEROPTS.theme) {
|
if ($("#usertheme").attr("href") !== USEROPTS.theme) {
|
||||||
$("#usertheme").remove();
|
var old = $("#usertheme").attr("id", "usertheme_old");
|
||||||
var theme = USEROPTS.theme;
|
var theme = USEROPTS.theme;
|
||||||
if (theme === "default") {
|
if (theme === "default") {
|
||||||
theme = "/css/themes/slate.css";
|
theme = "/css/themes/slate.css";
|
||||||
|
@ -692,6 +692,7 @@ function applyOpts() {
|
||||||
.attr("type", "text/css")
|
.attr("type", "text/css")
|
||||||
.attr("id", "usertheme")
|
.attr("id", "usertheme")
|
||||||
.attr("href", theme)
|
.attr("href", theme)
|
||||||
|
.attr("onload", "$('#usertheme_old').remove()")
|
||||||
.appendTo($("head"));
|
.appendTo($("head"));
|
||||||
fixWeirdButtonAlignmentIssue();
|
fixWeirdButtonAlignmentIssue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue