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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. }
  88. i.disabled:hover {
  89. background-color: initial;
  90. }
  91. .icon-hangup {
  92. color: $hangupColor;
  93. font-size: $newToolbarHangupFontSize;
  94. }
  95. .overflow-menu {
  96. font-size: 1.2em;
  97. list-style-type: none;
  98. /**
  99. * Undo atlaskit padding by reducing margins.
  100. */
  101. margin: -15px -24px;
  102. padding: 4px 0;
  103. .overflow-menu-item {
  104. align-items: center;
  105. color: #B8C7E0;
  106. cursor: pointer;
  107. display: flex;
  108. font-size: 14px;
  109. height: 22px;
  110. padding: 5px 12px;
  111. &:hover {
  112. background: #313D52;
  113. }
  114. &.unclickable {
  115. cursor: default;
  116. }
  117. &.unclickable:hover {
  118. background: inherit;
  119. }
  120. }
  121. .beta-tag {
  122. background: #B8C7E0;
  123. border-radius: 2px;
  124. color: $newToolbarBackgroundColor;
  125. font-family: -apple-system, BlinkMacSystemFont, $baseFontFamily;
  126. font-size: 11px;
  127. font-weight: bold;
  128. margin-left: 8px;
  129. padding: 0 6px;
  130. }
  131. .overflow-menu-item-icon {
  132. margin-right: 10px;
  133. i {
  134. display: inline;
  135. font-size: 24px;
  136. }
  137. i:hover {
  138. background-color: initial;
  139. }
  140. img {
  141. max-width: 24px;
  142. max-height: 24px;
  143. }
  144. }
  145. .profile-text {
  146. max-width: 150px;
  147. text-overflow: ellipsis;
  148. overflow: hidden;
  149. white-space: nowrap;
  150. }
  151. }
  152. .toolbox-button {
  153. color: $toolbarButtonColor;
  154. cursor: pointer;
  155. display: inline-block;
  156. line-height: $newToolbarSize;
  157. margin: 0 4px;
  158. text-align: center;
  159. }
  160. .toolbar-button-with-badge {
  161. position: relative;
  162. .badge-round {
  163. bottom: -5px;
  164. font-size: 12px;
  165. line-height: 20px;
  166. min-width: 20px;
  167. pointer-events: none;
  168. position: absolute;
  169. right: -5px;
  170. }
  171. }
  172. .toolbox-button-wth-dialog {
  173. display: inline-block;
  174. }
  175. .toolbox-icon {
  176. height: $newToolbarSize;
  177. font-size: 24px;
  178. width: $newToolbarSize;
  179. }
  180. }
  181. .always-on-top-toolbox,
  182. .filmstrip-toolbox {
  183. background-color: $newToolbarBackgroundColor;
  184. box-sizing: border-box;
  185. display: flex;
  186. flex-direction: column;
  187. z-index: $toolbarZ;
  188. i {
  189. cursor: pointer;
  190. display: block;
  191. }
  192. i:hover {
  193. background-color: $newToolbarButtonHoverColor;
  194. }
  195. i.toggled {
  196. background: $newToolbarButtonToggleColor;
  197. }
  198. i.toggled:hover:not(.disabled) {
  199. background-color: $newToolbarButtonHoverColor;
  200. }
  201. .icon-hangup {
  202. color: $hangupColor;
  203. }
  204. .toolbox-button {
  205. color: $toolbarButtonColor;
  206. cursor: pointer;
  207. text-align: center;
  208. }
  209. border-radius: 3px;
  210. }
  211. .always-on-top-toolbox {
  212. flex-direction: row;
  213. left: 50%;
  214. position: absolute;
  215. top: 10px;
  216. transform: translateX(-50%);
  217. z-index: $toolbarZ;
  218. i {
  219. font-size: $newToolbarFontSize;
  220. height: $newToolbarSize;
  221. line-height: $newToolbarSize;
  222. width: $newToolbarSize;
  223. }
  224. .icon-hangup {
  225. font-size: $newToolbarHangupFontSize;
  226. }
  227. .disabled {
  228. cursor: initial;
  229. }
  230. .toolbox-button:first-child i {
  231. border-top-left-radius: 3px;
  232. border-bottom-left-radius: 3px;
  233. }
  234. .toolbox-button:last-child i {
  235. border-top-right-radius: 3px;
  236. border-bottom-right-radius: 3px;
  237. }
  238. }
  239. .filmstrip-toolbox {
  240. i {
  241. font-size: 1.9em;
  242. height: 37px;
  243. line-height: 37px;
  244. width: 37px;
  245. }
  246. .toolbox-button:first-child i {
  247. border-top-left-radius: 3px;
  248. border-top-right-radius: 3px;
  249. }
  250. .toolbox-button:last-child i {
  251. border-bottom-left-radius: 3px;
  252. border-bottom-right-radius: 3px;
  253. }
  254. }
  255. /**
  256. * START of slide in animation for extended toolbar panel.
  257. */
  258. @include keyframes(slideInExt) {
  259. from { width: 0px; }
  260. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  261. }
  262. .slideInExt {
  263. @include animation("slideInExt .5s forwards");
  264. }
  265. @include keyframes(slideOutExt) {
  266. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  267. to { width: 0px; }
  268. }
  269. .slideOutExt {
  270. @include animation("slideOutExt .5s forwards");
  271. }
  272. /**
  273. * START of fade in animation for main toolbar
  274. */
  275. .fadeIn {
  276. opacity: 1;
  277. @include transition(all .3s ease-in);
  278. }
  279. .fadeOut {
  280. opacity: 0;
  281. @include transition(all .3s ease-out);
  282. }