Files

512 lines
9.4 KiB
CSS

/* ── Node-embedded Pixiv browser ──────────────────────────────────────────── */
.px-browser {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
background: #1e1e2e;
color: #cdd6f4;
font-family: sans-serif;
font-size: 13px;
overflow: hidden;
box-sizing: border-box;
}
/* Tabs */
.px-tabs {
display: flex;
gap: 2px;
padding: 6px 10px 0;
border-bottom: 1px solid #3a3a5c;
flex-shrink: 0;
background: #181825;
}
.px-tab {
padding: 5px 12px;
border-radius: 6px 6px 0 0;
cursor: pointer;
background: transparent;
border: 1px solid transparent;
border-bottom: none;
color: #7f849c;
font-size: 12px;
transition: color 0.15s, background 0.15s;
white-space: nowrap;
}
.px-tab:hover { color: #cdd6f4; background: #2a2a3e; }
.px-tab.active { color: #cba6f7; background: #2a2a3e; border-color: #3a3a5c; }
/* Content area */
.px-content {
flex: 1;
overflow: hidden;
display: flex;
min-height: 0;
}
/* Footer */
.px-footer {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 10px;
border-top: 1px solid #3a3a5c;
flex-shrink: 0;
background: #181825;
}
.px-count {
flex: 1;
color: #a6e3a1;
font-size: 12px;
}
.px-multisel-btn {
padding: 4px 9px;
background: transparent;
border: 1px solid #45475a;
color: #7f849c;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
}
.px-multisel-btn:hover { color: #cba6f7; border-color: #cba6f7; }
.px-multisel-btn.active { color: #cba6f7; border-color: #cba6f7; background: #313244; }
.px-clear-btn {
padding: 4px 9px;
background: transparent;
border: 1px solid #45475a;
color: #7f849c;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
}
.px-clear-btn:hover { color: #f38ba8; border-color: #f38ba8; }
.px-confirm-btn {
padding: 5px 13px;
background: #cba6f7;
color: #1e1e2e;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
font-size: 12px;
}
.px-confirm-btn:hover { background: #d0b4f5; }
/* Custom scrollbar wrapper */
.px-scroll-wrap {
flex: 1;
display: flex;
min-height: 0;
overflow: hidden;
}
.px-scrollbar {
width: 12px;
background: #181825;
position: relative;
cursor: pointer;
flex-shrink: 0;
border-left: 1px solid #2a2a3e;
}
.px-scrollbar-thumb {
position: absolute;
left: 2px;
right: 2px;
background: #45475a;
border-radius: 4px;
min-height: 24px;
cursor: grab;
transition: background 0.15s;
}
.px-scrollbar-thumb:hover { background: #7f849c; }
.px-scrollbar-thumb.dragging { background: #cba6f7; cursor: grabbing; }
/* Grid pane */
.px-grid-pane {
flex: 1;
overflow-y: auto;
padding: 0;
scrollbar-width: none;
}
.px-grid-pane::-webkit-scrollbar { display: none; }
.px-artist-grid-scroll {
scrollbar-width: none;
}
.px-artist-grid-scroll::-webkit-scrollbar { display: none; }
.px-grid {
display: flex;
align-items: flex-start;
}
.px-masonry-col {
flex: 1;
min-width: 0;
}
/* Cards */
.px-card {
position: relative;
cursor: pointer;
overflow: hidden;
background: #181825;
transition: box-shadow 0.15s;
display: block;
width: 100%;
}
.px-card:hover { box-shadow: inset 0 0 0 2px #7f849c; }
.px-card.selected { box-shadow: inset 0 0 0 2px #cba6f7; }
.px-card img {
width: 100%;
height: auto;
display: block;
}
.px-card-title {
padding: 3px 5px;
font-size: 10px;
color: #7f849c;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.px-seq-badge {
position: absolute;
top: 3px;
right: 3px;
background: #cba6f7;
color: #1e1e2e;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
pointer-events: none;
}
.px-remove-btn {
position: absolute;
top: 3px;
right: 3px;
background: rgba(243, 139, 168, 0.9);
color: #1e1e2e;
border: none;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
cursor: pointer;
padding: 0;
line-height: 1;
}
.px-remove-btn:hover { background: #f38ba8; }
.px-bookmark-btn {
position: absolute;
bottom: 20px;
left: 3px;
background: rgba(0, 0, 0, 0.5);
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
cursor: pointer;
padding: 0;
line-height: 1;
color: rgba(255, 255, 255, 0.85);
transition: opacity 0.15s, color 0.15s;
opacity: 0;
}
.px-card:hover .px-bookmark-btn { opacity: 1; }
.px-bookmark-btn.bookmarked { opacity: 1; color: #f38ba8; }
.px-bookmark-btn:not(.bookmarked):hover { color: #f38ba8; }
.px-artist-btn {
position: absolute;
bottom: 20px;
right: 3px;
background: rgba(0, 0, 0, 0.5);
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
cursor: pointer;
padding: 0;
line-height: 1;
color: rgba(255, 255, 255, 0.85);
transition: opacity 0.15s, color 0.15s;
opacity: 0;
}
.px-card:hover .px-artist-btn { opacity: 1; }
.px-artist-btn:hover { color: #cba6f7; }
.px-pixiv-btn {
position: absolute;
top: 3px;
left: 3px;
background: rgba(0, 150, 250, 0.8);
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: bold;
cursor: pointer;
padding: 0;
line-height: 1;
color: rgba(255, 255, 255, 0.9);
transition: opacity 0.15s, background 0.15s;
opacity: 0;
text-decoration: none;
}
.px-card:hover .px-pixiv-btn { opacity: 1; }
.px-pixiv-btn:hover { background: rgba(0, 150, 250, 1); color: #fff; }
/* Login page */
.px-login-page {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 20px;
overflow-y: auto;
}
.px-login-tab {
flex: 1;
padding: 7px;
background: transparent;
border: none;
color: #7f849c;
cursor: pointer;
font-size: 12px;
transition: background 0.15s, color 0.15s;
}
.px-login-tab.active { background: #2a2a3e; color: #cba6f7; }
.px-login-tab:hover { color: #cdd6f4; }
/* Recommended / Ranking pane shared layout */
.px-recommended-pane {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
min-height: 0;
}
.px-refresh-btn {
padding: 3px 10px;
background: transparent;
border: 1px solid #45475a;
color: #7f849c;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
}
.px-refresh-btn:hover { color: #cba6f7; border-color: #cba6f7; }
/* Ranking pane */
.px-ranking-pane {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
min-height: 0;
}
.px-rank-bar {
display: flex;
gap: 4px;
padding: 6px 8px;
border-bottom: 1px solid #3a3a5c;
flex-shrink: 0;
flex-wrap: wrap;
background: #181825;
}
.px-rank-btn {
padding: 3px 10px;
background: transparent;
border: 1px solid #45475a;
color: #7f849c;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
}
.px-rank-btn:hover { color: #cdd6f4; border-color: #7f849c; }
.px-rank-btn.active { background: #313244; color: #cba6f7; border-color: #cba6f7; }
.px-rank-grid-wrap {
flex: 1;
overflow: hidden;
display: flex;
min-height: 0;
}
/* Artist pane */
.px-artist-container {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
min-height: 0;
}
.px-artist-pane {
display: flex;
flex: 1;
overflow: hidden;
min-height: 0;
}
.px-artist-list {
width: 170px;
overflow-y: auto;
border-right: 1px solid #3a3a5c;
padding: 6px;
flex-shrink: 0;
}
.px-artist-item {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 6px;
border-radius: 4px;
cursor: pointer;
color: #cdd6f4;
}
.px-artist-item:hover { background: #2a2a3e; }
.px-artist-item.active { background: #313244; }
.px-artist-avatar {
width: 26px;
height: 26px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.px-artist-name {
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.px-artist-works-pane {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 0;
}
.px-artist-works-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #7f849c;
font-size: 12px;
}
.px-artist-works-header {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-bottom: 1px solid #3a3a5c;
flex-shrink: 0;
background: #181825;
}
.px-artist-works-name {
flex: 1;
font-size: 12px;
color: #cdd6f4;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.px-follow-btn {
padding: 3px 10px;
background: transparent;
border: 1px solid #cba6f7;
color: #cba6f7;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
flex-shrink: 0;
}
.px-follow-btn:hover { background: #cba6f7; color: #1e1e2e; }
.px-followed-badge {
font-size: 11px;
color: #a6e3a1;
flex-shrink: 0;
}
.px-artist-grid-scroll {
flex: 1;
overflow-y: auto;
padding: 0;
}
/* Misc */
.px-loading {
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
color: #7f849c;
font-size: 12px;
}
.px-error {
color: #f38ba8;
padding: 10px;
text-align: center;
font-size: 12px;
}
.px-empty {
color: #7f849c;
padding: 30px;
text-align: center;
grid-column: 1 / -1;
font-size: 12px;
}