You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_toolbars.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /**
  2. * Round badge.
  3. */
  4. .badge-round {
  5. background-color: $toolbarBadgeBackground;
  6. border-radius: 50%;
  7. box-sizing: border-box;
  8. color: $toolbarBadgeColor;
  9. // Do not inherit the font-family from the toolbar button, because it's an
  10. // icon style.
  11. font-family: $baseFontFamily;
  12. font-size: 9px;
  13. font-weight: 700;
  14. line-height: 13px;
  15. min-width: 13px;
  16. overflow: hidden;
  17. text-align: center;
  18. text-overflow: ellipsis;
  19. vertical-align: middle;
  20. }
  21. /**
  22. * TODO: when the old filmstrip has been removed, remove the "new-" prefix.
  23. */
  24. .new-toolbox {
  25. bottom: calc((#{$newToolbarSize} * 2) * -1);
  26. left: 0;
  27. position: absolute;
  28. right: 0;
  29. transition: bottom .3s ease-in;
  30. width: 100%;
  31. pointer-events: none;
  32. &.visible {
  33. bottom: 0;
  34. }
  35. &.no-buttons {
  36. display: none;
  37. }
  38. @media (min-width: 581px) {
  39. &.shift-right {
  40. margin-left: $sidebarWidth;
  41. width: calc(100% - #{$sidebarWidth});
  42. }
  43. }
  44. }
  45. .toolbox-content {
  46. align-items: center;
  47. box-sizing: border-box;
  48. display: flex;
  49. margin-bottom: 16px;
  50. position: relative;
  51. z-index: $toolbarZ;
  52. pointer-events: none;
  53. .button-group-center,
  54. .button-group-left,
  55. .button-group-right {
  56. display: flex;
  57. width: 33%;
  58. }
  59. .button-group-center {
  60. justify-content: center;
  61. }
  62. .button-group-right {
  63. justify-content: flex-end;
  64. }
  65. .toolbox-button-wth-dialog {
  66. display: inline-block;
  67. }
  68. }
  69. .toolbar-button-with-badge {
  70. display: inline-block;
  71. position: relative;
  72. .badge-round {
  73. bottom: -5px;
  74. font-size: 12px;
  75. line-height: 20px;
  76. min-width: 20px;
  77. pointer-events: none;
  78. position: absolute;
  79. right: -5px;
  80. }
  81. }
  82. .toolbox-content-wrapper {
  83. display: flex;
  84. flex-direction: column;
  85. margin: 0 auto;
  86. max-width: 100%;
  87. pointer-events: all;
  88. border-radius: 6px;
  89. }
  90. .toolbox-content-wrapper::after {
  91. content: '';
  92. background: $newToolbarBackgroundColor;
  93. padding-bottom: env(safe-area-inset-bottom, 0);
  94. }
  95. .beta-tag {
  96. background: #36383C;
  97. border-radius: 3px;
  98. color: #fff;
  99. font-size: 12px;
  100. margin-left: 8px;
  101. padding: 0 4px;
  102. text-transform: uppercase;
  103. }
  104. .overflow-menu-hr {
  105. border-top: 1px solid #4C4D50;
  106. border-bottom: 0;
  107. margin: 8px 0;
  108. }
  109. .hangup-button {
  110. background-color: $hangupColor;
  111. @media (hover: hover) and (pointer: fine) {
  112. &:hover {
  113. background-color: $hangupHoverColor;
  114. }
  115. }
  116. svg {
  117. fill: #fff;
  118. }
  119. }
  120. .profile-button-avatar {
  121. align-items: center;
  122. }
  123. /**
  124. * START of fade in animation for main toolbar
  125. */
  126. .fadeIn {
  127. opacity: 1;
  128. @include transition(all .3s ease-in);
  129. }
  130. .fadeOut {
  131. opacity: 0;
  132. @include transition(all .3s ease-out);
  133. }
  134. /**
  135. * Audio and video buttons do not have toggled state.
  136. */
  137. .audio-preview,
  138. .video-preview {
  139. .toolbox-icon.toggled {
  140. background: none;
  141. &:hover {
  142. background: $newToolbarButtonHoverColor;
  143. }
  144. }
  145. }
  146. /**
  147. * On small mobile devices make the toolbar full width and pad the invite prompt.
  148. */
  149. .toolbox-content-mobile {
  150. @media (max-width: 500px) {
  151. margin-bottom: 0;
  152. .toolbox-content-wrapper {
  153. width: 100%;
  154. }
  155. .toolbox-content-items {
  156. border-radius: 0;
  157. display: flex;
  158. justify-content: space-evenly;
  159. padding: 8px 0;
  160. width: 100%;
  161. }
  162. .invite-more-container {
  163. margin: 0 16px 8px;
  164. }
  165. .invite-more-container.elevated {
  166. margin-bottom: 52px;
  167. }
  168. }
  169. }