TeaWeb/shared/css/static/connection_handlers.scss

165 lines
2.5 KiB
SCSS
Raw Normal View History

2019-08-21 08:00:01 +00:00
@import "mixin";
2019-04-04 19:47:52 +00:00
.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;
}
2019-04-04 19:47:52 +00:00
background-color: transparent;
2019-04-04 19:47:52 +00:00
2019-08-21 08:00:01 +00:00
@include user-select(none);
2019-04-04 19:47:52 +00:00
position: relative;
.connection-handlers {
height: 100%;
width: fit-content;
display: flex;
flex-direction: row;
justify-content: left;
overflow-x: auto;
overflow-y: visible;
2019-08-21 08:00:01 +00:00
max-width: 100%;
2019-04-04 19:47:52 +00:00
.connection-container {
padding-top: 4px;
2019-07-10 11:43:35 +00:00
position: relative;
2019-04-04 19:47:52 +00:00
flex-grow: 0;
flex-shrink: 0;
cursor: pointer;
display: inline-flex;
padding-left: 5px;
padding-right: 5px;
height: 24px;
2019-07-10 11:43:35 +00:00
overflow: hidden;
2019-04-04 19:47:52 +00:00
.server-icon {
align-self: center;
margin-right: 5px;
}
.server-name {
color: #a8a8a8;
2019-04-04 19:47:52 +00:00
align-self: center;
2019-08-21 08:00:01 +00:00
margin-right: 20px;
2019-07-10 11:43:35 +00:00
position: relative;
overflow: visible;
text-overflow: clip;
white-space: nowrap;
2019-04-04 19:47:52 +00:00
}
.button-close {
2019-07-10 11:43:35 +00:00
position: absolute;
right: 5px;
2019-04-04 19:47:52 +00:00
align-self: center;
&:hover {
background-color: #212121;
2019-04-04 19:47:52 +00:00
}
2019-08-21 08:00:01 +00:00
}
&.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));
}
}
2019-04-04 19:47:52 +00:00
}
&:hover {
background-color: #242425;
}
2019-04-04 19:47:52 +00:00
&.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;
2019-04-04 19:47:52 +00:00
}
}
&::-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);
}
}
}