fix: 精简登录页并补夜间图纸配色

This commit is contained in:
2026-11-02 15:44:52 +08:00
parent 6e7db27d8b
commit 0b510d8794
2 changed files with 19 additions and 31 deletions
-5
View File
@@ -321,7 +321,6 @@ async function finishNqi() {
<section class="lv-side">
<div class="lv-brand">
<h1>DecomEval</h1>
<p class="lv-lede">杆塔立面标注</p>
</div>
<p v-if="noticeVisible" class="lv-notice">请使用大数据平台账号登录</p>
<form class="lv-fields" @submit.prevent="submitLogin">
@@ -341,10 +340,6 @@ async function finishNqi() {
</template>
<button class="lv-go" type="submit" :disabled="busy">{{ busy ? "登录中" : "登录" }}</button>
</form>
<div class="lv-block">
<b>图纸</b><span>立面</span>
<b>比例</b><span>示意</span>
</div>
</section>
<n-modal v-model:show="smsRequired" class="app-dialog" :mask-closable="false" preset="card" title="短信认证">
<n-input v-model:value="smsCode" placeholder="请输入短信验证码" @keyup.enter="finishNqi" />
+19 -26
View File
@@ -1,6 +1,9 @@
.gate.lv-tower {
--paper: color-mix(in srgb, #ebe4d2 70%, #d7dce2);
--ink-line: #2c3038;
--field: color-mix(in srgb, var(--paper) 70%, #fff);
--captcha-bg: #fff;
--muted-line: color-mix(in srgb, var(--ink-line) 42%, var(--paper));
display: grid;
grid-template-columns: 88px minmax(0, 1fr);
align-items: stretch;
@@ -12,7 +15,16 @@
background: var(--paper);
color: var(--ink-line);
font-family: SimSun, "Songti SC", serif;
transition: background-color 0.22s ease, color 0.22s ease;
}
html[data-theme="dark"] .gate.lv-tower {
--paper: #161512;
--ink-line: #e6dece;
--field: #24211b;
--captcha-bg: #2c2922;
}
.gate.lv-tower .theme-switch {
position: absolute;
top: 16px;
@@ -69,21 +81,14 @@
}
.gate.lv-tower .lv-brand {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
margin: 0 0 8px;
margin: 0 0 18px;
}
.gate.lv-tower .lv-side h1 {
font-size: 28px;
font-weight: 700;
letter-spacing: 0.18em;
}
.gate.lv-tower .lv-lede {
margin: 0;
font-size: 13px;
letter-spacing: 0.08em;
}
.gate.lv-tower .lv-notice,
.gate.lv-tower .lv-brand + .lv-notice {
margin: 0 0 16px;
@@ -116,10 +121,14 @@
padding: 0 8px;
border: 1px solid var(--ink-line);
border-radius: 0;
background: color-mix(in srgb, var(--paper) 70%, #fff);
background: var(--field);
color: var(--ink-line);
font: inherit;
outline: none;
caret-color: var(--ink-line);
}
.gate.lv-tower .lv-fields input::placeholder {
color: var(--muted-line);
}
.gate.lv-tower .lv-fields input:focus {
box-shadow: inset 0 0 0 1px var(--ink-line);
@@ -139,7 +148,7 @@
padding: 0;
border: 1px solid var(--ink-line);
border-radius: 0;
background: #fff;
background: var(--captcha-bg);
}
.gate.lv-tower .lv-captcha-box:hover { border-color: var(--ink-line); }
.gate.lv-tower .lv-go {
@@ -158,22 +167,6 @@
}
.gate.lv-tower .lv-go:hover { filter: brightness(1.12); }
.gate.lv-tower .lv-go:disabled { opacity: 0.6; cursor: default; filter: none; }
.gate.lv-tower .lv-block {
margin-top: 28px;
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid var(--ink-line);
font-size: 12px;
}
.gate.lv-tower .lv-block b,
.gate.lv-tower .lv-block span {
padding: 8px 10px;
border-right: 1px solid var(--ink-line);
border-bottom: 1px solid var(--ink-line);
font-weight: 400;
}
.gate.lv-tower .lv-block :nth-child(2n) { border-right: 0; }
.gate.lv-tower .lv-block :nth-last-child(-n + 2) { border-bottom: 0; }
@media (max-width: 720px) {
.gate.lv-tower { grid-template-columns: 28px 1fr; }