One-KVM/web/share/css/login/login.css
mofeng-git bdd97c5ea3 fix: 修复 Firefox 登录界面布局问题
- 统一表格样式,设置 border-collapse 和 border-spacing
- 调整标签文本左对齐,减少行间距
- 修复输入框边框样式,添加统一的边框和圆角
- 统一记住我选择框和语言选择框的宽度样式
2025-08-22 15:51:54 +08:00

106 lines
2.9 KiB
CSS

/*****************************************************************************
# #
# KVMD - The main PiKVM daemon. #
# #
# Copyright (C) 2018-2024 Maxim Devaev <mdevaev@gmail.com> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
# #
*****************************************************************************/
div#login-box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}
div#login {
text-align: left;
outline: none;
word-wrap: break-word;
max-width: 400px;
border: var(--border-window-default-thin);
border-radius: 8px;
box-sizing: border-box;
box-shadow: var(--shadow-big);
background-color: var(--cs-window-default-bg);
padding: 15px;
}
div#login table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}
div#login table td {
padding: 3px 5px;
vertical-align: middle;
}
div#login table td:first-child {
width: 120px;
text-align: left;
padding-right: 10px;
}
div#login table td:last-child {
width: auto;
}
div#login hr {
margin: 5px 0;
}
img#login-logo {
height: 30px;
}
button#login-button {
width: 100%;
}
input[type="text"]#user-input,
input[type="password"]#passwd-input,
input[type="text"]#code-input {
text-align: center;
border: 1px solid var(--cs-control-default-border);
border-radius: 3px;
padding: 6px 8px;
width: 100%;
box-sizing: border-box;
}
select#selectLanguage {
border: 1px solid var(--cs-control-default-border);
border-radius: 3px;
padding: 6px 8px;
width: 100%;
box-sizing: border-box;
}
div#login .radio-box {
width: 100%;
justify-content: flex-start;
}
div#login .radio-box label {
flex: 1;
justify-content: center;
}