123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- /**
- * 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%;
- pointer-events: none;
-
-
- &.visible {
- bottom: 0;
- }
-
- &.no-buttons {
- display: none;
- }
-
- @media (min-width: 581px) {
- &.shift-right {
- margin-left: $sidebarWidth;
- width: calc(100% - #{$sidebarWidth});
- }
- }
- }
-
- .toolbox-content {
- align-items: center;
- box-sizing: border-box;
- display: flex;
- margin-bottom: 16px;
- position: relative;
- z-index: $toolbarZ;
- pointer-events: none;
-
- .button-group-center,
- .button-group-left,
- .button-group-right {
- display: flex;
- width: 33%;
- }
-
- .button-group-center {
- justify-content: center;
- }
-
- .button-group-right {
- justify-content: flex-end;
- }
-
- .toolbox-button-wth-dialog {
- display: inline-block;
- }
- }
-
- .toolbox-button {
- color: $toolbarButtonColor;
- cursor: pointer;
- display: inline-block;
- line-height: $newToolbarSize;
- text-align: center;
- }
-
- .toolbar-button-with-badge {
- display: inline-block;
- position: relative;
-
- .badge-round {
- bottom: -5px;
- font-size: 12px;
- line-height: 20px;
- min-width: 20px;
- pointer-events: none;
- position: absolute;
- right: -5px;
- }
- }
-
- .toolbox-content-wrapper {
- display: flex;
- flex-direction: column;
- margin: 0 auto;
- max-width: 100%;
- pointer-events: all;
- border-radius: 6px;
- }
-
- .toolbox-content-wrapper::after {
- content: '';
- background: $newToolbarBackgroundColor;
- padding-bottom: env(safe-area-inset-bottom, 0);
- }
-
- .toolbox-content-items {
- background: $newToolbarBackgroundColor;
- border-radius: 6px;
- margin: 0 auto;
- padding: 6px;
- text-align: center;
- pointer-events: all;
- box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
-
- >div {
- margin-left: 8px;
-
- &:first-child {
- margin-left: 0;
- }
- }
- }
-
- .overflow-menu {
- font-size: 14px;
- list-style-type: none;
- padding: 8px 0;
- background-color: $menuBG;
-
- .profile-text {
- max-width: 150px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- }
-
- .overflow-menu-item {
- align-items: center;
- color: $overflowMenuItemColor;
- cursor: pointer;
- display: flex;
- font-size: 14px;
- font-weight: 400;
- height: 40px;
- line-height: 24px;
- padding: 8px 16px;
- box-sizing: border-box;
-
- @media (hover: hover) and (pointer: fine) {
- &:hover {
- background: $overflowMenuItemBackground;
- }
- }
-
- div {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
-
- &.unclickable {
- cursor: default;
- }
- &.disabled {
- cursor: initial;
- color: #929292;
-
- &:hover {
- background: none;
- }
-
- svg {
- fill: #929292;
- }
-
- }
-
- @media (hover: hover) and (pointer: fine) {
- &.unclickable:hover {
- background: inherit;
- }
- }
- }
-
- .beta-tag {
- background: #36383C;
- border-radius: 3px;
- color: #fff;
- font-size: 12px;
- margin-left: 8px;
- padding: 0 4px;
- text-transform: uppercase;
- }
-
- .overflow-menu-item-icon {
- margin-right: 16px;
-
- i {
- display: inline;
- font-size: 24px;
- }
-
- @media (hover: hover) and (pointer: fine) {
- i:hover {
- background-color: initial;
- }
- }
-
- img {
- max-width: 24px;
- max-height: 24px;
- }
-
- svg {
- fill: #fff;
- height: 20px;
- width: 20px;
- }
- }
-
-
- .overflow-menu-hr {
- border-top: 1px solid #4C4D50;
- border-bottom: 0;
- margin: 8px 0;
- }
-
- .toolbox-icon {
- display: flex;
- border-radius: 3px;
- flex-direction: column;
- font-size: 24px;
- height: $newToolbarSize;
- justify-content: center;
- width: $newToolbarSize;
-
- @media (hover: hover) and (pointer: fine) {
- &:hover {
- background: $newToolbarButtonHoverColor;
- }
- }
-
- @media (max-width: 320px) {
- height: 36px;
- width: 36px;
- }
-
- &.toggled {
- background: $newToolbarButtonToggleColor;
- }
-
- &.disabled {
- cursor: initial !important;
- background-color: #36383c !important;
-
- svg {
- fill: #929292 !important;
- }
- }
- }
-
- .hangup-button {
- background-color: $hangupColor;
-
- @media (hover: hover) and (pointer: fine) {
- &:hover {
- background-color: $hangupHoverColor;
- }
- }
-
- svg {
- fill: #fff;
- }
- }
-
- .profile-button-avatar {
- align-items: center;
- }
-
- /**
- * START of fade in animation for main toolbar
- */
- .fadeIn {
- opacity: 1;
-
- @include transition(all .3s ease-in);
- }
-
- .fadeOut {
- opacity: 0;
-
- @include transition(all .3s ease-out);
- }
-
- /**
- * Audio and video buttons do not have toggled state.
- */
- .audio-preview,
- .video-preview {
- .toolbox-icon.toggled {
- background: none;
-
- &:hover {
- background: $newToolbarButtonHoverColor;
- }
- }
-
- }
-
- /**
- * On small mobile devices make the toolbar full width and pad the invite prompt.
- */
- .toolbox-content-mobile {
- @media (max-width: 500px) {
- margin-bottom: 0;
-
- .toolbox-content-wrapper {
- width: 100%;
- }
-
- .toolbox-content-items {
- border-radius: 0;
- display: flex;
- justify-content: space-evenly;
- padding: 8px 0;
- width: 100%;
- }
-
- .invite-more-container {
- margin: 0 16px 8px;
- }
-
- .invite-more-container.elevated {
- margin-bottom: 52px;
- }
- }
- }
|