mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-12 09:34:05 +08:00
- 上一提交的选择器特异性只有 (0,3,1),与 v2-theme.css:601 的 `body[data-ui-version="v2"] .ant-segmented .ant-segmented-item-selected` 同分, 而 v2-theme.css 在 App.css 之后导入,同分时后加载者胜出, 选中态仍被 --gn-bg-panel 覆盖回灰底,主题色胶囊实际未生效 - 选择器补上 .ant-segmented(.gonavi-about-update-channel.ant-segmented)把特异性提到 (0,4,1) - 选中项的 color 一并显式设为白色,避免 v2 通用规则的 --gn-fg-1 在强调色底上对比不足
2785 lines
78 KiB
CSS
2785 lines
78 KiB
CSS
:root {
|
||
--gn-font-sans: "Inter", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Ubuntu", sans-serif;
|
||
--gn-font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
||
}
|
||
|
||
html, body, #root {
|
||
height: 100%;
|
||
margin: 0;
|
||
padding: 0;
|
||
overflow: hidden; /* Disable global scrollbar */
|
||
background-color: transparent !important; /* CRITICAL: Allow Wails window transparency */
|
||
}
|
||
|
||
body, #root {
|
||
border-radius: var(--gonavi-border-radius); /* Slightly rounded app window corners */
|
||
}
|
||
|
||
body,
|
||
button,
|
||
input,
|
||
textarea,
|
||
select {
|
||
font-family: var(--gn-font-sans);
|
||
}
|
||
|
||
code,
|
||
pre,
|
||
kbd,
|
||
samp {
|
||
font-family: var(--gn-font-mono);
|
||
}
|
||
|
||
/* 侧边栏 Tree 样式优化 */
|
||
.ant-tree .ant-tree-treenode {
|
||
width: 100%;
|
||
}
|
||
|
||
.ant-tree .ant-tree-node-content-wrapper {
|
||
display: flex !important;
|
||
align-items: center;
|
||
white-space: nowrap;
|
||
user-select: none !important;
|
||
-webkit-user-select: none !important;
|
||
}
|
||
|
||
.ant-tree .ant-tree-title,
|
||
.ant-tree .ant-tree-treenode * {
|
||
user-select: none !important;
|
||
-webkit-user-select: none !important;
|
||
}
|
||
|
||
.ant-tree .ant-tree-title {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
padding-right: 8px;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell {
|
||
overflow-x: auto;
|
||
overflow-y: hidden;
|
||
}
|
||
|
||
.sidebar-tree-scroll-content {
|
||
min-width: 100%;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree {
|
||
min-width: 100%;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-list-holder,
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-list-holder-inner {
|
||
min-width: 100%;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-treenode {
|
||
width: auto;
|
||
min-width: 100%;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-node-content-wrapper {
|
||
width: max-content !important;
|
||
min-width: 100%;
|
||
display: flex !important;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-switcher {
|
||
flex: 0 0 24px;
|
||
width: 24px;
|
||
min-width: 24px;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-iconEle {
|
||
flex: 0 0 16px;
|
||
width: 16px;
|
||
min-width: 16px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-inline-end: 0;
|
||
}
|
||
|
||
.sidebar-tree-scroll-shell .ant-tree .ant-tree-title {
|
||
flex: 0 0 auto;
|
||
min-width: max-content;
|
||
overflow: visible;
|
||
text-overflow: clip;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree {
|
||
background: transparent;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-list-holder-inner,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-list-holder-inner .ant-tree-treenode {
|
||
width: 100% !important;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper {
|
||
min-height: 36px;
|
||
border-radius: 14px;
|
||
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
||
background: transparent !important;
|
||
border: none !important;
|
||
box-shadow: none !important;
|
||
outline: none !important;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
width: auto !important;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:hover,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:active,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:focus,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:focus-visible,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected:hover {
|
||
background: transparent !important;
|
||
border-color: transparent !important;
|
||
box-shadow: none !important;
|
||
outline: none !important;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-treenode {
|
||
padding: 2px 0;
|
||
width: 100%;
|
||
border-radius: 14px;
|
||
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
||
border: none;
|
||
align-items: center;
|
||
position: relative;
|
||
z-index: 0;
|
||
display: flex !important;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-switcher {
|
||
width: 0 !important;
|
||
min-width: 0 !important;
|
||
margin-inline-end: 0 !important;
|
||
padding: 0 !important;
|
||
overflow: hidden !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-tree .ant-tree-switcher:hover,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-switcher:active,
|
||
.redis-viewer-workbench .ant-tree .ant-tree-switcher:focus {
|
||
background: transparent !important;
|
||
}
|
||
|
||
.redis-viewer-workbench .redis-tree-expander-button:hover,
|
||
.redis-viewer-workbench .redis-tree-expander-button:focus-visible {
|
||
background: transparent !important;
|
||
outline: none;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-radio-group .ant-radio-button-wrapper {
|
||
border-radius: 10px;
|
||
margin-inline-end: 6px;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-radio-group .ant-radio-button-wrapper:last-child {
|
||
margin-inline-end: 0;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-table {
|
||
background: transparent;
|
||
}
|
||
|
||
.redis-viewer-workbench .ant-table-wrapper .ant-table-thead > tr > th {
|
||
font-weight: 700;
|
||
}
|
||
|
||
/* Scrollbar styling for dark mode */
|
||
body[data-theme='dark'] ::-webkit-scrollbar {
|
||
width: 10px;
|
||
height: 10px;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-track {
|
||
background: #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-corner {
|
||
background: #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-thumb {
|
||
background: #424242;
|
||
border-radius: 4px;
|
||
border: 2px solid #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
|
||
background: #666;
|
||
}
|
||
|
||
/* Scrollbar styling for light mode (transparent-friendly) */
|
||
body[data-theme='light'] ::-webkit-scrollbar {
|
||
width: 10px;
|
||
height: 10px;
|
||
}
|
||
body[data-theme='light'] ::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
body[data-theme='light'] ::-webkit-scrollbar-corner {
|
||
background: transparent;
|
||
}
|
||
body[data-theme='light'] ::-webkit-scrollbar-thumb {
|
||
background: rgba(0, 0, 0, 0.18);
|
||
border-radius: 4px;
|
||
border: 2px solid transparent;
|
||
background-clip: content-box;
|
||
}
|
||
body[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
|
||
background: rgba(0, 0, 0, 0.30);
|
||
border: 2px solid transparent;
|
||
background-clip: content-box;
|
||
}
|
||
|
||
.gn-query-monaco-stage {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.gn-query-monaco-shell {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-query-monaco-stage .monaco-editor .suggest-details-container {
|
||
min-height: 260px;
|
||
}
|
||
|
||
.gn-query-monaco-stage .monaco-editor .suggest-details {
|
||
min-height: 260px;
|
||
}
|
||
|
||
.gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main {
|
||
justify-content: flex-start;
|
||
gap: 6px;
|
||
}
|
||
|
||
/* 补全主名称优先完整显示,避免被右侧表名/类型挤成 primary_ent... */
|
||
.gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 表名/类型等元数据让位:始终可见,但空间不足时优先压缩/省略右侧 */
|
||
.gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {
|
||
flex: 0 1 auto;
|
||
flex-shrink: 4;
|
||
max-width: 48%;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .details-label {
|
||
display: inline !important;
|
||
margin-left: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* Ensure body background matches theme to avoid white flashes, but kept transparent for window composition */
|
||
body {
|
||
transition: color 0.3s;
|
||
}
|
||
|
||
body[data-theme='dark'] {
|
||
/* 移除全局 text-shadow:对每个文本元素增加 GPU compositing 成本,
|
||
在透明窗口环境下会显著加剧 GPU 负载 */
|
||
}
|
||
|
||
/* 暗色 + 透明:提升选中/焦点可读性,避免默认蓝色在半透明背景下发灰 */
|
||
body[data-theme='dark'] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,
|
||
body[data-theme='dark'] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected:hover {
|
||
background: rgba(246, 196, 83, 0.24) !important;
|
||
color: rgba(255, 236, 179, 0.98) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode:hover {
|
||
background: rgba(255, 255, 255, 0.05) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected,
|
||
body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected:hover {
|
||
background: linear-gradient(90deg, rgba(246, 196, 83, 0.22), rgba(246, 196, 83, 0.08)) !important;
|
||
border: 1px solid rgba(246, 196, 83, 0.24) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-checkbox-checked .ant-checkbox-inner {
|
||
background-color: #f6c453 !important;
|
||
border-color: #f6c453 !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
||
background-color: #f6c453 !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-checkbox:hover .ant-checkbox-inner,
|
||
body[data-theme='dark'] .ant-checkbox-wrapper:hover .ant-checkbox-inner {
|
||
border-color: #f6c453 !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-radio-checked .ant-radio-inner {
|
||
border-color: #f6c453 !important;
|
||
background-color: #f6c453 !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-radio-wrapper:hover .ant-radio-inner,
|
||
/* 这两条是旧版 UI 的琥珀强调色,必须排除 v2:
|
||
v2 的强调色是绿色(v2-theme.css 的 --gn-accent 与 antd colorPrimary 均为绿),
|
||
而这里的选择器特异性更高(.ant-switch.ant-switch-checked 是两个类),
|
||
即便 v2-theme.css 后加载也会被这里压过,导致 v2 下的开关/单选显示成琥珀色。 */
|
||
body[data-theme='dark']:not([data-ui-version='v2']) .ant-radio:hover .ant-radio-inner {
|
||
border-color: #f6c453 !important;
|
||
}
|
||
|
||
body[data-theme='dark']:not([data-ui-version='v2']) .ant-switch.ant-switch-checked {
|
||
background: #d8a93b !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-table-tbody > tr.ant-table-row-selected > td,
|
||
body[data-theme='dark'] .ant-table-tbody .ant-table-row.ant-table-row-selected > .ant-table-cell {
|
||
background: rgba(246, 196, 83, 0.18) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .ant-table-tbody > tr.ant-table-row-selected:hover > td,
|
||
body[data-theme='dark'] .ant-table-tbody .ant-table-row.ant-table-row-selected:hover > .ant-table-cell {
|
||
background: rgba(246, 196, 83, 0.26) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .redis-viewer-workbench .ant-radio-button-wrapper {
|
||
background: rgba(255, 255, 255, 0.04);
|
||
border-color: rgba(255, 255, 255, 0.08);
|
||
color: rgba(230, 234, 242, 0.9);
|
||
}
|
||
|
||
body[data-theme='dark'] .redis-viewer-workbench .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
||
background: rgba(246, 196, 83, 0.16);
|
||
border-color: rgba(246, 196, 83, 0.3);
|
||
color: #f6c453;
|
||
}
|
||
|
||
body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode:hover {
|
||
background: rgba(15, 23, 42, 0.04) !important;
|
||
}
|
||
|
||
body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected,
|
||
body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected:hover {
|
||
color: rgba(15, 23, 42, 0.92) !important;
|
||
background: linear-gradient(90deg, rgba(22, 119, 255, 0.12), rgba(22, 119, 255, 0.04)) !important;
|
||
border: 1px solid rgba(22, 119, 255, 0.18) !important;
|
||
}
|
||
|
||
body[data-theme='light'] .redis-viewer-workbench .ant-radio-button-wrapper {
|
||
background: rgba(255, 255, 255, 0.72);
|
||
border-color: rgba(15, 23, 42, 0.08);
|
||
color: rgba(51, 65, 85, 0.88);
|
||
}
|
||
|
||
body[data-theme='light'] .redis-viewer-workbench .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
||
background: rgba(22, 119, 255, 0.1);
|
||
border-color: rgba(22, 119, 255, 0.22);
|
||
color: #1677ff;
|
||
}
|
||
|
||
/* 连接配置弹窗:滚动仅在弹窗 body 内部,不使用外层 wrap 滚动条 */
|
||
.connection-modal-wrap {
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-content {
|
||
max-height: calc(100vh - 72px);
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-body {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-footer {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Custom Title Bar Close Button Hover */
|
||
body[data-platform='windows'] .titlebar-window-controls {
|
||
gap: 8px;
|
||
}
|
||
|
||
.titlebar-close-btn:hover {
|
||
background-color: #ff4d4f !important;
|
||
color: #fff !important;
|
||
}
|
||
|
||
.driver-manager-modal .ant-modal-body {
|
||
background: var(--ant-color-bg-layout, #f5f5f5);
|
||
}
|
||
|
||
.driver-manager-shell {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
|
||
.driver-manager-header {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto;
|
||
gap: 16px;
|
||
align-items: stretch;
|
||
padding: 14px 16px;
|
||
border: 1px solid rgba(5, 5, 5, 0.08);
|
||
border-radius: 8px;
|
||
background: var(--ant-color-bg-container, #fff);
|
||
}
|
||
|
||
.driver-manager-heading {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-stats {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, minmax(64px, 1fr));
|
||
gap: 8px;
|
||
min-width: 360px;
|
||
}
|
||
|
||
.driver-manager-stat {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
justify-content: center;
|
||
min-height: 58px;
|
||
padding: 8px 10px;
|
||
border: 1px solid rgba(5, 5, 5, 0.08);
|
||
border-radius: 8px;
|
||
background: rgba(5, 5, 5, 0.02);
|
||
}
|
||
|
||
.driver-manager-stat span:first-child {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.driver-manager-stat-warning span:first-child {
|
||
color: #d48806;
|
||
}
|
||
|
||
.driver-manager-directory-panel {
|
||
border: 1px solid rgba(5, 5, 5, 0.08);
|
||
border-radius: 8px;
|
||
background: var(--ant-color-bg-container, #fff);
|
||
}
|
||
|
||
.driver-manager-toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10px;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.driver-manager-search {
|
||
min-width: 280px;
|
||
flex: 1 1 360px;
|
||
}
|
||
|
||
.driver-manager-toolbar-actions {
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.driver-manager-batch-progress-panel {
|
||
display: grid;
|
||
gap: 8px;
|
||
padding: 12px 14px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.driver-manager-batch-progress-header,
|
||
.driver-manager-batch-progress-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px 12px;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-batch-progress-header span,
|
||
.driver-manager-batch-progress-meta span {
|
||
min-width: 0;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.driver-manager-list-head {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
min-height: 24px;
|
||
}
|
||
|
||
.driver-manager-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.driver-manager-card {
|
||
border: 1px solid rgba(5, 5, 5, 0.08);
|
||
border-radius: 8px;
|
||
background: var(--ant-color-bg-container, #fff);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.driver-manager-card-warning {
|
||
border-color: rgba(250, 173, 20, 0.35);
|
||
}
|
||
|
||
.driver-manager-card-ready {
|
||
border-color: rgba(82, 196, 26, 0.22);
|
||
}
|
||
|
||
.driver-manager-card-main {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
|
||
gap: 16px;
|
||
padding: 16px;
|
||
}
|
||
|
||
.driver-manager-card-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-title-row,
|
||
.driver-manager-meta-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
align-items: center;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-driver-name {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.driver-manager-meta-row {
|
||
row-gap: 4px;
|
||
}
|
||
|
||
.driver-manager-update-note {
|
||
display: grid;
|
||
gap: 4px;
|
||
padding: 10px 12px;
|
||
border-radius: 8px;
|
||
background: rgba(250, 173, 20, 0.1);
|
||
}
|
||
|
||
.driver-manager-note-text,
|
||
.driver-manager-muted-message {
|
||
margin-bottom: 0 !important;
|
||
}
|
||
|
||
.driver-manager-muted-message {
|
||
color: var(--ant-color-text-secondary);
|
||
}
|
||
|
||
.driver-manager-card-controls {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-control-block {
|
||
display: grid;
|
||
gap: 4px;
|
||
}
|
||
|
||
.driver-manager-control-label,
|
||
.driver-manager-small-text {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.driver-manager-version-control {
|
||
display: grid;
|
||
gap: 4px;
|
||
}
|
||
|
||
.driver-manager-version-lock {
|
||
line-height: 24px;
|
||
}
|
||
|
||
.driver-manager-card-actions {
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.driver-manager-card-actions .ant-btn {
|
||
min-width: 88px;
|
||
}
|
||
|
||
.driver-manager-footer-actions {
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
/* The settings-center view is a compact driver workbench, not a stack of
|
||
standalone cards. Keep the full modal presentation above unchanged. */
|
||
.driver-manager-embedded-layout {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
height: 100%;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.driver-manager-embedded-layout > .driver-manager-shell.is-embedded {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
padding-right: 6px;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded {
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-header {
|
||
align-items: center;
|
||
padding: 0 2px 10px;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-heading {
|
||
flex-direction: row;
|
||
flex-wrap: wrap;
|
||
gap: 4px 12px;
|
||
font-family: var(--gn-font-sans);
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-stats {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: flex-end;
|
||
gap: 0;
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-stat {
|
||
flex-direction: row;
|
||
align-items: baseline;
|
||
gap: 5px;
|
||
min-height: 0;
|
||
padding: 2px 10px;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-stat + .driver-manager-stat {
|
||
border-left: 1px solid var(--ant-color-border-secondary, rgba(5, 5, 5, 0.08)) !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-stat span:first-child {
|
||
font-size: var(--gn-font-size, 14px);
|
||
font-weight: 700;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel {
|
||
border-radius: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .ant-alert {
|
||
border-inline: 0 !important;
|
||
border-radius: 0 !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel.ant-collapse {
|
||
border-inline: 0 !important;
|
||
border-radius: 0 !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel .ant-collapse-header {
|
||
min-height: 36px;
|
||
padding: 7px 2px !important;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
font-weight: 600;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel .ant-collapse-content-box {
|
||
padding: 2px 2px 10px !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel code,
|
||
.driver-manager-shell.is-embedded .driver-manager-directory-panel .ant-typography-copy {
|
||
font-family: var(--gn-font-mono);
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-toolbar {
|
||
gap: 8px;
|
||
padding: 2px 2px 10px;
|
||
border-bottom: 1px solid var(--ant-color-border-secondary, rgba(5, 5, 5, 0.08));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-search {
|
||
min-width: 220px;
|
||
flex-basis: 280px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-toolbar-actions {
|
||
gap: 6px !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-batch-progress-panel {
|
||
padding: 10px 2px;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-list-head {
|
||
min-height: 20px;
|
||
padding-inline: 2px;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-list {
|
||
gap: 0;
|
||
border-top: 1px solid var(--ant-color-border-secondary, rgba(5, 5, 5, 0.08));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card,
|
||
.driver-manager-shell.is-embedded .driver-manager-card-warning,
|
||
.driver-manager-shell.is-embedded .driver-manager-card-ready {
|
||
border-radius: 0;
|
||
background: transparent !important;
|
||
overflow: visible;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-main {
|
||
grid-template-columns: minmax(0, 1fr) minmax(270px, 42%);
|
||
gap: 12px 16px;
|
||
padding: 12px 2px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-info {
|
||
gap: 6px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-driver-name {
|
||
font-size: var(--gn-font-size, 14px);
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-title-row {
|
||
gap: 6px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-title-row .ant-tag {
|
||
margin-inline-end: 0;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-title-row code {
|
||
font-size: var(--gn-font-size-mono, var(--gn-font-size-xs, 11px));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-meta-row {
|
||
gap: 4px 12px;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-update-note {
|
||
gap: 2px;
|
||
padding: 4px 8px;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-muted-message {
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-control-label,
|
||
.driver-manager-shell.is-embedded .driver-manager-small-text {
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-controls {
|
||
display: grid;
|
||
grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.7fr);
|
||
align-content: start;
|
||
gap: 7px 12px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-control-block {
|
||
gap: 3px;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-actions {
|
||
grid-column: 1 / -1;
|
||
gap: 6px !important;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-actions .ant-btn {
|
||
min-width: 0;
|
||
}
|
||
|
||
.driver-manager-embedded-layout > .driver-manager-footer-actions {
|
||
flex: 0 0 auto;
|
||
padding-top: 10px;
|
||
border-top: 1px solid var(--ant-color-border-secondary, rgba(5, 5, 5, 0.08));
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.driver-manager-header,
|
||
.driver-manager-card-main {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.driver-manager-stats {
|
||
min-width: 0;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
}
|
||
|
||
.driver-manager-card-actions {
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.driver-manager-batch-progress-header,
|
||
.driver-manager-batch-progress-meta {
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-header,
|
||
.driver-manager-shell.is-embedded .driver-manager-card-main {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-stats,
|
||
.driver-manager-shell.is-embedded .driver-manager-card-actions {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 680px) {
|
||
.driver-manager-shell.is-embedded .driver-manager-card-controls {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.driver-manager-shell.is-embedded .driver-manager-card-actions {
|
||
grid-column: 1;
|
||
}
|
||
}
|
||
|
||
.security-update-action-btn.ant-btn,
|
||
.security-update-action-btn.ant-btn-default,
|
||
.security-update-action-btn.ant-btn-primary,
|
||
.security-update-action-btn.ant-btn-text {
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.security-update-action-btn.ant-btn:focus,
|
||
.security-update-action-btn.ant-btn:focus-visible,
|
||
.security-update-action-btn.ant-btn-default:focus,
|
||
.security-update-action-btn.ant-btn-default:focus-visible,
|
||
.security-update-action-btn.ant-btn-primary:focus,
|
||
.security-update-action-btn.ant-btn-primary:focus-visible,
|
||
.security-update-action-btn.ant-btn-text:focus,
|
||
.security-update-action-btn.ant-btn-text:focus-visible {
|
||
outline: none !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.security-update-banner {
|
||
position: relative;
|
||
isolation: isolate;
|
||
}
|
||
|
||
.security-update-result-card {
|
||
transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
|
||
}
|
||
|
||
.security-update-result-card-active {
|
||
animation: security-update-result-pulse 1.8s ease;
|
||
}
|
||
|
||
@keyframes security-update-result-pulse {
|
||
0% {
|
||
transform: translateY(0);
|
||
}
|
||
30% {
|
||
transform: translateY(-2px);
|
||
}
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
.gonavi-query-editor-link-hint {
|
||
color: #1677ff !important;
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
text-decoration-style: solid;
|
||
text-decoration-color: currentColor;
|
||
text-decoration-thickness: 1px;
|
||
text-underline-offset: 3px;
|
||
}
|
||
|
||
.gonavi-query-editor-object-token {
|
||
color: #2563eb;
|
||
}
|
||
|
||
.gonavi-query-editor-column-token {
|
||
color: #0f766e;
|
||
}
|
||
|
||
.gonavi-query-editor-db-token {
|
||
color: #7c3aed;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-object-token {
|
||
color: #7dd3fc;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-link-hint {
|
||
color: #69b1ff !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-column-token {
|
||
color: #5eead4;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-db-token {
|
||
color: #c4b5fd;
|
||
}
|
||
|
||
.gonavi-query-editor-ai-inline-ghost {
|
||
color: rgba(100, 116, 139, 0.7);
|
||
font-style: italic;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.gonavi-query-editor-ai-inline-ghost-overlay {
|
||
color: rgba(100, 116, 139, 0.7);
|
||
font-style: italic;
|
||
pointer-events: none;
|
||
position: absolute;
|
||
white-space: pre;
|
||
z-index: 6;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-ai-inline-ghost {
|
||
color: rgba(203, 213, 225, 0.56);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-query-editor-ai-inline-ghost-overlay {
|
||
color: rgba(203, 213, 225, 0.56);
|
||
}
|
||
|
||
/* Legacy sidebar resize bounds — mirror v2 .gn-v2-app-sider so Ant Design inline width locks do not collapse drag range. */
|
||
body[data-ui-version="legacy"] .ant-layout-sider {
|
||
min-width: 232px !important;
|
||
max-width: min(960px, calc(100vw - 360px)) !important;
|
||
}
|
||
|
||
body[data-ui-version] .ant-layout-sider[data-sidebar-panel='true'] {
|
||
--gonavi-sidebar-collapse-duration: 200ms;
|
||
}
|
||
|
||
/*
|
||
* Ant Design Sider defaults to `transition: all`. That is desirable for the
|
||
* collapse/expand animation, but drag-resizing width must snap immediately —
|
||
* otherwise the workbench/DataGrid reflows for ~200ms and feels heavily janky.
|
||
*/
|
||
body[data-ui-version] .ant-layout-sider[data-sidebar-panel='true'][data-sidebar-resizing='true'],
|
||
body[data-sidebar-resizing='true'] .ant-layout-sider[data-sidebar-panel='true'] {
|
||
transition: none !important;
|
||
}
|
||
|
||
body[data-ui-version] .ant-layout-sider[data-sidebar-collapsed='true'] {
|
||
min-width: var(--gonavi-sidebar-collapsed-width, 0px) !important;
|
||
max-width: var(--gonavi-sidebar-collapsed-width, 0px) !important;
|
||
width: var(--gonavi-sidebar-collapsed-width, 0px) !important;
|
||
flex: 0 0 var(--gonavi-sidebar-collapsed-width, 0px) !important;
|
||
border-right: 0 !important;
|
||
}
|
||
|
||
body[data-ui-version='legacy'] .ant-layout-sider[data-sidebar-collapsed='true'] [data-sidebar-content='true'],
|
||
body[data-ui-version='v2'] .ant-layout-sider[data-sidebar-collapsed='true'] [data-sidebar-tree-panel='true'] {
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
transition: visibility 0s linear var(--gonavi-sidebar-collapse-duration);
|
||
}
|
||
|
||
body[data-ui-version='legacy'] .ant-layout-sider[data-sidebar-collapsed='false'] [data-sidebar-content='true'],
|
||
body[data-ui-version='v2'] .ant-layout-sider[data-sidebar-collapsed='false'] [data-sidebar-tree-panel='true'] {
|
||
visibility: visible;
|
||
transition: none;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .ant-layout-sider[data-sidebar-collapsed='false'] .gn-v2-rail-sidebar-toggle-slot {
|
||
display: none;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
body[data-ui-version] .ant-layout-sider[data-sidebar-panel='true'] {
|
||
--gonavi-sidebar-collapse-duration: 0ms;
|
||
}
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-sidebar-collapse-trigger.ant-btn {
|
||
display: inline-flex;
|
||
width: 26px;
|
||
min-width: 26px;
|
||
height: 26px !important;
|
||
flex: 0 0 26px;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0;
|
||
border: 0 !important;
|
||
border-radius: 6px !important;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
-webkit-app-region: no-drag;
|
||
transition: background-color 140ms ease, color 140ms ease;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-sidebar-collapse-trigger.ant-btn:focus-visible {
|
||
outline: 2px solid var(--gn-accent, #1677ff);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-sidebar-collapse-trigger.ant-btn {
|
||
background: transparent;
|
||
color: var(--gn-fg-4);
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-sidebar-collapse-trigger.ant-btn[data-sidebar-toggle-placement='explorer-header'] {
|
||
width: 24px;
|
||
min-width: 24px;
|
||
height: 24px !important;
|
||
flex: 0 0 24px;
|
||
border: 1px solid var(--gn-br-2) !important;
|
||
border-radius: 7px !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-sidebar-collapse-trigger.ant-btn:hover {
|
||
background: var(--gn-bg-hover);
|
||
color: var(--gn-fg-2);
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-sidebar-collapse-trigger.ant-btn[data-sidebar-toggle-placement='explorer-header']:hover {
|
||
color: var(--gn-fg-1);
|
||
}
|
||
|
||
.gonavi-about-project-entry {
|
||
transition: background-color 160ms ease, color 160ms ease;
|
||
}
|
||
|
||
.gonavi-about-project-entry:hover:not(:disabled) {
|
||
background: rgba(15, 23, 42, 0.035) !important;
|
||
}
|
||
|
||
.gonavi-about-project-entry:focus-visible {
|
||
outline: 2px solid rgba(22, 163, 74, 0.55);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-about-project-entry:hover:not(:disabled) {
|
||
background: rgba(255, 255, 255, 0.045) !important;
|
||
}
|
||
|
||
.gonavi-ai-settings-nav-item,
|
||
.gonavi-ai-provider-row,
|
||
.gonavi-ai-provider-add {
|
||
transition: background-color 160ms ease, color 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-settings-nav-item:hover:not(.is-active),
|
||
.gonavi-ai-provider-row:hover:not(.is-active),
|
||
.gonavi-ai-provider-add:hover {
|
||
background: rgba(15, 23, 42, 0.035) !important;
|
||
}
|
||
|
||
.gonavi-ai-settings-nav-item:focus-visible,
|
||
.gonavi-ai-provider-select:focus-visible,
|
||
.gonavi-ai-provider-add:focus-visible {
|
||
outline: 2px solid rgba(22, 163, 74, 0.55);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-settings-nav-item:hover:not(.is-active),
|
||
body[data-theme='dark'] .gonavi-ai-provider-row:hover:not(.is-active),
|
||
body[data-theme='dark'] .gonavi-ai-provider-add:hover {
|
||
background: rgba(255, 255, 255, 0.045) !important;
|
||
}
|
||
|
||
/* Settings center is a flat control surface: UI copy stays sans-serif and
|
||
machine-readable values opt into the mono stack through code/pre or local classes. */
|
||
.gonavi-settings-center-modal,
|
||
.gonavi-settings-center-modal .ant-modal-content,
|
||
.gonavi-settings-center-modal button,
|
||
.gonavi-settings-center-modal input,
|
||
.gonavi-settings-center-modal textarea,
|
||
.gonavi-settings-center-modal select {
|
||
font-family: var(--gn-font-sans);
|
||
}
|
||
|
||
.gonavi-settings-center-modal {
|
||
--gn-font-size: calc(var(--gonavi-font-size, 14px) * var(--gn-ui-scale, 1));
|
||
--gn-font-size-sm: calc(var(--gonavi-font-size, 14px) * var(--gn-ui-scale, 1) * 0.86);
|
||
--gn-font-size-xs: calc(var(--gonavi-font-size, 14px) * var(--gn-ui-scale, 1) * 0.76);
|
||
--gn-font-size-mono: calc(var(--gonavi-font-size, 14px) * var(--gn-ui-scale, 1) * 0.92);
|
||
--gn-settings-font-body: var(--gn-font-size);
|
||
--gn-settings-font-secondary: var(--gn-font-size-sm);
|
||
--gn-settings-font-caption: var(--gn-settings-font-secondary);
|
||
font-size: var(--gn-settings-font-body);
|
||
}
|
||
|
||
.gonavi-settings-center-modal code,
|
||
.gonavi-settings-center-modal pre,
|
||
.gonavi-settings-center-modal kbd,
|
||
.gonavi-settings-center-modal samp {
|
||
font-family: var(--gn-font-mono);
|
||
font-size: var(--gn-font-size-mono);
|
||
}
|
||
|
||
.gonavi-settings-center-modal button:focus-visible,
|
||
.gonavi-settings-center-modal [role='button']:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--gn-accent, #16a34a) 68%, transparent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn {
|
||
min-height: var(--gn-control-height, 32px);
|
||
height: var(--gn-control-height, 32px) !important;
|
||
padding-inline: 12px !important;
|
||
border-radius: 6px !important;
|
||
box-shadow: none !important;
|
||
font-size: var(--gn-settings-font-caption) !important;
|
||
font-weight: 600 !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-sm {
|
||
min-height: var(--gn-control-height-sm, 24px);
|
||
height: var(--gn-control-height-sm, 24px) !important;
|
||
padding-inline: 10px !important;
|
||
font-size: var(--gn-font-size-xs, 11px) !important;
|
||
}
|
||
|
||
/* Provider add is a compact action, not a 44px list row. */
|
||
body[data-ui-version] .gonavi-settings-center-modal .gonavi-ai-provider-add.ant-btn {
|
||
min-height: var(--gn-control-height, 32px);
|
||
height: var(--gn-control-height, 32px) !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-icon-only {
|
||
width: var(--gn-control-height, 32px) !important;
|
||
min-width: var(--gn-control-height, 32px);
|
||
padding-inline: 0 !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-sm.ant-btn-icon-only {
|
||
width: var(--gn-control-height-sm, 24px) !important;
|
||
min-width: var(--gn-control-height-sm, 24px);
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .gonavi-settings-center-entry.ant-btn {
|
||
height: auto !important;
|
||
min-height: 58px;
|
||
padding: 8px 6px !important;
|
||
border: none !important;
|
||
border-radius: 4px !important;
|
||
font-size: var(--gn-settings-font-body) !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .gonavi-ai-provider-add.ant-btn {
|
||
border-radius: 0 !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-primary {
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-text,
|
||
body[data-ui-version] .gonavi-settings-center-modal .ant-btn-link {
|
||
padding-inline: 8px !important;
|
||
}
|
||
|
||
.gonavi-settings-center-modal .ant-input,
|
||
.gonavi-settings-center-modal .ant-input-affix-wrapper,
|
||
.gonavi-settings-center-modal .ant-input-number,
|
||
.gonavi-settings-center-modal .ant-input-number-group-addon,
|
||
.gonavi-settings-center-modal .ant-select-selector,
|
||
.gonavi-settings-center-modal .ant-segmented,
|
||
.gonavi-settings-center-modal .ant-picker {
|
||
border-radius: 6px !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.gonavi-settings-center-modal .ant-segmented-item,
|
||
.gonavi-settings-center-modal .ant-segmented-thumb,
|
||
.gonavi-settings-center-modal .ant-tag,
|
||
.gonavi-settings-center-modal .ant-alert {
|
||
border-radius: 4px !important;
|
||
}
|
||
|
||
.gonavi-settings-center-modal .ant-form-item-label > label {
|
||
font-size: var(--gn-settings-font-caption);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.gonavi-settings-center-group-tab,
|
||
.gonavi-settings-center-entry {
|
||
transition: background-color 160ms ease, color 160ms ease;
|
||
}
|
||
|
||
.gonavi-settings-center-group-tab:hover:not(.is-active),
|
||
.gonavi-settings-center-entry:hover {
|
||
background: rgba(15, 23, 42, 0.035) !important;
|
||
}
|
||
|
||
.gonavi-settings-center-group-tab:focus-visible,
|
||
.gonavi-settings-center-entry:focus-visible {
|
||
outline: 2px solid rgba(22, 163, 74, 0.55);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-settings-center-group-tab:hover:not(.is-active),
|
||
body[data-theme='dark'] .gonavi-settings-center-entry:hover {
|
||
background: rgba(255, 255, 255, 0.045) !important;
|
||
}
|
||
|
||
@media (max-width: 1120px) {
|
||
.gonavi-settings-center-layout {
|
||
grid-template-columns: 176px minmax(0, 1fr) !important;
|
||
gap: 12px !important;
|
||
}
|
||
|
||
.gonavi-ai-settings-flat {
|
||
grid-template-columns: 148px minmax(0, 1fr) !important;
|
||
}
|
||
|
||
.gonavi-ai-settings-content {
|
||
padding-left: 16px !important;
|
||
}
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.gonavi-settings-center-modal *,
|
||
.gonavi-settings-center-modal *::before,
|
||
.gonavi-settings-center-modal *::after {
|
||
scroll-behavior: auto !important;
|
||
transition-duration: 0.01ms !important;
|
||
animation-duration: 0.01ms !important;
|
||
animation-iteration-count: 1 !important;
|
||
}
|
||
}
|
||
|
||
.gonavi-ai-settings-nav-description {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gonavi-language-option {
|
||
min-height: 46px;
|
||
padding: 10px 12px;
|
||
border: 0;
|
||
border-left: 3px solid transparent;
|
||
border-bottom: 1px solid rgba(100, 116, 139, 0.16);
|
||
border-radius: 0;
|
||
background: transparent;
|
||
color: inherit;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
|
||
}
|
||
|
||
.gonavi-language-option:hover {
|
||
background: rgba(15, 23, 42, 0.035);
|
||
}
|
||
|
||
.gonavi-language-option.is-selected {
|
||
border-left-color: #16a34a;
|
||
background: rgba(34, 197, 94, 0.08);
|
||
color: #15803d;
|
||
}
|
||
|
||
.gonavi-language-option-check {
|
||
width: 7px;
|
||
height: 12px;
|
||
margin: -3px 3px 0 0;
|
||
border-right: 2px solid currentColor;
|
||
border-bottom: 2px solid currentColor;
|
||
transform: rotate(45deg);
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.gonavi-language-option:focus-visible {
|
||
outline: 2px solid rgba(22, 163, 74, 0.55);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-language-option:hover {
|
||
background: rgba(255, 255, 255, 0.045);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-language-option.is-selected {
|
||
background: rgba(34, 197, 94, 0.12);
|
||
color: #86efac;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tabs {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
align-self: flex-start;
|
||
gap: 4px;
|
||
min-height: 44px;
|
||
padding: 4px;
|
||
border-radius: 7px;
|
||
background: rgba(15, 23, 42, 0.05);
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
min-height: 36px;
|
||
padding: 0 14px;
|
||
border: 1px solid transparent;
|
||
border-radius: 5px;
|
||
background: transparent;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab.is-active {
|
||
border-color: var(--gn-mcp-accent, #16a34a);
|
||
background: var(--gn-mcp-accent-bg, rgba(22, 163, 74, 0.12));
|
||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
.gonavi-ai-mcp-route-arrow {
|
||
color: rgba(100, 116, 139, 0.7);
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
transform: translateY(-0.5px);
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab.is-active .gonavi-ai-mcp-route-arrow {
|
||
color: currentColor;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab:hover:not(.is-active) {
|
||
color: rgba(15, 23, 42, 0.88) !important;
|
||
background: rgba(255, 255, 255, 0.64);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-tab:hover:not(.is-active) {
|
||
color: rgba(248, 250, 252, 0.9) !important;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-tabs {
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-tab.is-active {
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
|
||
}
|
||
|
||
.gonavi-ai-mcp-panel {
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab:focus-visible,
|
||
.gonavi-ai-mcp-disclosure > summary:focus-visible,
|
||
.gonavi-ai-mcp-client-option:focus-visible {
|
||
outline: 2px solid rgba(22, 163, 74, 0.55);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure {
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure > summary {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-height: 52px;
|
||
padding: 6px 8px 6px 12px;
|
||
border-radius: 6px;
|
||
background: rgba(15, 23, 42, 0.038);
|
||
list-style: none;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
transition: background 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure > summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure > summary::after {
|
||
content: '›';
|
||
display: grid;
|
||
place-items: center;
|
||
width: 30px;
|
||
height: 30px;
|
||
margin-left: auto;
|
||
border-radius: 5px;
|
||
background: rgba(15, 23, 42, 0.07);
|
||
color: rgba(100, 116, 139, 0.78);
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
flex: 0 0 30px;
|
||
transform: rotate(0deg);
|
||
transition: color 160ms ease, background 160ms ease, transform 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure[open] > summary::after {
|
||
background: var(--gn-mcp-accent-bg, rgba(22, 163, 74, 0.12));
|
||
color: var(--gn-mcp-accent, #16a34a);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure > summary:hover {
|
||
background: rgba(15, 23, 42, 0.065);
|
||
}
|
||
|
||
.gonavi-ai-mcp-disclosure > summary:hover::after {
|
||
background: rgba(15, 23, 42, 0.11);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-disclosure > summary:hover {
|
||
background: rgba(255, 255, 255, 0.075);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-disclosure > summary {
|
||
background: rgba(255, 255, 255, 0.045);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-disclosure > summary::after {
|
||
background: rgba(255, 255, 255, 0.075);
|
||
color: rgba(203, 213, 225, 0.86);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-disclosure > summary:hover::after {
|
||
background: rgba(255, 255, 255, 0.12);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-disclosure[open] > summary::after {
|
||
background: var(--gn-mcp-accent-bg, rgba(34, 197, 94, 0.14));
|
||
color: var(--gn-mcp-accent, #86efac);
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tabs {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 4px;
|
||
padding: 4px;
|
||
border-radius: 7px;
|
||
background: rgba(15, 23, 42, 0.05);
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab {
|
||
display: grid;
|
||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
min-height: 44px;
|
||
padding: 6px 12px;
|
||
border: 1px solid transparent;
|
||
border-radius: 5px;
|
||
background: transparent;
|
||
font-family: inherit;
|
||
font-size: var(--gn-settings-font-secondary, 13px);
|
||
font-weight: 700;
|
||
letter-spacing: 0;
|
||
cursor: pointer;
|
||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab:hover:not(.is-active) {
|
||
background: rgba(255, 255, 255, 0.68);
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab.is-active {
|
||
border-color: var(--gn-ai-disclosure-accent, #16a34a);
|
||
background: var(--gn-ai-disclosure-accent-bg, rgba(22, 163, 74, 0.12));
|
||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab:focus-visible {
|
||
outline: 2px solid var(--gn-ai-disclosure-accent, rgba(22, 163, 74, 0.55));
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab-icon {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab-label {
|
||
min-width: 0;
|
||
line-height: 1.25;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.gonavi-ai-tool-view-count {
|
||
min-width: 42px;
|
||
padding: 0 5px;
|
||
border-radius: 4px;
|
||
background: rgba(15, 23, 42, 0.065);
|
||
color: inherit;
|
||
font-family: var(--gn-font-mono);
|
||
font-size: 11px;
|
||
font-variant-numeric: tabular-nums;
|
||
font-weight: 650;
|
||
line-height: 20px;
|
||
text-align: center;
|
||
}
|
||
|
||
.gonavi-ai-tool-view-tab.is-active .gonavi-ai-tool-view-count {
|
||
background: rgba(22, 163, 74, 0.12);
|
||
}
|
||
|
||
.gonavi-ai-tool-view-empty {
|
||
padding: 20px 10px;
|
||
border-radius: 4px;
|
||
font-size: var(--gn-settings-font-secondary, 13px);
|
||
line-height: 1.7;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-tool-view-tabs {
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-tool-view-tab:hover:not(.is-active) {
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-tool-view-tab.is-active {
|
||
background: var(--gn-ai-disclosure-accent-bg, rgba(34, 197, 94, 0.14));
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-tool-view-count {
|
||
background: rgba(255, 255, 255, 0.075);
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure > summary {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-height: 48px;
|
||
padding: 5px 6px 5px 10px;
|
||
border-radius: 5px;
|
||
background: transparent;
|
||
list-style: none;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
transition: background 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure > summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure > summary::marker {
|
||
content: '';
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure-content {
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure-icon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 5px;
|
||
background: rgba(15, 23, 42, 0.065);
|
||
color: rgba(100, 116, 139, 0.82);
|
||
font-size: 12px;
|
||
flex: 0 0 28px;
|
||
transform: rotate(0deg);
|
||
transition: color 160ms ease, background 160ms ease, transform 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure > summary:hover {
|
||
background: rgba(15, 23, 42, 0.04);
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure[open] > summary {
|
||
background: var(--gn-ai-disclosure-accent-bg, rgba(22, 163, 74, 0.1));
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure[open] > summary .gonavi-ai-settings-disclosure-icon {
|
||
background: var(--gn-ai-disclosure-accent-bg, rgba(22, 163, 74, 0.12));
|
||
color: var(--gn-ai-disclosure-accent, #16a34a);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.gonavi-ai-settings-disclosure > summary:focus-visible {
|
||
outline: 2px solid var(--gn-ai-disclosure-accent, rgba(22, 163, 74, 0.55));
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-settings-disclosure > summary:hover {
|
||
background: rgba(255, 255, 255, 0.05);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-settings-disclosure-icon {
|
||
background: rgba(255, 255, 255, 0.075);
|
||
color: rgba(203, 213, 225, 0.86);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-settings-disclosure[open] > summary {
|
||
background: var(--gn-ai-disclosure-accent-bg, rgba(34, 197, 94, 0.12));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.gonavi-ai-tool-view-tab,
|
||
.gonavi-ai-settings-disclosure > summary,
|
||
.gonavi-ai-settings-disclosure-icon {
|
||
transition: none;
|
||
}
|
||
}
|
||
|
||
.gonavi-ai-mcp-summary-note,
|
||
.gonavi-ai-mcp-line-clamp,
|
||
.gonavi-ai-mcp-client-name {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gonavi-ai-mcp-summary-note {
|
||
flex: 1;
|
||
padding-right: 4px;
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-options {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
gap: 8px;
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-option {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-height: 58px;
|
||
padding: 11px 12px;
|
||
border: 1px solid transparent;
|
||
border-radius: 6px;
|
||
background: rgba(15, 23, 42, 0.035);
|
||
cursor: pointer;
|
||
text-align: left;
|
||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-option:hover:not(.is-active) {
|
||
background: rgba(15, 23, 42, 0.065);
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-option.is-active {
|
||
border-color: var(--gn-mcp-accent, #16a34a);
|
||
background: var(--gn-mcp-accent-bg, rgba(22, 163, 74, 0.12));
|
||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-option-state {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-check {
|
||
font-size: 14px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-status-panel {
|
||
padding: 14px;
|
||
border-radius: 6px;
|
||
background: rgba(15, 23, 42, 0.03);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-client-option,
|
||
body[data-theme='dark'] .gonavi-ai-mcp-client-status-panel {
|
||
background: rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-client-option:hover:not(.is-active) {
|
||
background: rgba(255, 255, 255, 0.075);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-ai-mcp-client-option.is-active {
|
||
background: var(--gn-mcp-accent-bg, rgba(34, 197, 94, 0.14));
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
|
||
}
|
||
|
||
.gonavi-ai-mcp-server-row > summary {
|
||
min-height: 50px;
|
||
padding-left: 13px;
|
||
}
|
||
|
||
.gonavi-ai-mcp-server-summary-name {
|
||
min-width: 120px;
|
||
max-width: 36%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
@media (max-width: 760px) {
|
||
.gonavi-ai-mcp-summary-note {
|
||
display: none;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tabs {
|
||
width: 100%;
|
||
}
|
||
|
||
.gonavi-ai-mcp-tab {
|
||
min-width: 0;
|
||
padding: 0 9px;
|
||
flex: 1 1 0;
|
||
}
|
||
|
||
.gonavi-ai-mcp-client-options {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 761px) and (max-width: 1100px) {
|
||
.gonavi-ai-mcp-client-options {
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
body .gonavi-about-pane {
|
||
--gn-about-update-control-width: 200px;
|
||
}
|
||
|
||
body .gonavi-about-update-channel.ant-segmented.ant-segmented {
|
||
width: var(--gn-about-update-control-width);
|
||
max-width: 100%;
|
||
justify-self: end;
|
||
height: var(--gn-control-height, 32px) !important;
|
||
padding: 2px !important;
|
||
border: 1px solid rgba(15, 23, 42, 0.10) !important;
|
||
border-radius: 6px !important;
|
||
background: rgba(15, 23, 42, 0.035) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body .gonavi-about-auto-check-interval.ant-select {
|
||
width: var(--gn-about-update-control-width);
|
||
max-width: 100%;
|
||
justify-self: end;
|
||
}
|
||
|
||
body .gonavi-about-update-channel .ant-segmented-group {
|
||
gap: 3px;
|
||
}
|
||
|
||
body .gonavi-about-update-channel .ant-segmented-item {
|
||
flex: 1 1 0;
|
||
min-width: 0;
|
||
border-radius: 4px !important;
|
||
}
|
||
|
||
body .gonavi-about-update-channel .ant-segmented-item-label {
|
||
min-height: calc(var(--gn-control-height, 32px) - 4px) !important;
|
||
padding: 0 8px !important;
|
||
color: rgba(15, 23, 42, 0.62) !important;
|
||
font-size: var(--gn-font-size-sm, 12px) !important;
|
||
font-weight: 600 !important;
|
||
line-height: calc(var(--gn-control-height, 32px) - 4px) !important;
|
||
}
|
||
|
||
body .gonavi-about-update-channel .ant-segmented-item-selected,
|
||
body .gonavi-about-update-channel .ant-segmented-thumb {
|
||
background: rgba(255, 255, 255, 0.98) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body .gonavi-about-update-channel .ant-segmented-item-selected .ant-segmented-item-label {
|
||
color: #0f172a !important;
|
||
}
|
||
|
||
body .gonavi-about-update-channel.ant-segmented-disabled {
|
||
opacity: 0.58;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-about-update-channel.ant-segmented.ant-segmented {
|
||
border-color: rgba(148, 163, 184, 0.22) !important;
|
||
background: rgba(15, 23, 42, 0.55) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-label {
|
||
color: rgba(226, 232, 240, 0.62) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-selected,
|
||
body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-thumb {
|
||
background: rgba(30, 41, 59, 0.98) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-selected .ant-segmented-item-label {
|
||
color: #f8fafc !important;
|
||
}
|
||
|
||
/* ── 更新通道:选中项使用主题强调色实心胶囊 ──────────────
|
||
原先深色下选中态是 rgba(30,41,59,.98),与容器底 rgba(15,23,42,.55) 对比极低,
|
||
选中状态几乎看不出来,且完全没有体现主题色。
|
||
--gn-accent 仅在 v2 下定义,因此这里限定 v2 作用域;旧版 UI 保留其自身的中性配色。
|
||
ant-segmented-thumb 是切换时的滑动块,必须与选中项同色,否则动画期间会闪回灰底。
|
||
|
||
注意选择器必须带上 .ant-segmented(即 .gonavi-about-update-channel.ant-segmented),
|
||
把特异性提到 (0,4,1):v2-theme.css:601 的
|
||
`body[data-ui-version="v2"] .ant-segmented .ant-segmented-item-selected`
|
||
特异性同为 (0,3,1) 且该文件在 App.css 之后导入,同分时后加载者胜出,
|
||
只写 (0,3,1) 会被它按 --gn-bg-panel 覆盖回灰底。 */
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item-selected,
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-thumb {
|
||
background: var(--gn-accent) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item-selected,
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item-selected .ant-segmented-item-label {
|
||
color: #ffffff !important;
|
||
}
|
||
|
||
/* 未选项:透明底 + hover 时微亮,避免与选中胶囊争夺注意力。 */
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected) {
|
||
background: transparent !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover .ant-segmented-item-label {
|
||
color: var(--gn-fg-1) !important;
|
||
}
|
||
|
||
/* 键盘可达性:Segmented 的焦点环也跟随主题色。 */
|
||
body[data-ui-version='v2'] .gonavi-about-update-channel.ant-segmented .ant-segmented-item-input:focus-visible + .ant-segmented-item-label {
|
||
outline: 2px solid var(--gn-accent) !important;
|
||
outline-offset: -2px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
/* ── Theme settings (v2 only): clean desktop settings ─── */
|
||
body .gonavi-theme-settings {
|
||
--gn-settings-fg: #0f172a;
|
||
--gn-settings-muted: #64748b;
|
||
--gn-settings-line: #e2e8f0;
|
||
--gn-settings-track: #e2e8f0;
|
||
--gn-settings-chip-bg: #f8fafc;
|
||
--gn-settings-chip-fg: #0f172a;
|
||
--gn-settings-seg-bg: #f8fafc;
|
||
--gn-settings-seg-border: #e2e8f0;
|
||
--gn-settings-seg-item: #64748b;
|
||
--gn-settings-seg-selected-bg: #fff;
|
||
--gn-settings-seg-selected-fg: #0f172a;
|
||
--gn-settings-seg-shadow: none;
|
||
--gn-settings-accent: #16a34a;
|
||
--gn-settings-accent-soft: #dcfce7;
|
||
--gn-settings-accent-border: #86efac;
|
||
--gn-settings-card-bg: #ffffff;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings {
|
||
--gn-settings-fg: rgba(248, 250, 252, 0.94);
|
||
--gn-settings-muted: rgba(226, 232, 240, 0.58);
|
||
--gn-settings-line: rgba(255, 255, 255, 0.10);
|
||
--gn-settings-track: rgba(255, 255, 255, 0.12);
|
||
--gn-settings-chip-bg: rgba(255, 255, 255, 0.06);
|
||
--gn-settings-chip-fg: rgba(248, 250, 252, 0.88);
|
||
--gn-settings-seg-bg: rgba(255, 255, 255, 0.04);
|
||
--gn-settings-seg-border: rgba(148, 163, 184, 0.18);
|
||
--gn-settings-seg-item: rgba(226, 232, 240, 0.58);
|
||
--gn-settings-seg-selected-bg: rgba(30, 41, 59, 0.96);
|
||
--gn-settings-seg-selected-fg: #f8fafc;
|
||
--gn-settings-accent: #22c55e;
|
||
--gn-settings-accent-soft: rgba(34, 197, 94, 0.18);
|
||
--gn-settings-accent-border: rgba(74, 222, 128, 0.55);
|
||
--gn-settings-card-bg: rgba(255, 255, 255, 0.02);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-section {
|
||
padding-left: 0;
|
||
border-left: none;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-section + .gonavi-settings-section {
|
||
margin-top: 20px;
|
||
padding-top: 0;
|
||
border-top: none;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-section-title {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin: 0 0 10px;
|
||
color: var(--gn-settings-fg);
|
||
font-size: var(--gn-settings-font-body, var(--gn-font-size, 14px));
|
||
font-weight: 700;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-section-hint {
|
||
margin: -2px 0 10px;
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
line-height: 1.5;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
|
||
gap: 12px 16px;
|
||
align-items: center;
|
||
min-height: 40px;
|
||
padding: 8px 0;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-row.is-stacked {
|
||
grid-template-columns: 1fr;
|
||
gap: 8px;
|
||
align-items: stretch;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-row + .gonavi-settings-row {
|
||
border-top: 1px solid var(--gn-settings-line);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-label {
|
||
color: var(--gn-settings-fg);
|
||
font-size: var(--gn-settings-font-body, var(--gn-font-size, 14px));
|
||
font-weight: 600;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-label-hint {
|
||
margin-top: 3px;
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
font-weight: 400;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-control {
|
||
min-width: 0;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
padding: 2px 0;
|
||
overflow: visible;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-row.has-marks {
|
||
align-items: flex-start;
|
||
padding-bottom: 2px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-row.has-marks .gonavi-settings-slider-value {
|
||
margin-top: 6px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-main {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
/*
|
||
* antd Slider 手柄用 translateX(-50%),在 0%/100% 会各伸出半个圆 + 描边阴影。
|
||
* 外层 padding 需 ≥ 半宽手柄(9) + 描边(2~3),否则仍会缺一截。
|
||
*/
|
||
body .gonavi-theme-settings .gonavi-settings-slider-track-wrap {
|
||
flex: 0 0 auto;
|
||
width: 100%;
|
||
min-width: 0;
|
||
padding-inline: 14px;
|
||
overflow: visible;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-track-wrap .ant-slider {
|
||
width: 100%;
|
||
margin: 0 !important;
|
||
padding-block: 14px !important;
|
||
padding-inline: 0 !important;
|
||
overflow: visible !important;
|
||
}
|
||
|
||
/* 预设刻度:独立一行,严格在进度条下方,不叠在轨道上 */
|
||
body .gonavi-theme-settings .gonavi-settings-slider-presets {
|
||
position: relative;
|
||
height: 18px;
|
||
margin: 0 14px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-preset {
|
||
position: absolute;
|
||
top: 0;
|
||
transform: translateX(-50%);
|
||
margin: 0;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
font-weight: 500;
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 18px;
|
||
white-space: nowrap;
|
||
cursor: pointer;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-preset:hover:not(:disabled) {
|
||
color: var(--gn-settings-fg);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-preset.is-active {
|
||
color: var(--gn-settings-accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-preset:disabled {
|
||
cursor: not-allowed;
|
||
opacity: 0.55;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number,
|
||
body .gonavi-theme-settings .ant-input-number-group.ant-input-number-group-wrapper.gonavi-settings-slider-value-input,
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-group-wrapper {
|
||
flex: 0 0 auto !important;
|
||
width: 64px !important;
|
||
min-width: 56px !important;
|
||
max-width: 72px !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number,
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number {
|
||
width: 100% !important;
|
||
border-radius: 999px 0 0 999px !important;
|
||
border-color: color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 8%, transparent) !important;
|
||
}
|
||
|
||
/* 无 addon 时整颗胶囊 */
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number:not(.ant-input-number-group-wrapper) {
|
||
width: 52px !important;
|
||
min-width: 48px !important;
|
||
max-width: 56px !important;
|
||
border-radius: 999px !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number-input {
|
||
height: 28px !important;
|
||
padding: 0 2px 0 6px !important;
|
||
color: var(--gn-settings-fg) !important;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px)) !important;
|
||
font-weight: 700 !important;
|
||
font-variant-numeric: tabular-nums;
|
||
text-align: center !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number-group-addon {
|
||
min-width: 18px !important;
|
||
width: 18px !important;
|
||
padding: 0 6px 0 0 !important;
|
||
border: 1px solid color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important;
|
||
border-left: none !important;
|
||
border-radius: 0 999px 999px 0 !important;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 8%, transparent) !important;
|
||
color: var(--gn-settings-muted) !important;
|
||
font-size: var(--gn-font-size-sm, 12px) !important;
|
||
font-weight: 700 !important;
|
||
line-height: 26px !important;
|
||
}
|
||
|
||
/* 带 % / px 的整体圆角胶囊外观 */
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-group-wrapper .ant-input-number {
|
||
border-right: none !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-disabled {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-rail {
|
||
height: 8px !important;
|
||
border-radius: 999px !important;
|
||
background: var(--gn-settings-track) !important;
|
||
box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-track {
|
||
height: 8px !important;
|
||
border-radius: 999px !important;
|
||
background: linear-gradient(90deg, color-mix(in srgb, var(--gn-settings-accent) 78%, #fff) 0%, var(--gn-settings-accent) 100%) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-handle {
|
||
width: 16px !important;
|
||
height: 16px !important;
|
||
inset-block-start: 10px !important;
|
||
z-index: 2;
|
||
}
|
||
|
||
/* 关掉 antd 默认 before 光晕,避免叠成空心环 */
|
||
body .gonavi-theme-settings .ant-slider-handle::before {
|
||
display: none !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-handle::after {
|
||
width: 16px !important;
|
||
height: 16px !important;
|
||
inset-inline-start: 0 !important;
|
||
inset-block-start: 0 !important;
|
||
border-radius: 50% !important;
|
||
/* 实心白底 + 绿描边,禁用时也不靠整控件 opacity 变空心 */
|
||
background: #fff !important;
|
||
box-shadow:
|
||
0 0 0 2px var(--gn-settings-accent),
|
||
0 1px 4px rgba(15, 23, 42, 0.14) !important;
|
||
opacity: 1 !important;
|
||
transition: box-shadow 0.12s ease !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-handle:hover::after,
|
||
body .gonavi-theme-settings .ant-slider-handle:focus::after {
|
||
box-shadow:
|
||
0 0 0 2px var(--gn-settings-accent),
|
||
0 0 0 4px color-mix(in srgb, var(--gn-settings-accent) 22%, transparent),
|
||
0 1px 4px rgba(15, 23, 42, 0.14) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider:hover .ant-slider-track,
|
||
body .gonavi-theme-settings .ant-slider:focus-within .ant-slider-track {
|
||
background: linear-gradient(90deg, color-mix(in srgb, var(--gn-settings-accent) 78%, #fff) 0%, var(--gn-settings-accent) 100%) !important;
|
||
}
|
||
|
||
/* 禁用:不要整条 opacity,否则白心被透掉只剩绿环 */
|
||
body .gonavi-theme-settings .ant-slider-disabled {
|
||
opacity: 1 !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-disabled .ant-slider-rail {
|
||
background: color-mix(in srgb, var(--gn-settings-track) 70%, transparent) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-disabled .ant-slider-track {
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 35%, var(--gn-settings-track)) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-disabled .ant-slider-handle {
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
body .gonavi-theme-settings .ant-slider-disabled .ant-slider-handle::after {
|
||
background: #fff !important;
|
||
box-shadow:
|
||
0 0 0 2px color-mix(in srgb, var(--gn-settings-accent) 40%, #94a3b8),
|
||
0 1px 3px rgba(15, 23, 42, 0.10) !important;
|
||
opacity: 1 !important;
|
||
}
|
||
|
||
/* 选项 Segmented:小胶囊;is-compact 不拉满整行 */
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice.ant-segmented {
|
||
width: 100%;
|
||
height: auto !important;
|
||
min-height: 0 !important;
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
border-radius: 0 !important;
|
||
background: transparent !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact.ant-segmented {
|
||
width: auto !important;
|
||
max-width: 100%;
|
||
display: inline-flex !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-group {
|
||
display: flex !important;
|
||
width: 100%;
|
||
gap: 6px !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact .ant-segmented-group {
|
||
width: auto !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item {
|
||
flex: 1 1 0;
|
||
min-width: 0;
|
||
border-radius: 8px !important;
|
||
border: 1px solid var(--gn-settings-line) !important;
|
||
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact .ant-segmented-item {
|
||
flex: 0 0 auto !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:not(.ant-segmented-item-selected) {
|
||
background: transparent !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
|
||
background: var(--gn-settings-seg-bg) !important;
|
||
border-color: color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item-label {
|
||
display: inline-flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
min-height: 30px !important;
|
||
padding: 0 12px !important;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px)) !important;
|
||
font-weight: 600 !important;
|
||
line-height: 30px !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label {
|
||
color: var(--gn-settings-muted) !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-thumb {
|
||
display: none !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected,
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] {
|
||
border-color: var(--gn-settings-accent) !important;
|
||
background: var(--gn-settings-accent-soft) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected .ant-segmented-item-label,
|
||
body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] .ant-segmented-item-label {
|
||
color: var(--gn-settings-accent) !important;
|
||
font-weight: 700 !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected,
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] {
|
||
border-color: color-mix(in srgb, var(--gn-settings-accent) 70%, rgba(255, 255, 255, 0.2)) !important;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 22%, transparent) !important;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected .ant-segmented-item-label,
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] .ant-segmented-item-label {
|
||
color: #86efac !important;
|
||
}
|
||
|
||
/* 界面版本预览:预览画布保留边界,选择项本身保持平面。 */
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
column-gap: 12px;
|
||
row-gap: 0;
|
||
border-top: 1px solid var(--gn-settings-line);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-tile {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin: 0;
|
||
padding: 9px 8px;
|
||
border: 0;
|
||
border-left: 3px solid transparent;
|
||
border-bottom: 1px solid var(--gn-settings-line);
|
||
border-radius: 0;
|
||
background: transparent;
|
||
color: var(--gn-settings-fg);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
transition: border-color 0.12s ease, background-color 0.12s ease;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-tile:hover {
|
||
background: color-mix(in srgb, var(--gn-settings-fg) 4%, transparent);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-tile.is-active {
|
||
border-left-color: var(--gn-settings-accent);
|
||
box-shadow: none;
|
||
background: var(--gn-settings-accent-soft);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview {
|
||
position: relative;
|
||
flex: 0 0 94px;
|
||
width: 94px;
|
||
height: 52px;
|
||
overflow: hidden;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--gn-settings-line);
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview {
|
||
background: #0f172a;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-legacy {
|
||
display: grid;
|
||
grid-template-columns: 34% 1fr;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 {
|
||
display: grid;
|
||
grid-template-columns: 18px 1fr;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-side {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
padding: 8px 6px;
|
||
border-right: 1px solid rgba(15, 23, 42, 0.08);
|
||
background: rgba(255, 255, 255, 0.72);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-side {
|
||
border-right-color: rgba(255, 255, 255, 0.08);
|
||
background: rgba(30, 41, 59, 0.85);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-side {
|
||
align-items: center;
|
||
padding: 8px 3px;
|
||
background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
|
||
border-right: none;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 999px;
|
||
background: rgba(15, 23, 42, 0.18);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-dot {
|
||
width: 7px;
|
||
height: 7px;
|
||
background: rgba(255, 255, 255, 0.88);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
padding: 8px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar {
|
||
height: 8px;
|
||
border-radius: 4px;
|
||
background: rgba(15, 23, 42, 0.10);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar {
|
||
background: rgba(248, 250, 252, 0.12);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar.is-accent {
|
||
width: 42%;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 55%, rgba(15, 23, 42, 0.08));
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-bar.is-accent {
|
||
width: 48%;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 70%, #fff);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-cards {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 5px;
|
||
flex: 1;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-card {
|
||
border-radius: 5px;
|
||
background: rgba(255, 255, 255, 0.9);
|
||
border: 1px solid rgba(15, 23, 42, 0.06);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-card {
|
||
background: rgba(30, 41, 59, 0.9);
|
||
border-color: rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-legacy .uv-card {
|
||
border-radius: 2px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-meta {
|
||
display: flex;
|
||
flex: 1;
|
||
min-width: 0;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-title {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
font-size: var(--gn-settings-font-body, var(--gn-font-size, 14px));
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-badge {
|
||
flex-shrink: 0;
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
background: rgba(15, 23, 42, 0.06);
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
font-weight: 700;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-ui-version-badge.is-new {
|
||
background: rgba(2, 132, 199, 0.12);
|
||
color: #0284c7;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-badge {
|
||
background: rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-badge.is-new {
|
||
background: rgba(56, 189, 248, 0.18);
|
||
color: #7dd3fc;
|
||
}
|
||
|
||
/* 顶部分段:原生 button Tab(不依赖 antd Segmented) */
|
||
body .gonavi-theme-settings .gonavi-settings-tabs {
|
||
display: flex;
|
||
width: 100%;
|
||
border-bottom: 1px solid var(--gn-settings-line);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-tab {
|
||
flex: 1 1 0;
|
||
min-width: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
margin: 0 0 -1px;
|
||
padding: 10px 8px 12px;
|
||
border: 0;
|
||
border-bottom: 2px solid transparent;
|
||
background: transparent;
|
||
color: var(--gn-settings-muted);
|
||
font: inherit;
|
||
font-size: var(--gn-settings-font-body, var(--gn-font-size, 14px));
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
cursor: pointer;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-tab:hover {
|
||
color: var(--gn-settings-fg);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-tab.is-active {
|
||
color: var(--gn-settings-accent);
|
||
border-bottom-color: var(--gn-settings-accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-tab-icon {
|
||
display: inline-flex;
|
||
font-size: 14px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-inline-choice-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
margin-top: 14px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--gn-settings-line);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-pills {
|
||
display: inline-flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-pill {
|
||
margin: 0;
|
||
padding: 6px 12px;
|
||
border: 1px solid var(--gn-settings-line);
|
||
border-radius: 8px;
|
||
background: var(--gn-settings-card-bg);
|
||
color: var(--gn-settings-muted);
|
||
font: inherit;
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
cursor: pointer;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-pill:hover {
|
||
border-color: #cbd5e1;
|
||
color: var(--gn-settings-fg);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-pill.is-active {
|
||
border-color: var(--gn-settings-accent);
|
||
background: var(--gn-settings-accent-soft);
|
||
color: var(--gn-settings-accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-pill.is-active {
|
||
color: #86efac;
|
||
border-color: color-mix(in srgb, var(--gn-settings-accent) 70%, rgba(255, 255, 255, 0.2));
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 22%, transparent);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-inline-meta {
|
||
margin-top: 8px;
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* Beta:弱提示,不要大黄条 */
|
||
body .gonavi-theme-settings .gonavi-settings-beta-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 0 6px;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--gn-settings-accent) 12%, transparent);
|
||
color: var(--gn-settings-accent);
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
font-weight: 700;
|
||
line-height: 18px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-alert {
|
||
margin-top: 6px;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--gn-settings-muted);
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
line-height: 1.45;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-alert {
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--gn-settings-muted);
|
||
}
|
||
|
||
/* 主题模式:紧凑平面 radio 行。 */
|
||
body .gonavi-theme-settings .gonavi-settings-mode-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
column-gap: 12px;
|
||
row-gap: 0;
|
||
border-top: 1px solid var(--gn-settings-line);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-tile {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin: 0;
|
||
padding: 8px;
|
||
border: 0;
|
||
border-left: 3px solid transparent;
|
||
border-bottom: 1px solid var(--gn-settings-line);
|
||
border-radius: 0;
|
||
background: transparent;
|
||
color: var(--gn-settings-fg);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
transition: border-color 0.12s ease, background-color 0.12s ease;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-tile:hover {
|
||
background: color-mix(in srgb, var(--gn-settings-fg) 4%, transparent);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-tile.is-active {
|
||
border-left-color: var(--gn-settings-accent);
|
||
box-shadow: none;
|
||
background: var(--gn-settings-accent-soft);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview {
|
||
flex: 0 0 64px;
|
||
width: 64px;
|
||
height: 36px;
|
||
overflow: hidden;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--gn-settings-line);
|
||
display: grid;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview.is-system {
|
||
grid-template-columns: 1fr 1fr;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane {
|
||
display: grid;
|
||
gap: 4px;
|
||
align-content: center;
|
||
padding: 7px 8px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light {
|
||
background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark {
|
||
background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-line {
|
||
height: 5px;
|
||
border-radius: 999px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(1) {
|
||
width: 58%;
|
||
background: rgba(15, 23, 42, 0.14);
|
||
}
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(2) {
|
||
width: 78%;
|
||
background: rgba(22, 163, 74, 0.38);
|
||
}
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(3) {
|
||
width: 42%;
|
||
background: rgba(15, 23, 42, 0.10);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(1) {
|
||
width: 58%;
|
||
background: rgba(248, 250, 252, 0.22);
|
||
}
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(2) {
|
||
width: 78%;
|
||
background: rgba(74, 222, 128, 0.45);
|
||
}
|
||
body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(3) {
|
||
width: 42%;
|
||
background: rgba(248, 250, 252, 0.12);
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-meta {
|
||
display: flex;
|
||
flex: 1;
|
||
min-width: 0;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
min-height: 20px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-label {
|
||
font-size: var(--gn-settings-font-body, var(--gn-font-size, 14px));
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-mode-check {
|
||
color: var(--gn-settings-accent);
|
||
font-size: var(--gn-settings-font-secondary, var(--gn-font-size-sm, 12px));
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Control-only stacked row: no duplicate label column */
|
||
body .gonavi-theme-settings .gonavi-settings-row.is-control-only {
|
||
grid-template-columns: 1fr;
|
||
padding-top: 2px;
|
||
}
|
||
|
||
body .gonavi-theme-settings .gonavi-settings-row.is-control-only .gonavi-settings-label {
|
||
display: none;
|
||
}
|