Files
Qiniu/styles.css

217 lines
4.0 KiB
CSS
Raw Permalink Normal View History

/*
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.
*/
/* ===== 七牛云边栏样式 ===== */
.qiniu-sidebar-header {
padding: 12px 16px 8px 16px;
border-bottom: 1px solid var(--background-modifier-border);
}
.qiniu-sidebar-header h3 {
margin: 0;
font-size: 16px;
}
.qiniu-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
flex-wrap: wrap;
border-bottom: 1px solid var(--background-modifier-border);
}
.qiniu-btn {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
color: var(--text-normal);
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
font-size: 13px;
transition: all 0.2s;
}
.qiniu-btn:hover {
background: var(--background-modifier-hover);
}
.qiniu-btn-primary {
background: var(--interactive-accent);
color: var(--text-on-accent);
border-color: var(--interactive-accent);
}
.qiniu-btn-primary:hover {
background: var(--interactive-accent-hover);
}
.qiniu-page-size {
display: flex;
align-items: center;
gap: 4px;
margin-left: auto;
}
.qiniu-label {
font-size: 12px;
color: var(--text-muted);
}
.qiniu-select {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
color: var(--text-normal);
padding: 2px 6px;
font-size: 12px;
}
.qiniu-file-list {
padding: 8px 12px;
overflow-y: auto;
flex: 1;
}
.qiniu-empty, .qiniu-error {
color: var(--text-muted);
text-align: center;
padding: 30px 0;
}
.qiniu-file-list-ul {
list-style: none;
margin: 0;
padding: 0;
}
.qiniu-file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 10px;
margin-bottom: 4px;
border-radius: 4px;
background: var(--background-secondary);
transition: background 0.2s;
}
.qiniu-file-item:hover {
background: var(--background-modifier-hover);
}
.qiniu-file-info {
display: flex;
align-items: center;
flex: 1;
min-width: 0;
}
.qiniu-file-preview {
width: 32px;
height: 32px;
border-radius: 4px;
overflow: hidden;
flex-shrink: 0;
margin-right: 10px;
background: var(--background-modifier-border);
}
.qiniu-preview-img {
width: 100%;
height: 100%;
object-fit: cover;
cursor: pointer;
}
.qiniu-file-text {
min-width: 0;
flex: 1;
}
.qiniu-file-name {
font-size: 13px;
color: var(--text-normal);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.qiniu-file-size {
font-size: 11px;
color: var(--text-muted);
}
.qiniu-file-actions {
display: flex;
gap: 4px;
flex-shrink: 0;
margin-left: 8px;
}
.qiniu-action-btn {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
transition: all 0.2s;
}
.qiniu-action-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.qiniu-insert-btn:hover {
color: var(--interactive-accent);
}
.qiniu-delete-btn:hover {
color: var(--text-error);
}
.qiniu-pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
padding: 12px 0 8px 0;
border-top: 1px solid var(--background-modifier-border);
}
.qiniu-page-btn {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
color: var(--text-normal);
cursor: pointer;
padding: 4px 12px;
font-size: 12px;
transition: all 0.2s;
}
.qiniu-page-btn:hover {
background: var(--background-modifier-hover);
}
.qiniu-page-info {
font-size: 12px;
color: var(--text-muted);
}
/* 文件元信息(时间 + 大小) */
.qiniu-file-meta {
font-size: 11px;
color: var(--text-muted);
margin-top: 2px;
}