Files
2026-05-14 06:29:00 -04:00

208 lines
4.4 KiB
CSS

/* http://www.designcouch.com/home/why/2014/04/23/pure-css-drawer-menu/ */
* {
box-sizing: border-box;
/* adds animation for all transitions */
transition: .25s ease-in-out;
/* margin: 0;
padding: 0; */
/* text-size-adjust: none; */
}
/* Makes sure that everything is 100% height */
html,
body {
height: 100%;
overflow: hidden;
color:#303030;
background:#fafafa top left repeat-y;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-size:100%;
margin: 0;
}
#drawer-toggle {
position: absolute;
opacity: 0;
}
#drawer ul a {
display: block;
padding: 10px;
color: #c7c7c7;
text-decoration: none;
}
#drawer-toggle-label {
user-select: none;
left: 0px;
height: 50px;
width: 50px;
display: block;
position: fixed;
color: rgb(242, 242, 242);
background: rgba(255, 255, 255, .0);
z-index: 1;
}
/* adds our "hamburger" menu icon */
#drawer-toggle-label:before {
content: '';
display: block;
position: absolute;
height: 2px;
width: 24px;
background: #8d8d8d;
left: 13px;
top: 18px;
box-shadow: 0 6px 0 #8d8d8d, 0 12px 0 #8d8d8d;
}
header {
width: 100%;
position: fixed;
left: 0px;
background: #efefef;
padding: 10px 10px 10px 50px;
font-size: 30px;
line-height: 30px;
z-index: 0;
}
/* drawer menu pane - note the 0px width */
#drawer {
position: fixed;
top: 0;
width: 150px;
left: -150px;
height: 100%;
background: #2f2f2f;
overflow-x: hidden;
overflow-y: scroll;
padding: 0px;
}
@media all and (min-resolution: 150dpi) {
header {
font-size: 30px;
/* line-height: 45px; */
}
#drawer {
font-size: 120%;
}
/* body {
background-color: lightyellow;
} */
}
/* actual page content pane */
#content {
margin-left: 0px;
margin-top: 30px;
/* width: 100%; */
height: calc(100% - 50px);
overflow-x: hidden;
overflow-y: scroll;
padding: 20px;
flex: auto;
}
/* checked styles (menu open state) */
#drawer-toggle:checked ~ #drawer-toggle-label {
height: 100%;
width: calc(100% - 150px);
color: rgb(242, 242, 242);
background: rgba(255, 255, 255, .8);
}
#drawer-toggle:checked ~ #drawer-toggle-label,
#drawer-toggle:checked ~ header {
left: 150px;
}
#drawer-toggle:checked ~ #drawer {
left: 0px;
}
#drawer-toggle:checked ~ #content {
margin-left: 150px;
}
#copyright {
font-size: 9px;
float: left;
}
/* ── Responsive / mobile ── */
/* Suppress the global transition on mobile to avoid sluggish feel */
@media (max-width: 640px) {
* { transition: none !important; }
html, body {
overflow: auto;
height: auto;
font-size: 16px; /* prevent iOS auto-zoom on inputs */
}
/* Pages that use flex-column full-viewport layout need to relax on mobile */
body[style*="height: 100vh"],
body {
height: auto !important;
min-height: 100vh;
}
/* Containers: full width, no fixed heights */
.container {
max-width: 100% !important;
max-height: none !important;
overflow: visible !important;
padding: 8px !important;
}
/* Log section: fixed reasonable height instead of flex-grow */
.log-section {
flex: none !important;
max-height: 40vh !important;
overflow-y: auto !important;
}
/* Table section: allow vertical scroll, cap height */
.table-section {
max-height: 55vh !important;
overflow-y: auto !important;
overflow-x: auto !important;
padding: 8px !important;
}
/* Slightly larger tap targets in tables */
#ntable td, #ntable th {
padding: 4px 6px !important;
font-size: 1.00em !important;
}
/* Cards on plugin/alerts pages */
.host-card, .alert-card, .card {
padding: 10px !important;
margin-bottom: 8px !important;
}
/* Settings page tables */
table { width: 100%; }
h1 { font-size: 1.2em !important; }
h2 { font-size: 1em !important; }
}
/* Suppress nav-username text on very narrow screens — avatar/initials is enough */
@media (max-width: 400px) {
.nav-username { display: none; }
}