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

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