Update Mobile Sizing

This commit is contained in:
sistav committed 2026-06-01 18:56:09 -04:00
1 parent 602dfbe54d
commit 29cbc8f508
2 files changed
+31 -14

No files matched your search

+29 -13
View File
@@ -62,7 +62,7 @@ article h2, section h2 {
.cat-box > h2 { text-align:center; margin-bottom:1.25rem; }
.cat-box > h2::before, .cat-box > h2::after { content:'\2756'; color:#5a2420; margin:0 .6rem; font-size:.8rem; }
.link-list { display:flex; flex-direction:column; gap:.25rem; margin:0 -.5rem; }
.link-list { display:flex; flex-direction:column; gap:.6rem; margin:0 -.5rem; }
.glow-link {
display:block; padding:.6rem .85rem; border-radius:4px;
transition:background-color .15s ease, box-shadow .2s ease;
@@ -76,20 +76,31 @@ article h2, section h2 {
min-width:0; overflow-wrap:anywhere;
transition:color .15s ease, text-shadow .2s ease; }
.glow-link:hover .lk-title { color:#e0483b; text-shadow:0 0 10px rgba(224,72,59,.6); }
.lk-domain { color:#8f897e; font-size:1.125rem; font-family:var(--mono); font-style:italic; overflow-wrap:anywhere; }
.lk-note { display:block; color:#e8e2d8; font-size:1.25rem; margin-top:.125rem; }
.lk-domain { color:#8f897e; font-size:1rem; font-family:var(--mono); font-style:italic; overflow-wrap:anywhere; }
.lk-note { display:block; color:#e8e2d8; font-size:1.125rem; margin-top:.125rem; }
@media (min-width:640px) {
.link-list { gap:.25rem; }
.lk-row { flex-direction:row; align-items:baseline; justify-content:space-between; gap:.5rem; }
.lk-domain { flex-shrink:0; }
.lk-domain { font-size:1.125rem; flex-shrink:0; }
.lk-note { font-size:1.25rem; }
}
.log-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem;
.log-head { display:flex; flex-direction:column; gap:.25rem;
border-bottom:1px solid #242424; padding-bottom:.75rem; margin-bottom:1.25rem; }
.log-date { color:#8f897e; font-size:1.125rem; font-family:var(--mono); font-style:italic; flex-shrink:0; }
.log-head h2 { min-width:0; overflow-wrap:anywhere; text-align:center; }
.log-date { color:#8f897e; font-size:1rem; font-family:var(--mono); font-style:italic; text-align:center; }
@media (min-width:640px) {
.log-head { flex-direction:row; align-items:baseline; justify-content:space-between; gap:1rem; }
.log-head h2 { text-align:left; }
.log-date { font-size:1.125rem; flex-shrink:0; text-align:left; }
}
.log-fields { display:flex; flex-direction:column; gap:.625rem; }
.log-row { display:grid; grid-template-columns:140px 1fr; column-gap:1.5rem; align-items:baseline; }
.log-key { color:#e8e2d8; font-size:1.25rem; }
.log-val { color:#e8e2d8; font-size:1.25rem; }
.log-key { color:#e8e2d8; font-size:1.125rem; }
.log-val { color:#e8e2d8; font-size:1.125rem; }
@media (min-width:640px) {
.log-key, .log-val { font-size:1.25rem; }
}
.card {
display:block; border:1px solid #242424; background:#0c0c0c; padding:1.5rem;
@@ -99,13 +110,18 @@ article h2, section h2 {
border-color:#c0392b; background:#111;
box-shadow:0 0 22px rgba(192,57,43,.32), inset 0 0 0 1px rgba(192,57,43,.5);
}
.card-row { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.card-title { font-family:'Cinzel', serif; font-size:1.25rem; font-weight:600; color:#e8e2d8;
.card-row { display:flex; flex-direction:column; gap:.5rem; }
.card-title { font-family:'Cinzel', serif; font-size:1.125rem; font-weight:600; color:#e8e2d8;
margin-bottom:.25rem; transition:color .15s ease; }
.card:hover .card-title { color:#c0392b; }
.card-note { color:#e8e2d8; font-size:1.25rem; line-height:1.625; }
.card-host { color:#8f897e; font-size:1.125rem; font-family:var(--mono); font-style:italic;
flex-shrink:0; margin-top:.25rem; }
.card-note { color:#e8e2d8; font-size:1.125rem; line-height:1.625; }
.card-host { color:#8f897e; font-size:1rem; font-family:var(--mono); font-style:italic; }
@media (min-width:640px) {
.card-row { flex-direction:row; align-items:flex-start; justify-content:space-between; gap:1rem; }
.card-title { font-size:1.25rem; }
.card-note { font-size:1.25rem; }
.card-host { font-size:1.125rem; flex-shrink:0; margin-top:.25rem; }
}
.empty { color:#e8e2d8; }
+2 -1
View File
@@ -27,7 +27,8 @@ include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
if (!img) return;
function size() {
if (!img.naturalWidth) return;
var target = Math.min(window.innerWidth, window.innerHeight) * 0.46;
var factor = window.innerWidth < 640 ? 0.72 : 0.46;
var target = Math.min(window.innerWidth, window.innerHeight) * factor;
var scale = target / Math.max(img.naturalWidth, img.naturalHeight);
img.style.width = Math.round(img.naturalWidth * scale) + 'px';
img.style.height = Math.round(img.naturalHeight * scale) + 'px';