mirror of
https://github.com/ai-bytedance/obsidian-cloud-sync.git
synced 2026-07-22 13:00:30 +00:00
439 lines
No EOL
8.7 KiB
CSS
439 lines
No EOL
8.7 KiB
CSS
/* 通用样式 */
|
|
|
|
/* 组件样式 - 从JavaScript中迁移的样式 */
|
|
|
|
/* 文本区域样式 */
|
|
.cs-textarea {
|
|
width: 300px !important;
|
|
height: 60px !important;
|
|
}
|
|
|
|
/* 粗体警告文本 */
|
|
.cs-warning-bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 按钮容器间距 */
|
|
.cs-button-container-gap {
|
|
gap: 6px;
|
|
}
|
|
|
|
/* 相对定位容器 */
|
|
.cs-relative-container {
|
|
position: relative;
|
|
}
|
|
|
|
/* 通用输入框样式 */
|
|
.cs-input-with-icon {
|
|
padding-right: 30px !important;
|
|
}
|
|
|
|
.cs-input-wide {
|
|
width: 300px !important;
|
|
}
|
|
|
|
.cs-input-multiline {
|
|
width: 300px !important;
|
|
height: 60px !important;
|
|
}
|
|
|
|
/* 图标样式 */
|
|
.cs-eye-icon {
|
|
font-size: 16px;
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 按钮容器样式 */
|
|
.cs-button-container {
|
|
display: flex;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.cs-button {
|
|
padding: 2px 6px;
|
|
font-size: 11px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cs-primary-button {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.cs-secondary-button {
|
|
background-color: var(--interactive-accent-hover);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* 警告文本样式 */
|
|
.cs-warning-text {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.cs-small-warning-text {
|
|
color: var(--text-error);
|
|
font-size: 0.7em;
|
|
}
|
|
|
|
/* 值显示样式 */
|
|
.cs-value-display {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* 高亮文本 */
|
|
.cs-highlight {
|
|
font-weight: bold;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.cloud-sync-settings {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
padding: 1em;
|
|
border-radius: 5px;
|
|
background-color: var(--background-secondary);
|
|
}
|
|
|
|
.cloud-sync-setting-item {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.cloud-sync-divider {
|
|
margin: 20px 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* 进度条样式 */
|
|
.cloud-sync-progress-container {
|
|
width: 100%;
|
|
height: 8px;
|
|
background-color: var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cloud-sync-progress-bar {
|
|
height: 100%;
|
|
background-color: var(--interactive-accent);
|
|
border-radius: 4px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
/* 表单样式 */
|
|
.cloud-sync-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.cloud-sync-form-group .setting-item-info {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.cloud-sync-form-group input,
|
|
.cloud-sync-form-group select {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 必填字段标记 */
|
|
.cloud-sync-required::after {
|
|
content: " *";
|
|
color: var(--color-red);
|
|
}
|
|
|
|
/* 测试连接按钮 */
|
|
.cloud-sync-test-button {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* 状态指示器 */
|
|
.cloud-sync-status {
|
|
margin-top: 0.5em;
|
|
font-size: 0.85em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cloud-sync-status-success {
|
|
color: var(--text-success);
|
|
}
|
|
|
|
.cloud-sync-status-error {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.cloud-sync-status-loading {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* 警告提示 */
|
|
.cloud-sync-warning {
|
|
color: var(--text-warning);
|
|
font-size: 0.85em;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
/* 密码显示/隐藏按钮 */
|
|
.eye-icon-container {
|
|
position: absolute;
|
|
right: 0.5em;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
z-index: 1;
|
|
font-size: 16px;
|
|
color: var(--text-normal);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.eye-icon-container:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.cloud-sync-button {
|
|
border-radius: 4px;
|
|
padding: 2px 6px;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
font-size: 11px;
|
|
min-width: auto;
|
|
height: 24px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* 输入框容器相对定位 */
|
|
.cloud-sync-input-container {
|
|
position: relative;
|
|
}
|
|
|
|
/* 输入框右侧留空间 */
|
|
.cloud-sync-password-input {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
/* 标签样式 */
|
|
.cloud-sync-settings h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1em;
|
|
padding-bottom: 0.5em;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.cloud-sync-settings h4 {
|
|
margin-top: 1.5em;
|
|
margin-bottom: 0.5em;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
/* 设置项分隔线 */
|
|
.setting-item:not(:last-child) {
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* 子设置部分样式 */
|
|
.cloud-sync-subsection {
|
|
margin-top: 0.5rem !important;
|
|
margin-bottom: 0.5rem !important;
|
|
padding-top: 0 !important;
|
|
}
|
|
|
|
.cloud-sync-subtitle {
|
|
font-size: 0.95rem !important;
|
|
color: var(--color-accent) !important;
|
|
margin-top: 0.5rem !important;
|
|
margin-bottom: 0.5rem !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* 同步间隔显示样式 */
|
|
.sync-interval-display {
|
|
display: inline-block;
|
|
min-width: 1.5em;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
padding: 0.2em 0.5em;
|
|
border-radius: 1em;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* 坚果云特定设置样式 */
|
|
.cloud-sync-jianguoyun-settings {
|
|
margin: 1em 0;
|
|
padding: 1em;
|
|
border-radius: 5px;
|
|
background-color: var(--background-primary-alt);
|
|
border-left: 3px solid var(--interactive-accent);
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-header {
|
|
margin-bottom: 0.75em;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-header h4 {
|
|
font-size: 1em !important;
|
|
font-weight: 600 !important;
|
|
color: var(--text-accent) !important;
|
|
margin: 0 0 0.5em 0 !important;
|
|
}
|
|
|
|
.cloud-sync-info-panel {
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
padding: 0.75em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.cloud-sync-info-text {
|
|
font-size: 0.9em !important;
|
|
color: var(--text-normal) !important;
|
|
margin: 0 !important;
|
|
line-height: 1.5 !important;
|
|
}
|
|
|
|
/* 高亮显示提示文本 */
|
|
.cloud-sync-info-text strong,
|
|
.cloud-sync-info-text b,
|
|
.cloud-sync-info-text .highlight,
|
|
.cloud-sync-tip-text .highlight {
|
|
color: var(--text-error) !important;
|
|
font-weight: 600 !important;
|
|
background-color: rgba(255, 0, 0, 0.05) !important;
|
|
padding: 1px 3px !important;
|
|
border-radius: 3px !important;
|
|
display: inline-block !important;
|
|
}
|
|
|
|
/* 确保坚果云设置项样式一致性 */
|
|
.cloud-sync-jianguoyun-setting {
|
|
padding: 0.75em 0 !important;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-setting .setting-item-info {
|
|
font-size: 0.9em !important;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-setting .setting-item-name {
|
|
font-size: 0.95em !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-setting .setting-item-description {
|
|
font-size: 0.85em !important;
|
|
}
|
|
|
|
/* 提示信息样式 */
|
|
.cloud-sync-other-provider {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 0.75em;
|
|
background-color: var(--background-primary-alt);
|
|
border-radius: 4px;
|
|
margin: 1em 0;
|
|
border-left: 3px solid var(--text-error);
|
|
}
|
|
|
|
.cloud-sync-tip-icon {
|
|
font-size: 1em;
|
|
margin-right: 0.5em;
|
|
flex-shrink: 0;
|
|
color: var(--text-error) !important;
|
|
}
|
|
|
|
.cloud-sync-tip-text {
|
|
font-size: 0.9em !important;
|
|
color: var(--text-normal) !important;
|
|
margin: 0 !important;
|
|
line-height: 1.5 !important;
|
|
}
|
|
|
|
.cloud-sync-tip-text .highlight {
|
|
color: var(--text-error) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* 响应式样式调整,确保在各种窗口大小下保持一致 */
|
|
@media (max-width: 768px) {
|
|
.cloud-sync-jianguoyun-settings,
|
|
.cloud-sync-other-provider {
|
|
padding: 0.75em;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-header h4 {
|
|
font-size: 0.95em !important;
|
|
}
|
|
|
|
.cloud-sync-info-text,
|
|
.cloud-sync-tip-text {
|
|
font-size: 0.85em !important;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-setting .setting-item-name {
|
|
font-size: 0.9em !important;
|
|
}
|
|
|
|
.cloud-sync-jianguoyun-setting .setting-item-description {
|
|
font-size: 0.8em !important;
|
|
}
|
|
}
|
|
|
|
/* 开发中的云盘服务样式 */
|
|
.cloud-sync-developing {
|
|
position: relative;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.cloud-sync-developing::after {
|
|
content: "开发中";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
transform: translate(-5px, 0);
|
|
}
|
|
|
|
.cloud-sync-developing .setting-item-description {
|
|
color: var(--text-faint);
|
|
font-style: italic;
|
|
}
|
|
|
|
.cloud-sync-developing .toggle-container {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* 功能开发中提示框样式 */
|
|
.cloud-sync-developing-notice {
|
|
background-color: var(--background-modifier-border);
|
|
border-left: 4px solid var(--interactive-accent);
|
|
padding: 10px 15px;
|
|
margin-bottom: 15px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.cloud-sync-developing-notice .cloud-sync-tip-icon {
|
|
font-size: 20px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.cloud-sync-developing-notice .cloud-sync-tip-text {
|
|
margin: 0;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
} |