Files

96 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2024-05-13 15:10:31 -07:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
2024-06-18 12:50:33 +08:00
.tab {
2024-07-09 06:02:52 +08:00
position: absolute;
2024-06-18 12:50:33 +08:00
width: 130px;
2024-07-12 21:12:34 +02:00
height: calc(100% - 1px);
2024-07-09 13:31:38 +08:00
padding: 6px 3px 0px;
2024-06-18 12:50:33 +08:00
box-sizing: border-box;
font-weight: bold;
color: var(--secondary-text-color);
opacity: 0;
2024-07-06 10:54:28 +08:00
.tab-inner {
position: relative;
width: 100%;
height: 100%;
white-space: nowrap;
border-radius: 6px;
2024-07-30 15:43:33 -07:00
background: rgba(255, 255, 255, 0.05);
border: 0.5px solid rgba(255, 255, 255, 0.08);
2024-07-06 10:54:28 +08:00
}
2024-05-13 15:10:31 -07:00
2024-06-18 12:50:33 +08:00
&.animate {
transition:
transform 0.3s ease,
background-color 0.3s ease-in-out;
}
&.active {
2024-07-06 10:54:28 +08:00
.tab-inner {
2024-07-30 15:43:33 -07:00
border: 0.5px solid rgba(255, 255, 255, 0.2);
2024-07-12 21:12:34 +02:00
background: radial-gradient(ellipse 92px 32px at bottom, rgba(118, 255, 53, 0.3) 0%, transparent 100%),
2024-07-30 15:43:33 -07:00
rgba(255, 255, 255, 0.2);
2024-07-09 06:02:52 +08:00
}
2024-07-12 21:12:34 +02:00
.name {
2024-09-18 13:38:17 +08:00
color: var(--main-text-color);
2024-07-06 10:54:28 +08:00
}
2024-06-18 12:50:33 +08:00
}
.name {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
2024-07-06 10:54:28 +08:00
user-select: none;
z-index: var(--zindex-tab-name);
2024-07-06 10:54:28 +08:00
font-size: 11px;
font-weight: 500;
2024-07-30 15:43:33 -07:00
text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
2024-06-22 01:23:04 +08:00
&.focused {
outline: none;
2024-07-09 06:02:52 +08:00
border: 1px solid rgba(255, 255, 255, 0.179);
2024-06-22 01:23:04 +08:00
padding: 2px 6px;
border-radius: 2px;
}
2024-06-18 12:50:33 +08:00
}
.close {
visibility: hidden;
position: absolute;
2024-07-09 06:02:52 +08:00
top: 50%;
2024-08-23 15:15:54 +08:00
right: 4px;
transform: translate3d(0, -50%, 0);
2024-06-18 12:50:33 +08:00
width: 20px;
height: 20px;
2024-05-13 15:10:31 -07:00
display: flex;
2024-06-18 12:50:33 +08:00
align-items: center;
justify-content: center;
cursor: pointer;
z-index: var(--zindex-tab-name);
2024-08-23 15:15:54 +08:00
padding: 1px 2px;
2024-06-18 12:50:33 +08:00
}
&:hover .close {
2024-06-18 12:50:33 +08:00
visibility: visible;
}
2024-05-13 15:10:31 -07:00
}
2024-08-01 03:54:43 +08:00
@keyframes expandWidthAndFadeIn {
from {
width: var(--initial-tab-width);
opacity: 0;
}
to {
width: var(--final-tab-width);
opacity: 1;
}
}
.tab.new-tab {
animation: expandWidthAndFadeIn 0.1s forwards;
}