TeaWeb/shared/js/ui/tree/Channel.scss

171 lines
3.1 KiB
SCSS

html:root {
--channel-tree-move-border: #005fa1;
}
.channelEntry {
position: relative;
display: flex;
flex-direction: row;
justify-content: stretch;
width: 100%;
min-height: 16px;
align-items: center;
cursor: pointer;
.containerArrow {
width: 16px;
margin-left: -16px;
text-align: center;
flex-shrink: 0;
&.down {
align-self: normal;
}
}
.channelType {
font-size: 16px;
flex-grow: 0;
flex-shrink: 0;
margin-right: 2px;
}
.containerChannelName {
display: flex;
flex-direction: row;
flex-grow: 1;
flex-shrink: 1;
justify-content: left;
max-width: 100%; /* important for the repetitive channel name! */
overflow-x: hidden;
height: 16px;
&.align-right {
justify-content: right;
}
&.align-center, &.align-repetitive {
justify-content: center;
}
.channelName {
align-self: center;
color: var(--channel-tree-entry-color);
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&.align-repetitive {
.channelName {
text-overflow: clip;
}
}
}
.icons {
display: flex;
flex-direction: row;
padding-right: 5px;
flex-grow: 0;
flex-shrink: 0;
}
&.moveSelected {
border-bottom: 1px solid black;
}
.showChannelNormalOnly {
display: none;
&.channelNormal {
display: block;
}
}
.icon_no_sound {
z-index: 0;
display: flex;
position: relative;
.background {
height: 14px;
width: 10px;
background: red;
position: absolute;
top: 1px;
left: 3px;
z-index: -1;
}
}
height: 18px + 2px!important;
margin-top: -1px!important;
padding-top: 1px!important;
margin-bottom: -1px!important;
padding-bottom: 1px!important;
padding-left: 1px!important;
.leftPadding {
height: 100%;
margin-left: -1px;
}
&.drag-top {
height: 20px!important;
padding-top: 0!important;
padding-bottom: 2px!important;
border-top: 2px solid var(--channel-tree-move-border);
.leftPadding {
background-color: var(--channel-tree-background);
margin-top: -4px;
}
}
&.drag-bottom {
padding-bottom: 0!important;
border-bottom: 2px solid var(--channel-tree-move-border);
z-index: 1;
.leftPadding {
background-color: var(--channel-tree-background);
margin-bottom: -3px;
}
}
&.drag-contain {
padding-top: 0!important;
padding-bottom: 0!important;
padding-left: 0!important;
border: 1px solid var(--channel-tree-move-border);
border-radius: 2px;
z-index: 1;
}
}