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

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