Files
Verso/services/web/frontend/stylesheets/pages/editor/tabs.scss
T
Mathias JakobsenandCopybot 6b01183bba Merge pull request #32330 from overleaf/mj-tabs-survey
[web] Tweaks for editor tabs

GitOrigin-RevId: fed9a500b871fa68a158c2e7ab42030117775161
2026-03-24 09:05:52 +00:00

105 lines
2.1 KiB
SCSS

:root {
--editor-tab-max-path-length: 150px;
}
.editor-tabs-container {
display: flex;
flex-direction: row;
align-items: center;
gap: var(--spacing-02);
flex: 0 0 auto;
background: var(--bg-primary-themed);
justify-content: space-between;
border-bottom: 1px solid var(--border-divider-themed);
.editor-tabs-labs-icon {
flex: 0 0 auto;
padding: 0 var(--spacing-02);
.material-symbols {
font-size: 16px;
}
}
}
.editor-tabs-row {
display: flex;
flex-direction: row;
list-style: none;
padding: 0;
margin: 0;
flex: 1;
background: var(--bg-primary-themed);
overflow-x: auto;
&.editor-tabs-row-hovered {
.editor-file-tab:last-child {
border-right-color: var(--border-primary-themed);
}
}
}
.editor-file-tab {
--tab-bg-color: transparent;
display: inline-flex;
align-items: center;
gap: var(--spacing-02);
justify-content: center;
box-sizing: border-box;
padding: var(--spacing-02) var(--spacing-03);
background: var(--tab-bg-color);
outline: none;
color: var(--content-primary-themed);
border: none;
font-size: var(--font-size-02);
flex-direction: row;
cursor: pointer;
border-right: 1px solid var(--border-divider-themed);
border-left: 1px solid var(--tab-bg-color);
user-select: none;
&.tab-selected {
--tab-bg-color: var(--bg-secondary-themed);
}
.material-symbols {
vertical-align: middle;
font-size: var(--font-size-03);
}
&.tab-drop-right {
border-right-color: var(--border-primary-themed);
}
&.tab-drop-left {
border-left-color: var(--border-primary-themed);
}
&.tab-temporary {
font-style: italic;
}
.editor-file-tab-close-action {
background: transparent;
border: none;
color: var(--content-primary-themed);
cursor: pointer;
margin: 0;
padding: 0;
&:hover {
color: var(--content-secondary-themed);
}
}
}
.editor-file-tab-path {
text-wrap: nowrap;
max-width: var(--editor-tab-max-path-length);
text-overflow: ellipsis;
white-space: nowrap;
direction: rtl;
overflow: hidden;
}