Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 98 additions & 4 deletions components/ts_webui/web/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,23 @@ body {

.btn-danger {
background: #ffebee;
border-color: #ef9a9a;
border: 1px solid #ef9a9a;
color: #c62828;
}

/* 灰色小按钮规范:背景 #f5f6fa、文字 #666、边框 #dcdfe6(服务、USB、同步、取消、刷新等) */
button.btn-gray,
.btn-gray {
background: #f5f6fa !important;
color: #666 !important;
border: 1px solid #dcdfe6 !important;
}
button.btn-gray:hover,
.btn-gray:hover {
background: #ebeef5 !important;
border-color: #c0c4cc !important;
}

/* MD 规范:运行中、添加 */
.btn-success {
background: #e8f5e9;
Expand Down Expand Up @@ -1083,6 +1096,17 @@ body {
align-items: center;
justify-content: center;
padding: 60px;
gap: 20px;
}

.loading .loading-icon {
font-size: 48px;
color: var(--primary-color);
animation: spin 1s linear infinite;
}

.loading p {
margin: 0;
}

.spinner {
Expand Down Expand Up @@ -3037,6 +3061,25 @@ body {
padding: 5px 12px;
font-size: 0.85rem;
}
/* HTTPS 证书一行:CSR / 证书 / 删除 等按钮统一宽度,视觉一致(含表格行内按钮) */
.page-security .button-group .btn {
min-width: 6rem;
box-sizing: border-box;
}
.page-security .data-table td .btn {
width: 6rem;
min-width: 6rem;
height: 2rem;
min-height: 2rem;
line-height: 2rem;
padding-top: 0;
padding-bottom: 0;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
text-align: center;
}

.page-security .form-actions .btn,
.page-security .form-actions .btn-sm {
Expand All @@ -3050,6 +3093,37 @@ body {
margin-bottom: 20px;
}

/* 安全页正文/表格/信息卡/弹窗字体与大小统一为与「TianShanOS Intermediate CA」一致 */
.page-security .section,
.page-security .info-card,
.page-security .data-table,
.page-security .data-table th,
.page-security .data-table td,
.page-security .modal .modal-content {
font-size: 0.9rem;
font-family: inherit;
}
.page-security .section h2 {
font-size: 1.15rem;
font-weight: 600;
}
.page-security .modal .modal-content h2 {
font-size: 1.1rem;
}
/* 表格内 code、只读 input、CN/设备名等与「TianShanOS Intermediate CA」统一字号 */
.page-security .data-table code {
font-size: 1em;
}
.page-security input[readonly],
.page-security .modal .modal-content input[type="text"],
.page-security .modal .modal-content label,
.page-security .modal .modal-content .form-group div {
font-size: inherit;
}
.page-security .modal .modal-content textarea {
font-size: inherit;
}

/* =========================================================================
终端页面样式
========================================================================= */
Expand Down Expand Up @@ -3274,7 +3348,7 @@ body {

.btn-warning {
background-color: #fff8e1;
border-color: #ffd54f;
border: 1px solid #ffd54f;
color: #f57c00;
}

Expand Down Expand Up @@ -3302,7 +3376,21 @@ body {
border-color: #007bff;
}

/* 灰色 Tab 按钮样式(SD卡、SPIFFS) */
/* 灰色 Tab 按钮样式(SD卡、SPIFFS),统一宽高 */
.storage-tabs .tab-btn.btn-gray {
width: 6rem;
min-width: 6rem;
height: 2rem;
min-height: 2rem;
line-height: 2rem;
padding-top: 0;
padding-bottom: 0;
text-align: center;
box-sizing: border-box;
display: inline-flex;
align-items: center;
justify-content: center;
}
.tab-btn.btn-gray {
padding: 4px 12px;
font-size: 0.85rem;
Expand Down Expand Up @@ -6884,6 +6972,12 @@ body {
opacity: 0.7;
}

.quick-actions-empty .empty-icon {
font-size: 48px;
margin-bottom: 12px;
opacity: 0.35;
}

/* LPMu 监控面板 */
/* ==================== 数据监控面板组件 ==================== */

Expand Down Expand Up @@ -6920,7 +7014,7 @@ body {
.data-widgets-empty .empty-icon {
font-size: 48px;
margin-bottom: 12px;
opacity: 0.5;
opacity: 0.35;
}

.data-widgets-empty p {
Expand Down
6 changes: 3 additions & 3 deletions components/ts_webui/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div id="page-content">
<!-- 动态页面内容由 SPA 路由器加载 -->
<div class="loading">
<div class="spinner"></div>
<i class="ri-refresh-line loading-icon"></i>
<p data-i18n="common.loading">加载中...</p>
</div>
</div>
Expand Down Expand Up @@ -105,11 +105,11 @@ <h2 id="led-modal-title" data-i18n="led.title">LED 设置</h2>
<div id="file-picker-modal" class="modal hidden">
<div class="modal-content file-picker-modal">
<div class="modal-header">
<h2>📁 <span data-i18n="files.selectFiles">选择文件</span></h2>
<h2><i class="ri-folder-open-line"></i> <span data-i18n="files.selectFiles">选择文件</span></h2>
<button class="modal-close" onclick="closeFilePicker()">&times;</button>
</div>
<div class="file-picker-path">
<button class="btn btn-sm" onclick="filePickerGoUp()">⬆️ <span data-i18n="files.parentFolder">上级</span></button>
<button class="btn btn-sm" onclick="filePickerGoUp()"><i class="ri-arrow-up-s-line"></i> <span data-i18n="files.parentFolder">上级</span></button>
<span id="file-picker-current-path">/sdcard/images</span>
</div>
<div class="file-picker-list" id="file-picker-list">
Expand Down
Loading