Files
2026-07-13 13:19:52 +08:00

182 lines
3.4 KiB
CSS

/* MetaStyle T8 节点 UI 样式 */
.metastyle-picker {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px;
color: #ddd;
font-size: 12px;
width: 100%;
height: 100%;
box-sizing: border-box;
overflow: hidden;
}
.metastyle-picker .ms-bar {
display: flex;
gap: 6px;
align-items: center;
}
.metastyle-picker .ms-bar select,
.metastyle-picker .ms-bar input {
background: #2b2b2b;
border: 1px solid #444;
color: #ddd;
padding: 4px 6px;
border-radius: 3px;
font-size: 12px;
}
.metastyle-picker .ms-bar input.ms-q {
flex: 1;
min-width: 80px;
}
.metastyle-picker .ms-stats {
color: #999;
font-size: 11px;
}
.metastyle-picker .ms-grid {
flex: 1 1 auto;
overflow-y: auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
grid-auto-rows: 72px;
gap: 4px;
padding: 2px;
background: #1d1d1d;
border-radius: 4px;
min-height: 120px;
max-height: 240px;
}
.metastyle-picker .ms-card {
position: relative;
background: #2a2a2a;
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
overflow: hidden;
}
.metastyle-picker .ms-card:hover {
border-color: #5b9aff;
}
.metastyle-picker .ms-card.selected {
border-color: #ffb84d;
box-shadow: 0 0 0 1px #ffb84d inset;
}
.metastyle-picker .ms-card img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.metastyle-picker .ms-card-label {
position: absolute;
left: 0; right: 0; bottom: 0;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
color: #eee;
font-size: 10px;
padding: 6px 4px 3px;
line-height: 1.1;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.metastyle-picker .ms-pagination {
display: flex;
gap: 8px;
align-items: center;
justify-content: center;
padding: 4px 0;
}
.metastyle-picker .ms-btn {
background: #2b2b2b;
border: 1px solid #444;
color: #ddd;
padding: 4px 12px;
border-radius: 3px;
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
}
.metastyle-picker .ms-btn:hover:not(:disabled) {
background: #3a3a3a;
border-color: #5b9aff;
}
.metastyle-picker .ms-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.metastyle-picker .ms-page-info {
color: #999;
font-size: 11px;
min-width: 60px;
text-align: center;
}
.metastyle-picker .ms-preview {
display: flex;
gap: 8px;
background: #1d1d1d;
border-radius: 4px;
padding: 6px;
min-height: 120px;
}
.metastyle-picker .ms-preview-img {
width: 140px;
height: 140px;
object-fit: contain;
background: #111;
border-radius: 3px;
flex-shrink: 0;
}
.metastyle-picker .ms-preview-info {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 4px;
}
.metastyle-picker .ms-name {
font-weight: bold;
color: #fff;
font-size: 12px;
word-break: break-word;
}
.metastyle-picker .ms-cat-tag {
color: #ffb84d;
font-size: 11px;
}
.metastyle-picker .ms-prompt {
color: #bbb;
font-size: 11px;
line-height: 1.4;
overflow: auto;
flex: 1;
background: #161616;
padding: 4px 6px;
border-radius: 3px;
white-space: pre-wrap;
word-break: break-word;
}