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 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. div.hangup-button {
  108. background-color: #CB2233;
  109. @media (hover: hover) and (pointer: fine) {
  110. &:hover {
  111. background-color: #E04757;
  112. }
  113. &:active {
  114. background-color: #A21B29;
  115. }
  116. }
  117. svg {
  118. fill: #fff;
  119. }
  120. }
  121. div.hangup-menu-button {
  122. background-color: #CB2233;
  123. @media (hover: hover) and (pointer: fine) {
  124. &:hover {
  125. background-color: #E04757;
  126. }
  127. &:active {
  128. background-color: #A21B29;
  129. }
  130. }
  131. svg {
  132. fill: #fff;
  133. }
  134. }
  135. .profile-button-avatar {
  136. align-items: center;
  137. }
  138. /**
  139. * START of fade in animation for main toolbar
  140. */
  141. .fadeIn {
  142. opacity: 1;
  143. @include transition(all .3s ease-in);
  144. }
  145. .fadeOut {
  146. opacity: 0;
  147. @include transition(all .3s ease-out);
  148. }
  149. /**
  150. * Audio and video buttons do not have toggled state.
  151. */
  152. .audio-preview,
  153. .video-preview {
  154. .toolbox-icon.toggled {
  155. background: none;
  156. &:hover {
  157. background: $newToolbarButtonHoverColor;
  158. }
  159. }
  160. }
  161. /**
  162. * On small mobile devices make the toolbar full width and pad the invite prompt.
  163. */
  164. .toolbox-content-mobile {
  165. @media (max-width: 500px) {
  166. margin-bottom: 0;
  167. .toolbox-content-wrapper {
  168. width: 100%;
  169. }
  170. .toolbox-content-items {
  171. @include ltr;
  172. border-radius: 0;
  173. display: flex;
  174. justify-content: space-evenly;
  175. padding: 8px 0;
  176. width: 100%;
  177. }
  178. .invite-more-container {
  179. margin: 0 16px 8px;
  180. }
  181. .invite-more-container.elevated {
  182. margin-bottom: 52px;
  183. }
  184. }
  185. }