TeaWeb/shared/css/static/control_bar.scss

217 lines
3.6 KiB
SCSS

$border_color_activated: rgba(255, 255, 255, .75);
$background_activated: rgba(0,0,0,0.25);
$background:lightgray;
.control_bar {
display: flex;
flex-direction: row;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* tmp fix for ultra small devices */
overflow-y: visible;
.divider {
border-left:2px solid gray;
height: auto;
margin-left: 5px;
margin-right: 5px
}
.button {
cursor: pointer;
background-color: lightgray;
border-radius: 5px;
align-items: center;
border: 2px solid rgba(0, 0, 0, 0);
height: 36px;
width: 36px;
margin-right: 5px;
margin-left: 5px;
&:hover {
background-color: rgba(0,0,0,0.4);
border-color: rgba(255, 255, 255, .75);
/*box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);*/
}
&.activated {
background-color: rgba(0,0,0,0.25);
border-color: rgba(255, 255, 255, .75);
&:hover {
background-color: rgba(0,0,0,0.4);
border-color: rgba(255, 255, 255, .75);
}
}
}
.button-dropdown {
position: relative;
.buttons {
display: flex;
flex-direction: row;
.button {
margin-right: 0;
}
.button-dropdown {
display: inline-flex;
justify-content: space-around;
width: 18px;
cursor: pointer;
border-radius: 0 5px 5px 0;
align-items: center;
border: 2px solid rgba(0, 0, 0, 0);
border-left: 0;
}
&:hover {
.button {
border-right: 1px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
background-color: rgba(0,0,0,0.4);
border-color: rgba(255, 255, 255, .75);
/*box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);*/
}
.button-dropdown {
background-color: rgba(0,0,0,0.4);
border-color: rgba(255, 255, 255, .75);
/*box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);*/
border-left: 2px solid rgba(255, 255, 255, .75);
}
}
}
.dropdown {
display: none;
position: absolute;
margin-left: 5px;
background-color: $background;
border-radius: 5px;
align-items: center;
border: 2px solid $border_color_activated;
width: 230px;
z-index: 1000;
/*box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);*/
&.right {
right: 0;
}
.icon {
vertical-align: middle;
margin-right: 5px;
}
& > div {
display: block;
cursor: pointer;
padding: 1px 2px 1px 4px;
&:hover {
background-color: $background_activated;
}
}
& > div:first-of-type {
border-radius: 2px 2px 0 0;
}
& > div:last-of-type {
border-radius: 0 0 2px 2px;
}
&.display_left {
margin-left: -165px;
}
}
&:hover.displayed, &.force-show {
.dropdown {
display: block;
}
}
hr {
margin-top: 5px;
margin-bottom: 5px;
}
}
.bookmark-dropdown {
hr:last-child {
display: none;
}
.hidden {
display: none!important;
}
.disabled {
}
.bookmark, .directory {
display: flex!important;
flex-direction: row;
align-items: center;
justify-content: stretch;
.name {
flex-grow: 1;
flex-shrink: 1;
}
.icon, .arrow {
flex-grow: 0;
flex-shrink: 0;
}
.arrow {
margin-right: 5px;
}
}
.directory {
&:hover {
> .sub-container, > .sub-container .sub-menu {
display: block;
}
}
&:not(:hover) {
.sub-container {
display: none;
}
}
.sub-container {
padding-right: 3px;
position: relative;
}
.sub-menu {
display: none;
left: 100%;
top: -13px;
position: absolute;
margin-left: 3px;
}
}
}
}