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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. &:hover {
  147. background: none;
  148. }
  149. svg {
  150. fill: #929292;
  151. }
  152. }
  153. @media (hover: hover) and (pointer: fine) {
  154. &.unclickable:hover {
  155. background: inherit;
  156. }
  157. }
  158. }
  159. .beta-tag {
  160. background: #36383C;
  161. border-radius: 3px;
  162. color: #fff;
  163. font-size: 12px;
  164. margin-left: 8px;
  165. padding: 0 4px;
  166. text-transform: uppercase;
  167. }
  168. .overflow-menu-item-icon {
  169. margin-right: 16px;
  170. i {
  171. display: inline;
  172. font-size: 24px;
  173. }
  174. @media (hover: hover) and (pointer: fine) {
  175. i:hover {
  176. background-color: initial;
  177. }
  178. }
  179. img {
  180. max-width: 24px;
  181. max-height: 24px;
  182. }
  183. svg {
  184. fill: #fff;
  185. height: 20px;
  186. width: 20px;
  187. }
  188. }
  189. .overflow-menu-hr {
  190. border-top: 1px solid #4C4D50;
  191. border-bottom: 0;
  192. margin: 8px 0;
  193. }
  194. .toolbox-icon {
  195. display: flex;
  196. border-radius: 3px;
  197. flex-direction: column;
  198. font-size: 24px;
  199. height: $newToolbarSize;
  200. justify-content: center;
  201. width: $newToolbarSize;
  202. @media (hover: hover) and (pointer: fine) {
  203. &:hover {
  204. background: $newToolbarButtonHoverColor;
  205. }
  206. }
  207. @media (max-width: 320px) {
  208. height: 36px;
  209. width: 36px;
  210. }
  211. &.toggled {
  212. background: $newToolbarButtonToggleColor;
  213. }
  214. &.disabled {
  215. cursor: initial !important;
  216. background-color: #36383c !important;
  217. svg {
  218. fill: #929292 !important;
  219. }
  220. }
  221. }
  222. .hangup-button {
  223. background-color: $hangupColor;
  224. @media (hover: hover) and (pointer: fine) {
  225. &:hover {
  226. background-color: $hangupHoverColor;
  227. }
  228. }
  229. svg {
  230. fill: #fff;
  231. }
  232. }
  233. /**
  234. * START of fade in animation for main toolbar
  235. */
  236. .fadeIn {
  237. opacity: 1;
  238. @include transition(all .3s ease-in);
  239. }
  240. .fadeOut {
  241. opacity: 0;
  242. @include transition(all .3s ease-out);
  243. }
  244. /**
  245. * Audio and video buttons do not have toggled state.
  246. */
  247. .audio-preview,
  248. .video-preview {
  249. .toolbox-icon.toggled {
  250. background: none;
  251. &:hover {
  252. background: $newToolbarButtonHoverColor;
  253. }
  254. }
  255. }
  256. /**
  257. * On small mobile devices make the toolbar full width and pad the invite prompt.
  258. */
  259. .toolbox-content-mobile {
  260. @media (max-width: 500px) {
  261. margin-bottom: 0;
  262. .toolbox-content-wrapper {
  263. width: 100%;
  264. }
  265. .toolbox-content-items {
  266. border-radius: 0;
  267. display: flex;
  268. justify-content: space-evenly;
  269. padding: 6px 0;
  270. width: 100%;
  271. }
  272. .invite-more-container {
  273. margin: 0 16px 8px;
  274. }
  275. .invite-more-container.elevated {
  276. margin-bottom: 52px;
  277. }
  278. }
  279. }