mt5-manager/static/styles.css
280 lines
22 KiB
CSS
/* styles.css, version 0.4.0 */
:root {
--page: #f5f7fb;
--surface: #fff;
--text: #10223f;
--muted: #657590;
--line: #dfe6f1;
--blue: #2860f5;
--blue-dark: #174bda;
--blue-soft: #edf3ff;
--green: #23806a;
--red: #c3524b;
--radius: 15px;
--sidebar: 224px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font: 14px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #2860f54d; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.25; font-weight: 650; letter-spacing: -.65px; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.2px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden, [hidden] { display: none !important; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 26px 16px 22px; background: var(--surface); border-right: 1px solid var(--line); z-index: 10; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 9px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.25px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 38px; border-radius: 10px; background: var(--blue); color: white; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-caption { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; margin-top: 1px; }
.sidebar-nav { display: grid; gap: 6px; margin-top: 38px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 10px 13px; border-radius: 10px; text-decoration: none; color: #526681; font-weight: 550; transition: background .15s; }
.nav-item .icon { width: 21px; height: 21px; }
.nav-item:hover { background: #f3f6fb; }
.nav-item.active { color: #174be0; background: #e6efff; }
.sidebar-note { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 18px 8px 0; color: #8190a6; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.65; }
.sidebar-note .icon { width: 16px; height: 16px; margin-top: 2px; }
.workspace { margin-left: var(--sidebar); padding: 34px 34px 56px; max-width: 1740px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.page-description { color: var(--muted); font-size: 13px; margin-top: 8px; }
.button { border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; padding: 9px 16px; border-radius: 9px; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { color: #536681; border-color: #d9e1ed; background: #fff; }
.button-secondary:hover:not(:disabled) { background: #f4f7fb; border-color: #aabbcf; }
.button-soft { color: var(--blue); background: var(--blue-soft); border-color: #e2eaff; }
.button-soft:hover:not(:disabled) { background: #dfeaff; }
.button-text { color: var(--blue); }
.button-text:hover { background: var(--blue-soft); }
.button-small { min-height: 32px; padding: 5px 11px; font-size: 12px; border-radius: 8px; gap: 5px; }
.button:disabled { opacity: .4; }
.icon-button { border: 0; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #74849b; background: transparent; text-decoration: none; cursor: pointer; }
.icon-button:hover { background: #edf3ff; color: var(--blue); }
.icon-button .icon { width: 18px; height: 18px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.filters { display: inline-flex; gap: 3px; padding: 4px; border-radius: 10px; background: #eaf0f7; }
.filter { border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); padding: 6px 11px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.filter span { display: inline-block; margin-left: 5px; font-size: 11px; opacity: .75; }
.filter.active { border-color: #dce5f1; background: white; color: #1b3c79; box-shadow: 0 1px 2px #1c375b06; }
.filter:hover:not(.active) { color: var(--blue); }
.search-field { display: flex; align-items: center; gap: 9px; color: #8897ac; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 11px; width: 225px; }
.search-field .icon { width: 17px; height: 17px; }
.search-field input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-field:focus-within { border-color: #91aef6; }
input::placeholder { color: #9aa6b8; opacity: 1; }
.terminal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.terminal-card { display: flex; flex-direction: column; position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; container-type: inline-size; transition: border-color .18s, box-shadow .18s; }
.terminal-card:hover { border-color: #c3d1e7; box-shadow: 0 4px 18px #223a5805; }
.terminal-card[data-state="running"]::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: #78bba4; border-radius: 0 3px 3px 0; }
.terminal-header { display: flex; align-items: center; gap: 11px; padding: 19px 19px 0; }
.broker-mark { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #eff4fb; display: grid; place-items: center; }
.server { display: inline-block; background: url('/static/img/MetaQuotes-Demo.ico') center / contain no-repeat; width: 23px; height: 23px; }
.server-RoboForex-Pro { background-image: url('/static/img/RoboForex-Pro.ico'); }
.server-FundedNext-Server, .server-FundedNext-Server_2, .server-FundedNext-Server_3, .server-FundedNext-Server_4 { background-image: url('/static/img/FundedNext-Server.png'); }
.server-FivePercentOnline-Real { background-image: url('/static/img/FivePercentOnline-Real.ico'); }
.terminal-identity { min-width: 0; flex: 1; }
.terminal-identity h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-identity p { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; }
.account { font-variant-numeric: tabular-nums; }
.account-server { overflow: hidden; text-overflow: ellipsis; }
.account-separator { color: #b4c1d2; }
.terminal-state-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 16px 20px 0; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 3px 7px; font-size: 11px; color: #6d7e95; background: #f0f3f8; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
.status-badge[data-tone="success"] { color: #247b64; background: #eaf6f0; }
.status-badge[data-tone="warning"] { color: #a2782e; background: #fff6e6; }
.status-badge[data-tone="danger"] { color: #bb554d; background: #fff0ee; }
.terminal-folder { color: #96a2b4; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 100px; padding: 18px 20px 20px; flex: 1; }
.metric { min-width: 0; }
.metric-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; white-space: nowrap; }
.currency { font-size: 9px; }
.metric-value { display: block; font-variant-numeric: tabular-nums; letter-spacing: -.35px; font-size: 19px; font-weight: 600; white-space: nowrap; }
.balance { color: #356ad2; }
.equity { color: #2e6857; }
.profit { color: var(--green); }
.profit.neg { color: var(--red); }
.margin { color: #738098; font-size: 17px; padding-top: 2px; }
.profit-pct { display: inline-flex; color: #3c8a70; background: #edf7f1; font-size: 9px; padding: 1px 4px; border-radius: 4px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.profit-pct.neg { color: #bb625b; background: #fff0ee; }
.terminal-footer { border-top: 1px solid #edf1f7; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px 11px 20px; }
.update-time { display: inline-flex; align-items: center; gap: 5px; color: #8796ac; font-size: 11px; min-width: 0; }
.update-time .icon { width: 12px; height: 12px; }
.update-time .time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-actions { display: flex; gap: 6px; }
.loading-card .metric-value { color: #bac4d1; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h2 { margin-top: 18px; margin-bottom: 7px; color: var(--text); }
.empty-state p { font-size: 13px; }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #eaf0fb; color: #7694c4; }
.empty-icon .icon { width: 29px; height: 29px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 1px solid #dce7ff; border-radius: 10px; background: #edf3ff; color: #385b9e; font-size: 13px; }
.notice .notice-copy { flex: 1; padding-top: 1px; }
.notice .icon-button { width: 22px; height: 22px; margin: -1px -5px -1px 0; }
.notice-success { color: #247b64; background: #edf8f2; border-color: #d7eddf; }
.notice-warning { color: #946f29; background: #fff8e9; border-color: #f1e4c6; }
.notice-danger { color: #b75048; background: #fff2f0; border-color: #f2dcd8; }
.notice .icon { width: 18px; height: 18px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { border: 1px solid var(--line); background: white; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel-heading { display: flex; gap: 12px; align-items: center; padding: 21px 22px 17px; }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.section-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #eef3fc; color: #6d88ae; border-radius: 10px; flex: 0 0 auto; }
.panel-body { padding: 6px 22px 21px; }
.settings-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.project-panel { margin-top: 24px; }
.project-update-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; }
.project-update-grid h3 { margin: 0; font-size: 14px; }
.project-update-grid .field-help { overflow-wrap: anywhere; }
.project-actions { justify-content: flex-start; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 3px; border: 1px solid #9aaac0; border-radius: 9px; padding: 8px 11px 7px; background: white; min-width: 0; cursor: text; transition: border-color .15s, box-shadow .15s; }
.field > span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: #21334f; background: transparent; font-size: 14px; line-height: 1.6; }
.field:focus-within { border-color: #4f7dea; box-shadow: 0 0 0 3px #2860f50c; }
.field:focus-within > span { color: #3864ba; }
.field-full { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 10px; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 22px; border-top: 1px solid var(--line); }
.panel-footer .field-help { margin: 0; font-size: 10px; }
.panel-footer .button { flex-shrink: 0; }
.form-section { border-top: 1px solid #edf1f6; margin-top: 22px; }
.form-section > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; color: #536985; padding: 17px 0 3px; font-size: 12px; }
summary::-webkit-details-marker { display: none; }
.disclosure-icon { width: 16px; height: 16px; transition: transform .15s; }
details[open] > summary .disclosure-icon { transform: rotate(90deg); }
.summary-hint { font-size: 10px; color: #8f9caf; margin-left: 10px; font-weight: 400; }
.form-section-body { padding: 15px 0 0 26px; }
.advanced-settings .form-section-body { padding-left: 0; }
.file-list { padding: 0 22px; }
.file-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #e9eef6; }
.file-row:last-child { border-bottom: 0; }
.file-icon { color: #8b9db8; display: grid; place-items: center; width: 28px; height: 32px; border-radius: 6px; background: #f1f5fb; }
.file-icon .icon { width: 17px; height: 17px; }
.file-name { color: #263d60; font-size: 13px; font-weight: 550; }
.file-meta { display: flex; align-items: center; gap: 5px; color: #73839b; font-size: 11px; margin-top: 3px; }
.file-meta .icon { width: 11px; height: 11px; color: #429b7c; }
.file-meta.missing { color: #94a1b3; }
.file-choice { display: flex; align-items: center; gap: 8px; }
.file-choice .button { padding: 5px 9px; font-size: 11px; min-height: 31px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-selected { color: #5778ad; font-size: 10px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.file-choice label { cursor: pointer; }
.file-choice label:focus-within { outline: 3px solid #2860f54d; outline-offset: 3px; }
.panel-note { padding: 15px 22px 19px; color: var(--muted); font-size: 11px; line-height: 1.7; border-top: 1px solid #edf1f7; }
.account-section { margin-top: 31px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-heading h2 { font-size: 19px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.subtle-count { color: #8796ac; font-size: 11px; }
.account-list { display: grid; gap: 10px; }
.account-panel { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: 20px; }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.account-avatar { display: grid; place-items: center; background: #edf3ff; color: #547fca; border: 1px solid #dce7fb; border-radius: 10px; width: 35px; height: 35px; flex: 0 0 auto; }
.account-avatar .icon { width: 19px; height: 19px; }
.account-summary-copy { min-width: 0; flex: 1; }
.account-title { display: block; font-size: 14px; font-weight: 600; }
.account-subtitle { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-password-state { display: inline-flex; align-items: center; gap: 5px; color: #8b9aaf; font-size: 10px; }
.account-password-state .icon { width: 13px; height: 13px; }
.account-panel[open] .account-summary { background: #f9fbfe; border-bottom: 1px solid var(--line); }
.account-panel[open] .account-summary > .disclosure-icon { transform: rotate(90deg); }
.account-form { padding: 18px 22px 0; }
.account-path { color: #8c9ab0; font-size: 10px; margin-bottom: 16px; overflow-wrap: anywhere; }
.account-form .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkbox-label { display: flex; gap: 9px; align-items: flex-start; color: #50637e; font-size: 12px; margin: 19px 0; cursor: pointer; }
.checkbox-label input { margin: 3px 0 0; accent-color: var(--blue); width: 16px; height: 16px; flex: 0 0 auto; }
.checkbox-label small { display: block; color: #8695aa; font-size: 10px; margin-top: 3px; }
.account-form-footer { display: flex; justify-content: flex-end; padding: 13px 0; border-top: 1px solid #edf1f7; }
.account-form .form-feedback { margin-bottom: 16px; }
.modal-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; border: 0; border-radius: 16px; padding: 0; background: white; color: var(--text); box-shadow: 0 24px 90px #1a2d4a30; }
.modal-dialog::backdrop { background: #24324970; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 23px 24px 20px; border-bottom: 1px solid var(--line); background: #f8fafe; }
.modal-header h2 { font-size: 22px; letter-spacing: -.45px; }
.modal-header p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.modal-header .icon-button { color: var(--blue); margin: -3px -4px 0 0; }
.modal-body { padding: 23px 24px; max-height: calc(100dvh - 230px); overflow-y: auto; }
.modal-body .field input { font-size: 14px; }
.modal-body .field > span { font-size: 11px; }
.modal-body .field { padding: 9px 12px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 14px 24px; }
.form-note { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--muted); padding: 13px 14px; background: #f3f6fb; border-radius: 9px; margin-top: 22px; }
.form-note .icon { width: 17px; height: 17px; color: #8ba0bd; }
.form-feedback { font-size: 12px; }
@container (max-width: 400px) {
.terminal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
.metric-value { font-size: 20px; }
.profit-line { display: flex; align-items: center; gap: 7px; }
.profit-pct { margin: 0; }
.terminal-folder { display: none; }
Yuriy Bykov
2025-10-14 14:16:34 +03:00
}
@media (min-width: 1550px) { .workspace { padding-left: 44px; padding-right: 44px; } .terminal-header { padding-top: 22px; } .terminal-metrics { padding-top: 22px; padding-bottom: 24px; } }
@media (max-width: 1220px) {
.settings-layout { grid-template-columns: 1fr; }
.file-row { grid-template-columns: 32px minmax(0,1fr) auto; }
.panel-note { font-size: 12px; }
}
@media (max-width: 1050px) {
:root { --sidebar: 200px; }
.sidebar { padding-left: 12px; padding-right: 12px; }
.brand { gap: 8px; font-size: 15px; }
.brand-caption { font-size: 9px; }
.workspace { padding: 28px 24px 40px; }
.terminal-grid { grid-template-columns: 1fr; }
.account-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
Yuriy Bykov
2025-10-14 14:16:34 +03:00
}
@media (max-width: 700px) {
.sidebar { position: static; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
.brand { padding: 0; font-size: 14px; }
.brand-mark { width: 32px; height: 34px; border-radius: 8px; }
.brand-caption { display: none; }
.sidebar-nav { display: flex; gap: 4px; margin: 0; }
.nav-item { min-height: 36px; padding: 8px 9px; font-size: 11px; gap: 6px; }
.nav-item .icon { width: 17px; height: 17px; }
.sidebar-note { display: none; }
.workspace { margin-left: 0; padding: 25px 18px 40px; }
.page-heading { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
h1 { font-size: 26px; }
.page-description { font-size: 12px; max-width: 260px; }
.page-heading > .button { font-size: 0; width: 41px; padding: 10px; margin-top: 5px; }
.page-heading > .button .icon { width: 21px; height: 21px; }
.list-toolbar { flex-wrap: wrap; gap: 13px; }
.search-field { width: 100%; }
.terminal-grid { gap: 14px; }
.panel-heading, .panel-body, .panel-footer { padding-left: 18px; padding-right: 18px; }
.panel-footer { align-items: flex-end; }
.panel-footer .field-help { font-size: 9px; }
.file-list { padding-left: 18px; padding-right: 18px; }
.file-row { grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; }
.file-meta { flex-wrap: wrap; }
.file-choice { gap: 5px; }
.file-choice .button { font-size: 9px; padding: 5px 7px; }
.account-summary { padding: 15px; gap: 10px; }
.account-password-state { display: none; }
.summary-hint { display: block; margin: 3px 0 0; }
Yuriy Bykov
2025-10-14 14:16:34 +03:00
}
@media (max-width: 420px) {
.brand > span:last-child { font-size: 12px; }
.brand { gap: 6px; }
.nav-item { font-size: 10px; }
.nav-item .icon { width: 15px; height: 15px; }
.workspace { padding-left: 13px; padding-right: 13px; }
.form-grid, .account-form .form-grid { grid-template-columns: 1fr; }
.field-full { grid-column: auto; }
.panel-footer { flex-direction: column; align-items: stretch; gap: 10px; }
.panel-footer .button { width: 100%; }
.filter { padding-left: 9px; padding-right: 9px; }
.modal-body, .modal-header { padding-left: 20px; padding-right: 20px; }
.file-row { grid-template-columns: 26px minmax(0,1fr); }
.file-choice { grid-column: 2; }
.account-summary-copy { font-size: 12px; }
Yuriy Bykov
2025-10-14 14:16:34 +03:00
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }