Skip to content
Merged
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
277 changes: 0 additions & 277 deletions packages/dashboard/src/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,6 @@
overflow: hidden;
}

/* -- Tab bar -- */
.tabbar {
display: flex;
align-items: flex-end;
height: 39px;
min-height: 39px;
padding: 0 4px;
user-select: none;
position: relative;
z-index: 110;
}

:root.light-mode .tabbar {
background: var(--color-canvas-overlay);
}

.dashboard-view.interactive .toolbar::after {
content: '';
position: absolute;
Expand Down Expand Up @@ -108,31 +92,6 @@
}
}

.tabbar-back {
display: flex;
align-items: center;
justify-content: center;
height: 34px;
align-self: flex-end;
color: var(--color-fg-muted);
text-decoration: none;
border-radius: 8px;
margin-right: 4px;
font-size: 11px;
text-transform: uppercase;
font-weight: 600;
}

.tabbar-back:hover {
background: var(--color-canvas-overlay);
color: var(--color-fg-default);
}

.tabbar-back svg {
width: 16px;
height: 16px;
}

.interactive .toolbar .toolbar-button > .codicon {
color: var(--color-fg-on-emphasis);
}
Expand All @@ -141,242 +100,6 @@
color: var(--color-fg-on-emphasis);
}

.tabstrip {
display: flex;
align-items: flex-end;
gap: 1px;
overflow-x: auto;
scrollbar-width: none;
min-width: 0;
padding-top: 8px;
}

.tabstrip::-webkit-scrollbar {
display: none;
}

.tab {
display: flex;
align-items: center;
gap: 6px;
height: 34px;
padding: 0 10px;
background: var(--color-canvas-subtle);
color: var(--color-fg-muted);
font-size: 13px;
cursor: pointer;
white-space: nowrap;
max-width: 200px;
min-width: 48px;
border-radius: 8px 8px 0 0;
user-select: none;
flex-shrink: 0;
}

.tab:hover {
background: var(--color-canvas-overlay);
color: var(--color-fg-muted);
}

.tab.active {
background: var(--color-canvas-overlay);
color: var(--color-fg-default);
}

:root.light-mode .tab {
background: transparent;
}
:root.light-mode .tab:hover {
background: var(--color-canvas-subtle);
}
:root.light-mode .tab.active {
background: var(--color-canvas-subtle);
}

.dashboard-view.interactive .tab.active {
background: rgb(var(--interactive-orange));
color: var(--color-fg-on-emphasis);
}

.dashboard-view.annotate .tab.active {
background: rgb(var(--annotate-blue));
color: var(--color-fg-on-emphasis);
}

.tab-label {
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}

.tab-favicon {
width: 14px;
height: 14px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 9px;
font-weight: 700;
}

.tab-favicon.placeholder {
background: var(--color-fg-subtle);
border-radius: 2px;
}

.tab-close {
width: 16px;
height: 16px;
border-radius: 50%;
opacity: 0;
margin-left: auto;
}

.tab-close svg {
width: 10px;
height: 10px;
}

.tab:hover .tab-close,
.tab.active .tab-close {
opacity: 1;
}

.tab-close:hover {
background: var(--color-neutral-muted);
}

.new-tab-btn {
width: 28px;
height: 34px;
border-radius: 8px;
margin-left: 4px;
align-self: flex-end;
}

.new-tab-btn:hover {
background: var(--color-canvas-overlay);
}

.new-tab-btn svg {
width: 16px;
height: 16px;
}

.interactive-controls {
margin-left: auto;
margin-right: 0;
align-self: center;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 4px 2px 4px 8px;
}

.segmented-control {
position: relative;
height: 28px;
border-radius: 999px;
padding: 2px;
display: inline-flex;
align-items: center;
gap: 0;
background: var(--color-neutral-subtle);
}

.segmented-control::before {
content: '';
position: absolute;
top: 2px;
bottom: 2px;
left: 2px;
width: calc(50% - 2px);
border-radius: 999px;
background: var(--color-neutral-muted);
transform: translateX(0);
transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 180ms ease;
}

.segmented-control.interactive::before {
transform: translateX(100%);
background: rgb(var(--interactive-orange) / 0.95);
}

.segmented-control-option {
position: relative;
z-index: 1;
width: 96px;
height: 24px;
border-radius: 999px;
padding: 0;
border: none;
background: transparent;
color: var(--color-fg-muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.03em;
text-transform: uppercase;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}

.segmented-control-option:hover:not(:disabled) {
background: transparent;
}

.segmented-control-option.active {
color: var(--color-fg-default);
}

.segmented-control-option:disabled {
opacity: 0.7;
cursor: default;
}

.dashboard-view.interactive .segmented-control {
background: rgb(255 255 255 / 0.2);
}

.dashboard-view.interactive .segmented-control::before {
background: rgb(255 255 255 / 0.32);
}

:root.light-mode .dashboard-view.interactive .segmented-control {
background: rgb(0 0 0 / 0.1);
}
:root.light-mode .dashboard-view.interactive .segmented-control::before {
background: rgb(0 0 0 / 0.12);
}
:root.light-mode .dashboard-view.interactive .toolbar .nav-btn:hover {
background: rgba(255, 255, 255, 0.18);
}
:root.light-mode .dashboard-view.interactive .toolbar .nav-btn:active {
background: rgba(255, 255, 255, 0.25);
}

.dashboard-view.interactive .segmented-control.interactive::before {
background: rgb(var(--interactive-orange) / 0.95);
}

.dashboard-view.interactive .segmented-control-option {
color: rgb(255 255 255 / 0.74);
}

.dashboard-view.interactive .segmented-control-option.active {
color: var(--color-fg-on-emphasis);
}

:root.light-mode .dashboard-view.interactive .segmented-control-option {
color: var(--color-fg-muted);
}
:root.light-mode .dashboard-view.interactive .segmented-control-option.active {
color: var(--color-fg-on-emphasis);
}

/* -- Toolbar -- */
.toolbar {
display: flex;
Expand Down
Loading
Loading