Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

_toolbars.scss 8.5KB

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