style(admin): restyle login page
This commit is contained in:
@@ -44,16 +44,17 @@ if (Astro.request.method === "POST") {
|
|||||||
|
|
||||||
<style is:global>
|
<style is:global>
|
||||||
:root {
|
:root {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans HK", sans-serif;
|
font-family: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
|
||||||
color: #2c2c2a; background: #f7f7f5; line-height: 1.65; font-size: 15px;
|
color: #1a1917; background: #faf8f4; line-height: 1.65; font-size: 15px;
|
||||||
}
|
}
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
body { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
body { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
||||||
main { width: 100%; max-width: 360px; padding: 32px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; }
|
main { width: 100%; max-width: 360px; padding: 32px; background: #fff; border: 1px solid #e7e2d9; border-radius: 8px; }
|
||||||
h1 { font-size: 18px; font-weight: 500; margin: 0 0 20px; }
|
h1 { font-family: "Noto Serif HK", serif; font-size: 20px; font-weight: 900; margin: 0 0 20px; }
|
||||||
label { display: block; font-size: 13px; color: #5f5e5a; margin-bottom: 6px; }
|
label { display: block; font-size: 13px; color: #6e6862; margin-bottom: 6px; font-weight: 600; }
|
||||||
input { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
|
input { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid #e7e2d9; border-radius: 4px; }
|
||||||
input:focus { outline: 2px solid #b5d4f4; border-color: #185fa5; }
|
input:focus { outline: 2px solid #fef3c7; border-color: #d97706; }
|
||||||
button { margin-top: 18px; width: 100%; font: inherit; font-size: 14px; padding: 9px 18px; border-radius: 8px; cursor: pointer; border: 1px solid #185fa5; background: #185fa5; color: #fff; }
|
button { margin-top: 18px; width: 100%; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 4px; cursor: pointer; border: 1px solid #1a1917; background: #1a1917; color: #fff; }
|
||||||
.err { background: #fcebeb; color: #a32d2d; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 16px; }
|
button:hover { background: #000; }
|
||||||
|
.err { background: #fcebeb; color: #a32d2d; padding: 10px 14px; border-radius: 4px; font-size: 14px; margin: 0 0 16px; }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user