const openBtn = doc.getElementById("openBtn");
const closeBtn = doc.getElementById("closeBtn");
const backdrop = doc.getElementById("backdrop");
openBtn.addEventListener("click on", () => {
doc.physique.classList.add("mobile-sidebar-is-open");
});
closeBtn.addEventListener("click on", () => {
doc.physique.classList.take away("mobile-sidebar-is-open");
});
backdrop.addEventListener("click on", () => {
doc.physique.classList.take away("mobile-sidebar-is-open");
});
* {
box-sizing: border-box;
}
:root {
--text: #f7eee9;
--muted: rgba(247, 238, 233, 0.72);
--shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
}
physique {
margin: 0;
min-height: 100vh;
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
shade: var(--text);
background:
radial-gradient(circle at 10% 5%, rgba(255, 154, 136, 0.14), clear 28%),
linear-gradient(135deg, #151521, #54342f);
}
.mobile-sidebar-button {
place: fastened;
prime: 12px;
left: 12px;
z-index: 9100;
min-height: 38px;
padding: 0 14px;
border-radius: 999px;
border: 1px strong rgba(255, 255, 255, 0.5);
shade: white;
background: rgba(30, 30, 40, 0.8);
}
.sidebar-backdrop {
show: none;
place: fastened;
inset: 0;
z-index: 9150;
background: linear-gradient(135deg, rgba(18, 15, 16, 0.72), rgba(105, 75, 67, 0.68));
backdrop-filter: blur(18px) saturate(120%);
-webkit-backdrop-filter: blur(18px) saturate(120%);
}
.app-shell {
place: relative;
z-index: 1;
width: calc(100vw - 20px);
margin: 0 auto;
min-height: 100vh;
}
.content-shell {
padding: 56px 0 36px;
min-height: 100vh;
}
.draft-card {
margin-top: 220px;
padding: 28px;
min-height: 520px;
border-radius: 24px;
background: rgba(255, 255, 255, 0.12);
border: 1px strong rgba(255, 255, 255, 0.18);
}
.sidebar {
place: fastened;
prime: 48px;
left: 12px;
z-index: 9300;
width: calc(100vw - 24px);
top: calc(100vh - 64px);
padding: 16px;
overflow-y: auto;
border-radius: 22px;
shade: white;
background: rgba(28, 28, 40, 0.82);
border: 1px strong rgba(255, 255, 255, 0.24);
box-shadow: var(--shadow-soft);
remodel: translate3d(calc(-100% - 32px), 0, 0);
transition: remodel 0.22s ease;
}
.model {
show: flex;
hole: 8px;
align-items: middle;
margin-bottom: 18px;
font-weight: 700;
}
.brand-icon,
.sidebar-icon {
width: 32px;
top: 32px;
show: grid;
place-items: middle;
border-radius: 10px;
background: linear-gradient(135deg, #f35f4a, #ffc06f);
shade: white;
flex: none;
}
.model small {
font-weight: 500;
shade: var(--muted);
}
.collapse,
.search-row enter,
.search-row button,
.sidebar-link {
border: 1px strong rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.12);
shade: white;
border-radius: 12px;
}
.collapse {
width: 100%;
min-height: 38px;
margin-bottom: 16px;
}
.search-row {
show: grid;
grid-template-columns: 1fr auto;
hole: 8px;
margin-bottom: 14px;
}
.search-row enter,
.search-row button {
min-height: 38px;
padding: 0 12px;
}
.sidebar-nav {
show: grid;
hole: 8px;
}
.sidebar-link {
min-height: 52px;
padding: 10px;
show: flex;
align-items: middle;
hole: 12px;
text-decoration: none;
}
physique.mobile-sidebar-is-open {
overflow: hidden;
}
physique.mobile-sidebar-is-open .sidebar-backdrop {
show: block;
}
physique.mobile-sidebar-is-open .sidebar {
remodel: translate3d(0, 0, 0);
}
/*
This simulates the true failure:
the decrease a part of the sidebar is roofed from a horizontal line downward.
*/
physique.mobile-sidebar-is-open .sidebar-backdrop::earlier than {
content material: "";
place: fastened;
left: 0;
proper: 0;
prime: 306px;
backside: 0;
background: linear-gradient(135deg, rgba(18, 15, 22, 0.95), rgba(83, 51, 45, 0.95));
pointer-events: none;
}
/*
Attainable repair:
physique.mobile-sidebar-is-open .app-shell {
z-index: 9160;
}
physique.mobile-sidebar-is-open .sidebar {
z-index: 9300;
}
*/
Cellular sidebar horizontal clipping copy
No drafts but
The true web page cuts the cell sidebar horizontally round this Y place.
