Files
Workbench/backend/target/backend-1/ios.css

395 lines
7.4 KiB
CSS

/* iTAC-inspired iOS polish for the static Workbench webapp.
Visual-only override: keep page scripts and data flows unchanged. */
:root {
--itac-red: #a40640;
--itac-red-light: #bd0749;
--itac-red-dark: #73042d;
--itac-blue: #00488e;
--itac-ink: #243746;
--itac-slate: #375169;
--itac-muted: #838c93;
--itac-border: #dfe5eb;
--itac-soft: #f6f7fb;
--itac-surface: #ffffff;
--itac-shadow: 0 12px 34px rgba(36, 55, 70, 0.16);
--itac-radius: 8px;
--ios-tap: 44px;
color-scheme: light;
}
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(164, 6, 64, 0.16);
}
html {
min-height: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
min-height: 100%;
margin: 0;
color: var(--itac-ink);
background:
linear-gradient(180deg, rgba(246, 247, 251, 0.98), rgba(255, 255, 255, 0.96)),
var(--itac-soft) !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
line-height: 1.45;
padding-left: max(16px, env(safe-area-inset-left)) !important;
padding-right: max(16px, env(safe-area-inset-right)) !important;
overflow-x: hidden;
}
body::before {
content: "";
position: fixed;
inset: 0 0 auto 0;
height: 5px;
z-index: 10000;
background: linear-gradient(90deg, var(--itac-red), var(--itac-blue));
pointer-events: none;
}
h1,
h2,
h3 {
color: var(--itac-ink) !important;
letter-spacing: 0;
}
h1,
h2 {
font-weight: 650;
}
a {
color: var(--itac-blue);
}
p,
small,
label,
td,
th {
color: inherit;
}
header {
min-height: 72px;
height: auto !important;
padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)) !important;
background: var(--itac-surface) !important;
border-radius: 0 !important;
border-bottom: 1px solid var(--itac-border);
box-shadow: 0 8px 24px rgba(36, 55, 70, 0.08);
gap: 16px;
}
header img,
header svg {
max-height: 52px;
width: auto;
object-fit: contain;
}
nav {
background: #e7eff1 !important;
border-right: 1px solid var(--itac-border);
}
#container {
min-height: 0;
background: var(--itac-soft);
}
#contentFrame,
iframe {
background: var(--itac-surface);
}
.app {
width: min(100%, 1600px);
min-height: 100%;
margin-inline: auto;
}
.container,
#tree-container,
.panel,
.modal-content,
#config-modal-content,
.card {
width: min(100%, 980px) !important;
max-width: 100%;
color: var(--itac-ink);
background: var(--itac-surface) !important;
border: 1px solid var(--itac-border) !important;
border-radius: var(--itac-radius) !important;
box-shadow: var(--itac-shadow) !important;
}
.container {
display: block !important;
margin: 0 auto;
text-align: left;
}
#tree-container {
padding: 18px !important;
}
button,
input,
select,
textarea,
.pill,
.lang-switch {
min-height: var(--ios-tap);
font: inherit;
border-radius: var(--itac-radius) !important;
}
button {
border: 1px solid var(--itac-red) !important;
background: linear-gradient(180deg, var(--itac-red-light), var(--itac-red)) !important;
color: #fff !important;
font-weight: 650;
box-shadow: 0 8px 18px rgba(164, 6, 64, 0.2);
touch-action: manipulation;
-webkit-user-select: none;
user-select: none;
}
button:hover,
button:focus {
background: var(--itac-red-dark) !important;
border-color: var(--itac-red-dark) !important;
}
button.secondary,
.pill,
.lang-switch {
background: var(--itac-surface) !important;
color: var(--itac-slate) !important;
border: 1px solid var(--itac-border) !important;
box-shadow: none;
}
input,
select,
textarea {
max-width: 100%;
border: 1px solid #c8d1da !important;
background: #fff !important;
color: var(--itac-ink) !important;
padding: 10px 12px;
outline: none;
-webkit-appearance: none;
appearance: none;
}
input:focus,
select:focus,
textarea:focus {
border-color: var(--itac-blue) !important;
box-shadow: 0 0 0 3px rgba(0, 72, 142, 0.14);
}
input[type="file"] {
min-height: var(--ios-tap);
padding: 10px 0;
border: 0 !important;
}
#import-table,
#hot,
#tree,
.table-wrap {
max-width: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
table {
min-width: 680px;
}
thead th,
tbody td {
color: var(--itac-ink) !important;
border-color: var(--itac-border) !important;
}
thead th {
background: #e7eff1 !important;
color: var(--itac-slate) !important;
}
tbody tr:hover {
background: rgba(0, 72, 142, 0.06) !important;
}
.button-container {
right: max(16px, env(safe-area-inset-right)) !important;
bottom: max(16px, env(safe-area-inset-bottom)) !important;
left: max(16px, env(safe-area-inset-left));
justify-content: flex-end;
flex-wrap: wrap;
}
.modal {
padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
background: rgba(36, 55, 70, 0.56) !important;
}
.close,
#config-modal-close {
min-width: var(--ios-tap);
min-height: var(--ios-tap);
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--itac-red);
}
.handsontable,
.ht_master,
.ht_clone_top,
.ht_clone_left {
color: var(--itac-ink);
}
.handsontable th {
background: #e7eff1 !important;
color: var(--itac-slate) !important;
}
.handsontable td {
color: var(--itac-ink);
}
.jstree-default .jstree-anchor {
min-height: 34px;
line-height: 34px;
color: var(--itac-ink);
border-radius: 6px;
}
.jstree-default .jstree-clicked,
.jstree-default .jstree-hovered {
background: #fff !important;
box-shadow: inset 3px 0 0 var(--itac-red);
}
@media (max-width: 820px) {
body {
padding-top: max(12px, env(safe-area-inset-top)) !important;
padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}
header {
gap: 12px;
flex-wrap: wrap;
align-items: center;
justify-content: center !important;
text-align: center;
}
header h1 {
width: 100%;
margin: 0 !important;
font-size: 1.5rem !important;
}
#container {
flex-direction: column;
height: auto;
}
nav {
width: 100% !important;
max-height: 38vh;
border-right: 0;
border-bottom: 1px solid var(--itac-border);
}
#contentFrame {
min-height: 62vh;
width: 100%;
}
.container,
#tree-container,
.panel,
.modal-content,
#config-modal-content {
width: 100% !important;
padding: 16px !important;
}
.app {
display: flex !important;
flex-direction: column;
height: auto !important;
min-height: 100%;
gap: 12px;
}
.controls,
.info,
.header {
display: flex !important;
flex-direction: column;
align-items: stretch !important;
}
.controls input,
.controls button,
.info input,
.container input,
.container button {
width: 100%;
}
.button-container {
position: sticky !important;
margin-top: 16px;
}
.button-container button,
.container button {
flex: 1 1 180px;
}
.modal-content {
width: 100% !important;
max-height: calc(100vh - 32px);
overflow: auto;
-webkit-overflow-scrolling: touch;
}
}
@media (max-width: 480px) {
body {
padding-left: max(12px, env(safe-area-inset-left)) !important;
padding-right: max(12px, env(safe-area-inset-right)) !important;
}
h1 {
font-size: 1.35rem !important;
}
h2 {
font-size: 1.2rem !important;
}
.container,
#tree-container,
.panel {
box-shadow: 0 8px 22px rgba(36, 55, 70, 0.12) !important;
}
}