« Back to History
dashboard.css
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
/* ====================================================== dashboard.css — FINAL STABLE PURPOSE: - White compact sidebar - Clear section hierarchy - Browser-only scrolling - iframe NEVER scrolls - No dependency on header layout ====================================================== */ /* ================= GLOBAL (DASHBOARD CONTEXT ONLY) ================= */ html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background: #f4f6fb; /* 🔑 Browser handles scroll */ height: auto; overflow-y: auto; } /* ================= SHELL ================= */ .dashboard-shell { display: flex; width: 100%; min-height: 100vh; } /* ================= SIDEBAR ================= */ .dashboard-sidebar { width: 240px; background: #ffffff; color: #1f2937; flex-shrink: 0; /* sidebar never scrolls */ overflow: visible; border-right: 1px solid #e5e7eb; } .dashboard-sidebar.min { width: 56px; } /* ================= SECTION TITLE ================= */ .menu-section { padding: 16px 20px 6px; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; color: #6b7280; } /* ================= MENU CONTAINER ================= */ .menu-items { display: none; } /* space after each section block */ .menu-section + .menu-items { margin-bottom: 12px; } /* ================= MENU LINKS ================= */ .menu-items a { display: flex; align-items: center; padding: 8px 20px; margin: 1px 0; font-size: 14px; line-height: 1.45; color: #1f2937; text-decoration: none; border-radius: 6px; } .menu-items a:hover { background: #f0effa; color: #5b56a6; } /* ================= ICONS ================= */ .menu-icon { width: 22px; height: 22px; margin-right: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; color: #7e78c8; } .menu-text { white-space: nowrap; } /* ================= COLLAPSED MODE ================= */ .dashboard-sidebar.min .menu-text { display: none; } .dashboard-sidebar.min .menu-items a { justify-content: center; padding: 12px 0; } /* ================= FLOATING SUBMENU (MIN MODE) ================= */ .dashboard-sidebar.min .menu-items { position: absolute; left: 56px; min-width: 220px; background: #ffffff; color: #1f2937; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,.25); padding: 6px 0; z-index: 9999; } .dashboard-sidebar.min .menu-items a { padding: 8px 16px; font-size: 14px; } .dashboard-sidebar.min .menu-items a:hover { background: #f0effa; } /* ================= MAIN AREA ================= */ .dashboard-main { flex: 1; display: block; } /* ================= CONTENT ================= */ .dashboard-content { padding: 16px; /* 🔑 MUST stay visible — no internal scroll */ overflow: visible; } /* ================= IFRAME ================= */ /* iframe is pure content, never scrolls */ .dashboard-content iframe { width: 100%; border: none; display: block; height: auto; /* 🔑 critical */ overflow: hidden; } .dashboard-shell { display: flex; width: 100%; min-height: 100vh; } /* topbar full width, sidebar ke upar se */ .dashboard-topbar { position: sticky; top: 0; left: 0; right: 0; height: 48px; background: #7e78c8; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; z-index: 100; } .menu-section { position: relative; /* 🔑 REQUIRED */ } .dashboard-sidebar.min .menu-items { position: absolute; left: 56px; top: 0; min-width: 220px; background: #ffffff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.2); z-index: 9999; display: none; } .dashboard-sidebar.min .menu-section:hover + .menu-items { display: block; } .dashboard-shell{ display:grid; grid-template-columns: auto 1fr; grid-template-rows: 48px 1fr; min-height:100vh; } .dashboard-topbar{ grid-column: 1 / -1; /* 🔑 sidebar + main dono ke upar */ height:48px; background:#7e78c8; color:#fff; display:flex; align-items:center; gap:12px; padding:0 16px; z-index:100; } .dashboard-sidebar{ grid-row:2; } .dashboard-main{ grid-row:2; } .sidebar-toggle{ cursor: pointer; user-select: none; font-size: 20px; line-height: 1; padding: 6px 8px; border-radius: 6px; } .sidebar-toggle:hover{ background: rgba(255,255,255,0.15); } .dashboard-topbar{ grid-column: 1 / -1; height: 48px; background: #7e78c8; color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 16px; box-sizing: border-box; } /* LEFT */ .topbar-left{ display: flex; align-items: center; gap: 10px; white-space: nowrap; } /* CENTER — TRUE CENTER */ .topbar-center{ text-align: center; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* RIGHT */ .topbar-right{ position: relative; display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; } /* USER */ .user-box{ cursor: pointer; padding: 6px 10px; border-radius: 6px; user-select: none; } .user-box:hover{ background: rgba(255,255,255,0.15); } /* ================= ACTIVE SIDEBAR ITEM ================= */ .menu-items a.active { background-color: #6f6bdc; color: #ffffff; font-weight: 600; border-radius: 6px; } .menu-items a.active:hover { background-color: #5d59c9; } /* ===== ACTIVE MENU ===== */ .menu-items a.active { background: #2b6cb0; color: #fff; border-radius: 6px; } .menu-items a.active .menu-text { font-weight: 600; } .menu-section.active { background: rgba(43,108,176,0.15); border-left: 4px solid #2b6cb0; } /* ====================================================== END OF dashboard.css ====================================================== */