style(web): refresh calculator interface
This commit is contained in:
1 parent
00bc9c07cd
commit
dd41cb44df
1 file changed
+19
-17
+19
-17
@@ -5,25 +5,26 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Беличья нора — калькулятор отчётов</title>
|
<title>Беличья нора — калькулятор отчётов</title>
|
||||||
<style>
|
<style>
|
||||||
:root { color-scheme: dark; font-family: system-ui, sans-serif; }
|
:root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; --ink:#292725; --muted:#625d57; --paper:#fffdfa; --ground:#f4f1eb; --line:#ded9d1; --accent:#9a542e; --focus:#9a542e; --error:#8e3630; }
|
||||||
body { margin: 0; background: #171516; color: #f4eeee; }
|
* { box-sizing: border-box; } body { margin: 0; background: var(--ground); color: var(--ink); }
|
||||||
main { width: min(980px, calc(100% - 32px)); margin: 32px auto; }
|
main { width: min(1060px, calc(100% - 32px)); margin: 48px auto 72px; }
|
||||||
h1 { margin-bottom: 4px; }
|
h1 { margin: 0 0 6px; font: 500 clamp(2.25rem, 5vw, 4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
|
||||||
.muted { color: #b9aaad; }
|
h2 { font: 500 1.55rem/1.15 Georgia, "Times New Roman", serif; } .muted { color: var(--muted); line-height: 1.55; }
|
||||||
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
|
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
|
||||||
button, select, input, textarea { font: inherit; }
|
button, select, input, textarea { font: inherit; }
|
||||||
button { cursor: pointer; border: 1px solid #80656c; border-radius: 8px; padding: 9px 14px; background: #33262a; color: inherit; }
|
button { min-height:44px; cursor: pointer; border: 1px solid #bdb6ad; border-radius: 7px; padding: 9px 14px; background: var(--paper); color: var(--ink); transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
|
||||||
button.active, button.primary { background: #d59b62; color: #211818; border-color: #d59b62; }
|
button:hover { border-color:var(--accent); background:#fff8ef; } button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
|
||||||
.panel { background: #251e20; border: 1px solid #4a383d; border-radius: 12px; padding: 20px; }
|
button.active, button.primary { background: var(--ink); color: #fffdfa; border-color: var(--ink); } button.active:hover, button.primary:hover { background:#45413d; }
|
||||||
|
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow:0 10px 28px #3b30220d; }
|
||||||
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
||||||
label { display: grid; gap: 6px; color: #d8cace; }
|
label { display: grid; gap: 6px; color: #403b36; font-weight:700; }
|
||||||
input, select, textarea { width: 100%; box-sizing: border-box; border: 1px solid #665159; border-radius: 7px; padding: 9px; background: #171516; color: inherit; }
|
input, select, textarea { min-height:44px; width: 100%; border: 1px solid #c8c1b8; border-radius: 7px; padding: 9px 12px; background: #fff; color: var(--ink); } input:focus,select:focus,textarea:focus { outline:3px solid #9a542e2b; border-color:var(--accent); }
|
||||||
textarea { min-height: 210px; resize: vertical; }
|
textarea { min-height: 210px; resize: vertical; }
|
||||||
.wide { grid-column: 1 / -1; }
|
.wide { grid-column: 1 / -1; }
|
||||||
.actions { display: flex; gap: 10px; margin-top: 18px; }
|
.actions { display: flex; gap: 10px; margin-top: 18px; }
|
||||||
.quick-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
|
.quick-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
|
||||||
.quick-actions button { padding: 4px 10px; font-size: 0.85em; border-width: 1px; }
|
.quick-actions button { padding: 4px 10px; font-size: 0.85em; border-width: 1px; }
|
||||||
.bulk { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #4a383d; }
|
.bulk { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
|
||||||
.bulk textarea { min-height: 100px; margin: 8px 0; }
|
.bulk textarea { min-height: 100px; margin: 8px 0; }
|
||||||
.bulk-status { white-space: pre-wrap; }
|
.bulk-status { white-space: pre-wrap; }
|
||||||
.identity-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
.identity-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||||||
@@ -31,14 +32,15 @@
|
|||||||
.extra-kitten { display: grid; grid-template-columns: 1fr 140px 180px auto; gap: 8px; align-items: end; }
|
.extra-kitten { display: grid; grid-template-columns: 1fr 140px 180px auto; gap: 8px; align-items: end; }
|
||||||
.status-help { margin: -4px 0 0; font-size: .85rem; }
|
.status-help { margin: -4px 0 0; font-size: .85rem; }
|
||||||
@media (max-width: 700px) { .extra-kitten { grid-template-columns: 1fr; } }
|
@media (max-width: 700px) { .extra-kitten { grid-template-columns: 1fr; } }
|
||||||
dialog { max-width: min(440px, calc(100% - 32px)); background: #251e20; color: inherit; border: 1px solid #80656c; border-radius: 10px; padding: 20px; }
|
dialog { max-width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--ink); border: 1px solid #5a524b; border-radius: 10px; padding: 24px; box-shadow:0 24px 80px #211b1855; }
|
||||||
dialog::backdrop { background: #0009; }
|
dialog::backdrop { background: #211b1866; }
|
||||||
.result { margin-top: 20px; }
|
.result { margin-top: 20px; }
|
||||||
.hidden { display: none; }
|
.hidden { display: none; }
|
||||||
.error { color: #ff9f9f; white-space: pre-wrap; }
|
.error { color: var(--error); font-weight:700; white-space: pre-wrap; }
|
||||||
.auth-panel { max-width: 460px; margin: 12vh auto; }
|
.auth-panel { max-width: 460px; margin: 12vh auto; }
|
||||||
.auth-panel form { display: grid; gap: 12px; }
|
.auth-panel form { display: grid; gap: 12px; }
|
||||||
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } .wide { grid-column: auto; } }
|
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition-duration:.01ms!important; } }
|
||||||
|
@media (max-width: 700px) { main { margin:28px auto 48px; } .panel{padding:20px}.grid { grid-template-columns: 1fr; } .wide { grid-column: auto; }.actions{flex-direction:column}.actions button{width:100%;} }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -116,14 +118,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button type="button" id="saveProfileBtn">Сохранить профиль</button>
|
<button type="button" id="saveProfileBtn">Сохранить профиль</button>
|
||||||
<button type="button" id="clearProfileBtn" class="muted" style="background:transparent;border-color:#665159;">Очистить</button>
|
<button type="button" id="clearProfileBtn" class="muted" style="background:transparent;border-color:#bdb6ad;">Очистить</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="muted">Профиль будет автоматически подставляться в поля при создании отчётов.</p>
|
<p class="muted">Профиль будет автоматически подставляться в поля при создании отчётов.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<dialog id="confirmDialog">
|
<dialog id="confirmDialog">
|
||||||
<h3 style="margin-top:0">Подтверждение</h3>
|
<h3 style="margin-top:0">Подтверждение</h3>
|
||||||
<div id="confirmPreview" style="white-space:pre-wrap;background:#171516;padding:12px;border-radius:8px;border:1px solid #4a383d;max-height:40vh;overflow-y:auto;margin-bottom:12px;"></div>
|
<div id="confirmPreview" style="white-space:pre-wrap;background:#f8f5f0;padding:12px;border-radius:8px;border:1px solid #ded9d1;max-height:40vh;overflow-y:auto;margin-bottom:12px;"></div>
|
||||||
<div style="display:flex;gap:10px;">
|
<div style="display:flex;gap:10px;">
|
||||||
<button type="button" id="confirmYes" class="primary">Да, сформировать</button>
|
<button type="button" id="confirmYes" class="primary">Да, сформировать</button>
|
||||||
<button type="button" id="confirmNo">Отмена</button>
|
<button type="button" id="confirmNo">Отмена</button>
|
||||||
|
|||||||
Reference in new issue
Block a user