2025-05-27 15:46:31 +08:00

621 lines
11 KiB
CSS

.container {
width: 90%;
}
#settings-container {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
box-shadow: 0 0 24px rgba(145, 66, 197, 0.5);
width: 95%;
/* 模仿 iPad 的宽度设置 */
margin-left: auto;
margin-right: auto;
font-size: 14px;
}
/* 每个设置模块的样式 */
.setting-section {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
padding: 15px;
box-shadow: 0 0 10px rgba(145, 66, 197, 0.3);
transition: all 0.3s ease;
}
/* 设置标题样式 */
.setting-section .title {
font-size: 18px;
color: #fff;
border-bottom: 1px solid rgba(145, 66, 197, 0.5);
padding-bottom: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
/* justify-content: space-between; */
}
.setting-section .title .right {
margin-left: 20px;
}
.setting-section .title .right .btn {
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-ms-border-radius: 8px;
-o-border-radius: 8px;
padding: 6px 20px;
display: block;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65);
-webkit-user-select: none;
/* Chrome, Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Standard */
color: #333;
font-size: 14px;
}
.setting-section .title .right .btn:active {
background: linear-gradient(
to right bottom,
rgb(145, 66, 197),
rgb(212, 96, 241)
);
color: #fff;
}
#change-power {
display: flex;
margin-left: 30px;
align-items: center;
}
.common-panel {
display: flex;
align-items: center;
}
.common-panel .common-panel-btn {
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-ms-border-radius: 8px;
-o-border-radius: 8px;
padding: 6px 20px;
display: block !important;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65);
-webkit-user-select: none;
/* Chrome, Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Standard */
}
.common-panel .common-panel-btn:not(:last-child) {
margin-right: 10px;
}
.common-panel .common-panel-btn:active {
background: linear-gradient(
to right bottom,
rgba(145, 66, 197, 1),
rgb(212, 96, 241)
);
color: #fff;
}
/* 下拉菜单样式 */
.version-selector {
margin: 10px 0;
}
.version-selector label {
display: block;
font-size: 16px;
color: white;
margin-bottom: 5px;
}
/* 下拉菜单样式 */
.version-selector select {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 1px solid rgba(145, 66, 197, 0.5);
background: rgba(255, 255, 255, 0.15);
color: white;
/* 字体颜色 */
font-size: 14px;
appearance: none;
/* 去掉默认样式 */
-webkit-appearance: none;
-moz-appearance: none;
transition: border 0.3s ease, background-color 0.3s ease;
position: relative;
z-index: 1;
}
/* 悬停时边框颜色和背景变化 */
.version-selector select:hover {
border-color: rgba(145, 66, 197, 1);
background-color: rgba(255, 255, 255, 0.2);
/* 悬停时背景颜色 */
}
/* 添加圆角效果 */
.version-selector select option {
background-color: rgba(255, 255, 255, 1);
/* 选项背景颜色 */
color: black;
/* 选项字体颜色 */
border-radius: 8px;
/* 选项的圆角 */
padding: 5px;
}
.current-version {
display: flex;
align-items: center;
}
/* 当前版本的文字样式 */
.current-version p {
font-size: 16px;
color: white;
margin: 10px 0;
}
.current-version span {
margin-left: 10px;
font-weight: bold;
color: #f5c6ff;
}
/* 按钮样式 */
.update-section button {
padding: 10px 20px;
margin-top: 10px;
border: none;
border-radius: 8px;
background: linear-gradient(
to right,
rgb(212, 96, 241),
rgba(145, 66, 197, 0.5)
);
color: white;
font-size: 14px;
cursor: pointer;
transition: background 0.3s ease;
}
.update-section button:hover {
background: linear-gradient(
to right,
rgba(145, 66, 197, 1),
rgb(212, 96, 241)
);
}
#log-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
z-index: 9999;
}
#log-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.log-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 20px;
width: 80%;
height: 86%;
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
box-sizing: border-box;
padding-top: 60px;
}
.log-content .log-operation {
position: fixed;
height: 60px;
box-sizing: border-box;
top: 0;
display: flex;
align-items: center;
}
.log-operation #log-input {
border-radius: 6px;
border: 1px solid #dedede;
padding: 8px 14px;
font-size: 12px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-o-border-radius: 6px;
}
.log-operation .log-btn {
margin-left: 14px;
border: none;
padding: 8px 14px;
border-radius: 6px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-o-border-radius: 6px;
background: linear-gradient(
to right bottom,
rgba(145, 66, 197, 0.8),
rgba(212, 96, 241, 0.6)
);
box-sizing: border-box;
font-size: 12px;
color: #fff;
}
.log-content .log-text {
overflow-y: auto;
font-size: 12px;
height: calc(100% - 20px);
}
#loading-indicator {
text-align: center;
padding: 10px;
font-size: 12px;
color: #666;
}
.token.info {
color: green;
}
.token.error {
color: red;
}
.token.warning {
color: orange;
}
.token.timestamp {
color: blue;
}
#wifi-modal {
position: fixed;
z-index: 990;
left: 0;
top: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
display: none;
}
.modal {
z-index: 991;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.wifi-box {
width: 30vw;
background-color: #f2f2f2;
/* background-color: rgba(255, 255, 255, 0.8);
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65); */
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
z-index: 992;
box-sizing: border-box;
padding: 20px;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.wifi-box .common-wifi-box {
width: 100%;
background-color: #fff;
padding: 10px 6px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
}
.wifi-box .wifi-box-subtitle {
color: #666;
text-align: left;
width: 100%;
font-size: 11px;
margin: 10px 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.wifi-box .wifi-box-subtitle .rescan-btn {
padding: 6px 12px;
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
}
.wifi-box .wifi-box-subtitle .rescan-btn img {
padding: 0;
margin: 0;
width: 20px;
height: 20px;
}
.wifi-box .wifi-box-subtitle .rescan-btn:active {
background-color: #fff;
}
.wifi-box .wifi-box-content {
flex: 1;
}
.wifi-box-header .img-box {
border-radius: 18px;
-webkit-border-radius: 18px;
-moz-border-radius: 18px;
-ms-border-radius: 18px;
-o-border-radius: 18px;
background: linear-gradient(
to right bottom,
rgba(145, 66, 197, 0.8),
rgba(212, 96, 241, 0.6)
);
box-sizing: border-box;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.wifi-box-header .img-box .wifi-img {
width: 20px;
height: 20px;
}
.wifi-box-header .wifi-title {
font-size: 16px;
color: #333;
margin: 6px 0;
font-weight: 600;
}
.wifi-box-header .wifi-desc {
font-size: 12px;
color: #666;
}
.wifi-item {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 4px 14px;
box-sizing: border-box;
position: relative;
}
.wifi-item:not(:last-child):after {
content: "";
position: absolute;
bottom: 0;
left: 44px;
width: calc(100% - 58px);
height: 1px;
background-color: #cdcdcd;
}
.wifi-item .wifi-is-connected {
width: 20px;
height: 20px;
min-width: 20px;
min-height: 20px;
object-fit: cover;
/* 保持图片比例并裁剪多余部分 */
object-position: center;
/* 将图片定位在中心 */
}
.wifi-item .wifi-name {
font-size: 14px;
color: #333;
margin-left: 10px;
flex: 1;
}
.wifi-item .right-content {
height: 100%;
margin: 0 !important;
padding: 0 !important;
display: flex;
align-items: center;
justify-content: center;
}
.right-content .is-locked,
.right-content .wifi-type {
width: 14px;
height: 14px;
min-width: 14px;
min-height: 14px;
}
.wifi-item .wifi-is-connected img,
.right-content .is-locked img,
.right-content .wifi-type img {
width: 100%;
height: 100%;
}
.right-content .wifi-type {
margin-left: 10px;
}
#wifi-list {
padding: 0;
overflow-y: scroll;
height: 300px;
width: 100%;
}
#wifi-list .wifi-item {
padding-top: 12px;
padding-bottom: 12px;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
}
#wifi-list .wifi-item:active {
background-color: #f5f5f5;
}
#wifi-list .loading-box {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100px;
}
.loading-box .loading-img {
width: 30px;
height: 30px;
}
#wifi-list .is-locked {
margin-bottom: 10px;
}
#board-img {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
object-fit: cover;
/* 保持比例,裁剪超出部分 */
object-position: center;
background: #ffffff;
/* 图片中心对齐容器中心 */
}
.head-selection {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
}
.head-option {
display: flex;
align-items: center;
padding: 0 10px;
}
.head-option input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border: 2px solid #ddd;
border-radius: 4px;
outline: none;
cursor: pointer;
margin-right: 10px;
position: relative;
transition: all 0.3s ease;
}
.head-option input[type="checkbox"]:hover {
border-color: #9142c5;
}
.head-option input[type="checkbox"]:checked {
background-color: #9142c5;
border-color: #9142c5;
}
.head-option input[type="checkbox"]:checked::after {
content: "✓";
position: absolute;
color: white;
font-size: 10px;
font-weight: 600;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.head-option label {
font-size: 16px;
color: #333;
}