Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
373 changes: 373 additions & 0 deletions plugins/stashRag/stashRag.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,373 @@
.stashrag-nav-link {
color: inherit;
text-decoration: none;
}

.stashrag-page {
padding: 1rem 1.5rem;
max-width: 760px;
}

.stashrag-tabbar {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
margin-bottom: 1rem;
}
.stashrag-tab-btn {
background: rgba(255, 255, 255, 0.06);
color: inherit;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
border-radius: 999px;
padding: 0.25rem 0.8rem !important;
font-size: 0.85rem;
opacity: 0.75;
}
.stashrag-tab-btn:hover {
opacity: 1;
}
.stashrag-tab-btn-active {
background: rgba(255, 255, 255, 0.16) !important;
border-color: rgba(255, 255, 255, 0.4) !important;
opacity: 1;
font-weight: 600;
}

.stashrag-tab {
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.stashrag-ask-form {
display: flex;
gap: 0.5rem;
}
.stashrag-ask-form input {
flex: 1 1 auto;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
color: inherit;
padding: 0.4rem 0.6rem;
}
.stashrag-ask-form button {
background: #3a5f8a;
color: #fff;
border: none;
border-radius: 4px;
padding: 0.4rem 1rem;
}

.stashrag-answer {
background: rgba(255, 255, 255, 0.04);
border-radius: 6px;
padding: 0.7rem 0.9rem;
line-height: 1.5;
white-space: pre-wrap;
}

.stashrag-empty {
opacity: 0.6;
font-size: 0.9rem;
}

.stashrag-hint {
opacity: 0.5;
font-size: 0.75rem;
margin: -0.4rem 0 0;
}

.stashrag-feed-error {
font-size: 0.85rem;
}

.stashrag-refresh-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
}
.stashrag-updated-at {
font-size: 0.75rem;
opacity: 0.5;
}
.stashrag-refresh-btn {
font-size: 0.8rem;
opacity: 0.75;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
border-radius: 999px;
padding: 0.15rem 0.7rem !important;
}
.stashrag-refresh-btn:hover {
opacity: 1;
}

.stashrag-scene-list,
.stashrag-rec-list {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.stashrag-scene-row,
.stashrag-rec-row {
display: block;
background: rgba(255, 255, 255, 0.04);
border-radius: 6px;
padding: 0.4rem 0.7rem;
font-size: 0.85rem;
color: inherit;
text-decoration: none;
}
a.stashrag-rec-row:hover,
a.stashrag-scene-row:hover {
background: rgba(255, 255, 255, 0.08);
}
.stashrag-scene-row-external {
border: 1px dashed rgba(255, 190, 90, 0.4);
background: rgba(255, 190, 90, 0.05);
}

.stashrag-rec-thumb {
display: block;
max-width: 100%;
max-height: 160px;
border-radius: 4px;
margin-bottom: 0.3rem;
}

.stashrag-rec-source {
font-size: 0.7rem;
opacity: 0.6;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-right: 0.4rem;
}
.stashrag-rec-matched {
opacity: 0.5;
font-size: 0.75rem;
}

.stashrag-dup-card {
display: flex;
flex-direction: column;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.04);
border-radius: 8px;
padding: 0.7rem 0.8rem;
}
.stashrag-dup-scorebar {
text-align: center;
font-size: 0.78rem;
font-weight: 600;
opacity: 0.8;
letter-spacing: 0.02em;
}
.stashrag-dup-compare {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 0.7rem;
}
@media (max-width: 480px) {
.stashrag-dup-compare {
grid-template-columns: 1fr;
}
.stashrag-dup-vs {
justify-self: center;
}
}
.stashrag-dup-vs {
font-size: 0.7rem;
font-weight: 700;
opacity: 0.35;
text-transform: uppercase;
}
.stashrag-dup-side {
display: flex;
flex-direction: column;
gap: 0.3rem;
border-radius: 6px;
padding: 0.4rem;
}
.stashrag-dup-side-best {
background: rgba(124, 201, 153, 0.08);
box-shadow: inset 0 0 0 1px rgba(124, 201, 153, 0.4);
}
.stashrag-dup-side-link {
display: block;
color: inherit;
text-decoration: none;
}
.stashrag-dup-side-title {
display: block;
font-size: 0.85rem;
font-weight: 600;
}
.stashrag-dup-side-link:hover .stashrag-dup-side-title {
text-decoration: underline;
}
.stashrag-dup-best-tag {
font-size: 0.68rem;
color: #7c9;
}
.stashrag-dup-meta {
font-size: 0.7rem;
opacity: 0.55;
}

