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.6KB

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