Browse Source

Merge branch 'develop' into testing

pull/354/head
GilbN 3 years ago
parent
commit
b25c964940
  1. 13
      css/base/tautulli/tautulli-base.css
  2. 4
      resources/landing-page/js/scripts.js

13
css/base/tautulli/tautulli-base.css

@ -218,7 +218,8 @@ select,
}
/* Buttons */
.btn-dark {
.btn-dark,
.btn-dark.inactive:hover {
background-color: var(--button-color);
border-color: var(--button-color);
color: var(--button-text);
@ -231,6 +232,7 @@ select,
}
.btn-dark:active,
.btn-dark:active:hover,
.btn-dark.active,
.open>.dropdown-toggle.btn-dark,
.btn-dark.active:focus {
@ -239,6 +241,11 @@ select,
border-color: var(--button-color-hover);
}
.btn-filter.active, .btn-filter.active.focus,
.btn-filter.active:hover {
background-color: var(--button-color-hover) !important;
}
.btn:focus:not(select),
.btn.focus:not(select),
.btn-dark:focus:not(select),
@ -252,10 +259,6 @@ select,
background-color: var(--button-color-hover);
}
.btn-dark.inactive:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.btn-danger.btn-edit {
background-color: rgba(255, 255, 255, 0.25);
}

4
resources/landing-page/js/scripts.js

@ -56,7 +56,7 @@ function injectTheme(theme,container="head") {
} else html_element = document.body;
let themeOption = document.getElementById("theme-option")
let link = themeOption ? themeOption : document.createElement("link");
url = "/css/theme-options"
url = `${window.location.pathname}css/theme-options`
link.type = "text/css";
link.rel = "stylesheet";
link.href = `${url}/${themeLower}.css`;
@ -145,7 +145,7 @@ function fadeOutIn(speed) {
}
function updateMetaThemeColor() {
fetch(`/css/theme-options/${Object.keys(themeOptions)[currentIndex].toLowerCase()}.css`)
fetch(`${window.location.pathname}css/theme-options/${Object.keys(themeOptions)[currentIndex].toLowerCase()}.css`)
.then(response => response.text())
.then(text => {
let re = text.match("--accent-color:.*;")[0]

Loading…
Cancel
Save