309 lines
8.5 KiB
CSS
309 lines
8.5 KiB
CSS
/***********************************************************************************
|
|
************************************************************************************
|
|
侧边栏 start
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar{
|
|
width: var(--sidebar-width);
|
|
background-color: var(--skin-sidebar-tool-background);
|
|
box-shadow: var(--skin-body-shadow);
|
|
transition: width 0.3s, opacity 0.5s;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-tool{
|
|
height: calc(var(--body-height) - 65px);
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item{
|
|
width: 100%;
|
|
height: 50px;
|
|
margin-top: 5px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
position: relative;
|
|
color: var(--skin-sidebar-tool-color);
|
|
font-size: 11px;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:first-child{
|
|
margin-top: 1px;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item svg{
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--skin-sidebar-tool-fill-color);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover,
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover {
|
|
background-color: var(--skin-sidebar-tool-hover-background);
|
|
color: var(--skin-sidebar-tool-hover-color);
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover svg,
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover svg{
|
|
scale: 1.1;
|
|
fill: var(--skin-sidebar-tool-hover-fill-color);
|
|
}
|
|
|
|
.tl-rtc-app-left-sidebar-item-dog{
|
|
position: absolute;
|
|
margin-top: -25px;
|
|
transition: right .3s;
|
|
right: 3px;
|
|
line-height: 14px;
|
|
height: 14px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
padding: 0px 4px;
|
|
scale: .9;
|
|
display: inline;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-bottom{
|
|
position: absolute;
|
|
bottom: 10px;
|
|
width: calc(var(--sidebar-width) - 1px);
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo{
|
|
color: var(--skin-sidebar-tool-color);
|
|
font-weight: bold;
|
|
width: 100%;
|
|
height: 50px;
|
|
margin-top: 5px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo p{
|
|
width: 80%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
word-break: break-all;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
}
|
|
/***********************************************************************************
|
|
************************************************************************************
|
|
侧边栏 end
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
|
|
/***********************************************************************************
|
|
************************************************************************************
|
|
侧边栏 - 更多hovertips start
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
.tl-rtc-app-hovertips {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
background-color: var(--skin-body-background);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
|
|
transition: opacity 0.3s;
|
|
animation: fadeIn 0.2s ease-in-out;
|
|
padding: 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
max-width: 90vw;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-content {
|
|
padding: 5px 0;
|
|
min-width: 150px;
|
|
max-width: 180px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-title {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
color: var(--skin-body-color);
|
|
text-align: center;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* 新的垂直布局 */
|
|
.tl-rtc-app-hovertips-tools-vertical {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #ddd transparent;
|
|
}
|
|
|
|
/* 自定义滚动条样式 */
|
|
.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-thumb {
|
|
background-color: #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-thumb:hover {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-vertical {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 15px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
color: var(--skin-body-color);
|
|
border-bottom: 0.5px solid var(--skin-sidebar-tool-more-border-color); /** #3b3939**/
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-vertical:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-vertical:hover {
|
|
background-color: var(--skin-sidebar-tool-hover-background);
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-icon {
|
|
position: relative;
|
|
margin-right: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-vertical .tl-rtc-app-hovertips-tool-icon svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--skin-sidebar-tool-fill-color);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-title {
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-badge {
|
|
position: absolute;
|
|
top: -5px;
|
|
right: -5px;
|
|
background-color: red;
|
|
color: white;
|
|
border-radius: 50%;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
font-size: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
/* 箭头样式 */
|
|
.tl-rtc-app-hovertips-arrow {
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border-style: solid;
|
|
pointer-events: none;
|
|
z-index: 1001;
|
|
}
|
|
|
|
/* 左侧箭头 - 调整为指向右侧的三角形 */
|
|
.tl-rtc-app-hovertips-arrow-left {
|
|
left: -8px;
|
|
border-width: 8px 8px 8px 0;
|
|
border-color: transparent var(--skin-body-background) transparent transparent;
|
|
filter: drop-shadow(-2px 0px 1px rgba(0, 0, 0, 0.05));
|
|
margin-top: -8px; /* 调整垂直居中 */
|
|
}
|
|
|
|
/* 右侧箭头 - 调整为指向左侧的三角形 */
|
|
.tl-rtc-app-hovertips-arrow-right {
|
|
right: -8px;
|
|
border-width: 8px 0 8px 8px;
|
|
border-color: transparent transparent transparent var(--skin-body-background);
|
|
filter: drop-shadow(2px 0px 1px rgba(0, 0, 0, 0.05));
|
|
margin-top: -8px; /* 调整垂直居中 */
|
|
}
|
|
|
|
/* 顶部箭头 */
|
|
.tl-rtc-app-hovertips-arrow-top {
|
|
top: -8px;
|
|
border-width: 0 8px 8px 8px;
|
|
border-color: transparent transparent var(--skin-body-background) transparent;
|
|
filter: drop-shadow(0px -2px 1px rgba(0, 0, 0, 0.05));
|
|
}
|
|
|
|
/* 底部箭头 */
|
|
.tl-rtc-app-hovertips-arrow-bottom {
|
|
bottom: -8px;
|
|
border-width: 8px 8px 0 8px;
|
|
border-color: var(--skin-body-background) transparent transparent transparent;
|
|
filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05));
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-icon svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--skin-sidebar-tool-fill-color);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool:hover svg,
|
|
.tl-rtc-app-hovertips-tool-vertical:hover svg {
|
|
transform: scale(1.1);
|
|
fill: var(--skin-sidebar-tool-hover-fill-color);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.tl-rtc-app-hovertips {
|
|
max-width: 95vw;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-content {
|
|
min-width: 120px;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-vertical {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.tl-rtc-app-hovertips-tool-title {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
/***********************************************************************************
|
|
************************************************************************************
|
|
侧边栏 - 更多hovertips end
|
|
************************************************************************************
|
|
************************************************************************************/ |