jiti-meet/css/_toolbars.scss

315 lines
8.0 KiB
SCSS
Raw Normal View History

2017-02-16 23:02:40 +00:00
/**
* Round badge.
*/
.badge-round {
background-color: $toolbarBadgeBackground;
border-radius: 50%;
box-sizing: border-box;
color: $toolbarBadgeColor;
// Do not inherit the font-family from the toolbar button, because it's an
// icon style.
font-family: $baseFontFamily;
font-size: 9px;
font-weight: 700;
line-height: 13px;
min-width: 13px;
overflow: hidden;
text-align: center;
text-overflow: ellipsis;
vertical-align: middle;
}
/**
* TODO: when the old filmstrip has been removed, remove the "new-" prefix.
*/
.new-toolbox {
bottom: calc((#{$newToolbarSize} * 2) * -1);
left: 0;
position: absolute;
right: 0;
transition: bottom .3s ease-in;
width: 100%;
2019-02-20 23:35:19 +00:00
&.visible {
bottom: 0;
2019-02-20 23:35:19 +00:00
.toolbox-background {
bottom: 0px;
}
}
&.no-buttons {
display: none;
}
2021-01-14 16:12:08 +00:00
@media (min-width: 581px) {
&.shift-right {
margin-left: $sidebarWidth;
width: calc(100% - #{$sidebarWidth});
}
}
2019-02-20 23:35:19 +00:00
.toolbox-background {
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
transition: bottom .3s ease-in;
height: 160px;
width: 100%;
bottom: -160px;
pointer-events: none;
2019-02-20 23:35:19 +00:00
position: absolute;
z-index: $toolbarBackgroundZ;
}
2019-02-20 23:35:19 +00:00
.toolbox-content {
box-sizing: border-box;
display: flex;
justify-content: space-between;
margin-left: auto;
margin-right: auto;
padding: 20px 16px;
position: relative;
width: 100%;
2019-02-20 23:35:19 +00:00
z-index: $toolbarZ;
2019-02-20 23:35:19 +00:00
.button-group-center,
.button-group-left,
.button-group-right {
display: flex;
width: 33%;
}
2019-02-20 23:35:19 +00:00
.button-group-center {
justify-content: center;
2019-08-30 16:39:06 +00:00
.toolbox-button {
.toolbox-icon {
background-color: #fff;
border-radius: 50%;
border: 1px solid #d1dbe8;
margin: 0px 4px;
width: 38px;
height: 38px;
2021-01-14 16:12:08 +00:00
@media (hover: hover) and (pointer: fine) {
&:hover {
background-color: #daebfa;
border: 1px solid #daebfa;
}
2019-08-30 16:39:06 +00:00
}
2021-01-14 16:12:08 +00:00
2019-08-30 16:39:06 +00:00
&.toggled {
background: #2a3a4b;
border: 1px solid #5e6d7a;
2021-01-14 16:12:08 +00:00
2019-08-30 16:39:06 +00:00
svg {
fill: #fff;
}
2021-01-14 16:12:08 +00:00
@media (hover: hover) and (pointer: fine) {
&:hover {
background-color: #5e6d7a;
}
2019-08-30 16:39:06 +00:00
}
}
2021-01-14 16:12:08 +00:00
2019-08-30 16:39:06 +00:00
&.disabled, .disabled & {
cursor: initial;
color: #fff;
background-color: #a4b8d1;
}
2021-01-14 16:12:08 +00:00
2019-08-30 16:39:06 +00:00
svg {
fill: #5e6d7a;
}
}
2019-02-20 23:35:19 +00:00
2019-08-30 16:39:06 +00:00
&:nth-child(2) {
.toolbox-icon {
background-color: $hangupColor;
border: 1px solid $hangupColor;
width: 40px;
height: 40px;
2021-01-14 16:12:08 +00:00
@media (hover: hover) and (pointer: fine) {
&:hover {
background-color: $hangupColor;
}
2019-08-30 16:39:06 +00:00
}
svg {
fill: #fff;
}
}
2019-02-20 23:35:19 +00:00
}
}
2019-08-30 16:39:06 +00:00
}
2019-02-20 23:35:19 +00:00
2019-08-30 16:39:06 +00:00
.button-group-right {
justify-content: flex-end;
}
2019-02-20 23:35:19 +00:00
.overflow-menu {
font-size: 1.2em;
list-style-type: none;
background-color: $overflowMenuBG;
2019-02-20 23:35:19 +00:00
/**
* Undo atlaskit padding by reducing margins.
*/
margin: -16px -24px;
2019-02-20 23:35:19 +00:00
padding: 4px 0;
2019-02-20 23:35:19 +00:00
.overflow-menu-item {
align-items: center;
color: $overflowMenuItemColor;
2019-02-20 23:35:19 +00:00
cursor: pointer;
display: flex;
font-size: 14px;
height: 40px;
2019-02-20 23:35:19 +00:00
padding: 5px 12px;
box-sizing: border-box;
2019-02-20 23:35:19 +00:00
div {
display: flex;
flex-direction: row;
align-items: center;
}
@media (hover: hover) and (pointer: fine) {
&:hover {
background-color: $overflowMenuItemHoverBG;
color: $overflowMenuItemHoverColor;
}
2019-02-20 23:35:19 +00:00
}
&.unclickable {
cursor: default;
}
@media (hover: hover) and (pointer: fine) {
&.unclickable:hover {
background: inherit;
}
2019-02-20 23:35:19 +00:00
}
&.disabled {
cursor: initial;
color: #3b475c;
}
}
2019-02-20 23:35:19 +00:00
.beta-tag {
background: $overflowMenuItemColor;
2019-02-20 23:35:19 +00:00
border-radius: 2px;
color: $overflowMenuBG;
2019-02-20 23:35:19 +00:00
font-size: 11px;
font-weight: bold;
margin-left: 8px;
padding: 0 6px;
}
2019-02-20 23:35:19 +00:00
.overflow-menu-item-icon {
margin-right: 16px;
2019-02-20 23:35:19 +00:00
i {
display: inline;
font-size: 24px;
}
@media (hover: hover) and (pointer: fine) {
i:hover {
background-color: initial;
}
2019-02-20 23:35:19 +00:00
}
img {
max-width: 24px;
max-height: 24px;
}
2019-08-30 16:39:06 +00:00
svg {
fill: #B8C7E0 !important;
height: 20px;
width: 20px;
2019-08-30 16:39:06 +00:00
}
}
2019-02-20 23:35:19 +00:00
.profile-text {
max-width: 150px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
2019-02-20 23:35:19 +00:00
.toolbox-button {
color: $toolbarButtonColor;
cursor: pointer;
display: inline-block;
line-height: $newToolbarSize;
margin: 0 8px;
text-align: center;
}
2019-02-20 23:35:19 +00:00
.toolbar-button-with-badge {
position: relative;
.badge-round {
bottom: -5px;
font-size: 12px;
line-height: 20px;
min-width: 20px;
pointer-events: none;
position: absolute;
right: -5px;
}
}
2019-02-20 23:35:19 +00:00
.toolbox-button-wth-dialog {
display: inline-block;
}
2019-02-20 23:35:19 +00:00
.toolbox-icon {
2019-08-30 16:39:06 +00:00
display: flex;
border-radius: 5px;
flex-direction: column;
2019-02-20 23:35:19 +00:00
font-size: 24px;
2019-08-30 16:39:06 +00:00
height: $newToolbarSize;
justify-content: center;
2019-02-20 23:35:19 +00:00
width: $newToolbarSize;
2019-08-30 16:39:06 +00:00
@media (hover: hover) and (pointer: fine) {
&:hover {
background: $newToolbarButtonHoverColor;
}
}
&.toggled {
2019-08-30 16:39:06 +00:00
background: $newToolbarButtonHoverColor;
}
2021-01-14 16:12:08 +00:00
2019-08-30 16:39:06 +00:00
&.disabled {
cursor: initial !important;
background-color: #a4b8d1 !important;
svg {
fill: #fff !important;
}
}
2019-02-20 23:35:19 +00:00
}
}
}
/**
* START of fade in animation for main toolbar
*/
.fadeIn {
2017-02-16 23:02:40 +00:00
opacity: 1;
@include transition(all .3s ease-in);
}
.fadeOut {
2017-02-16 23:02:40 +00:00
opacity: 0;
@include transition(all .3s ease-out);
}