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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. .overflow-menu-item-icon {
  118. margin-right: 10px;
  119. i {
  120. display: inline;
  121. font-size: 24px;
  122. }
  123. i:hover {
  124. background-color: initial;
  125. }
  126. img {
  127. max-width: 24px;
  128. max-height: 24px;
  129. }
  130. }
  131. .profile-text {
  132. max-width: 150px;
  133. text-overflow: ellipsis;
  134. overflow: hidden;
  135. white-space: nowrap;
  136. }
  137. }
  138. .toolbox-button {
  139. color: $toolbarButtonColor;
  140. cursor: pointer;
  141. display: inline-block;
  142. line-height: $newToolbarSize;
  143. margin: 0 4px;
  144. text-align: center;
  145. }
  146. .toolbar-button-with-badge {
  147. position: relative;
  148. .badge-round {
  149. bottom: -5px;
  150. font-size: 12px;
  151. line-height: 20px;
  152. min-width: 20px;
  153. pointer-events: none;
  154. position: absolute;
  155. right: -5px;
  156. }
  157. }
  158. .toolbox-button-wth-dialog {
  159. display: inline-block;
  160. }
  161. .toolbox-icon {
  162. height: $newToolbarSize;
  163. font-size: 24px;
  164. width: $newToolbarSize;
  165. }
  166. }
  167. .always-on-top-toolbox,
  168. .filmstrip-toolbox {
  169. background-color: $newToolbarBackgroundColor;
  170. box-sizing: border-box;
  171. display: flex;
  172. flex-direction: column;
  173. z-index: $toolbarZ;
  174. i {
  175. cursor: pointer;
  176. display: block;
  177. }
  178. i:hover {
  179. background-color: $newToolbarButtonHoverColor;
  180. }
  181. i.toggled {
  182. background: $newToolbarButtonToggleColor;
  183. }
  184. i.toggled:hover:not(.disabled) {
  185. background-color: $newToolbarButtonHoverColor;
  186. }
  187. .icon-hangup {
  188. color: $hangupColor;
  189. }
  190. .toolbox-button {
  191. color: $toolbarButtonColor;
  192. cursor: pointer;
  193. text-align: center;
  194. }
  195. border-radius: 3px;
  196. }
  197. .always-on-top-toolbox {
  198. flex-direction: row;
  199. left: 50%;
  200. position: absolute;
  201. top: 10px;
  202. transform: translateX(-50%);
  203. z-index: $toolbarZ;
  204. i {
  205. font-size: $newToolbarFontSize;
  206. height: $newToolbarSize;
  207. line-height: $newToolbarSize;
  208. width: $newToolbarSize;
  209. }
  210. .icon-hangup {
  211. font-size: $newToolbarHangupFontSize;
  212. }
  213. .disabled {
  214. cursor: initial;
  215. }
  216. .toolbox-button:first-child i {
  217. border-top-left-radius: 3px;
  218. border-bottom-left-radius: 3px;
  219. }
  220. .toolbox-button:last-child i {
  221. border-top-right-radius: 3px;
  222. border-bottom-right-radius: 3px;
  223. }
  224. }
  225. .filmstrip-toolbox {
  226. i {
  227. font-size: 1.9em;
  228. height: 37px;
  229. line-height: 37px;
  230. width: 37px;
  231. }
  232. .toolbox-button:first-child i {
  233. border-top-left-radius: 3px;
  234. border-top-right-radius: 3px;
  235. }
  236. .toolbox-button:last-child i {
  237. border-bottom-left-radius: 3px;
  238. border-bottom-right-radius: 3px;
  239. }
  240. }
  241. /**
  242. * START of slide in animation for extended toolbar panel.
  243. */
  244. @include keyframes(slideInExt) {
  245. from { width: 0px; }
  246. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  247. }
  248. .slideInExt {
  249. @include animation("slideInExt .5s forwards");
  250. }
  251. @include keyframes(slideOutExt) {
  252. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  253. to { width: 0px; }
  254. }
  255. .slideOutExt {
  256. @include animation("slideOutExt .5s forwards");
  257. }
  258. /**
  259. * START of fade in animation for main toolbar
  260. */
  261. .fadeIn {
  262. opacity: 1;
  263. @include transition(all .3s ease-in);
  264. }
  265. .fadeOut {
  266. opacity: 0;
  267. @include transition(all .3s ease-out);
  268. }