Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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