reverting changes
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
--text-muted: #bfbfbf;
|
--text-muted: #bfbfbf;
|
||||||
--border-white: #ffffff;
|
--border-white: #ffffff;
|
||||||
|
|
||||||
/* COLORS */
|
/* COLORS - Accent (use sparingly!) */
|
||||||
--accent-blue: #4da3ff;
|
--accent-blue: #4da3ff;
|
||||||
--accent-blue-dim: #3d8ace;
|
--accent-blue-dim: #3d8ace;
|
||||||
--accent-blue-subtle: rgba(77, 163, 255, 0.15);
|
--accent-blue-subtle: rgba(77, 163, 255, 0.15);
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
--letter-spacing-wider: 0.16em;
|
--letter-spacing-wider: 0.16em;
|
||||||
--letter-spacing-widest: 0.18em;
|
--letter-spacing-widest: 0.18em;
|
||||||
|
|
||||||
/* SPACING SCALE */
|
/* SPACING SCALE (consistent increments) */
|
||||||
--space-xs: 0.25rem; /* 4px */
|
--space-xs: 0.25rem; /* 4px */
|
||||||
--space-sm: 0.5rem; /* 8px */
|
--space-sm: 0.5rem; /* 8px */
|
||||||
--space-md: 1rem; /* 16px */
|
--space-md: 1rem; /* 16px */
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
--space-3xl: 3rem; /* 48px */
|
--space-3xl: 3rem; /* 48px */
|
||||||
|
|
||||||
/* BORDERS & RADIUS */
|
/* BORDERS & RADIUS */
|
||||||
--border-radius: 4px;
|
--border-radius: 4px; /* consistent everywhere */
|
||||||
--border-radius-lg: 10px;
|
--border-radius-lg: 10px; /* only for home title box */
|
||||||
--border-width: 1px;
|
--border-width: 1px;
|
||||||
--border-color-subtle: rgba(255, 255, 255, 0.18);
|
--border-color-subtle: rgba(255, 255, 255, 0.18);
|
||||||
--border-color-normal: rgba(255, 255, 255, 0.35);
|
--border-color-normal: rgba(255, 255, 255, 0.35);
|
||||||
@@ -1210,37 +1210,28 @@ blockquote {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================
|
/* ============================================================================
|
||||||
GLOBAL MOBILE OVERFLOW FIX
|
GLOBAL MOBILE OVERFLOW FIX
|
||||||
============================================================================ */
|
============================================================================ */
|
||||||
|
|
||||||
|
/* Prevents ANY element from expanding the page width horizontally.
|
||||||
|
This is the single most important rule for the zoom-out bug on mobile. */
|
||||||
html {
|
html {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
max-width: 100vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
overflow-x: hidden;
|
|
||||||
max-width: 100vw;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
main,
|
/* Catch-all: any block element that might overflow */
|
||||||
main > *:not(.dropdown-menu):not(.modal):not(#scroll-to-top) {
|
*,
|
||||||
max-width: 100%;
|
*::before,
|
||||||
}
|
*::after {
|
||||||
|
box-sizing: 100%;
|
||||||
img:not(#scroll-to-top *) {
|
box-sizing: border-box;
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Soakies page uses inline <figure> elements with style="display: inline-block; max-width: 75%"
|
||||||
|
These don't respect overflow-x on their parent. Force them to block on mobile. */
|
||||||
figure {
|
figure {
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
@@ -1250,7 +1241,7 @@ figure {
|
|||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The grid figures on Soakies (side-by-side photos) stack on mobile */
|
||||||
figure[style*="grid-template-columns"] {
|
figure[style*="grid-template-columns"] {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
@@ -1269,28 +1260,30 @@ figure {
|
|||||||
SCROLL TO TOP - FULL STYLING (all viewports)
|
SCROLL TO TOP - FULL STYLING (all viewports)
|
||||||
============================================================================ */
|
============================================================================ */
|
||||||
|
|
||||||
#scroll-to-top {
|
#scroll-to-top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 4.5rem;
|
bottom: 4.5rem;
|
||||||
right: 1rem;
|
right: 1rem;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#scroll-to-top:hover {
|
#scroll-to-top:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================
|
/* ============================================================================
|
||||||
LONG LINKS & BIBLIOGRAPHY - OVERFLOW FIX
|
LONG LINKS & BIBLIOGRAPHY - OVERFLOW FIX
|
||||||
============================================================================ */
|
============================================================================ */
|
||||||
|
|
||||||
|
/* Global link wrapping - catches everything */
|
||||||
a {
|
a {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bibliography section - Jekyll renders ### Bibliography as h3, content follows as <p> tags */
|
||||||
.bibliography,
|
.bibliography,
|
||||||
h3 + ol,
|
h3 + ol,
|
||||||
h3 + ul,
|
h3 + ul,
|
||||||
@@ -1301,6 +1294,7 @@ h3 + p {
|
|||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Footnotes (extends your existing fix to be more thorough) */
|
||||||
.footnotes {
|
.footnotes {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@@ -1320,18 +1314,20 @@ h3 + p {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Jekyll footnote markers */
|
||||||
.footnote-ref,
|
.footnote-ref,
|
||||||
.footnote-backref {
|
.footnote-backref {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Any <p> or <li> that contains long URLs */
|
||||||
p, li, td {
|
p, li, td {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tables */
|
/* Tables - prevent horizontal overflow */
|
||||||
table {
|
table {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user