mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-12 17:44:14 +08:00
4526 lines
120 KiB
CSS
4526 lines
120 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;
|
||
}
|
||
|
||
.redis-value-table-shell .ant-table-body {
|
||
overflow-y: auto !important;
|
||
}
|
||
|
||
/* 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;
|
||
padding: 0 !important;
|
||
overflow: hidden;
|
||
border-radius: 16px !important;
|
||
background: var(--gn-bg-panel, var(--ant-color-bg-elevated)) !important;
|
||
border: 1px solid var(--gn-br-2, var(--ant-color-border-secondary)) !important;
|
||
box-shadow: var(--gn-shadow-lg, var(--ant-box-shadow-secondary)) !important;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-header {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
border-bottom: 1px solid var(--gn-br-1, rgba(16, 24, 40, 0.06));
|
||
background: var(--gn-bg-chrome, var(--ant-color-fill-quaternary)) !important;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-body {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
}
|
||
|
||
.connection-modal-wrap .ant-modal-footer {
|
||
flex-shrink: 0;
|
||
margin: 0 !important;
|
||
padding: 8px 12px !important;
|
||
border-top: 1px solid var(--gn-br-1, rgba(16, 24, 40, 0.06));
|
||
background: var(--gn-bg-chrome, var(--ant-color-fill-quaternary)) !important;
|
||
}
|
||
|
||
/* v2-theme.css 后加载且包含通用 Modal !important,这里仅提高连接弹窗作用域优先级。 */
|
||
body[data-ui-version='v2'] .connection-modal-wrap .ant-modal .ant-modal-content {
|
||
border: 1px solid var(--gn-br-2) !important;
|
||
border-radius: 16px !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .connection-modal-wrap .ant-modal .ant-modal-header {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
border-bottom: 1px solid var(--gn-br-1) !important;
|
||
background: var(--gn-bg-chrome) !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .connection-modal-wrap .ant-modal .ant-modal-body {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
body[data-ui-version='v2'] .connection-modal-wrap .ant-modal .ant-modal-footer {
|
||
margin: 0 !important;
|
||
padding: 8px 12px !important;
|
||
border-top: 1px solid var(--gn-br-1) !important;
|
||
background: var(--gn-bg-chrome) !important;
|
||
}
|
||
|
||
.connection-modal-picker-wrap .ant-modal-footer {
|
||
display: none;
|
||
}
|
||
|
||
/* A · Studio 标题栏:左右列等宽,步骤始终保持几何居中。 */
|
||
.gn-conn-studio-header {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||
align-items: center;
|
||
column-gap: 12px;
|
||
width: 100%;
|
||
padding: 12px 16px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .gn-conn-studio-header {
|
||
column-gap: 8px;
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
.gn-conn-studio-header-left {
|
||
justify-self: start;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-studio-type-badge {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 10px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex: 0 0 36px;
|
||
overflow: hidden;
|
||
box-sizing: border-box;
|
||
color: #fff;
|
||
background: var(--gn-accent, #1677ff);
|
||
font-size: 22px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .gn-conn-studio-type-badge {
|
||
width: 28px;
|
||
height: 28px;
|
||
flex-basis: 28px;
|
||
border-radius: 7px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.gn-conn-studio-heading {
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-studio-title {
|
||
overflow: hidden;
|
||
color: var(--gn-fg-1, var(--ant-color-text));
|
||
font-size: 14.5px;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .gn-conn-studio-title {
|
||
font-size: 13.5px;
|
||
}
|
||
|
||
.gn-conn-studio-subtitle {
|
||
margin-top: 2px;
|
||
overflow: hidden;
|
||
color: var(--gn-fg-4, var(--ant-color-text-secondary));
|
||
font-size: 11.5px;
|
||
font-weight: 400;
|
||
line-height: 1.25;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-studio-steps {
|
||
grid-column: 2;
|
||
justify-self: center;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
color: var(--gn-fg-5, var(--ant-color-text-quaternary));
|
||
font-size: 11.5px;
|
||
font-weight: 400;
|
||
line-height: 1;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-studio-steps [data-active='true'] {
|
||
color: var(--gn-accent, var(--ant-color-primary));
|
||
font-weight: 700;
|
||
}
|
||
|
||
.gn-conn-studio-steps [data-done='true'] {
|
||
color: var(--gn-fg-3, var(--ant-color-text-secondary));
|
||
}
|
||
|
||
.gn-conn-studio-step-arrow {
|
||
color: var(--gn-fg-5, var(--ant-color-text-quaternary));
|
||
font-size: 9px;
|
||
}
|
||
|
||
.gn-conn-studio-close {
|
||
grid-column: 3;
|
||
justify-self: end;
|
||
display: inline-grid;
|
||
place-items: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 0;
|
||
border: 1px solid transparent;
|
||
border-radius: 7px;
|
||
background: transparent;
|
||
color: var(--gn-fg-4, var(--ant-color-text-secondary));
|
||
cursor: pointer;
|
||
}
|
||
|
||
.gn-conn-studio-close:hover {
|
||
background: var(--gn-bg-hover, var(--ant-color-fill-tertiary));
|
||
color: var(--gn-fg-1, var(--ant-color-text));
|
||
}
|
||
|
||
.gn-conn-studio-close:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--gn-accent, #1677ff) 55%, transparent);
|
||
outline-offset: 1px;
|
||
}
|
||
|
||
/* 连接配置的表单分组改用「小标题 + 细分割线」代替卡片(见 ConnectionModal.tsx 的
|
||
configSectionCardStyle)。每组靠一条上分割线与前一组划界,因此首组不需要这条线。 */
|
||
[data-connection-config-section]:first-child {
|
||
padding-top: 0 !important;
|
||
border-top: none !important;
|
||
}
|
||
|
||
.gn-connection-type-row {
|
||
background: transparent;
|
||
}
|
||
|
||
.gn-connection-type-row:hover {
|
||
background: rgba(16, 24, 40, 0.05);
|
||
}
|
||
|
||
.gn-connection-type-row:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--gn-accent, #1677ff) 68%, transparent);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gn-connection-type-row:hover {
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.gn-connection-type-group:hover:not([aria-pressed='true']) {
|
||
background: rgba(16, 24, 40, 0.035) !important;
|
||
}
|
||
|
||
.gn-connection-type-group:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--gn-accent, #1677ff) 68%, transparent);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
body[data-theme='dark'] .gn-connection-type-group:hover:not([aria-pressed='true']) {
|
||
background: rgba(255, 255, 255, 0.045) !important;
|
||
}
|
||
|
||
/* ── Connection modal · Studio type picker (Demo A) ── */
|
||
.gn-conn-picker {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
min-height: 0;
|
||
}
|
||
|
||
.gn-conn-picker-body {
|
||
display: grid;
|
||
grid-template-columns: minmax(200px, 24%) minmax(0, 1fr);
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
background: var(--gn-bg-panel, transparent);
|
||
}
|
||
|
||
.gn-conn-picker-side {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 12px 14px;
|
||
border-right: 1px solid var(--gn-br-1, rgba(16, 24, 40, 0.06));
|
||
background: var(--gn-bg-chrome, rgba(16, 24, 40, 0.02));
|
||
min-width: 0;
|
||
overflow: auto;
|
||
}
|
||
|
||
.gn-conn-picker-search {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background: var(--gn-bg-input, var(--gn-bg-panel-2, rgba(16, 24, 40, 0.04)));
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 10px;
|
||
padding: 7px 8px 7px 10px;
|
||
min-width: 0;
|
||
box-sizing: border-box;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.gn-conn-picker-search-ico {
|
||
flex-shrink: 0;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.35));
|
||
font-size: 13px;
|
||
}
|
||
|
||
.gn-conn-picker-search-input {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
width: 0;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.gn-conn-picker-search-input.ant-input-affix-wrapper,
|
||
.gn-conn-picker-search-input.ant-input {
|
||
background: transparent !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.gn-conn-picker-search-shortcut {
|
||
flex-shrink: 0;
|
||
padding: 2px 5px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 4px;
|
||
background: var(--gn-bg-panel-2, rgba(16, 24, 40, 0.03));
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
font-family: var(--mono, ui-monospace, SFMono-Regular, Consolas, monospace);
|
||
font-size: 10px;
|
||
font-weight: 400;
|
||
line-height: 1.2;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-picker-sec-label {
|
||
font-size: 10.5px;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
margin: 0 0 6px 4px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.gn-conn-picker-block-grow {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.gn-conn-picker-recent {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.gn-conn-picker-chip {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
padding: 7px 10px;
|
||
border-radius: 8px;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--gn-fg-2, inherit);
|
||
font: inherit;
|
||
font-size: 12.5px;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-picker-chip:hover {
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.05));
|
||
}
|
||
|
||
.gn-conn-picker-chip-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.gn-conn-picker-chip-text {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-picker-nav {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
overflow: auto;
|
||
min-height: 0;
|
||
}
|
||
|
||
.gn-conn-picker-nav-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--gn-fg-2, inherit);
|
||
font: inherit;
|
||
font-size: 12.5px;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.gn-conn-picker-nav-item:hover {
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.05));
|
||
}
|
||
|
||
.gn-conn-picker-nav-item[aria-pressed='true'] {
|
||
background: var(--gn-bg-selected, color-mix(in srgb, var(--gn-accent, #1677ff) 14%, transparent));
|
||
color: var(--gn-accent, #1677ff);
|
||
font-weight: 650;
|
||
}
|
||
|
||
.gn-conn-picker-nav-label {
|
||
min-width: 0;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-picker-nav-count {
|
||
margin-left: auto;
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
background: var(--gn-bg-panel, rgba(16, 24, 40, 0.04));
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.gn-conn-picker-nav-item[aria-pressed='true'] .gn-conn-picker-nav-count {
|
||
color: var(--gn-accent, #1677ff);
|
||
background: color-mix(in srgb, var(--gn-accent, #1677ff) 12%, transparent);
|
||
}
|
||
|
||
.gn-conn-picker-main {
|
||
padding: 14px 16px 18px;
|
||
overflow: auto;
|
||
min-width: 0;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.gn-conn-picker-main-h {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
margin-bottom: 12px;
|
||
gap: 12px;
|
||
}
|
||
|
||
.gn-conn-picker-main-h h3 {
|
||
margin: 0;
|
||
font-size: 13.5px;
|
||
font-weight: 700;
|
||
color: var(--gn-fg-1, inherit);
|
||
}
|
||
|
||
.gn-conn-picker-main-h span {
|
||
font-size: 12px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.gn-conn-picker-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
gap: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
@media (min-width: 1200px) {
|
||
.connection-modal-wrap .gn-conn-picker-grid {
|
||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
.gn-conn-type-card {
|
||
appearance: none;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
font: inherit;
|
||
color: inherit;
|
||
background: var(--gn-bg-panel-2, rgba(16, 24, 40, 0.03));
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: var(--radius, 8px);
|
||
padding: 12px;
|
||
transition: border-color 0.15s, transform 0.15s, background 0.15s;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-type-card:hover {
|
||
border-color: var(--gn-accent, #1677ff);
|
||
background: var(--gn-bg-selected, color-mix(in srgb, var(--gn-accent, #1677ff) 10%, transparent));
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.gn-conn-type-card:focus-visible {
|
||
outline: 2px solid color-mix(in srgb, var(--gn-accent, #1677ff) 68%, transparent);
|
||
outline-offset: 1px;
|
||
}
|
||
|
||
.gn-conn-type-card-top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-type-card-logo {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 9px;
|
||
display: grid;
|
||
place-items: center;
|
||
flex-shrink: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.gn-conn-type-card-meta {
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.gn-conn-type-card-name {
|
||
font-size: 13.5px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
line-height: 1.25;
|
||
}
|
||
|
||
.gn-conn-type-card-hint {
|
||
font-size: 11.5px;
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
margin-top: 2px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
line-height: 1.25;
|
||
}
|
||
|
||
.gn-conn-type-card-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.gn-conn-type-card-tag {
|
||
padding: 2px 7px;
|
||
border-radius: 999px;
|
||
background: var(--gn-bg-chrome, rgba(16, 24, 40, 0.03));
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
font-size: 10.5px;
|
||
font-weight: 400;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.gn-conn-picker-empty {
|
||
padding: 18px 10px;
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* ── Connection modal · form top tabs ── */
|
||
.gn-conn-form-layout {
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
flex: 0 0 auto;
|
||
max-height: min(720px, calc(100vh - 132px));
|
||
}
|
||
|
||
.gn-conn-form-nav {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 2px;
|
||
padding: 6px 12px 0;
|
||
margin: 0;
|
||
border-bottom: 1px solid var(--gn-br-1, rgba(16, 24, 40, 0.08));
|
||
background: var(--gn-bg-chrome, var(--ant-color-fill-quaternary));
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.gn-conn-form-nav-item {
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
text-align: center;
|
||
font: inherit;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
padding: 7px 12px 8px;
|
||
border-radius: 8px 8px 0 0;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
}
|
||
|
||
.gn-conn-form-nav-item:hover {
|
||
color: var(--gn-fg-1, inherit);
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.04));
|
||
}
|
||
|
||
.gn-conn-form-nav-item[aria-selected='true'] {
|
||
color: var(--gn-accent, #1677ff);
|
||
border-bottom-color: var(--gn-accent, #1677ff);
|
||
background: transparent;
|
||
}
|
||
|
||
.gn-conn-form-main {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
width: 100%;
|
||
max-width: none;
|
||
overflow: auto;
|
||
padding: 10px 2% 12px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* URI 命令按钮:仅当前操作组使用绿色交互态,不影响弹窗底栏。 */
|
||
.gn-conn-uri-actions .ant-space-item > .ant-btn {
|
||
transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease;
|
||
}
|
||
|
||
.gn-conn-uri-actions .ant-space-item > .ant-btn:hover,
|
||
.gn-conn-uri-actions .ant-space-item > .ant-btn:focus,
|
||
.gn-conn-uri-actions .ant-space-item > .ant-btn:focus-visible {
|
||
border-color: var(--gn-accent, #15803d) !important;
|
||
background: var(--gn-accent, #15803d) !important;
|
||
color: #fff !important;
|
||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--gn-accent, #15803d) 22%, transparent);
|
||
}
|
||
|
||
.gn-conn-uri-actions .ant-space-item > .ant-btn:active {
|
||
border-color: var(--gn-accent, #15803d) !important;
|
||
background: var(--gn-accent, #15803d) !important;
|
||
color: #fff !important;
|
||
transform: scale(0.98);
|
||
}
|
||
|
||
/* URI 提示关闭按钮仅在悬浮或键盘聚焦时显示。 */
|
||
.gn-conn-uri-block .ant-alert-close-icon {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.14s ease;
|
||
}
|
||
|
||
.gn-conn-uri-block .ant-alert:hover .ant-alert-close-icon,
|
||
.gn-conn-uri-block .ant-alert:focus-within .ant-alert-close-icon {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
/* Studio 测试反馈:与 Demo 的 test-banner 保持同一信息密度。 */
|
||
.gn-conn-studio-test-banner {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
margin-bottom: 8px;
|
||
padding: 4px 8px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.gn-conn-studio-test-banner > span:nth-child(2) {
|
||
min-width: 0;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-studio-test-banner[data-status='success'] {
|
||
border-color: color-mix(in srgb, var(--gn-accent, #1677ff) 35%, transparent);
|
||
background: var(--gn-accent-soft, rgba(22, 119, 255, 0.1));
|
||
color: var(--gn-accent, #1677ff);
|
||
}
|
||
|
||
.gn-conn-studio-test-banner[data-status='error'] {
|
||
border-color: color-mix(in srgb, var(--gn-danger, #ff4d4f) 35%, transparent);
|
||
background: color-mix(in srgb, var(--gn-danger, #ff4d4f) 12%, transparent);
|
||
color: var(--gn-danger, #ff4d4f);
|
||
}
|
||
|
||
.gn-conn-studio-test-banner .ant-btn-link {
|
||
height: auto;
|
||
padding: 0 2px;
|
||
color: currentColor;
|
||
font-size: 11.5px;
|
||
}
|
||
|
||
/* Studio 第二步底栏。 */
|
||
.gn-conn-studio-foot {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
.gn-conn-studio-foot-left {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
color: var(--gn-fg-4, var(--ant-color-text-secondary));
|
||
font-size: 12px;
|
||
}
|
||
|
||
.gn-conn-studio-foot-right {
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.gn-conn-studio-button.ant-btn {
|
||
height: 28px;
|
||
padding: 0 10px;
|
||
border-radius: 7px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.gn-conn-studio-foot-status {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
flex: 0 0 auto;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-studio-foot-status[data-status='success'] {
|
||
color: var(--gn-accent, #1677ff);
|
||
}
|
||
|
||
.gn-conn-studio-foot-status[data-status='error'],
|
||
.gn-conn-studio-foot-error {
|
||
color: var(--gn-danger, #ff4d4f);
|
||
}
|
||
|
||
.gn-conn-studio-foot-error {
|
||
min-width: 0;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-studio-details-button.ant-btn {
|
||
height: 24px;
|
||
padding: 0 8px;
|
||
border-radius: 6px;
|
||
border-color: color-mix(in srgb, var(--gn-danger, #ff4d4f) 35%, transparent);
|
||
background: color-mix(in srgb, var(--gn-danger, #ff4d4f) 10%, transparent);
|
||
color: var(--gn-danger, #ff4d4f);
|
||
font-size: 11.5px;
|
||
}
|
||
|
||
/* 外观页:对应 Demo 的 icon-grid / color-row / appear-preview。 */
|
||
.gn-conn-appearance {
|
||
display: grid;
|
||
gap: 14px;
|
||
}
|
||
|
||
.gn-conn-appearance-label {
|
||
margin: 0 0 6px;
|
||
color: var(--gn-fg-5, var(--ant-color-text-quaternary));
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.gn-conn-appearance-label span {
|
||
margin-left: 6px;
|
||
color: var(--gn-fg-4, var(--ant-color-text-secondary));
|
||
font-weight: 500;
|
||
letter-spacing: 0;
|
||
text-transform: none;
|
||
}
|
||
|
||
.gn-conn-appearance-icon-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
|
||
gap: 6px;
|
||
max-height: 148px;
|
||
overflow: auto;
|
||
padding: 2px;
|
||
}
|
||
|
||
.gn-conn-appearance-icon {
|
||
appearance: none;
|
||
display: grid;
|
||
place-items: center;
|
||
width: 100%;
|
||
aspect-ratio: 1;
|
||
padding: 4px;
|
||
border: 1.5px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 8px;
|
||
background: var(--gn-bg-input, var(--ant-color-bg-container));
|
||
color: inherit;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.gn-conn-appearance-icon:hover {
|
||
border-color: var(--gn-br-3, rgba(16, 24, 40, 0.18));
|
||
background: var(--gn-bg-hover, var(--ant-color-fill-tertiary));
|
||
}
|
||
|
||
.gn-conn-appearance-icon[data-active='true'] {
|
||
border-color: var(--gn-accent, #1677ff);
|
||
box-shadow: 0 0 0 2px var(--gn-accent-soft, rgba(22, 119, 255, 0.12));
|
||
}
|
||
|
||
.gn-conn-appearance-colors {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.gn-conn-appearance-color,
|
||
.gn-conn-appearance-custom-color {
|
||
width: 22px;
|
||
height: 22px;
|
||
flex: 0 0 22px;
|
||
padding: 0;
|
||
border: 2px solid transparent;
|
||
border-radius: 50%;
|
||
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.gn-conn-appearance-color[data-active='true'] {
|
||
border-color: var(--gn-fg-1, var(--ant-color-text));
|
||
box-shadow: 0 0 0 2px var(--gn-bg-panel, var(--ant-color-bg-container)), 0 0 0 3.5px var(--gn-fg-1, var(--ant-color-text));
|
||
}
|
||
|
||
.gn-conn-appearance-custom-color {
|
||
overflow: hidden;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
background: var(--gn-bg-input, var(--ant-color-bg-container));
|
||
}
|
||
|
||
.gn-conn-appearance-custom-color::-webkit-color-swatch-wrapper {
|
||
padding: 1px;
|
||
}
|
||
|
||
.gn-conn-appearance-custom-color::-webkit-color-swatch {
|
||
border: 0;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.gn-conn-appearance-preview {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 8px;
|
||
background: var(--gn-bg-panel-2, rgba(16, 24, 40, 0.03));
|
||
}
|
||
|
||
.gn-conn-appearance-preview-main {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-appearance-preview-icon {
|
||
display: grid;
|
||
place-items: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
flex: 0 0 28px;
|
||
overflow: hidden;
|
||
border: 1.5px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
border-radius: 7px;
|
||
background: var(--gn-bg-input, var(--ant-color-bg-container));
|
||
}
|
||
|
||
.gn-conn-appearance-preview-copy {
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-appearance-preview-name {
|
||
overflow: hidden;
|
||
color: var(--gn-fg-1, var(--ant-color-text));
|
||
font-size: 13px;
|
||
font-weight: 650;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-appearance-preview-meta {
|
||
margin-top: 1px;
|
||
color: var(--gn-fg-5, var(--ant-color-text-quaternary));
|
||
font-size: 11px;
|
||
}
|
||
|
||
.gn-conn-appearance-reset.ant-btn {
|
||
margin-left: auto;
|
||
}
|
||
|
||
@media (max-width: 700px) {
|
||
.gn-conn-studio-header {
|
||
grid-template-columns: minmax(0, 1fr) auto;
|
||
}
|
||
|
||
.gn-conn-studio-steps {
|
||
display: none;
|
||
}
|
||
|
||
.gn-conn-studio-close {
|
||
grid-column: 2;
|
||
}
|
||
|
||
.gn-conn-picker-body {
|
||
grid-template-columns: minmax(155px, 36%) minmax(0, 1fr);
|
||
}
|
||
|
||
.gn-conn-picker-grid {
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
}
|
||
|
||
.gn-conn-studio-foot-error,
|
||
.gn-conn-studio-details-button {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* URI block in basic tab — flat, no heavy card chrome */
|
||
.gn-conn-uri-block {
|
||
border: 0;
|
||
border-radius: 0;
|
||
padding: 0;
|
||
margin-bottom: 10px;
|
||
background: transparent;
|
||
}
|
||
|
||
.gn-conn-uri-block-top {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.gn-conn-uri-block-top .ttl {
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--gn-fg-2, inherit);
|
||
}
|
||
|
||
.gn-conn-uri-block-top .hint {
|
||
margin-left: 8px;
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
font-weight: 500;
|
||
}
|
||
|
||
.gn-conn-uri-divider {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin: 2px 0 10px;
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
}
|
||
|
||
.gn-conn-uri-divider::before,
|
||
.gn-conn-uri-divider::after {
|
||
content: "";
|
||
flex: 1;
|
||
height: 1px;
|
||
background: var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
}
|
||
|
||
/*
|
||
* 连接配置 Step2 密排 — 1:1 规格源:
|
||
* frontend/public/new-connection-ui-demo.html
|
||
* 关键:宽度套在 .gn-conn-w-* 外壳上,Form.Item 用 noStyle 或 100% 填满外壳,
|
||
* 避免 Ant Form.Item 被 flex 拉成「输入框小、盒子很大 / 名称与环境中间留白」。
|
||
*/
|
||
.gn-conn-dense {
|
||
--gn-conn-label-w: 40px;
|
||
--gn-conn-ctrl-h: 32px;
|
||
width: 100%;
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .ant-modal-body {
|
||
padding-left: 0 !important;
|
||
padding-right: 0 !important;
|
||
}
|
||
|
||
/* 垂直拖拽后,表单内容区消费新增高度,底栏保持固定。 */
|
||
.connection-modal-wrap.connection-modal-form .gn-resizable-draggable-modal[data-has-resized-height='true'] .ant-modal-content {
|
||
height: var(--gn-modal-resized-height);
|
||
max-height: var(--gn-modal-resized-height);
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .gn-resizable-draggable-modal[data-has-resized-height='true'] .ant-modal-body {
|
||
display: flex;
|
||
flex: 1 1 auto;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
max-height: none !important;
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
.connection-modal-wrap.connection-modal-form .gn-resizable-draggable-modal[data-has-resized-height='true'] .gn-conn-studio-form,
|
||
.connection-modal-wrap.connection-modal-form .gn-resizable-draggable-modal[data-has-resized-height='true'] .gn-conn-form-layout {
|
||
display: flex;
|
||
flex: 1 1 auto;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
height: 100%;
|
||
min-height: 0;
|
||
max-height: none;
|
||
}
|
||
|
||
/* demo .f-row */
|
||
.connection-modal-form .gn-conn-f-row,
|
||
.gn-conn-dense .gn-conn-f-row {
|
||
display: grid;
|
||
grid-template-columns: var(--gn-conn-label-w) minmax(0, 1fr);
|
||
gap: 6px 8px;
|
||
align-items: center;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.connection-modal-form .gn-conn-f-label,
|
||
.gn-conn-dense .gn-conn-f-label {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--gn-fg-3, rgba(0, 0, 0, 0.55));
|
||
text-align: left;
|
||
line-height: 1.2;
|
||
height: var(--gn-conn-ctrl-h);
|
||
display: flex;
|
||
align-items: center;
|
||
align-self: center;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.connection-modal-form .gn-conn-f-row[data-align="start"],
|
||
.gn-conn-dense .gn-conn-f-row[data-align="start"] {
|
||
align-items: start;
|
||
}
|
||
|
||
.connection-modal-form .gn-conn-f-row[data-align="start"] > .gn-conn-f-label,
|
||
.gn-conn-dense .gn-conn-f-row[data-align="start"] > .gn-conn-f-label {
|
||
height: auto;
|
||
padding-top: 8px;
|
||
align-self: start;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
/* demo .ctrl — 块级铺满 */
|
||
.connection-modal-form .gn-conn-f-ctrl,
|
||
.gn-conn-dense .gn-conn-f-ctrl {
|
||
min-width: 0;
|
||
width: 100%;
|
||
display: block;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* demo .ctrl.inline — 横排、控件紧挨、不 space-between */
|
||
.connection-modal-form .gn-conn-f-inline,
|
||
.gn-conn-dense .gn-conn-f-inline {
|
||
display: flex !important;
|
||
flex-direction: row !important;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: flex-start !important;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-height: var(--gn-conn-ctrl-h);
|
||
}
|
||
|
||
/* 宽度外壳(对应 demo .w-name 等) */
|
||
.gn-conn-w {
|
||
flex: 0 0 auto;
|
||
box-sizing: border-box;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gn-conn-w-name { width: 260px; max-width: min(260px, 100%); }
|
||
.gn-conn-w-host { width: 220px; max-width: min(220px, 100%); }
|
||
.gn-conn-w-port { width: 72px; flex: 0 0 72px; }
|
||
.gn-conn-w-db { width: 120px; flex: 0 0 120px; }
|
||
.gn-conn-w-user { width: 120px; flex: 0 0 120px; }
|
||
.gn-conn-w-pass { width: 200px; max-width: min(200px, 100%); }
|
||
.gn-conn-w-env { width: 100px; flex: 0 0 100px; }
|
||
.gn-conn-w-sm { width: 100px; flex: 0 0 100px; }
|
||
.gn-conn-w-grow {
|
||
flex: 1 1 auto;
|
||
min-width: 100px;
|
||
max-width: 280px;
|
||
}
|
||
|
||
.gn-conn-w .ant-form-item {
|
||
margin-bottom: 0 !important;
|
||
width: 100% !important;
|
||
}
|
||
|
||
.gn-conn-w .ant-input,
|
||
.gn-conn-w .ant-input-affix-wrapper,
|
||
.gn-conn-w .ant-input-number,
|
||
.gn-conn-w .ant-select {
|
||
width: 100% !important;
|
||
}
|
||
|
||
/* 库范围:整行 100%(demo input width:100%) */
|
||
.gn-conn-f-ctrl > .ant-form-item {
|
||
margin-bottom: 0 !important;
|
||
width: 100% !important;
|
||
max-width: 100% !important;
|
||
display: block !important;
|
||
}
|
||
|
||
.gn-conn-f-ctrl .ant-select,
|
||
.gn-conn-f-ctrl .ant-select-selector,
|
||
.gn-conn-scope-select {
|
||
width: 100% !important;
|
||
max-width: 100% !important;
|
||
min-width: 0 !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-form-item {
|
||
margin-bottom: 0 !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-form-item .ant-form-item-row {
|
||
align-items: center !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-form-item-control-input {
|
||
min-height: var(--gn-conn-ctrl-h) !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-input,
|
||
.gn-conn-dense .ant-input-affix-wrapper,
|
||
.gn-conn-dense .ant-input-number,
|
||
.gn-conn-dense .ant-input-number-input,
|
||
.gn-conn-dense .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
|
||
height: var(--gn-conn-ctrl-h) !important;
|
||
min-height: var(--gn-conn-ctrl-h) !important;
|
||
font-size: 12.5px !important;
|
||
border-radius: 6px !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-input,
|
||
.gn-conn-dense .ant-input-affix-wrapper {
|
||
padding-top: 0 !important;
|
||
padding-bottom: 0 !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-input-affix-wrapper .ant-input {
|
||
height: auto !important;
|
||
min-height: 0 !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-select-single .ant-select-selector {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
padding-inline: 8px !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-input-number-input {
|
||
padding: 0 8px !important;
|
||
}
|
||
|
||
.gn-conn-dense .ant-select-multiple .ant-select-selector {
|
||
min-height: var(--gn-conn-ctrl-h) !important;
|
||
height: auto !important;
|
||
width: 100% !important;
|
||
padding-block: 2px !important;
|
||
border-radius: 6px !important;
|
||
}
|
||
|
||
/* demo .check-line */
|
||
.gn-conn-check-line {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 12px 16px;
|
||
align-items: center;
|
||
padding: 2px 0 2px 48px;
|
||
margin-bottom: 4px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.gn-conn-check-line .ant-form-item {
|
||
margin-bottom: 0 !important;
|
||
}
|
||
|
||
/* demo: 模式分段 + 说明在下方(绝不能横排) */
|
||
.gn-conn-mode-block {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
align-items: flex-start !important;
|
||
gap: 0;
|
||
width: 100%;
|
||
}
|
||
|
||
.gn-conn-mode-seg {
|
||
display: inline-flex;
|
||
flex-wrap: wrap;
|
||
gap: 0;
|
||
padding: 2px;
|
||
margin-bottom: 0;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
background: var(--gn-bg-chrome, var(--gn-bg-panel-2, rgba(16, 24, 40, 0.03)));
|
||
}
|
||
|
||
.gn-conn-mode-seg-item {
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--gn-fg-3, rgba(0, 0, 0, 0.55));
|
||
font: inherit;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.gn-conn-mode-seg-item:hover {
|
||
color: var(--gn-fg-1, inherit);
|
||
}
|
||
|
||
.gn-conn-mode-seg-item[aria-pressed="true"] {
|
||
background: var(--gn-bg-selected, color-mix(in srgb, var(--gn-accent, #1677ff) 14%, transparent));
|
||
color: var(--gn-accent, #1677ff);
|
||
}
|
||
|
||
.gn-conn-mode-hint {
|
||
display: block !important;
|
||
margin: 4px 0 0 !important;
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
line-height: 1.35;
|
||
width: 100%;
|
||
}
|
||
|
||
/* Production protection — 规格源 demo .prot / .prot-head / .chev */
|
||
.gn-conn-prot {
|
||
--prot-lead: 22px;
|
||
--prot-gap: 10px;
|
||
margin-top: 10px;
|
||
margin-bottom: 4px;
|
||
border: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.gn-conn-prot-head {
|
||
display: grid;
|
||
grid-template-columns: var(--prot-lead) minmax(0, 1fr) auto;
|
||
column-gap: var(--prot-gap);
|
||
align-items: center;
|
||
padding: 2px 0;
|
||
min-height: 28px;
|
||
width: 100%;
|
||
border: 0;
|
||
background: transparent;
|
||
font: inherit;
|
||
color: inherit;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.gn-conn-prot-head:hover {
|
||
color: var(--gn-fg-1, inherit);
|
||
}
|
||
|
||
.gn-conn-prot-chev {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: var(--prot-lead);
|
||
height: var(--prot-lead);
|
||
margin: 0;
|
||
padding: 0;
|
||
color: var(--gn-fg-3, rgba(0, 0, 0, 0.45));
|
||
border-radius: 6px;
|
||
transition: transform 0.15s, background 0.15s, color 0.15s;
|
||
font-size: 0;
|
||
line-height: 0;
|
||
}
|
||
|
||
/* demo .prot-head .chev::before — border-width: 5px 0 5px 7px */
|
||
.gn-conn-prot-chev::before {
|
||
content: "";
|
||
display: block;
|
||
width: 0;
|
||
height: 0;
|
||
border-style: solid;
|
||
border-width: 5px 0 5px 7px;
|
||
border-color: transparent transparent transparent currentColor;
|
||
}
|
||
|
||
.gn-conn-prot-head:hover .gn-conn-prot-chev {
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.05));
|
||
color: var(--gn-fg-1, inherit);
|
||
}
|
||
|
||
.gn-conn-prot[data-open="1"] .gn-conn-prot-chev {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.gn-conn-prot-title {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: 28px;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.gn-conn-prot-tag {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
padding: 1px 7px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
background: transparent;
|
||
}
|
||
|
||
.gn-conn-prot-tag.on {
|
||
background: color-mix(in srgb, var(--gn-danger, #ff4d4f) 16%, transparent);
|
||
color: var(--gn-danger, #ff4d4f);
|
||
border-color: color-mix(in srgb, var(--gn-danger, #ff4d4f) 35%, transparent);
|
||
}
|
||
|
||
.gn-conn-prot-body {
|
||
padding: 4px 0 0;
|
||
}
|
||
|
||
.gn-conn-prot-opt {
|
||
display: grid;
|
||
grid-template-columns: var(--prot-lead) minmax(0, 1fr);
|
||
column-gap: var(--prot-gap);
|
||
align-items: start;
|
||
padding: 6px 0;
|
||
width: 100%;
|
||
border: 0;
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
font: inherit;
|
||
color: inherit;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.gn-conn-prot-opt:hover {
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.04));
|
||
}
|
||
|
||
.gn-conn-prot-opt .n {
|
||
font-size: 12.5px;
|
||
font-weight: 600;
|
||
line-height: 1.25;
|
||
color: var(--gn-fg-2, inherit);
|
||
}
|
||
|
||
.gn-conn-prot-opt .h {
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
margin-top: 2px;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.gn-conn-prot-sum {
|
||
margin-top: 6px;
|
||
font-size: 11.5px;
|
||
color: var(--gn-fg-4, rgba(0, 0, 0, 0.45));
|
||
}
|
||
|
||
/* Compact section title for residual blocks */
|
||
.gn-conn-subhead {
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--gn-fg-2, inherit);
|
||
margin: 10px 0 6px;
|
||
}
|
||
|
||
/* Hide heavy section chrome when dense form uses section cards sparingly */
|
||
.gn-conn-dense [data-connection-config-section] {
|
||
padding-top: 8px !important;
|
||
margin-top: 4px;
|
||
border-top: 1px solid var(--gn-br-1, rgba(16, 24, 40, 0.06)) !important;
|
||
}
|
||
|
||
.gn-conn-dense [data-connection-config-section]:first-child {
|
||
border-top: none !important;
|
||
padding-top: 0 !important;
|
||
}
|
||
|
||
/* Network list rows */
|
||
.gn-conn-net-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.gn-conn-net-row {
|
||
display: grid;
|
||
grid-template-columns: 20px minmax(0, 1fr) auto;
|
||
align-items: center;
|
||
column-gap: 10px;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 9px 10px;
|
||
border-radius: 10px;
|
||
border: 1px solid var(--gn-br-2, rgba(16, 24, 40, 0.1));
|
||
background: var(--gn-bg-panel-2, rgba(16, 24, 40, 0.02));
|
||
cursor: pointer;
|
||
font: inherit;
|
||
color: inherit;
|
||
transition: border-color 0.12s, background 0.12s;
|
||
}
|
||
|
||
.gn-conn-net-row:hover {
|
||
background: var(--gn-bg-hover, rgba(16, 24, 40, 0.04));
|
||
}
|
||
|
||
.gn-conn-net-row[data-active='true'] {
|
||
border-color: color-mix(in srgb, var(--gn-accent, #1677ff) 45%, transparent);
|
||
background: var(--gn-bg-selected, color-mix(in srgb, var(--gn-accent, #1677ff) 10%, transparent));
|
||
}
|
||
|
||
.gn-conn-net-row .nt {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
}
|
||
|
||
.gn-conn-net-row .nd {
|
||
font-size: 11.5px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
margin-top: 2px;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.gn-conn-net-row .st {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gn-conn-net-row .st.on {
|
||
color: var(--gn-accent, #1677ff);
|
||
}
|
||
|
||
.gn-conn-net-hint {
|
||
font-size: 11px;
|
||
color: var(--gn-fg-5, rgba(0, 0, 0, 0.4));
|
||
margin-bottom: 6px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
/* Custom Title Bar Close Button Hover */
|
||
.gonavi-titlebar-leading {
|
||
display: flex;
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
align-items: center;
|
||
gap: 10px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.gonavi-titlebar-primary-actions {
|
||
display: inline-flex;
|
||
min-width: max-content;
|
||
flex: 0 0 auto;
|
||
align-items: center;
|
||
gap: 5px;
|
||
-webkit-app-region: no-drag;
|
||
--wails-draggable: no-drag;
|
||
}
|
||
|
||
.gonavi-titlebar-primary-action.ant-btn {
|
||
min-width: 0;
|
||
height: 28px;
|
||
padding: 0 9px;
|
||
border: 0.5px solid var(--gn-br-2, var(--ant-color-border-secondary));
|
||
border-radius: 6px;
|
||
background: var(--gn-bg-panel, var(--ant-color-bg-container));
|
||
color: var(--gn-fg-2, var(--ant-color-text));
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
letter-spacing: 0;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.gonavi-titlebar-primary-action.ant-btn:hover,
|
||
.gonavi-titlebar-primary-action.ant-btn:focus-visible {
|
||
border-color: color-mix(in srgb, var(--gn-accent, var(--ant-color-primary)) 42%, transparent);
|
||
background: var(--gn-accent-soft, var(--ant-color-primary-bg));
|
||
color: var(--gn-accent, var(--ant-color-primary));
|
||
}
|
||
|
||
@media (max-width: 720px) {
|
||
.gonavi-titlebar-leading {
|
||
gap: 6px;
|
||
}
|
||
|
||
.gonavi-titlebar-primary-actions {
|
||
gap: 3px;
|
||
}
|
||
|
||
.gonavi-titlebar-primary-action.ant-btn {
|
||
padding-inline: 6px;
|
||
}
|
||
}
|
||
|
||
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;
|
||
width: var(--gonavi-sidebar-resize-width) !important;
|
||
flex: 0 0 var(--gonavi-sidebar-resize-width) !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-cloud-backup-settings .ant-input-affix-wrapper > input.ant-input:focus,
|
||
.gonavi-cloud-backup-settings .ant-input-affix-wrapper > input.ant-input:focus-visible {
|
||
outline: none !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.gonavi-cloud-backup-feedback {
|
||
display: grid;
|
||
gap: 2px;
|
||
min-width: min(320px, calc(100vw - 96px));
|
||
max-width: 420px;
|
||
text-align: left;
|
||
}
|
||
|
||
.gonavi-cloud-backup-feedback__title {
|
||
color: var(--gn-fg-1, #0c1322);
|
||
font-weight: 650;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.gonavi-cloud-backup-feedback__description {
|
||
color: var(--gn-fg-4, #6b7280);
|
||
font-size: var(--gn-font-size-sm, 12px);
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
border: 1px solid var(--gn-br-2, rgba(15, 23, 42, 0.12));
|
||
border-radius: 6px;
|
||
background: var(--gn-bg-panel, #fff);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__header {
|
||
display: grid;
|
||
grid-template-columns: 32px minmax(0, 1fr) auto;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 12px 14px;
|
||
background: var(--gn-bg-panel-2, #fafaf8);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__icon {
|
||
display: inline-grid;
|
||
width: 32px;
|
||
height: 32px;
|
||
place-items: center;
|
||
border: 1px solid color-mix(in srgb, var(--gn-accent, #15803d) 28%, transparent);
|
||
border-radius: 6px;
|
||
background: var(--gn-accent-soft, #dcfce7);
|
||
color: var(--gn-accent-2, #166534);
|
||
font-size: 16px;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__heading {
|
||
display: grid;
|
||
gap: 2px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__heading .ant-typography {
|
||
margin: 0;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__metrics {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
color: var(--gn-fg-3, #4b5563);
|
||
font-size: var(--gn-settings-font-caption, 12px);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__metrics > span {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__metrics .anticon {
|
||
color: var(--gn-fg-4, #6b7280);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__categories {
|
||
max-height: min(320px, 38vh);
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__category {
|
||
min-width: 0;
|
||
border-top: 1px solid var(--gn-br-1, rgba(15, 23, 42, 0.08));
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__category-heading {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||
align-items: center;
|
||
gap: 12px;
|
||
min-height: 38px;
|
||
padding: 7px 14px;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__category-name {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
color: var(--gn-fg-2, #1f2937);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__category-name .anticon {
|
||
flex: 0 0 auto;
|
||
color: var(--gn-accent, #15803d);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__restart {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
color: var(--gn-warn, #d97706);
|
||
font-size: var(--gn-settings-font-caption, 12px);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__files {
|
||
display: grid;
|
||
margin: 0;
|
||
padding: 0 14px 8px 36px;
|
||
list-style: none;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__files li {
|
||
display: grid;
|
||
grid-template-columns: 16px minmax(0, 1fr);
|
||
align-items: center;
|
||
gap: 7px;
|
||
min-height: 30px;
|
||
padding: 4px 8px;
|
||
border-radius: 4px;
|
||
color: var(--gn-fg-4, #6b7280);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__files li:hover {
|
||
background: var(--gn-bg-hover, rgba(15, 23, 42, 0.045));
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__file-copy {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__file-name,
|
||
.gonavi-cloud-backup-remote-preview__file-directory,
|
||
.gonavi-cloud-backup-remote-preview__connection-name,
|
||
.gonavi-cloud-backup-remote-preview__connection-host {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__file-name {
|
||
flex: 0 1 auto;
|
||
color: var(--gn-fg-2, #1f2937);
|
||
font-family: var(--gn-font-mono, Consolas, monospace);
|
||
font-size: var(--gn-font-size-mono, 12px);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__file-directory {
|
||
flex: 1 1 auto;
|
||
color: var(--gn-fg-5, #9ca3af);
|
||
font-size: var(--gn-font-size-xs, 11px);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__connection-name {
|
||
flex: 0 1 auto;
|
||
color: var(--gn-fg-2, #1f2937);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__connection-host {
|
||
flex: 1 1 auto;
|
||
color: var(--gn-fg-5, #9ca3af);
|
||
font-family: var(--gn-font-mono, Consolas, monospace);
|
||
font-size: var(--gn-font-size-xs, 11px);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__empty {
|
||
display: block;
|
||
padding: 18px 14px;
|
||
text-align: center;
|
||
}
|
||
|
||
body[data-theme='dark'] .gonavi-cloud-backup-feedback__title {
|
||
color: var(--gn-fg-1, #f1f3f5);
|
||
}
|
||
|
||
@media (max-width: 760px) {
|
||
.gonavi-cloud-backup-remote-preview__header {
|
||
grid-template-columns: 32px minmax(0, 1fr);
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__metrics {
|
||
grid-column: 1 / -1;
|
||
padding-left: 42px;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__category-heading {
|
||
grid-template-columns: minmax(0, 1fr) auto;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__restart {
|
||
grid-column: 1 / -1;
|
||
padding-left: 24px;
|
||
}
|
||
|
||
.gonavi-cloud-backup-remote-preview__file-copy {
|
||
display: grid;
|
||
gap: 1px;
|
||
}
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
/* Loading indicators communicate ongoing work, rather than decorative motion. */
|
||
.gonavi-settings-center-modal .ant-btn-loading-icon .anticon-spin {
|
||
animation-duration: 1s !important;
|
||
animation-iteration-count: infinite !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;
|
||
}
|