waveterm/frontend/app/tab/tabbar.less

64 lines
1.5 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 {
position: relative;
2024-07-09 00:02:52 +02:00
// border-bottom: 1px solid var(--border-color);
2024-06-23 21:03:09 +02:00
user-select: none;
display: flex;
2024-06-18 06:50:33 +02:00
.tab-bar {
position: relative; // Needed for absolute positioning of child tabs
2024-06-23 21:03:09 +02:00
margin-left: 100px;
2024-07-09 07:31:38 +02:00
height: 33px;
2024-06-23 21:03:09 +02:00
// 36 is the width of add tab button
// 100 is offset from the left, for macOS window controls and dragging
// 50 right offset for dragging
// minus 1px for last tab right border
width: calc(100vw - 185px);
2024-06-18 06:50:33 +02:00
}
.add-tab-btn {
width: 36px;
2024-06-23 21:03:09 +02:00
height: 100%;
2024-06-18 06:50:33 +02:00
cursor: pointer;
position: absolute;
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 {
font-size: 11px;
}
}
2024-06-23 21:03:09 +02:00
.window-drag {
position: absolute;
height: 100%;
&.left {
width: 100px;
}
}
// 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
}
}