style: differentiate rApp tab headers with borders and spacing
Inactive tabs get a subtle background tint, hover/active tabs show visible borders, active tab uses solid surface background. Wider gap between tabs and full-width indicator line for clearer separation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
497bfd3db7
commit
e2ebd11d75
|
|
@ -1211,7 +1211,7 @@ const STYLES = `
|
|||
.tabs-scroll {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow-x: auto;
|
||||
overflow-y: visible;
|
||||
|
|
@ -1234,34 +1234,38 @@ const STYLES = `
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 12px;
|
||||
padding: 5px 12px;
|
||||
border-radius: 6px 6px 0 0;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
transition: background 0.15s, opacity 0.15s;
|
||||
transition: background 0.15s, opacity 0.15s, border-color 0.15s;
|
||||
user-select: none;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
color: var(--rs-text-muted);
|
||||
background: transparent;
|
||||
background: rgba(255,255,255,0.03);
|
||||
border: 1px solid transparent;
|
||||
border-bottom: none;
|
||||
}
|
||||
.tab:hover {
|
||||
background: var(--rs-bg-hover);
|
||||
color: var(--rs-text-primary);
|
||||
border-color: var(--rs-input-border);
|
||||
}
|
||||
.tab.active {
|
||||
background: var(--rs-btn-secondary-bg);
|
||||
background: var(--rs-bg-surface);
|
||||
color: var(--rs-text-primary);
|
||||
border-color: var(--rs-input-border);
|
||||
}
|
||||
|
||||
/* Active indicator line at bottom */
|
||||
.tab-indicator {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
bottom: -1px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
border-radius: 2px 2px 0 0;
|
||||
opacity: 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue