style(web): apply frontend craft guidelines
This commit is contained in:
1 parent
8e36edca07
commit
490d9c3916
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Беличья нора — админка</title>
|
||||
<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; }
|
||||
body { margin: 0; background: #f4f1eb; color: var(--ink); }
|
||||
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 { min-width: 245px; }
|
||||
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:disabled { cursor: wait; opacity: .55; }
|
||||
.error { min-height: 22px; margin: 0 0 12px; color: var(--danger); font-size: .9rem; }
|
||||
|
||||
Reference in new issue
Block a user