style(web): apply frontend craft guidelines

This commit is contained in:
nyan404 committed 2026-08-21 13:57:04 +03:00
1 parent 8e36edca07
commit 490d9c3916
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -5,7 +5,7 @@
<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: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f4f1eb; color: #292725; --ink:#292725; --muted:#77716a; --line:#ded9d1; --paper:#fffdfa; --accent:#b86f3b; --danger:#a3483f; } :root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; background: #f4f1eb; color: #292725; --ink:#292725; --muted:#625d57; --line:#ded9d1; --paper:#fffdfa; --accent:#9a542e; --danger:#8e3630; --focus:#9a542e; }
* { box-sizing: border-box; } * { box-sizing: border-box; }
body { margin: 0; background: #f4f1eb; color: var(--ink); } body { margin: 0; background: #f4f1eb; color: var(--ink); }
main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 64px; } main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 64px; }
@@ -29,7 +29,8 @@
input, select { border: 1px solid #cbc5bc; background: var(--paper); color: var(--ink); padding: 9px 12px; outline: none; } input, select { border: 1px solid #cbc5bc; background: var(--paper); color: var(--ink); padding: 9px 12px; outline: none; }
input { min-width: 245px; } input { min-width: 245px; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #b86f3b22; } input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #b86f3b22; }
button { border: 1px solid var(--ink); padding: 9px 16px; background: var(--ink); color: #fffdfa; cursor: pointer; font-weight: 650; } button { border: 1px solid var(--ink); padding: 9px 16px; background: var(--ink); color: #fffdfa; cursor: pointer; font-weight: 650; transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:hover { background: #45413d; } button:hover { background: #45413d; }
button:disabled { cursor: wait; opacity: .55; } button:disabled { cursor: wait; opacity: .55; }
.error { min-height: 22px; margin: 0 0 12px; color: var(--danger); font-size: .9rem; } .error { min-height: 22px; margin: 0 0 12px; color: var(--danger); font-size: .9rem; }
+2 -2
View File
@@ -4,13 +4,13 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Беличья нора — новая заявка</title> <title>Беличья нора — новая заявка</title>
<style> <style>
:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #242522; background: #fff; } :root { font-family: "Trebuchet MS", ui-sans-serif, sans-serif; color: #242522; background: #fff; --focus:#1e6a2b; }
* { box-sizing: border-box; } body { margin: 0; background: #fff; } main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 76px; } * { box-sizing: border-box; } body { margin: 0; background: #fff; } main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 76px; }
h1 { margin: 0; font: 650 clamp(2.1rem, 6vw, 3.7rem)/1.05 Georgia, serif; letter-spacing: -.04em; } h2 { margin: 0; font: 600 1.25rem/1.2 Georgia, serif; } h1 { margin: 0; font: 650 clamp(2.1rem, 6vw, 3.7rem)/1.05 Georgia, serif; letter-spacing: -.04em; } h2 { margin: 0; font: 600 1.25rem/1.2 Georgia, serif; }
.intro, .hint, .status { color: #62675f; line-height: 1.55; } .intro { margin: 13px 0 31px; max-width: 640px; } .intro, .hint, .status { color: #62675f; line-height: 1.55; } .intro { margin: 13px 0 31px; max-width: 640px; }
.topnav { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:52px; padding-bottom:18px; border-bottom:1px solid #e6e7e2; } .brand { color:#1d622e; font-weight:800; text-decoration:none; font-size:1.05rem; } .topnav a:not(.brand) { color:#4f554d; text-decoration:none; font-size:.92rem; } .topnav { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:52px; padding-bottom:18px; border-bottom:1px solid #e6e7e2; } .brand { color:#1d622e; font-weight:800; text-decoration:none; font-size:1.05rem; } .topnav a:not(.brand) { color:#4f554d; text-decoration:none; font-size:.92rem; }
.auth { max-width:470px; margin: 14vh auto; border:1px solid #e1e4dc; border-radius:14px; padding:28px; box-shadow:0 12px 35px #3340130b; } .auth { max-width:470px; margin: 14vh auto; border:1px solid #e1e4dc; border-radius:14px; padding:28px; box-shadow:0 12px 35px #3340130b; }
.auth label, label { display:grid; gap:7px; color:#40453f; font-size:.84rem; font-weight:700; } input, select, textarea, button { font:inherit; } input, select, textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid #cfd4cb; border-radius:8px; background:#fff; color:#20241f; } textarea { min-height:105px; resize:vertical; } input:focus, select:focus, textarea:focus { outline:3px solid #2f813529; border-color:#2f8135; } .auth label, label { display:grid; gap:7px; color:#40453f; font-size:.84rem; font-weight:700; } input, select, textarea, button { font:inherit; } input, select, textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid #cfd4cb; border-radius:8px; background:#fff; color:#20241f; } textarea { min-height:105px; resize:vertical; } input:focus, select:focus, textarea:focus { outline:3px solid #2f813529; border-color:#2f8135; } button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.types { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:25px 0 27px; } .type { display:flex; align-items:center; min-height:76px; padding:14px; text-align:left; color:#333a32; border:1px solid #dce1d8; border-radius:10px; background:#fff; cursor:pointer; font-weight:700; } .type::before { content:""; width:14px; height:14px; border:1px solid #aeb7ab; border-radius:50%; margin-right:11px; flex:0 0 auto; } .type.active { border-color:#237530; box-shadow:inset 0 0 0 1px #237530; } .type.active::before { border:4px solid #237530; } .types { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:25px 0 27px; } .type { display:flex; align-items:center; min-height:76px; padding:14px; text-align:left; color:#333a32; border:1px solid #dce1d8; border-radius:10px; background:#fff; cursor:pointer; font-weight:700; } .type::before { content:""; width:14px; height:14px; border:1px solid #aeb7ab; border-radius:50%; margin-right:11px; flex:0 0 auto; } .type.active { border-color:#237530; box-shadow:inset 0 0 0 1px #237530; } .type.active::before { border:4px solid #237530; }
.panel { border:1px solid #e0e4dc; border-radius:14px; padding:28px; box-shadow:0 14px 40px #3142190a; } .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .wide { grid-column:1/-1; } .hidden { display:none!important; } .panel { border:1px solid #e0e4dc; border-radius:14px; padding:28px; box-shadow:0 14px 40px #3142190a; } .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .wide { grid-column:1/-1; } .hidden { display:none!important; }
.upload { display:grid; justify-items:center; gap:8px; min-height:150px; padding:24px; text-align:center; border:1px dashed #b8c3b3; border-radius:10px; background:#fbfdf9; color:#596259; cursor:pointer; } .upload strong { color:#333a32; } .upload input { display:none; } .files { margin:10px 0 0; padding-left:18px; color:#5a6258; font-size:.86rem; } .upload { display:grid; justify-items:center; gap:8px; min-height:150px; padding:24px; text-align:center; border:1px dashed #b8c3b3; border-radius:10px; background:#fbfdf9; color:#596259; cursor:pointer; } .upload strong { color:#333a32; } .upload input { display:none; } .files { margin:10px 0 0; padding-left:18px; color:#5a6258; font-size:.86rem; }