75 lines
4.2 KiB
CSS
75 lines
4.2 KiB
CSS
/* 简航 SimpleNav —— 后台样式 */
|
|||
|
|
body.admin { background: #eef0f3; color: #333; font-size: 14px; }
|
||
|
|
.topbar {
|
||
|
|
display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 56px;
|
||
|
|
background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50;
|
||
|
|
}
|
||
|
|
.topbar .brand { font-size: 17px; font-weight: 700; }
|
||
|
|
.topbar .brand a { color: #2F6BF7; }
|
||
|
|
.topbar .brand span { color: #999; font-weight: 400; font-size: 13px; margin-left: 6px; }
|
||
|
|
.topnav { display: flex; gap: 4px; flex: 1; }
|
||
|
|
.topnav a { padding: 8px 14px; border-radius: 8px; color: #555; }
|
||
|
|
.topnav a:hover { background: #f2f4f7; }
|
||
|
|
.topnav a.active { background: #2F6BF7; color: #fff; }
|
||
|
|
.topright { display: flex; align-items: center; gap: 10px; color: #666; }
|
||
|
|
.wrap { max-width: 1140px; margin: 20px auto 60px; padding: 0 16px; }
|
||
|
|
|
||
|
|
.card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
|
||
|
|
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
||
|
|
.card-head h2 { font-size: 16px; margin: 0; }
|
||
|
|
|
||
|
|
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
|
||
|
|
.grid-form label { display: flex; flex-direction: column; font-size: 13px; color: #555; gap: 5px; }
|
||
|
|
.grid-form label.chk { flex-direction: row; align-items: center; gap: 6px; }
|
||
|
|
.grid-form .span2 { grid-column: 1 / -1; }
|
||
|
|
.grid-form .row { display: flex; gap: 8px; }
|
||
|
|
.grid-form .row input { flex: 1; }
|
||
|
|
.grid-form input[type=text], .grid-form input[type=password], .grid-form select {
|
||
|
|
height: 38px; padding: 0 10px; border: 1px solid #d9dde3; border-radius: 8px; font-size: 14px; width: 100%;
|
||
|
|
}
|
||
|
|
.grid-form input:focus, .grid-form select:focus { outline: none; border-color: #2F6BF7; }
|
||
|
|
.form-actions { display: flex; align-items: center; gap: 10px; }
|
||
|
|
.hint { color: #999; font-size: 12px; }
|
||
|
|
|
||
|
|
.btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
|
||
|
|
.btn.primary { background: #2F6BF7; color: #fff; }
|
||
|
|
.btn.primary:hover { background: #2456cc; }
|
||
|
|
.btn.ghost { background: #f2f4f7; color: #444; }
|
||
|
|
.btn.ghost:hover { background: #e6e9ee; }
|
||
|
|
.btn.block { width: 100%; justify-content: center; }
|
||
|
|
|
||
|
|
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
|
||
|
|
.alert.ok { background: #e8f6ee; color: #1a7f45; }
|
||
|
|
.alert.err { background: #fdecec; color: #c0392b; }
|
||
|
|
|
||
|
|
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||
|
|
.tbl th, .tbl td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
|
||
|
|
.tbl th { color: #888; font-weight: 500; }
|
||
|
|
.tbl tr:hover td { background: #fafbfc; }
|
||
|
|
.tbl .muted { color: #999; }
|
||
|
|
.tbl .ell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
|
|
.tbl .nowrap { white-space: nowrap; }
|
||
|
|
.mini { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #f4f5f7; }
|
||
|
|
.mini.letter { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
|
||
|
|
.inline { display: inline; }
|
||
|
|
.ico-btn { border: none; background: #f2f4f7; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; color: #555; margin: 0 1px; }
|
||
|
|
.ico-btn:hover { background: #e6e9ee; }
|
||
|
|
.ico-btn.danger { color: #c0392b; }
|
||
|
|
.ok-dot { color: #1a7f45; font-size: 12px; }
|
||
|
|
|
||
|
|
/* 登录页 */
|
||
|
|
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
|
||
|
|
.login-card { width: 340px; background: #fff; border-radius: 14px; padding: 30px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.08); text-align: center; }
|
||
|
|
.login-card h1 { font-size: 20px; margin: 8px 0 2px; }
|
||
|
|
.login-card .sub { color: #999; font-size: 13px; margin: 0 0 18px; }
|
||
|
|
.login-card input { width: 100%; height: 42px; margin-bottom: 12px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font-size: 14px; }
|
||
|
|
.login-card input:focus { outline: none; border-color: #2F6BF7; }
|
||
|
|
.login-card .btn { height: 42px; }
|
||
|
|
.login-logo { width: 56px; height: 56px; }
|
||
|
|
|
||
|
|
@media (max-width: 720px) {
|
||
|
|
.grid-form { grid-template-columns: 1fr; }
|
||
|
|
.topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; }
|
||
|
|
.tbl .ell { max-width: 120px; }
|
||
|
|
}
|