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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. i.toggled {
  169. background: inherit;
  170. }
  171. i.toggled:hover {
  172. background: inherit;
  173. }
  174. }
  175. .beta-tag {
  176. background: $overflowMenuItemColor;
  177. border-radius: 2px;
  178. color: $overflowMenuBG;
  179. font-size: 11px;
  180. font-weight: bold;
  181. margin-left: 8px;
  182. padding: 0 6px;
  183. }
  184. .overflow-menu-item-icon {
  185. margin-right: 10px;
  186. i {
  187. display: inline;
  188. font-size: 24px;
  189. }
  190. i:hover {
  191. background-color: initial;
  192. }
  193. img {
  194. max-width: 24px;
  195. max-height: 24px;
  196. }
  197. }
  198. .profile-text {
  199. max-width: 150px;
  200. text-overflow: ellipsis;
  201. overflow: hidden;
  202. white-space: nowrap;
  203. }
  204. }
  205. .toolbox-button {
  206. color: $toolbarButtonColor;
  207. cursor: pointer;
  208. display: inline-block;
  209. line-height: $newToolbarSize;
  210. margin: 0 8px;
  211. text-align: center;
  212. }
  213. .toolbar-button-with-badge {
  214. position: relative;
  215. .badge-round {
  216. bottom: -5px;
  217. font-size: 12px;
  218. line-height: 20px;
  219. min-width: 20px;
  220. pointer-events: none;
  221. position: absolute;
  222. right: -5px;
  223. }
  224. }
  225. .toolbox-button-wth-dialog {
  226. display: inline-block;
  227. }
  228. .toolbox-icon {
  229. height: $newToolbarSize;
  230. font-size: 24px;
  231. width: $newToolbarSize;
  232. }
  233. }
  234. }
  235. .always-on-top-toolbox,
  236. .filmstrip-toolbox {
  237. background-color: $newToolbarBackgroundColor;
  238. box-sizing: border-box;
  239. display: flex;
  240. flex-direction: column;
  241. z-index: $toolbarZ;
  242. i {
  243. cursor: pointer;
  244. display: block;
  245. }
  246. i:hover {
  247. background-color: $AOTToolbarButtonHoverColor;
  248. }
  249. i.toggled {
  250. background: $AOTToolbarButtonToggleColor;
  251. }
  252. i.toggled:hover:not(.disabled) {
  253. background-color: $AOTToolbarButtonHoverColor;
  254. }
  255. .icon-hangup {
  256. color: $hangupColor;
  257. }
  258. .toolbox-button {
  259. color: $toolbarButtonColor;
  260. cursor: pointer;
  261. text-align: center;
  262. }
  263. border-radius: 3px;
  264. }
  265. .always-on-top-toolbox {
  266. flex-direction: row;
  267. left: 50%;
  268. position: absolute;
  269. top: 10px;
  270. transform: translateX(-50%);
  271. z-index: $toolbarZ;
  272. i {
  273. font-size: $newToolbarFontSize;
  274. height: $newToolbarSize;
  275. line-height: $newToolbarSize;
  276. width: $newToolbarSize;
  277. }
  278. .icon-hangup {
  279. font-size: $newToolbarHangupFontSize;
  280. }
  281. .disabled {
  282. cursor: initial;
  283. }
  284. .toolbox-button:first-child i {
  285. border-top-left-radius: 3px;
  286. border-bottom-left-radius: 3px;
  287. }
  288. .toolbox-button:last-child i {
  289. border-top-right-radius: 3px;
  290. border-bottom-right-radius: 3px;
  291. }
  292. }
  293. .filmstrip-toolbox {
  294. i {
  295. font-size: 1.9em;
  296. height: 37px;
  297. line-height: 37px;
  298. width: 37px;
  299. }
  300. .toolbox-button:first-child i {
  301. border-top-left-radius: 3px;
  302. border-top-right-radius: 3px;
  303. }
  304. .toolbox-button:last-child i {
  305. border-bottom-left-radius: 3px;
  306. border-bottom-right-radius: 3px;
  307. }
  308. }
  309. /**
  310. * START of fade in animation for main toolbar
  311. */
  312. .fadeIn {
  313. opacity: 1;
  314. @include transition(all .3s ease-in);
  315. }
  316. .fadeOut {
  317. opacity: 0;
  318. @include transition(all .3s ease-out);
  319. }