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

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