Files
web-client/src/App.css

344 lines
6.3 KiB
CSS
Raw Normal View History

2026-02-09 16:33:52 +08:00
#root {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
2026-02-11 22:15:16 +08:00
}
/* Main layout */
2026-02-11 22:15:16 +08:00
.app-layout {
min-height: 100vh;
display: flex;
flex-direction: column;
2026-02-09 16:33:52 +08:00
}
/* Header */
2026-02-11 22:15:16 +08:00
.app-header {
padding: 0 24px;
background: var(--md-surface-container);
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: var(--md-elevation-1);
flex-shrink: 0;
height: 64px;
line-height: 64px;
z-index: 10;
border-bottom: 1px solid var(--md-outline-variant);
2026-02-11 22:15:16 +08:00
}
@media (max-width: 768px) {
.app-header {
padding: 0 12px;
height: 56px;
line-height: 56px;
}
2026-02-11 22:15:16 +08:00
}
/* Sidebar */
2026-02-11 22:15:16 +08:00
.app-sider {
background: var(--md-surface-container-low) !important;
border-right: 1px solid var(--md-outline-variant);
2026-02-11 22:15:16 +08:00
}
.app-sider .ant-menu {
border-right: 0;
background: transparent;
2026-02-11 22:15:16 +08:00
}
/* Content area */
2026-02-11 22:15:16 +08:00
.app-content {
margin: 0;
padding: 0;
overflow: hidden;
width: 100%;
display: flex;
flex-direction: column;
flex: 1;
2026-02-11 22:15:16 +08:00
}
/* Device list page */
2026-02-11 22:15:16 +08:00
.device-list-page {
padding: 20px;
background: var(--md-surface);
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
2026-02-11 22:15:16 +08:00
}
@media (max-width: 768px) {
.device-list-page {
padding: 12px;
}
2026-02-11 22:15:16 +08:00
}
.device-list-card {
background: var(--md-surface-container-lowest);
border-radius: var(--md-shape-md);
padding: 20px;
box-shadow: var(--md-elevation-1);
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
border: 1px solid var(--md-outline-variant);
}
/* Filter bar */
2026-02-11 22:15:16 +08:00
.device-filter-bar {
background: var(--md-surface-container-low);
border-radius: var(--md-shape-sm);
padding: 12px 16px;
margin-bottom: 16px;
border: 1px solid var(--md-outline-variant);
2026-02-11 22:15:16 +08:00
}
.device-filter-bar .ant-form-inline {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
2026-02-11 22:15:16 +08:00
}
@media (max-width: 1200px) {
.device-filter-bar .ant-form-inline .ant-form-item {
margin-bottom: 8px;
}
2026-02-11 22:15:16 +08:00
}
/* Empty state */
2026-02-11 22:15:16 +08:00
.device-empty-state {
text-align: center;
padding: 60px 20px;
color: var(--md-on-surface-variant);
2026-02-11 22:15:16 +08:00
}
/* Standalone control page */
2026-02-11 22:15:16 +08:00
.standalone-control-page {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: row;
background: var(--md-surface);
overflow: hidden;
2026-02-11 22:15:16 +08:00
}
/* Control screen area */
2026-02-11 22:15:16 +08:00
.control-screen-area {
display: flex;
flex-direction: column;
height: 100%;
border-right: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-lowest);
flex-shrink: 0;
overflow: hidden;
2026-02-09 16:33:52 +08:00
}
2026-02-11 22:15:16 +08:00
/* Toolbar */
2026-02-11 22:15:16 +08:00
.control-toolbar {
padding: 6px 12px;
border-bottom: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-low);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
min-height: 40px;
2026-02-09 16:33:52 +08:00
}
2026-02-11 22:15:16 +08:00
.control-toolbar .ant-btn {
font-size: 12px;
2026-02-09 16:33:52 +08:00
}
2026-02-11 22:15:16 +08:00
@media (max-width: 1200px) {
.control-toolbar {
padding: 4px 8px;
}
.control-toolbar .ant-btn {
font-size: 11px;
padding: 0 6px;
}
2026-02-09 16:33:52 +08:00
}
/* Screen + reader horizontal layout */
2026-02-11 22:15:16 +08:00
.screen-reader-row {
display: flex;
flex-direction: row;
flex: 1;
min-height: 0;
overflow: hidden;
2026-02-11 22:15:16 +08:00
}
.screen-reader-panel {
width: 50%;
border-right: 1px solid var(--md-outline-variant);
position: relative;
overflow: hidden;
background: var(--md-surface-container-low);
display: flex;
flex-direction: column;
2026-02-11 22:15:16 +08:00
}
.device-screen-panel {
width: 50%;
position: relative;
overflow: hidden;
background: var(--md-surface-container);
display: flex;
flex-direction: column;
2026-02-11 22:15:16 +08:00
}
/* Text input bar */
2026-02-11 22:15:16 +08:00
.text-input-bar {
height: 44px;
border-top: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-lowest);
padding: 6px 12px;
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
2026-02-11 22:15:16 +08:00
}
.text-input-bar input {
flex: 1;
height: 32px;
padding: 0 12px;
border: 1px solid var(--md-outline-variant);
border-radius: var(--md-shape-full);
font-size: 13px;
outline: none;
background: var(--md-surface-container-low);
color: var(--md-on-surface);
transition: border-color 0.2s, box-shadow 0.2s;
2026-02-11 22:15:16 +08:00
}
.text-input-bar input:focus {
border-color: var(--md-primary);
box-shadow: 0 0 0 2px rgba(91, 95, 199, 0.12);
}
.text-input-bar input::placeholder {
color: var(--md-on-surface-variant);
2026-02-11 22:15:16 +08:00
}
.text-input-bar button {
height: 32px;
padding: 0 16px;
border: none;
border-radius: var(--md-shape-full);
background: var(--md-primary);
color: var(--md-on-primary);
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: background 0.2s, box-shadow 0.2s;
2026-02-11 22:15:16 +08:00
}
.text-input-bar button:hover:not(:disabled) {
box-shadow: var(--md-elevation-1);
filter: brightness(1.08);
2026-02-11 22:15:16 +08:00
}
.text-input-bar button:disabled {
background: var(--md-surface-container-highest);
color: var(--md-outline);
cursor: not-allowed;
2026-02-11 22:15:16 +08:00
}
/* System keys bar */
2026-02-11 22:15:16 +08:00
.system-keys-bar {
padding: 8px 12px;
border-top: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-lowest);
flex-shrink: 0;
display: flex;
justify-content: center;
gap: 10px;
2026-02-11 22:15:16 +08:00
}
.system-keys-bar .ant-btn {
min-width: 72px;
height: 34px;
border-radius: var(--md-shape-full);
font-size: 13px;
2026-02-11 22:15:16 +08:00
}
/* Right control panel */
2026-02-11 22:15:16 +08:00
.control-panel-area {
flex: 1;
display: flex;
flex-direction: column;
background: var(--md-surface-container-lowest);
min-width: 0;
overflow: hidden;
2026-02-11 22:15:16 +08:00
}
.control-panel-header {
padding: 10px 16px;
border-bottom: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-low);
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
font-size: 14px;
color: var(--md-on-surface);
2026-02-11 22:15:16 +08:00
}
.control-panel-body {
flex: 1;
overflow: auto;
padding: 0;
2026-02-11 22:15:16 +08:00
}
/* Bottom status bar */
2026-02-11 22:15:16 +08:00
.screen-reader-status-bar {
padding: 3px 12px;
border-top: 1px solid var(--md-outline-variant);
background: var(--md-surface-container-low);
font-size: 11px;
color: var(--md-on-surface-variant);
text-align: center;
flex-shrink: 0;
2026-02-11 22:15:16 +08:00
}
/* Mobile overlay */
2026-02-11 22:15:16 +08:00
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.32);
z-index: 999;
animation: fadeIn 0.2s ease;
2026-02-11 22:15:16 +08:00
}
/* Mobile sidebar */
2026-02-11 22:15:16 +08:00
@media (max-width: 768px) {
.ant-layout-sider {
position: fixed !important;
height: 100vh !important;
z-index: 1000 !important;
}
.ant-layout-header {
padding: 0 12px !important;
}
}
/* Table responsive */
2026-02-11 22:15:16 +08:00
.ant-table-wrapper {
overflow-x: auto;
2026-02-09 16:33:52 +08:00
}
2026-02-11 22:15:16 +08:00
.ant-table {
font-size: 13px;
2026-02-09 16:33:52 +08:00
}