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

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