Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_toolbars.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /**
  2. * Round badge.
  3. */
  4. .badge-round {
  5. background-color: #165ECC;
  6. border-radius: 50%;
  7. box-sizing: border-box;
  8. color: #FFFFFF;
  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. &.shift-up {
  34. bottom: calc(((#{$newToolbarSize} + 30px) * 2) * -1);
  35. .toolbox-content {
  36. margin-bottom: 46px;
  37. }
  38. }
  39. &.visible {
  40. bottom: 0;
  41. }
  42. &.no-buttons {
  43. display: none;
  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. .toolbox-button-wth-dialog {
  55. display: inline-block;
  56. }
  57. }
  58. .toolbar-button-with-badge {
  59. display: inline-block;
  60. position: relative;
  61. .badge-round {
  62. bottom: -5px;
  63. font-size: 12px;
  64. line-height: 20px;
  65. min-width: 20px;
  66. pointer-events: none;
  67. position: absolute;
  68. right: -5px;
  69. }
  70. }
  71. .toolbox-content-wrapper {
  72. display: flex;
  73. flex-direction: column;
  74. margin: 0 auto;
  75. max-width: 100%;
  76. pointer-events: all;
  77. border-radius: 6px;
  78. .toolbox-content-items {
  79. @include ltr;
  80. }
  81. }
  82. .toolbox-content-wrapper::after {
  83. content: '';
  84. background: $newToolbarBackgroundColor;
  85. padding-bottom: env(safe-area-inset-bottom, 0);
  86. }
  87. .overflow-menu-hr {
  88. border-top: 1px solid #4C4D50;
  89. border-bottom: 0;
  90. margin: 8px 0;
  91. }
  92. div.hangup-button {
  93. background-color: #CB2233;
  94. @media (hover: hover) and (pointer: fine) {
  95. &:hover {
  96. background-color: #E04757;
  97. }
  98. &:active {
  99. background-color: #A21B29;
  100. }
  101. }
  102. svg {
  103. fill: #fff;
  104. }
  105. }
  106. div.hangup-menu-button {
  107. background-color: #CB2233;
  108. @media (hover: hover) and (pointer: fine) {
  109. &:hover {
  110. background-color: #E04757;
  111. }
  112. &:active {
  113. background-color: #A21B29;
  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: rgba(255, 255, 255, 0.2);
  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. @include ltr;
  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. }