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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. &.visible {
  32. bottom: 0;
  33. }
  34. &.no-buttons {
  35. display: none;
  36. }
  37. @media (min-width: 581px) {
  38. &.shift-right {
  39. margin-left: $sidebarWidth;
  40. width: calc(100% - #{$sidebarWidth});
  41. }
  42. }
  43. }
  44. .toolbox-content {
  45. align-items: center;
  46. box-sizing: border-box;
  47. display: flex;
  48. margin-bottom: 16px;
  49. position: relative;
  50. z-index: $toolbarZ;
  51. .button-group-center,
  52. .button-group-left,
  53. .button-group-right {
  54. display: flex;
  55. width: 33%;
  56. }
  57. .button-group-center {
  58. justify-content: center;
  59. }
  60. .button-group-right {
  61. justify-content: flex-end;
  62. }
  63. .toolbox-button-wth-dialog {
  64. display: inline-block;
  65. }
  66. }
  67. .toolbox-button {
  68. color: $toolbarButtonColor;
  69. cursor: pointer;
  70. display: inline-block;
  71. line-height: $newToolbarSize;
  72. text-align: center;
  73. }
  74. .toolbar-button-with-badge {
  75. display: inline-block;
  76. position: relative;
  77. .badge-round {
  78. bottom: -5px;
  79. font-size: 12px;
  80. line-height: 20px;
  81. min-width: 20px;
  82. pointer-events: none;
  83. position: absolute;
  84. right: -5px;
  85. }
  86. }
  87. .toolbox-content-wrapper {
  88. display: flex;
  89. flex-direction: column;
  90. margin: 0 auto;
  91. max-width: 100%;
  92. }
  93. .toolbox-content-items {
  94. background: $newToolbarBackgroundColor;
  95. box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  96. border-radius: 6px;
  97. margin: 0 auto;
  98. padding: 6px;
  99. text-align: center;
  100. >div {
  101. margin-left: 8px;
  102. &:first-child {
  103. margin-left: 0;
  104. }
  105. }
  106. }
  107. .overflow-menu {
  108. font-size: 14px;
  109. list-style-type: none;
  110. padding: 8px 0;
  111. background-color: $menuBG;
  112. .profile-text {
  113. max-width: 150px;
  114. text-overflow: ellipsis;
  115. overflow: hidden;
  116. white-space: nowrap;
  117. }
  118. }
  119. .overflow-menu-item {
  120. align-items: center;
  121. color: $overflowMenuItemColor;
  122. cursor: pointer;
  123. display: flex;
  124. font-size: 14px;
  125. font-weight: 400;
  126. height: 40px;
  127. line-height: 24px;
  128. padding: 8px 16px;
  129. box-sizing: border-box;
  130. @media (hover: hover) and (pointer: fine) {
  131. &:hover {
  132. background: $overflowMenuItemBackground;
  133. }
  134. }
  135. div {
  136. display: flex;
  137. flex-direction: row;
  138. align-items: center;
  139. }
  140. &.unclickable {
  141. cursor: default;
  142. }
  143. &.disabled {
  144. cursor: initial;
  145. color: #929292;
  146. svg {
  147. fill: #929292;
  148. }
  149. }
  150. @media (hover: hover) and (pointer: fine) {
  151. &.unclickable:hover {
  152. background: inherit;
  153. }
  154. }
  155. }
  156. .beta-tag {
  157. background: #36383C;
  158. border-radius: 3px;
  159. color: #fff;
  160. font-size: 12px;
  161. margin-left: 8px;
  162. padding: 0 4px;
  163. text-transform: uppercase;
  164. }
  165. .overflow-menu-item-icon {
  166. margin-right: 16px;
  167. i {
  168. display: inline;
  169. font-size: 24px;
  170. }
  171. @media (hover: hover) and (pointer: fine) {
  172. i:hover {
  173. background-color: initial;
  174. }
  175. }
  176. img {
  177. max-width: 24px;
  178. max-height: 24px;
  179. }
  180. svg {
  181. fill: #fff;
  182. height: 20px;
  183. width: 20px;
  184. }
  185. }
  186. .overflow-menu-hr {
  187. border-top: 1px solid #4C4D50;
  188. border-bottom: 0;
  189. margin: 8px 0;
  190. }
  191. .toolbox-icon {
  192. display: flex;
  193. border-radius: 3px;
  194. flex-direction: column;
  195. font-size: 24px;
  196. height: $newToolbarSize;
  197. justify-content: center;
  198. width: $newToolbarSize;
  199. @media (hover: hover) and (pointer: fine) {
  200. &:hover {
  201. background: $newToolbarButtonHoverColor;
  202. }
  203. }
  204. @media (max-width: 320px) {
  205. height: 36px;
  206. width: 36px;
  207. }
  208. &.toggled {
  209. background: $newToolbarButtonToggleColor;
  210. }
  211. &.disabled {
  212. cursor: initial !important;
  213. background-color: #36383c !important;
  214. svg {
  215. fill: #929292 !important;
  216. }
  217. }
  218. }
  219. .hangup-button {
  220. background-color: $hangupColor;
  221. @media (hover: hover) and (pointer: fine) {
  222. &:hover {
  223. background-color: $hangupHoverColor;
  224. }
  225. }
  226. svg {
  227. fill: #fff;
  228. }
  229. }
  230. /**
  231. * START of fade in animation for main toolbar
  232. */
  233. .fadeIn {
  234. opacity: 1;
  235. @include transition(all .3s ease-in);
  236. }
  237. .fadeOut {
  238. opacity: 0;
  239. @include transition(all .3s ease-out);
  240. }
  241. /**
  242. * Audio and video buttons do not have toggled state.
  243. */
  244. .audio-preview,
  245. .video-preview {
  246. .toolbox-icon.toggled {
  247. background: none;
  248. &:hover {
  249. background: $newToolbarButtonHoverColor;
  250. }
  251. }
  252. }
  253. /**
  254. * On small mobile devices make the toolbar full width and pad the invite prompt.
  255. */
  256. .toolbox-content-mobile {
  257. @media (max-width: 500px) {
  258. margin-bottom: 0;
  259. .toolbox-content-wrapper {
  260. width: 100%;
  261. }
  262. .toolbox-content-items {
  263. border-radius: 0;
  264. display: flex;
  265. justify-content: space-evenly;
  266. padding: 6px 0;
  267. width: 100%;
  268. }
  269. .invite-more-container {
  270. margin: 0 16px 8px;
  271. }
  272. .invite-more-container.elevated {
  273. margin-bottom: 52px;
  274. }
  275. }
  276. }