@import "mixin"; .container-connection-handlers { $animation_length: .25s; margin-top: 0; height: 0; transition: all $animation_length ease-in-out; &.shown { margin-top: -4px; height: 24px; transition: all $animation_length ease-in-out; } background-color: transparent; @include user-select(none); position: relative; .connection-handlers { height: 100%; width: fit-content; display: flex; flex-direction: row; justify-content: left; overflow-x: auto; overflow-y: visible; max-width: 100%; .connection-container { padding-top: 4px; position: relative; flex-grow: 0; flex-shrink: 0; cursor: pointer; display: inline-flex; padding-left: 5px; padding-right: 5px; height: 24px; overflow: hidden; .server-icon { align-self: center; margin-right: 5px; } .server-name { color: #a8a8a8; align-self: center; margin-right: 20px; position: relative; overflow: visible; text-overflow: clip; white-space: nowrap; } .button-close { position: absolute; right: 5px; align-self: center; &:hover { background-color: #212121; } } &.cutoff-name { .server-name { max-width: 10em; margin-right: -5px; /* 5px padding which have to be overcommed */ &:before { content: ''; width: 100%; height: 100%; position: absolute; left: 0; top: 0; background: linear-gradient(to right, transparent, #1e1e1e calc(100% - 20px)); } } } &:hover { background-color: #242425; } &.active { background-color: #2d2f32; border-bottom: 1px solid #0d9cfd; //-webkit-box-shadow: inset 4px -17px 50px -30px #0d9cfd99; //-moz-box-shadow: inset 4px -17px 50px -30px #0d9cfd99; //box-shadow: inset 4px -17px 50px -30px #0d9cfd99; } } &::-webkit-scrollbar { display: none; } } .container-scroll { margin-top: 5px; position: absolute; top: 0; right: 0; bottom: 0; display: none; flex-direction: row; &.enabled { display: flex; } .button-scroll { cursor: pointer; display: flex; flex-direction: column; justify-content: center; border: 1px #2222223b solid; border-radius: 2px; background: #e7e7e7; padding-left: 2px; padding-right: 2px; &:hover { background: #eeeeee; } &.disabled { background: #9e9e9e; &:hover { background: #9e9e9e; } } } } &.scrollbar { .connection-handlers { width: calc(100% - 45px); } } }