feat: improve Belki mobile layout
This commit is contained in:
1 parent
ab8c3c5e1a
commit
4eff410009
2 files changed
+24
-3
No files matched your search
@@ -109,6 +109,7 @@
|
||||
- 2026-08-25: web reports use a two-step flow: `/api/calculate` prepares the message without saving it, then `/api/reports` stores it only after the user explicitly selects «Отправить отчёт». The UI disables that action while it is in progress and after success.
|
||||
- 2026-08-25: shared two-column form grids align controls at the start of their row, preventing a date field with its helper button from stretching the adjacent skill select.
|
||||
- 2026-08-25: mobile adaptation is a required acceptance criterion for all frontend changes; validate narrow-width layout, touch usability, focus/error states, and absence of horizontal overflow alongside desktop rendering.
|
||||
- 2026-08-25: `/belki` now applies a dedicated narrow-width layout: single-column forms and application types, full-width actions, compact panels/dialogs, 16px form text to avoid mobile browser zoom, and responsive tabs without horizontal overflow.
|
||||
- 2026-08-25: removed unreferenced root-level legacy BBCode copies `belki.md`, `belki2.md`, and `belkifix.md`; the first two were byte-identical and the third differed only by a closing BBCode tag. They were neither served nor referenced by the calculator, bot, or documentation.
|
||||
# Обновление 2026-08-16: несколько котят
|
||||
|
||||
|
||||
+23
-3
@@ -7,7 +7,7 @@
|
||||
<link rel="icon" href="/favicon.png" type="image/png" sizes="192x192">
|
||||
<style>
|
||||
: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; }
|
||||
* { box-sizing: border-box; } body { margin: 0; background: var(--ground); color: var(--ink); }
|
||||
* { box-sizing: border-box; } html, body { max-width: 100%; } body { margin: 0; background: var(--ground); color: var(--ink); }
|
||||
main { width: min(1060px, calc(100% - 32px)); margin: 48px auto 72px; }
|
||||
h1 { margin: 0 0 6px; font: 500 clamp(2.25rem, 5vw, 4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
|
||||
h2 { font: 500 1.55rem/1.15 Georgia, "Times New Roman", serif; } .muted { color: var(--muted); line-height: 1.55; }
|
||||
@@ -15,7 +15,7 @@
|
||||
.section-tabs { margin-top: 32px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
|
||||
.section-tabs button { border-color: transparent; background: transparent; }
|
||||
button, select, input, textarea { font: 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 { min-height:44px; cursor: pointer; touch-action:manipulation; 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:hover { border-color:var(--accent); background:#fff8ef; } button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
|
||||
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; }
|
||||
@@ -57,7 +57,27 @@
|
||||
.site-footer a { color: inherit; text-underline-offset: 3px; }
|
||||
.site-footer a:hover { color: var(--accent); }
|
||||
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition-duration:.01ms!important; } }
|
||||
@media (max-width: 700px) { main { margin:28px auto 48px; } .panel{padding:20px}.grid,.application-types,.feather { grid-template-columns: 1fr; } .wide { grid-column: auto; }.actions{flex-direction:column}.actions button{width:100%;} }
|
||||
@media (max-width: 700px) {
|
||||
main { width: calc(100% - 24px); max-width: 1060px; margin: 24px auto 40px; }
|
||||
h1 { font-size: clamp(2rem, 11vw, 2.75rem); }
|
||||
h2 { font-size: 1.4rem; }
|
||||
.panel { padding: 16px; }
|
||||
.section-tabs { margin-top: 24px; padding-bottom: 12px; }
|
||||
.tabs { gap: 6px; margin: 18px 0 14px; }
|
||||
.tabs button { flex: 1 1 144px; }
|
||||
.grid, .application-types, .feather { grid-template-columns: 1fr; }
|
||||
.wide { grid-column: auto; }
|
||||
.actions { flex-direction: column; }
|
||||
.actions button, .identity-tools button { width: 100%; }
|
||||
.identity-tools { align-items: stretch; }
|
||||
.bulk { margin-bottom: 20px; padding-bottom: 18px; }
|
||||
.bulk textarea, textarea { min-height: 160px; }
|
||||
.application-type { min-height: 56px; }
|
||||
.upload { min-height: 116px; padding: 16px; }
|
||||
dialog { width: calc(100% - 24px); max-width: none; padding: 16px; }
|
||||
input, select, textarea { font-size: 16px; }
|
||||
.site-footer { margin-top: 32px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user