fantasy-ke_obsidian-cf-imgbed/styles.css
fantasy-ke b834fdb5c3 feat: 添加水印和压缩功能,优化设置界面和验证逻辑
- 新增水印和压缩处理的客户端功能
- 增加设置验证逻辑,确保配置有效性
- 优化设置界面,增加选项卡和样式
- 更新类型定义,包含新配置项
- 添加文件类型和大小验证
- 实现文件上传前的水印和压缩处理
2025-10-27 19:05:10 +08:00

179 lines
No EOL
4.3 KiB
CSS

/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
/* CF ImageBed 插件专用样式 - 限制作用域避免影响全局 */
/* 设置界面选项卡样式 - 仅在插件设置页面生效 */
.cf-imagebed-settings .cf-imagebed-tabs {
display: flex;
border-bottom: 1px solid var(--background-modifier-border);
margin-bottom: 1rem;
gap: 0.5rem;
}
.cf-imagebed-settings .cf-tab-button {
background: none;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
color: var(--text-muted);
border-bottom: 2px solid transparent;
transition: all 0.2s ease;
font-size: 0.9rem;
}
.cf-imagebed-settings .cf-tab-button:hover {
color: var(--text-normal);
background: var(--background-modifier-hover);
}
.cf-imagebed-settings .cf-tab-button.active {
color: var(--text-accent);
border-bottom-color: var(--text-accent);
background: var(--background-modifier-active);
}
.cf-imagebed-settings .cf-imagebed-tab-content {
position: relative;
}
.cf-imagebed-settings .cf-tab-panel {
display: none;
animation: cf-fadeIn 0.3s ease-in-out;
}
.cf-imagebed-settings .cf-tab-panel.active {
display: block;
}
@keyframes cf-fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 滑块样式优化 - 仅在插件设置页面生效 */
.cf-imagebed-settings .setting-item .slider-container {
width: 100%;
margin-top: 0.5rem;
}
.cf-imagebed-settings .setting-item .slider-container input[type="range"] {
width: 100%;
height: 6px;
border-radius: 3px;
background: var(--background-modifier-border);
outline: none;
-webkit-appearance: none;
}
.cf-imagebed-settings .setting-item .slider-container input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--text-accent);
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cf-imagebed-settings .setting-item .slider-container input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--text-accent);
cursor: pointer;
border: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* 按钮样式优化 - 仅在插件设置页面生效 */
.cf-imagebed-settings .setting-item .mod-button {
padding: 0.5rem 1rem;
border-radius: 4px;
border: 1px solid var(--background-modifier-border);
background: var(--background-primary);
color: var(--text-normal);
cursor: pointer;
transition: all 0.2s ease;
}
.cf-imagebed-settings .setting-item .mod-button:hover {
background: var(--background-modifier-hover);
border-color: var(--text-accent);
}
.cf-imagebed-settings .setting-item .mod-button.mod-warning {
background: var(--text-error);
color: var(--text-on-accent);
border-color: var(--text-error);
}
.cf-imagebed-settings .setting-item .mod-button.mod-warning:hover {
background: var(--text-error-hover);
}
/* 设置项分组样式 - 仅在插件设置页面生效 */
.cf-imagebed-settings .setting-item {
margin-bottom: 1rem;
padding: 0.75rem;
border-radius: 6px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
transition: all 0.2s ease;
}
.cf-imagebed-settings .setting-item:hover {
background: var(--background-modifier-hover);
border-color: var(--text-accent);
}
.cf-imagebed-settings .setting-item .setting-item-name {
font-weight: 600;
color: var(--text-normal);
margin-bottom: 0.25rem;
}
.cf-imagebed-settings .setting-item .setting-item-description {
color: var(--text-muted);
font-size: 0.85rem;
line-height: 1.4;
}
/* 禁用状态样式 - 仅在插件设置页面生效 */
.cf-imagebed-settings .setting-item .setting-item-control input:disabled,
.cf-imagebed-settings .setting-item .setting-item-control select:disabled,
.cf-imagebed-settings .setting-item .setting-item-control button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* 响应式设计 - 仅在插件设置页面生效 */
@media (max-width: 768px) {
.cf-imagebed-settings .cf-imagebed-tabs {
flex-wrap: wrap;
gap: 0.25rem;
}
.cf-imagebed-settings .cf-tab-button {
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
}
.cf-imagebed-settings .setting-item {
padding: 0.5rem;
margin-bottom: 0.75rem;
}
}