Files
WidgetWorkbench/hmi-frontend/src/workbench-neon.css
2026-10-22 19:23:47 +00:00

210 lines
12 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Workbench Neon – optional industrial theme inspired by the user's supplied
* dark Workbench UI reference. Scoped to .shell.neon, except native MES dialogs
* that Teleport to <body>. Does not replace or modify the live ios.css file.
* Accessibility: high text contrast, keyboard focus, reduced motion.
*/
.shell.neon {
--bg:#070f16;
--panel:#13232d;
--panel-deep:#0c1821;
--subtle:#19303d;
--line:#355461;
--text:#e2f2f8;
--muted:#a3becd;
--input:#0e1b25;
--neon-cyan:#42daf5;
--neon-blue:#56a9ee;
--neon-purple:#bc75e7;
--neon-magenta:#e65ab7;
--neon-green:#72f2b2;
--neon-border:rgba(105,213,238,.5);
font-family:'Segoe UI',Arial,system-ui,sans-serif;
color-scheme:dark;
background:
radial-gradient(ellipse 70% 50% at 74% 20%,rgba(24,73,92,.13),transparent 75%),
repeating-linear-gradient(45deg,rgba(126,172,189,.025) 0 1px,transparent 1px 5px),
#070f16;
}
.shell.neon.high-contrast{--line:#a8d9e7;--muted:#d7eaf2;--neon-border:#9ef0ff}
.shell.neon .sidebar{
background:linear-gradient(100deg,#090f15,#192530 43%,#0b151c 90%);
border-right:2px solid #274f62;
box-shadow:inset -4px 0 12px rgba(0,0,0,.65), 3px 0 18px rgba(54,177,217,.13);
padding-top:14px;
}
.shell.neon .brand{
margin:-6px -4px 10px;
padding:17px 10px 20px;
border:1px solid #4d626b;
border-radius:13px 24px 13px 24px;
background:
linear-gradient(160deg,rgba(255,255,255,.12),transparent 29%),
linear-gradient(180deg,#3e4c55 0%,#202b33 15%,#0e1b24 61%,#0c141b 84%,#43515a 100%);
box-shadow:0 5px 0 #060b0f,inset 0 1px 0 #839ca9,0 0 15px rgba(52,219,244,.21);
position:relative;
}
.shell.neon .brand::after{content:'';position:absolute;bottom:5px;left:17px;right:23px;height:2px;background:linear-gradient(90deg,transparent,#42e9fb 46%,#4e97d5,transparent);box-shadow:0 0 9px #36d2ee}
.shell.neon .brand-icon{color:#8bebfb;text-shadow:0 0 8px rgba(35,222,247,.7)}
.shell.neon .brand strong{color:#c7edff;text-shadow:0 0 12px rgba(45,163,244,.45)}
.shell.neon .brand small{color:#a4c0cf;letter-spacing:.15em}
.shell.neon .nav-caption{color:#83c8e4;letter-spacing:.22em}
.shell.neon .nav-root,
.shell.neon .nav-link,
.shell.neon .nav-add{
border:1px solid #334954;
border-radius:8px 15px 8px 13px;
color:#c5e4f0;
background:linear-gradient(115deg,#23343f,#111e27 61%,#26333b);
box-shadow:inset 0 1px 0 #52626b, 0 3px 4px #03070b9c;
margin:2px 0;
position:relative;
transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.shell.neon .nav-link{min-height:39px}
.shell.neon .nav-root::after,
.shell.neon .nav-link::after{content:'';position:absolute;bottom:3px;left:12%;width:62%;height:1px;background:linear-gradient(90deg,transparent,#54d1f2,transparent);box-shadow:0 0 9px #31d9f8;pointer-events:none}
.shell.neon .nav-link.active,
.shell.neon .nav-root[aria-expanded=true]{
background:linear-gradient(115deg,#176075,#105064 35%,#0c3445 80%,#145f77);
color:#f1ffff;border:1px solid #62e9ff;
box-shadow:inset 0 1px 0 #a6faff,0 0 11px rgba(0,219,255,.52),0 0 26px rgba(0,219,255,.19);
}
.shell.neon .nav-link:hover,
.shell.neon .nav-root:hover,
.shell.neon .nav-add:hover{color:#fff;border-color:#8ee8fa;box-shadow:0 0 13px rgba(54,226,255,.38),inset 0 1px 0 #8ca4ad}
.shell.neon .nav-expander{color:#8fcde0}
.shell.neon .sidebar-bottom{border-top:1px solid #3c5d6d}
.shell.neon .online-dot{background:#47e6b0;box-shadow:0 0 10px #47e6b080}
.shell.neon .toolbar{
min-height:95px;
padding:19px 28px;
background:
linear-gradient(90deg,rgba(178,221,241,.12),transparent 20%,rgba(119,151,167,.07) 79%,transparent),
linear-gradient(180deg,#3e4a53 0%,#1b2933 20%,#0b171f 68%,#293b46 94%,#57656c 100%);
border:1px solid #627782;border-left:0;
border-bottom:4px ridge #435f6a;
border-radius:0 0 26px 12px;
box-shadow:inset 0 1px 0 #9aacb6,0 6px 18px rgba(0,0,0,.7),0 0 17px rgba(29,198,242,.16);
position:relative;
}
.shell.neon .toolbar::after{
content:'';position:absolute;left:6%;right:22%;bottom:4px;height:2px;
background:linear-gradient(90deg,transparent,#4cd8f6 29%,#55aefa 58%,#bb63dd,transparent);
box-shadow:0 0 10px rgba(62,216,245,.7);pointer-events:none;
}
.shell.neon .toolbar h1{color:#a7dfff;font-size:1.62em;letter-spacing:.02em;font-weight:500;text-shadow:0 0 16px #2b9ee67a}
.shell.neon .subtitle{color:#b1ceda}
.shell.neon .toolbar-design-label{color:#b8dcea}
.shell.neon .toolbar-theme-select{color:#e6f6ff;border-color:#497387;background:linear-gradient(#1e3442,#101b27)}
.shell.neon .work-area{
background:radial-gradient(ellipse 100% 80% at 70% 0%,rgba(44,97,117,.17),transparent 75%),
repeating-linear-gradient(135deg,rgba(156,203,228,.018) 0 1px,transparent 1px 4px);
}
.shell.neon .canvas{
border:1px solid #466a78;
background:linear-gradient(125deg,#081219,#101d26 68%,#121924);
box-shadow:inset 0 0 32px #000c,0 0 0 3px #101d26,0 0 12px #2ea7d91f;
border-radius:15px;
}
.shell.neon .canvas.editable{background-image:radial-gradient(#3c7a92 .8px,transparent .8px);background-size:18px 18px}
.shell.neon .grid-stack-item-content{
border:1px solid #638c9f;
background:linear-gradient(160deg,#1e343e,#101e27 32%,#11242d 100%);
border-radius:10px 18px 12px 16px;
box-shadow:inset 0 1px 0 #638b99,0 0 0 2px #0a1b24,0 4px 17px #0008,0 0 12px rgba(48,186,226,.14);
}
.shell.neon .grid-stack-item-content:hover{border-color:#93e9fb;box-shadow:0 0 0 2px #0b2533,0 0 20px #33ccea52,0 6px 16px #0008}
.shell.neon .grid-stack-item-content.selected{outline:2px solid #3be4fd;outline-offset:2px}
.shell.neon .widget-head{
border-bottom:1px solid #3d6e7f;
min-height:52px;
background:linear-gradient(#4a657073,#16252df0 36%,#142630);
box-shadow:inset 0 1px 0 #6287956b;
}
.shell.neon .widget-name{color:#d3f4ff;text-shadow:0 0 8px #19bcf54d;letter-spacing:.015em}
.shell.neon .widget-label{color:#b6cfda;letter-spacing:.14em}
.shell.neon .wb-widget-symbol{background:#163d4b;color:#77e1f3;box-shadow:0 0 9px #19bdd338}
.shell.neon .inspector{
background:linear-gradient(150deg,#182934,#0b1720);
border-color:#5f8997;box-shadow:0 0 14px #35a7d524;
}
.shell.neon .widget-picker button{
background:linear-gradient(160deg,#253944,#101f28);border:1px solid #496a78;
box-shadow:inset 0 1px 0 #597582;
}
.shell.neon .widget-picker button:hover{background:#183544;border-color:#60d8fa}
.shell.neon :is(.mode-btn,.subtle-button,.primary-button,.publish-button,.icon-button,.wb-btn){
border-radius:6px 11px 7px 11px;
border:1px solid #587787;
background:linear-gradient(180deg,#365260,#172d3b 52%,#111c28);
color:#ecfaff;
box-shadow:inset 0 1px 0 #7a9aa9,0 2px 5px #0007;
}
.shell.neon :is(.mode-btn.active,.primary-button,.wb-btn.wb-primary){
border-color:#58daf5;
background:linear-gradient(180deg,#2484a8,#175779 53%,#09314c);
box-shadow:inset 0 1px 0 #a1eaff,0 0 11px #1cbbed70;
}
.shell.neon .publish-button{border-color:#64d8ba;background:linear-gradient(#298f76,#0b5644);box-shadow:0 0 9px #31ddad55}
.shell.neon .danger-button{border-color:#a55467;background:#3b1a2d;color:#ffd6df}
.shell.neon :is(button,.nav-link,.nav-root):focus-visible{outline:2px solid #c0f7ff;outline-offset:2px}
.shell.neon .wb-mes-tab{background:linear-gradient(#344b59,#172c38);color:#d8eef8;border:1px solid #658b9a;border-radius:5px 9px 5px 9px;box-shadow:inset 0 1px 0 #6a919e}
.shell.neon .wb-mes-tab.selected{background:linear-gradient(#158bbb,#10547a);color:#fff;box-shadow:0 0 12px #39b7e65c;border-color:#66e6ff}
.shell.neon .wb-mes-tabs .wb-mes-tab:nth-child(2n).selected{background:linear-gradient(#2c8d99,#1b525b)}
.shell.neon .wb-mes-tabs .wb-mes-tab:nth-child(3n).selected{background:linear-gradient(#8a5ca6,#4e3574)}
.shell.neon .wb-table-scroll{border-color:#547785;box-shadow:inset 0 0 12px #0009}
.shell.neon :is(.wb-table,.widget-table) th{
background:linear-gradient(180deg,#35515c,#1a2f39);color:#ceebf6;border-color:#567c89;
}
.shell.neon :is(.wb-table,.widget-table) td{border-color:#33515d;color:#d5edf5}
.shell.neon :is(.wb-table,.widget-table) tbody tr:hover{background:#1a3a48}
.shell.neon .wb-mes-strip{background:linear-gradient(#24404e,#132936);border:1px solid #3d6375}
.shell.neon .wb-mes-pill{background:#134655;color:#9decff;box-shadow:0 0 8px #43cee52a}
.shell.neon .wb-value-pill.on{background:#0e4a3a;color:#8ff5be}
.shell.neon .hmi-heading-frame.neon-frame{
background:linear-gradient(170deg,#51636f 0%,#152732 22%,#0b1924 63%,#304653 94%,#617582 100%)!important;
color:#bceaff!important;border-color:#69d6f2!important;
text-shadow:0 0 18px #51bdf17c;
box-shadow:inset 0 1px 0 #a5bbc6,inset 0 -2px 0 #42687c,0 0 13px rgba(63,206,247,.33);
}
.shell.neon .footer{border-color:#31515d;background:#0b1720}
.shell.neon .hmi-diagnostic-notice{background:#18232e;border-color:#ad8744}
/* Native MES dialogs teleport to body; only their own classes are themed. */
body[data-hmi-theme='neon'] .wb-mes-overlay{background:rgba(1,7,12,.82)}
body[data-hmi-theme='neon'] .wb-mes-dialog{
--line:#456d7f;--muted:#b1c8d6;--panel:#192c37;--text:#eff8fd;
background:linear-gradient(160deg,#284450,#0c1b26 38%,#142a36);
border:2px solid #6a9aa9;border-radius:12px 22px;
color:#ebf7fb;box-shadow:inset 0 1px 0 #a4c1cc,0 0 26px rgba(46,201,246,.33),0 25px 65px #000b;
}
body[data-hmi-theme='neon'] .wb-mes-dialog header{border-color:#476b79}
body[data-hmi-theme='neon'] .wb-mes-dialog p{color:#c7dfea}
body[data-hmi-theme='neon'] .wb-mes-dialog :is(input:not([type=checkbox]),select){background:#101f2a;color:#f0fbff;border-color:#537e8e}
body[data-hmi-theme='neon'] .wb-mes-order{background:#182e39;border-color:#507684;color:#edf9ff}
body[data-hmi-theme='neon'] .wb-mes-order:hover{background:#17475c;border-color:#65e1ff}
body[data-hmi-theme='neon'] .wb-mes-dialog .wb-btn{background:#193c50;border-color:#5fa5bf;color:#dff8ff}
body[data-hmi-theme='neon'] .wb-mes-dialog .wb-btn.wb-primary{background:#13587b;border-color:#3cb9e4;color:white}
/* Toolbar and theme picker are shared across all themes. */
.toolbar-design-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.86em}
.toolbar-theme-select{max-width:168px;border:1px solid var(--line);background:var(--input);border-radius:9px;color:var(--text);padding:9px;font:inherit;cursor:pointer}
.theme-picker{display:grid;gap:7px}
.theme-choice{background:var(--panel-deep);border:1px solid var(--line);border-radius:11px;padding:8px 10px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--text);width:100%}
.theme-choice.chosen{border:2px solid var(--hmi-accent);padding:7px 9px}
.theme-choice-label{display:flex;flex-direction:column;gap:3px;flex:1}.theme-choice-label strong{font-size:.9em}.theme-choice-label small{font-size:.75em;color:var(--muted)}
.theme-selected{color:var(--hmi-accent);font-size:1.2em}
.theme-swatch{display:block;width:54px;height:34px;flex-shrink:0;border:2px solid #334957;border-radius:6px;overflow:hidden;background:#1b2d39;position:relative}
.theme-swatch i{position:absolute;top:0;bottom:0;left:0;width:14px;background:#10222d;border-right:1px solid #5395b1}
.theme-swatch b{position:absolute;top:5px;left:19px;right:4px;height:8px;border:1px solid #80c5df;background:#2c4656;border-radius:2px}
.theme-swatch em{position:absolute;bottom:5px;left:19px;right:4px;height:8px;border:1px solid #5e95aa;background:#1f3947;border-radius:2px}
.theme-choice-neon .theme-swatch{box-shadow:inset 0 0 7px #42d5f8,0 0 8px #28c8ff77;border-color:#6ae7ff}
.theme-choice-neon .theme-swatch b{box-shadow:0 0 6px #54e1ff}
.theme-choice-ios .theme-swatch{background:#f5f7fa;border-color:#bdcbd7}.theme-choice-ios .theme-swatch i{background:#ffffff;border-color:#e4e8ee}.theme-choice-ios .theme-swatch b{background:#e7ebef;border-color:#d8dfe8}.theme-choice-ios .theme-swatch em{background:#a40640;border-color:#a40640}
.theme-choice-light .theme-swatch{background:#f4f7fb}.theme-choice-light .theme-swatch i{background:#dce6ef}.theme-choice-light .theme-swatch b{background:#cbd8e4}.theme-choice-light .theme-swatch em{background:#5f86b5}
.theme-choice-system .theme-swatch{background:linear-gradient(100deg,#f0f4fa 50%,#1b2e3b 50%)}
@media(max-width:1000px){.toolbar-design-label{font-size:.75em}.toolbar-theme-select{max-width:125px}}
@media(max-width:800px){.shell.neon .toolbar{border-radius:0 0 15px 15px}.toolbar-right{flex-wrap:wrap}.shell.neon .sidebar{min-height:0}.shell.neon .nav-root::after{width:25%}}
@media(prefers-reduced-motion:reduce){.shell.neon :is(.nav-root,.nav-link,.nav-add){transition:none}}
.toolbar-right .theme-save-button{white-space:nowrap;padding:9px 10px;font-size:.78em}
@media(max-width:1000px){.toolbar-right .theme-save-button{padding:8px}}