Update styles.css
This commit is contained in:
committed by
GitHub
parent
1897be3318
commit
fd41eee6e4
+26
-38
@@ -1,6 +1,5 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
THE FOLD WITHIN — Self-Organizing Framework v2.4.1
|
The Fold Within — Styles v2.5 Stable Render
|
||||||
(Responsive fullscreen + mobile layout fix)
|
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -16,7 +15,6 @@ html,body {
|
|||||||
background:var(--bg);color:var(--fg);
|
background:var(--bg);color:var(--fg);
|
||||||
font-family:system-ui,sans-serif;
|
font-family:system-ui,sans-serif;
|
||||||
-webkit-font-smoothing:antialiased;
|
-webkit-font-smoothing:antialiased;
|
||||||
scroll-behavior:smooth;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Topbar */
|
/* Topbar */
|
||||||
@@ -30,66 +28,60 @@ html,body {
|
|||||||
.topbar a:hover{color:var(--fg);}
|
.topbar a:hover{color:var(--fg);}
|
||||||
.topbar button{
|
.topbar button{
|
||||||
font-size:24px;background:transparent;color:var(--accent);
|
font-size:24px;background:transparent;color:var(--accent);
|
||||||
border:none; padding:4px 8px; cursor:pointer; transition:color .2s;
|
border:none;padding:4px 8px;cursor:pointer;
|
||||||
}
|
}
|
||||||
.topbar button:hover{color:var(--fg);}
|
.topbar button:hover{color:var(--fg);}
|
||||||
|
|
||||||
/* Sidebar & overlay */
|
/* Sidebar */
|
||||||
.sidebar{
|
.sidebar{
|
||||||
position:fixed;top:48px;bottom:0;left:0;
|
position:fixed;top:48px;bottom:0;left:0;
|
||||||
width:85%;max-width:320px;overflow-y:auto;
|
width:85%;max-width:320px;overflow-y:auto;
|
||||||
background:#111;transform:translateX(-100%);
|
background:#111;transform:translateX(-100%);
|
||||||
transition:transform .3s ease;padding:10px;
|
transition:transform .3s ease;padding:10px;
|
||||||
z-index:200; will-change:transform; border-right:1px solid var(--line);
|
z-index:200;border-right:1px solid var(--line);
|
||||||
}
|
}
|
||||||
.sidebar.open{transform:translateX(0);}
|
.sidebar.open{transform:translateX(0);}
|
||||||
.overlay{
|
.overlay{
|
||||||
position:fixed;inset:0;background:rgba(0,0,0,.45);
|
position:fixed;inset:0;background:rgba(0,0,0,.45);
|
||||||
backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
|
backdrop-filter:blur(4px);opacity:0;pointer-events:none;
|
||||||
z-index:150; opacity:0; pointer-events:none; transition:opacity .3s ease;
|
transition:opacity .3s ease;z-index:150;
|
||||||
}
|
}
|
||||||
.sidebar.open ~ .overlay{opacity:1;pointer-events:all;}
|
.sidebar.open ~ .overlay{opacity:1;pointer-events:all;}
|
||||||
|
|
||||||
/* Content (layout fix) */
|
/* Content layout */
|
||||||
.content{
|
.content{
|
||||||
display: flex;
|
display:flex;flex-direction:column;
|
||||||
flex-direction: column;
|
|
||||||
min-height:calc(100vh - 48px);
|
min-height:calc(100vh - 48px);
|
||||||
padding: 16px;
|
padding:16px;transition:margin-left .3s ease;
|
||||||
transition: margin-left .3s ease;
|
max-width:960px;box-sizing:border-box;
|
||||||
max-width: 960px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
@media(min-width:900px){
|
@media(min-width:900px){
|
||||||
.sidebar{transform:none!important;position:static;
|
.sidebar{transform:none!important;position:static;
|
||||||
width:280px; height:calc(100vh - 48px); z-index:auto; }
|
width:280px;height:calc(100vh - 48px);}
|
||||||
.content{margin-left:280px;}
|
.content{margin-left:280px;}
|
||||||
.overlay{display:none!important;}
|
.overlay{display:none!important;}
|
||||||
}
|
}
|
||||||
@media(max-width:899px){
|
@media(max-width:899px){
|
||||||
.content{margin-left:0!important;padding:12px;}
|
.content{margin-left:0!important;padding:12px;}
|
||||||
.viewer{ font-size:1.05em; line-height:1.6; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Viewer */
|
/* Viewer stabilization */
|
||||||
.viewer,
|
.viewer,#htmlView{
|
||||||
#htmlView {
|
display:block;width:100%;
|
||||||
flex:1 1 auto;
|
flex:1 1 auto;
|
||||||
height: auto !important;
|
margin-top:0;padding-top:0;
|
||||||
min-height: 0;
|
min-height:calc(100vh - 48px);
|
||||||
overflow-y:auto;
|
overflow-y:auto;
|
||||||
max-width: 820px;
|
transition:opacity .25s ease;
|
||||||
margin: 0 auto;
|
|
||||||
padding-top: 8px;
|
|
||||||
padding-bottom: 40px;
|
|
||||||
}
|
}
|
||||||
#htmlView{ width:100%; border:none; background:#0b0c10; }
|
.viewer.fade-in,#htmlView.fade-in{opacity:1;}
|
||||||
|
.viewer:not(.fade-in),#htmlView:not(.fade-in){opacity:0;}
|
||||||
|
#htmlView{border:none;background:#0b0c10;}
|
||||||
|
|
||||||
/* Markdown typography */
|
/* Markdown formatting */
|
||||||
#mdView h1,#mdView h2,#mdView h3{color:var(--accent);}
|
#mdView h1,#mdView h2,#mdView h3{color:var(--accent);}
|
||||||
#mdView pre,#mdView code{
|
#mdView pre,#mdView code{
|
||||||
overflow-x:auto; word-break:break-word;
|
overflow-x:auto;background:#111;padding:.5em;border-radius:4px;color:var(--accent);
|
||||||
background:#111; padding:.5em; border-radius:4px; color:var(--accent);
|
|
||||||
}
|
}
|
||||||
#mdView blockquote{
|
#mdView blockquote{
|
||||||
border-left:3px solid var(--accent);
|
border-left:3px solid var(--accent);
|
||||||
@@ -97,34 +89,30 @@ html,body {
|
|||||||
}
|
}
|
||||||
#mdView a{color:var(--accent);}
|
#mdView a{color:var(--accent);}
|
||||||
|
|
||||||
/* Markdown fallback warning */
|
/* Warning */
|
||||||
.md-warn{
|
.md-warn{
|
||||||
background:#3b0c0c;color:#ffd4d4;
|
background:#3b0c0c;color:#ffd4d4;
|
||||||
border:1px solid #6c1f1f;border-radius:8px;
|
border:1px solid #6c1f1f;border-radius:8px;
|
||||||
padding:10px 12px;margin:10px auto;max-width:820px;
|
padding:10px 12px;margin:10px auto;max-width:820px;
|
||||||
font-size:.95em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Meta + pager */
|
/* Meta + Pager */
|
||||||
.meta{color:var(--muted);margin-bottom:12px;font-size:.9em;}
|
.meta{color:var(--muted);margin-bottom:12px;font-size:.9em;}
|
||||||
.pager{display:flex;justify-content:space-between;padding:8px 0;}
|
.pager{display:flex;justify-content:space-between;padding:8px 0;}
|
||||||
button#prev,button#next{
|
button#prev,button#next{
|
||||||
background:transparent;border:1px solid var(--line);color:var(--fg);
|
background:transparent;border:1px solid var(--line);color:var(--fg);
|
||||||
border-radius:8px; padding:4px 10px; font-size:.95em; cursor:pointer;
|
border-radius:8px;padding:4px 10px;cursor:pointer;
|
||||||
transition:all .2s ease;
|
|
||||||
}
|
}
|
||||||
button#prev:hover,button#next:hover{
|
button#prev:hover,button#next:hover{
|
||||||
border-color:var(--accent);color:var(--accent);
|
border-color:var(--accent);color:var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Controls */
|
/* Tree + controls */
|
||||||
.controls{display:flex;gap:.5em;margin-bottom:8px;}
|
.controls{display:flex;gap:.5em;margin-bottom:8px;}
|
||||||
select,#search{
|
select,#search{
|
||||||
background:#0b0c10;color:var(--fg);border:1px solid var(--line);
|
background:#0b0c10;color:var(--fg);border:1px solid var(--line);
|
||||||
border-radius:4px;padding:6px;
|
border-radius:4px;padding:6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tree */
|
|
||||||
.dir .label{display:flex;align-items:center;cursor:pointer;
|
.dir .label{display:flex;align-items:center;cursor:pointer;
|
||||||
padding:4px 6px;color:var(--accent);font-weight:600;}
|
padding:4px 6px;color:var(--accent);font-weight:600;}
|
||||||
.dir .label::before{content:"▶";margin-right:6px;font-size:.8em;color:var(--muted);}
|
.dir .label::before{content:"▶";margin-right:6px;font-size:.8em;color:var(--muted);}
|
||||||
|
|||||||
Reference in New Issue
Block a user