246 lines
4.8 KiB
CSS
246 lines
4.8 KiB
CSS
/* CSS layout */
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#masthead {
|
|
}
|
|
|
|
#top_nav {
|
|
}
|
|
|
|
#container {
|
|
min-width: 600px;
|
|
}
|
|
|
|
#left_col {
|
|
width: 200px;
|
|
float: left;
|
|
}
|
|
|
|
#page_content {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#footer {
|
|
clear: both;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.onoffswitch {
|
|
position: relative; width: 90px;
|
|
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
|
}
|
|
.onoffswitch-checkbox {
|
|
display: none;
|
|
}
|
|
.onoffswitch-label {
|
|
display: block; overflow: hidden; cursor: pointer;
|
|
border: 2px solid #999999; border-radius: 20px;
|
|
}
|
|
.onoffswitch-inner {
|
|
display: block; width: 200%; margin-left: -100%;
|
|
transition: margin 0.3s ease-in 0s;
|
|
}
|
|
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
|
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
|
|
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
|
|
box-sizing: border-box;
|
|
}
|
|
.onoffswitch-inner:before {
|
|
content: "ON";
|
|
padding-left: 10px;
|
|
background-color: #34A7C1; color: #FFFFFF;
|
|
}
|
|
.onoffswitch-inner:after {
|
|
content: "OFF";
|
|
padding-right: 10px;
|
|
background-color: #EEEEEE; color: #999999;
|
|
text-align: right;
|
|
}
|
|
.onoffswitch-switch {
|
|
display: block; width: 18px; margin: 6px;
|
|
background: #FFFFFF;
|
|
position: absolute; top: 0; bottom: 0;
|
|
right: 56px;
|
|
border: 2px solid #999999; border-radius: 20px;
|
|
transition: all 0.3s ease-in 0s;
|
|
}
|
|
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
|
margin-left: 0;
|
|
}
|
|
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
|
right: 0px;
|
|
}
|
|
|
|
/* ---- Modern UI additions (non-breaking) ---- */
|
|
:root{
|
|
--ui-bg: #070A10;
|
|
--ui-surface: rgba(255,255,255,0.06);
|
|
--ui-surface-2: rgba(255,255,255,0.10);
|
|
--ui-border: rgba(255,255,255,0.14);
|
|
--ui-text: #EAF0FF;
|
|
--ui-muted: rgba(234,240,255,0.70);
|
|
--ui-accent: #63D4FF;
|
|
--ui-accent-2: #7CFFB2;
|
|
--ui-danger: #FF5C7A;
|
|
--ui-shadow: 0 10px 30px rgba(0,0,0,0.45);
|
|
--ui-radius: 14px;
|
|
--ui-radius-sm: 10px;
|
|
--ui-gap: 12px;
|
|
}
|
|
|
|
html, body{
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
|
|
}
|
|
|
|
/* Keep inline body colors working, but improve readability */
|
|
body{
|
|
line-height: 1.35;
|
|
}
|
|
|
|
h3{
|
|
margin: 14px 0 10px 0;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
/* Card wrapper (optional) */
|
|
.ui-card{
|
|
background: var(--ui-surface);
|
|
border: 1px solid var(--ui-border);
|
|
border-radius: var(--ui-radius);
|
|
box-shadow: var(--ui-shadow);
|
|
padding: 14px;
|
|
backdrop-filter: blur(8px);
|
|
/* keep modules compact & left-aligned like original */
|
|
display: inline-block;
|
|
max-width: calc(100vw - 24px);
|
|
}
|
|
|
|
/* Tables */
|
|
table{
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
table.ui-table, table[border]{
|
|
background: var(--ui-surface);
|
|
border: 1px solid var(--ui-border);
|
|
border-radius: var(--ui-radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
table.ui-table td, table[border] td{
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
padding: 10px 12px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
|
|
/* Links */
|
|
a{
|
|
color: var(--ui-accent);
|
|
text-decoration: none;
|
|
}
|
|
a:hover{
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Buttons & inputs */
|
|
button.ui-btn,
|
|
input.ui-btn,
|
|
input[type="submit"]{
|
|
appearance: none;
|
|
border: 1px solid var(--ui-border);
|
|
background: rgba(255,255,255,0.08);
|
|
color: var(--ui-text);
|
|
border-radius: var(--ui-radius-sm);
|
|
padding: 10px 12px;
|
|
font-weight: 650;
|
|
letter-spacing: 0.2px;
|
|
cursor: pointer;
|
|
transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
|
|
}
|
|
|
|
button.ui-btn:hover,
|
|
input.ui-btn:hover,
|
|
input[type="submit"]:hover{
|
|
background: rgba(255,255,255,0.12);
|
|
border-color: rgba(255,255,255,0.22);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button.ui-btn:active,
|
|
input.ui-btn:active,
|
|
input[type="submit"]:active{
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
.ui-btn--primary{
|
|
border-color: rgba(99,212,255,0.35);
|
|
background: rgba(99,212,255,0.12);
|
|
}
|
|
.ui-btn--on{
|
|
border-color: rgba(124,255,178,0.35);
|
|
background: rgba(124,255,178,0.12);
|
|
}
|
|
.ui-btn--off{
|
|
border-color: rgba(255,92,122,0.35);
|
|
background: rgba(255,92,122,0.10);
|
|
}
|
|
|
|
/* Icon buttons (lamp etc.) */
|
|
.ui-iconbtn{
|
|
border: 1px solid var(--ui-border);
|
|
background: rgba(255,255,255,0.06);
|
|
border-radius: 999px;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
}
|
|
.ui-iconbtn:hover{
|
|
background: rgba(255,255,255,0.10);
|
|
}
|
|
.ui-icon{
|
|
display: block;
|
|
}
|
|
|
|
/* Text inputs */
|
|
input[type="text"], input[type="number"]{
|
|
background: rgba(0,0,0,0.25);
|
|
color: var(--ui-text);
|
|
border: 1px solid var(--ui-border);
|
|
border-radius: 10px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
/* Range + color */
|
|
input[type="range"]{
|
|
width: 220px;
|
|
accent-color: var(--ui-accent);
|
|
}
|
|
input[type="color"]{
|
|
width: 48px;
|
|
height: 36px;
|
|
padding: 0;
|
|
border: 1px solid var(--ui-border);
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Iframes (index pages) */
|
|
iframe{
|
|
border: 0;
|
|
display: block;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Tiny status text coming from *_state.html */
|
|
.auto-style6{
|
|
color: transparent;
|
|
font-size: 1px;
|
|
}
|