160 lines
4.1 KiB
CSS
160 lines
4.1 KiB
CSS
/* Gitea Plugin styles */
|
|
|
|
#gitea-overlay { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
|
|
|
|
/* Account list (in settings tab) */
|
|
.gitea-account-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--t-border);
|
|
background: var(--t-surface);
|
|
border-radius: 2px;
|
|
}
|
|
.gitea-account-row .gitea-account-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.gitea-account-row .gitea-account-name {
|
|
font-family: var(--t-font-pixel);
|
|
font-size: 11px;
|
|
color: var(--t-bright);
|
|
}
|
|
.gitea-account-row .gitea-account-meta {
|
|
font-size: 10px;
|
|
color: var(--t-muted);
|
|
font-family: monospace;
|
|
margin-top: 2px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.gitea-account-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Issue list rows */
|
|
.gitea-issue-row {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
border-left: 2px solid transparent;
|
|
}
|
|
.gitea-issue-row:hover { background: var(--t-raised); }
|
|
.gitea-issue-row.active {
|
|
background: var(--t-raised);
|
|
border-left-color: var(--t-accent);
|
|
}
|
|
.gitea-issue-row .gitea-issue-repo {
|
|
font-size: 9px;
|
|
font-family: var(--t-font-pixel);
|
|
color: var(--t-dim);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.gitea-issue-row .gitea-issue-title {
|
|
font-size: 12px;
|
|
color: var(--t-text);
|
|
margin-top: 2px;
|
|
line-height: 1.3;
|
|
}
|
|
.gitea-issue-row.state-closed .gitea-issue-title { color: var(--t-muted); }
|
|
.gitea-issue-row .gitea-issue-meta {
|
|
font-size: 9px;
|
|
font-family: var(--t-font-pixel);
|
|
color: var(--t-dim);
|
|
margin-top: 4px;
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
.gitea-issue-row .gitea-issue-labels {
|
|
display: flex;
|
|
gap: 3px;
|
|
flex-wrap: wrap;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* State badge (open/closed) */
|
|
.gitea-state-badge {
|
|
display: inline-block;
|
|
font-family: var(--t-font-pixel);
|
|
font-size: 8px;
|
|
text-transform: uppercase;
|
|
padding: 1px 5px;
|
|
border-radius: 2px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.gitea-state-badge.open { background: #22c55e; color: #000; }
|
|
.gitea-state-badge.closed { background: #a855f7; color: #fff; }
|
|
|
|
/* Label chip (mirrors gitea label colors) */
|
|
.gitea-label {
|
|
display: inline-block;
|
|
font-family: var(--t-font-pixel);
|
|
font-size: 8px;
|
|
padding: 1px 5px;
|
|
border-radius: 2px;
|
|
letter-spacing: 0.3px;
|
|
border: 1px solid rgba(0,0,0,0.2);
|
|
}
|
|
|
|
/* Comment block */
|
|
.gitea-comment {
|
|
border: 1px solid var(--t-border);
|
|
background: var(--t-surface);
|
|
border-radius: 2px;
|
|
padding: 10px 12px;
|
|
}
|
|
.gitea-comment-header {
|
|
font-family: var(--t-font-pixel);
|
|
font-size: 9px;
|
|
color: var(--t-dim);
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
.gitea-comment-author { color: var(--t-bright); }
|
|
.gitea-comment-body {
|
|
font-size: 12px;
|
|
color: var(--t-text);
|
|
}
|
|
|
|
/* Issue list — no text selection so dragging doesn't highlight rows */
|
|
#gitea-issue-list, #gitea-issue-list * {
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
#gitea-divider:hover > div { background: var(--t-accent); width: 1px; }
|
|
|
|
/* Label editor checkboxes */
|
|
.gitea-label-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
border-radius: 2px;
|
|
transition: background 0.1s;
|
|
}
|
|
.gitea-label-checkbox:hover { background: var(--t-raised); }
|
|
.gitea-label-checkbox input { accent-color: var(--t-accent); }
|
|
.gitea-label-checkbox .gitea-label { cursor: pointer; }
|
|
|
|
/* Title input matches the h3 sizing so swap is seamless */
|
|
#gitea-title-input { font-size: 16px; font-weight: bold; line-height: 1.3; }
|
|
|
|
/* Override Chrome/Safari autofill on the gitea token field */
|
|
#gitea-acc-token:-webkit-autofill,
|
|
#gitea-acc-token:-webkit-autofill:hover,
|
|
#gitea-acc-token:-webkit-autofill:focus {
|
|
-webkit-text-fill-color: var(--t-bright);
|
|
-webkit-box-shadow: 0 0 0 1000px var(--t-bg) inset;
|
|
box-shadow: 0 0 0 1000px var(--t-bg) inset;
|
|
caret-color: var(--t-bright);
|
|
transition: background-color 9999s ease-out, color 9999s ease-out;
|
|
}
|