.stashrag-thumb-wrap {
position: relative;
border-radius: 4px;
overflow: hidden;
background: rgba(0, 0, 0, 0.2);
}
.stashrag-thumb-wrap img {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.stashrag-badge {
position: absolute;
font-size: 0.65rem;
font-weight: 600;
padding: 0.05rem 0.4rem;
border-radius: 0.3rem;
background: rgba(0, 0, 0, 0.78);
color: #fff;
letter-spacing: 0.02em;
}
.stashrag-badge-quality {
top: 0.3rem;
left: 0.3rem;
}
.stashrag-badge-duration {
bottom: 0.3rem;
right: 0.3rem;
}

.stashrag-tag-row {
margin: -0.2rem 0 0.4rem;
}
.stashrag-tag-chip {
display: inline-block;
font-size: 0.7rem;
padding: 0.12rem 0.55rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
margin: 0.15rem 0.25rem 0.15rem 0;
cursor: pointer;
opacity: 0.75;
user-select: none;
}
.stashrag-tag-chip:hover {
opacity: 1;
}
.stashrag-tag-chip-active {
background: rgba(90, 150, 255, 0.22);
border-color: rgba(90, 150, 255, 0.6);
opacity: 1;
}

.stashrag-site-card {
display: flex;
flex-direction: column;
gap: 0.35rem;
background: rgba(255, 255, 255, 0.04);
border-radius: 6px;
padding: 0.5rem 0.6rem;
}
.stashrag-site-card:hover {
background: rgba(255, 255, 255, 0.08);
}
.stashrag-site-link {
display: flex;
flex-direction: column;
gap: 0.25rem;
color: inherit;
text-decoration: none;
}
.stashrag-site-tags {
font-size: 0.68rem;
opacity: 0.55;
}
.stashrag-download-btn {
align-self: flex-start;
}
.stashrag-item-actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}

.stashrag-site-card-external {
border: 1px dashed rgba(255, 190, 90, 0.45);
background: rgba(255, 190, 90, 0.05);
}
.stashrag-site-card-external .stashrag-thumb-wrap img {
opacity: 0.6;
}
.stashrag-external-badge {
font-size: 0.7rem;
color: #e0a94a;
margin-bottom: 0.2rem;
}
.stashrag-downloaded-badge {
font-size: 0.7rem;
color: #7c9;
margin-bottom: 0.2rem;
}

.stashrag-tag-filter {
margin-bottom: 0.5rem;
}
.stashrag-tag-panel {
margin-top: 0.4rem;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
max-height: 220px;
overflow-y: auto;
}

.stashrag-history-list {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.stashrag-history-item {
background: rgba(255, 255, 255, 0.04);
border-radius: 6px;
padding: 0.5rem 0.8rem;
}
.stashrag-history-q {
font-weight: 600;
margin-bottom: 0.2rem;
}
.stashrag-history-a {
font-size: 0.85rem;
opacity: 0.85;
white-space: pre-wrap;
}
.stashrag-history-t {
font-size: 0.7rem;
opacity: 0.45;
margin-top: 0.3rem;
}

.stashrag-download-row {
display: flex;
flex-direction: column;
gap: 0.2rem;
background: rgba(255, 255, 255, 0.04);
border-radius: 6px;
padding: 0.5rem 0.7rem;
align-items: flex-start;
}
.stashrag-download-main {
font-size: 0.85rem;
}
Loading