waveterm/frontend/app/tab/tabbar.less

110 lines
2.2 KiB
Plaintext
Raw Normal View History

2024-06-18 06:50:33 +02:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
.tab-bar-wrapper {
--default-indent: 10px;
--darwin-not-fullscreen-indent: 74px;
}
.darwin:not(.fullscreen) .tab-bar-wrapper {
.window-drag.left {
width: var(--darwin-not-fullscreen-indent);
}
}
2024-06-18 06:50:33 +02:00
.tab-bar-wrapper {
position: relative;
2024-06-23 21:03:09 +02:00
user-select: none;
display: flex;
flex-direction: row;
width: env(titlebar-area-width);
2024-06-18 06:50:33 +02:00
.tabs-wrapper {
transition: var(--tabs-wrapper-transition);
height: 32px;
}
2024-06-18 06:50:33 +02:00
.tab-bar {
position: relative; // Needed for absolute positioning of child tabs
2024-07-09 07:31:38 +02:00
height: 33px;
2024-06-18 06:50:33 +02:00
}
.dev-label,
.app-menu-button {
height: 100%;
font-size: 26px;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
margin: 2px 2px 0 0;
}
.app-menu-button {
cursor: pointer;
color: var(--secondary-text-color);
&:hover {
color: var(--main-text-color);
}
}
.dev-label {
color: var(--accent-color);
2024-08-07 01:41:00 +02:00
}
2024-06-18 06:50:33 +02:00
.add-tab-btn {
width: 22px;
2024-06-23 21:03:09 +02:00
height: 100%;
2024-06-18 06:50:33 +02:00
cursor: pointer;
font-size: 14px;
text-align: center;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
2024-07-06 04:54:28 +02:00
opacity: 0.5;
&:hover {
opacity: 1;
}
i {
overflow: hidden;
margin-top: 5px;
2024-07-06 04:54:28 +02:00
font-size: 11px;
}
}
2024-06-23 21:03:09 +02:00
.window-drag {
height: 100%;
width: var(--default-indent);
flex-shrink: 0;
&.right {
flex-grow: 1;
}
2024-06-23 21:03:09 +02:00
}
// Customize scrollbar styles
.os-theme-dark,
.os-theme-light {
box-sizing: border-box;
2024-06-23 21:03:09 +02:00
--os-size: 2px;
--os-padding-perpendicular: 0px;
--os-padding-axis: 0px;
2024-06-23 21:03:09 +02:00
--os-track-border-radius: 2px;
--os-handle-interactive-area-offset: 0px;
2024-06-23 21:03:09 +02:00
--os-handle-border-radius: 2px;
2024-06-18 06:50:33 +02:00
}
.update-available-button {
height: 80%;
opacity: 0.7;
margin: auto 4px;
color: black;
background-color: var(--accent-color);
flex: 0 0 fit-content;
}
2024-06-18 06:50:33 +02:00
}