tweaked UI

This commit is contained in:
2026-11-15 17:55:20 -08:00
parent da2cfef1ac
commit 03d468cb8a
9 changed files with 44 additions and 550 deletions

View File

@@ -2337,20 +2337,6 @@ body:not(.is-home) main.prose {
zoom: var(--text-scale, 1);
}
body.no-deco .cobweb,
body.no-deco .spider-container,
body.no-deco .snowfall,
body.no-deco .leaf-fall,
body.no-deco .light-string {
display: none !important;
}
body.no-video .video-bg,
body.no-video .body-blurred-video,
body.no-video .header-video {
display: none !important;
}
body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
@@ -2814,12 +2800,14 @@ body.no-motion *::after {
will-change: top, left, width, height, transform;
}
main.prose img {
.vyla-banner {
cursor: zoom-in;
transition: opacity 0.2s ease, transform 0.2s ease;
max-width: 400px;
border-radius: 35px;
}
main.prose img:hover {
.vyla-banner:hover {
opacity: 0.95;
}
@@ -3317,13 +3305,6 @@ main.prose li {
margin: 4px 0;
}
main.prose img {
max-width: 100%;
border-radius: 16px;
display: block;
margin: 20px 0;
}
main.prose img.vyla-banner {
width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@@ -266,20 +266,6 @@ body:not(.is-home) main.prose {
zoom: var(--text-scale, 1);
}
body.no-deco .cobweb,
body.no-deco .spider-container,
body.no-deco .snowfall,
body.no-deco .leaf-fall,
body.no-deco .light-string {
display: none !important;
}
body.no-video .video-bg,
body.no-video .body-blurred-video,
body.no-video .header-video {
display: none !important;
}
body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {

View File

@@ -445,12 +445,14 @@
will-change: top, left, width, height, transform;
}
main.prose img {
.vyla-banner {
cursor: zoom-in;
transition: opacity 0.2s ease, transform 0.2s ease;
max-width: 400px;
border-radius: 35px;
}
main.prose img:hover {
.vyla-banner:hover {
opacity: 0.95;
}

View File

@@ -81,13 +81,6 @@ main.prose li {
margin: 4px 0;
}
main.prose img {
max-width: 100%;
border-radius: 16px;
display: block;
margin: 20px 0;
}
main.prose img.vyla-banner {
width: 100%;
}

View File

@@ -28,6 +28,11 @@ var THEME_MEDIA = {
light: "/src/assets/images/wallpaper-media/ocean.webp"
};
var THEME_MEDIA_MOBILE = {
dark: "/src/assets/images/wallpaper-media/tree-mobile.webp",
light: "/src/assets/images/wallpaper-media/ocean.webp"
};
var SITE_TREE = [
{
"id": "vyla",
@@ -258,7 +263,8 @@ function applyTheme() {
applyPreferences();
var targetSrc = THEME_MEDIA[theme] || THEME_MEDIA.dark;
var isMobile = window.innerWidth <= 768;
var targetSrc = isMobile ? (THEME_MEDIA_MOBILE[theme] || THEME_MEDIA_MOBILE.dark) : (THEME_MEDIA[theme] || THEME_MEDIA.dark);
var videosOff = getPref("video", "on") === "off";
var isImageSource = /\.(jpe?g|png|gif|webp|avif|svg)(\?.*)?$/i.test(targetSrc || "");
@@ -490,9 +496,7 @@ function applyAccent(hex) {
}
function applyPreferences() {
document.body.classList.toggle("no-video", getPref("video", "on") === "off");
document.body.classList.toggle("no-motion", getPref("motion", "on") === "off");
document.body.classList.toggle("no-deco", getPref("deco", "on") === "off");
var scale = parseInt(getPref("text", "100"), 10);
if (!(scale >= 85 && scale <= 130)) scale = 100;
document.documentElement.style.setProperty("--text-scale", String(scale / 100));
@@ -2238,6 +2242,10 @@ document.addEventListener("DOMContentLoaded", function () {
});
}
window.addEventListener("resize", function () {
applyTheme();
});
applyTheme();
buildThemeControls();
buildSearch();