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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. .toolbox-background {
  34. bottom: 0px;
  35. }
  36. }
  37. &.no-buttons {
  38. display: none;
  39. }
  40. .toolbox-background {
  41. background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  42. transition: bottom .3s ease-in;
  43. height: 160px;
  44. width: 100%;
  45. bottom: -160px;
  46. position: absolute;
  47. z-index: $toolbarBackgroundZ;
  48. }
  49. .toolbox-content {
  50. box-sizing: border-box;
  51. display: flex;
  52. justify-content: space-between;
  53. margin-left: auto;
  54. margin-right: auto;
  55. padding: 20px 16px;
  56. position: relative;
  57. width: 100%;
  58. z-index: $toolbarZ;
  59. .button-group-center,
  60. .button-group-left,
  61. .button-group-right {
  62. display: flex;
  63. width: 33%;
  64. }
  65. .button-group-center {
  66. justify-content: center;
  67. .toolbox-icon {
  68. margin: 0px 4px;
  69. }
  70. }
  71. .button-group-right {
  72. justify-content: flex-end;
  73. }
  74. i {
  75. border-radius: 5px;
  76. cursor: pointer;
  77. display: block;
  78. font-size: inherit;
  79. height: 100%;
  80. line-height: inherit;
  81. width: 100%;
  82. }
  83. i:hover {
  84. background: $newToolbarButtonHoverColor;
  85. }
  86. i.toggled {
  87. background: $newToolbarButtonToggleColor;
  88. }
  89. i.toggled:hover {
  90. background: $newToolbarButtonHoverColor;
  91. }
  92. .icon-hangup {
  93. background-color: #e12d2d;
  94. color: #fff;
  95. border-radius: 50%;
  96. width: 40px;
  97. height: 40px;
  98. &:hover {
  99. background-color: #e54b4b;
  100. }
  101. }
  102. i.disabled, .disabled i {
  103. cursor: initial;
  104. color: #fff;
  105. background-color: #a4b8d1;
  106. }
  107. .icon-mic-disabled, .icon-microphone, .icon-camera-disabled, .icon-camera {
  108. background-color: #fff;
  109. color: #5e6d7a;
  110. border-radius: 50%;
  111. border: 1px solid #d1dbe8;
  112. width: 38px;
  113. height: 38px;
  114. &:hover {
  115. background-color: #daebfa;
  116. border: 1px solid #daebfa;
  117. }
  118. &.toggled {
  119. background: #2a3a4b;
  120. color: #fff;
  121. border: 1px solid #5e6d7a;
  122. &:hover {
  123. background-color: #5e6d7a;
  124. }
  125. }
  126. &.disabled, .disabled & {
  127. cursor: initial;
  128. color: #fff;
  129. background-color: #a4b8d1;
  130. }
  131. }
  132. .overflow-menu {
  133. font-size: 1.2em;
  134. list-style-type: none;
  135. background-color: $overflowMenuBG;
  136. /**
  137. * Undo atlaskit padding by reducing margins.
  138. */
  139. margin: -16px -24px;
  140. padding: 4px 0;
  141. .overflow-menu-item {
  142. align-items: center;
  143. color: $overflowMenuItemColor;
  144. cursor: pointer;
  145. display: flex;
  146. font-size: 14px;
  147. height: 22px;
  148. padding: 5px 12px;
  149. div {
  150. display: flex;
  151. flex-direction: row;
  152. align-items: center;
  153. }
  154. &:hover {
  155. background-color: $overflowMenuItemHoverBG;
  156. color: $overflowMenuItemHoverColor;
  157. }
  158. &.unclickable {
  159. cursor: default;
  160. }
  161. &.unclickable:hover {
  162. background: inherit;
  163. }
  164. &.disabled {
  165. cursor: initial;
  166. color: #3b475c;
  167. }
  168. }
  169. .beta-tag {
  170. background: $overflowMenuItemColor;
  171. border-radius: 2px;
  172. color: $overflowMenuBG;
  173. font-size: 11px;
  174. font-weight: bold;
  175. margin-left: 8px;
  176. padding: 0 6px;
  177. }
  178. .overflow-menu-item-icon {
  179. margin-right: 10px;
  180. i {
  181. display: inline;
  182. font-size: 24px;
  183. }
  184. i:hover {
  185. background-color: initial;
  186. }
  187. img {
  188. max-width: 24px;
  189. max-height: 24px;
  190. }
  191. }
  192. .profile-text {
  193. max-width: 150px;
  194. text-overflow: ellipsis;
  195. overflow: hidden;
  196. white-space: nowrap;
  197. }
  198. }
  199. .toolbox-button {
  200. color: $toolbarButtonColor;
  201. cursor: pointer;
  202. display: inline-block;
  203. line-height: $newToolbarSize;
  204. margin: 0 8px;
  205. text-align: center;
  206. }
  207. .toolbar-button-with-badge {
  208. position: relative;
  209. .badge-round {
  210. bottom: -5px;
  211. font-size: 12px;
  212. line-height: 20px;
  213. min-width: 20px;
  214. pointer-events: none;
  215. position: absolute;
  216. right: -5px;
  217. }
  218. }
  219. .toolbox-button-wth-dialog {
  220. display: inline-block;
  221. }
  222. .toolbox-icon {
  223. height: $newToolbarSize;
  224. font-size: 24px;
  225. width: $newToolbarSize;
  226. }
  227. }
  228. }
  229. .always-on-top-toolbox,
  230. .filmstrip-toolbox {
  231. background-color: $newToolbarBackgroundColor;
  232. box-sizing: border-box;
  233. display: flex;
  234. flex-direction: column;
  235. z-index: $toolbarZ;
  236. i {
  237. cursor: pointer;
  238. display: block;
  239. }
  240. i:hover {
  241. background-color: $AOTToolbarButtonHoverColor;
  242. }
  243. i.toggled {
  244. background: $AOTToolbarButtonToggleColor;
  245. }
  246. i.toggled:hover:not(.disabled) {
  247. background-color: $AOTToolbarButtonHoverColor;
  248. }
  249. .icon-hangup {
  250. color: $hangupColor;
  251. }
  252. .toolbox-button {
  253. color: $toolbarButtonColor;
  254. cursor: pointer;
  255. text-align: center;
  256. }
  257. border-radius: 3px;
  258. }
  259. .always-on-top-toolbox {
  260. flex-direction: row;
  261. left: 50%;
  262. position: absolute;
  263. top: 10px;
  264. transform: translateX(-50%);
  265. z-index: $toolbarZ;
  266. i {
  267. font-size: $newToolbarFontSize;
  268. height: $newToolbarSize;
  269. line-height: $newToolbarSize;
  270. width: $newToolbarSize;
  271. }
  272. .icon-hangup {
  273. font-size: $newToolbarHangupFontSize;
  274. }
  275. .disabled {
  276. cursor: initial;
  277. }
  278. .toolbox-button:first-child i {
  279. border-top-left-radius: 3px;
  280. border-bottom-left-radius: 3px;
  281. }
  282. .toolbox-button:last-child i {
  283. border-top-right-radius: 3px;
  284. border-bottom-right-radius: 3px;
  285. }
  286. }
  287. .filmstrip-toolbox {
  288. i {
  289. font-size: 1.9em;
  290. height: 37px;
  291. line-height: 37px;
  292. width: 37px;
  293. }
  294. .toolbox-button:first-child i {
  295. border-top-left-radius: 3px;
  296. border-top-right-radius: 3px;
  297. }
  298. .toolbox-button:last-child i {
  299. border-bottom-left-radius: 3px;
  300. border-bottom-right-radius: 3px;
  301. }
  302. }
  303. /**
  304. * START of fade in animation for main toolbar
  305. */
  306. .fadeIn {
  307. opacity: 1;
  308. @include transition(all .3s ease-in);
  309. }
  310. .fadeOut {
  311. opacity: 0;
  312. @include transition(all .3s ease-out);
  313. }