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

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