Add a sub-toolbar in the ranking tab with 7 modes: day/week/month/ day_male/day_female/week_original/week_rookie. Clicking a mode clears the grid and reloads with the new mode parameter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
305 lines
5.4 KiB
CSS
305 lines
5.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-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; }
|
|
|
|
/* Grid pane */
|
|
.px-grid-pane {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
.px-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Cards */
|
|
.px-card {
|
|
position: relative;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
border: 2px solid transparent;
|
|
background: #181825;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.px-card:hover { border-color: #7f849c; }
|
|
.px-card.selected { border-color: #cba6f7; }
|
|
|
|
.px-card img {
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
object-fit: cover;
|
|
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; }
|
|
|
|
/* 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; }
|
|
|
|
/* 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-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-y: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* 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;
|
|
}
|