mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-25 11:15:38 +00:00
fix: Implement stylemods again in 3k
This commit is contained in:
@@ -230,6 +230,8 @@ function updateHeaderFromInit() {
|
||||
showLoginLink.value = false
|
||||
}
|
||||
|
||||
applyStyleMods()
|
||||
|
||||
renderNavigation()
|
||||
applyTheme()
|
||||
|
||||
@@ -366,6 +368,18 @@ function applyTheme() {
|
||||
}
|
||||
}
|
||||
|
||||
function applyStyleMods() {
|
||||
if (!window.initResponse || !window.initResponse.styleMods) {
|
||||
return
|
||||
}
|
||||
|
||||
for (const styleMod of window.initResponse.styleMods) {
|
||||
if (styleMod) {
|
||||
document.body.classList.add(styleMod)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleThemeDialogClick(event) {
|
||||
if (event.target === themeDialog.value) {
|
||||
closeThemeDialog()
|
||||
|
||||
@@ -38,4 +38,28 @@ div.buttons button svg {
|
||||
|
||||
section.small {
|
||||
border-radius: .4em;
|
||||
}
|
||||
|
||||
.sm-side-icons .action-button button {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sm-imageicons-fullwidth .action-button button .icon img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sm-transparent-header header {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.sm-transparent-header #sidebar-button {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.sm-transparent-footer footer span {
|
||||
background-color: transparent;
|
||||
}
|
||||
Reference in New Issue
Block a user