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

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