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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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. .toolbar-container {
  22. display: block;
  23. left:0;
  24. min-height: 100px;
  25. opacity: 0;
  26. pointer-events: none;
  27. position: absolute;
  28. right:0;
  29. text-align: center;
  30. top:0;
  31. z-index: $toolbarZ;
  32. }
  33. /**
  34. * Common toolbar styles.
  35. */
  36. .toolbar {
  37. height: 100%;
  38. pointer-events: auto;
  39. position: relative;
  40. z-index: $toolbarZ;
  41. /**
  42. * Ensure nested elements that don't have a button class, maybe because they
  43. * are wrapped in a React Element, still display in a line.
  44. */
  45. > div {
  46. display: inline-block;
  47. }
  48. /**
  49. * Always on top overrides.
  50. */
  51. &.always-on-top {
  52. /**
  53. * Toolbar button styles for always on top.
  54. */
  55. .button {
  56. font-size: $alwaysOnTopToolbarFontSize;
  57. height: $alwaysOnTopToolbarSize;
  58. line-height: $alwaysOnTopToolbarSize;
  59. width: $alwaysOnTopToolbarSize;
  60. &_hangup, &_hangup:hover {
  61. font-size: $alwaysOnTopToolbarFontSize;
  62. }
  63. }
  64. }
  65. /**
  66. * Toolbar button styles.
  67. */
  68. .button {
  69. color: $toolbarButtonColor;
  70. cursor: pointer;
  71. z-index: $zindex1;
  72. display: inline-block;
  73. font-size: $toolbarFontSize;
  74. height: $defaultToolbarSize;
  75. line-height: $defaultToolbarSize;
  76. position: relative;
  77. text-align: center;
  78. top:0px;
  79. vertical-align: middle;
  80. width: $defaultToolbarSize;
  81. &[disabled] {
  82. opacity: 0.5;
  83. }
  84. &:hover, &:active {
  85. color: $toolbarButtonColor;
  86. cursor: pointer;
  87. text-decoration: none;
  88. }
  89. &_hangup, &_hangup:hover {
  90. color: $hangupColor;
  91. font-size: $hangupFontSize;
  92. }
  93. &:not(.toggled) {
  94. &:hover, &:active {
  95. // sum opacity with background layer should give us 0.8
  96. background: $toolbarSelectBackground;
  97. }
  98. }
  99. &.toggled {
  100. background: $toolbarToggleBackground;
  101. &.icon-camera {
  102. @extend .icon-camera-disabled;
  103. }
  104. &.icon-full-screen {
  105. @extend .icon-exit-full-screen;
  106. }
  107. &.icon-microphone {
  108. @extend .icon-mic-disabled;
  109. }
  110. }
  111. &.unclickable {
  112. cursor: default;
  113. &:hover, &:active, &.selected {
  114. background: none;
  115. cursor: default;
  116. }
  117. }
  118. }
  119. /**
  120. * Primary toolbar styles.
  121. */
  122. &_primary {
  123. background-color: $toolbarBackground;
  124. position: absolute;
  125. left: 50%;
  126. top: 30px;
  127. display: inline-block;
  128. width: auto;
  129. height: $defaultToolbarSize;
  130. border-radius: 3px;
  131. opacity: 0;
  132. &.always-on-top {
  133. height: $alwaysOnTopToolbarSize;
  134. top: 10px;
  135. }
  136. @include transform(translateX(-50%));
  137. > a:first-child.button,
  138. > div:first-child .button {
  139. border-bottom-left-radius: 3px;
  140. border-top-left-radius: 3px;
  141. }
  142. > a:last-child.button,
  143. > div:last-child .button {
  144. border-bottom-right-radius: 3px;
  145. border-top-right-radius: 3px;
  146. }
  147. }
  148. &_primary a.button:last-child::after {
  149. content: none;
  150. }
  151. /**
  152. * Secondary toolbar styles.
  153. */
  154. &_secondary {
  155. background-color: $secondaryToolbarBg;
  156. position: absolute;
  157. align-items: center;
  158. box-sizing: border-box;
  159. display: -moz-box;
  160. display: -ms-flexbox;
  161. display: -webkit-box;
  162. display: -webkit-flex;
  163. display: flex;
  164. flex-direction: column;
  165. flex-wrap: nowrap;
  166. height: 100%;
  167. justify-content: flex-start;
  168. left: 0;
  169. padding-top: 24px;
  170. pointer-events: none;
  171. top: 0;
  172. transform: translateX(-100%);
  173. width: $defaultToolbarSize;
  174. -webkit-transform: translateX(-100%);
  175. .button {
  176. font-size: $secToolbarFontSize;
  177. height: $secToolbarLineHeight;
  178. line-height: $secToolbarLineHeight;
  179. }
  180. > * {
  181. pointer-events: auto
  182. }
  183. .button.toggled:not(.icon-raised-hand):not(.button-active) {
  184. background: $secondaryToolbarBg;
  185. cursor: pointer;
  186. text-decoration: none;
  187. &.unclickable {
  188. cursor: default;
  189. &:hover, &:active, &.selected {
  190. background: none;
  191. cursor: default;
  192. }
  193. }
  194. }
  195. }
  196. /**
  197. * Styles the toolbar in filmstrip-only mode.
  198. */
  199. &_filmstrip-only {
  200. background-color: $toolbarBackground;
  201. border-radius: 3px;
  202. display: inline-block;
  203. height: auto;
  204. width: $defaultFilmStripOnlyToolbarSize;
  205. .button {
  206. height: 37px;
  207. line-height: 37px !important;
  208. width: 37px;
  209. }
  210. .button-popover-message {
  211. width: 100px;
  212. }
  213. .toolbar-button-wrapper:first-child .button {
  214. border-top-left-radius: 3px;
  215. border-top-right-radius: 3px;
  216. }
  217. .toolbar-button-wrapper:last-child .button {
  218. border-bottom-right-radius: 3px;
  219. border-bottom-left-radius: 3px;
  220. }
  221. }
  222. /**
  223. * Toolbar specific round badge.
  224. */
  225. .badge-round {
  226. bottom: 9px;
  227. position: absolute;
  228. right: 9px;
  229. }
  230. }
  231. /**
  232. * TODO: when the old filmstrip has been removed, remove the "new-" prefix.
  233. */
  234. .new-toolbox {
  235. background-color: $newToolbarBackgroundColor;
  236. bottom: calc((#{$newToolbarSize} * 2) * -1);
  237. box-sizing: border-box;
  238. display: flex;
  239. justify-content: space-between;
  240. padding: 5px 20px;
  241. position: absolute;
  242. transition: bottom .3s ease-in;
  243. width: 100%;
  244. z-index: $toolbarZ;
  245. &.visible {
  246. bottom: 0;
  247. }
  248. &.no-buttons {
  249. display: none;
  250. }
  251. .button-group-center,
  252. .button-group-left,
  253. .button-group-right {
  254. display: flex;
  255. width: 33%;
  256. }
  257. .button-group-center {
  258. justify-content: center;
  259. }
  260. .button-group-right {
  261. justify-content: flex-end;
  262. }
  263. /**
  264. * Overwrite font-awesome styling to match jitsi-icon styling.
  265. */
  266. .fa {
  267. font-size: 1.22em;
  268. }
  269. i {
  270. border-radius: 5px;
  271. cursor: pointer;
  272. display: block;
  273. height: 100%;
  274. line-height: inherit;
  275. width: 100%;
  276. }
  277. i:hover {
  278. background-color: $newToolbarButtonHoverColor;
  279. }
  280. i.toggled {
  281. background: $newToolbarButtonToggleColor;
  282. }
  283. i.toggled:hover {
  284. background-color: $newToolbarButtonHoverColor;
  285. }
  286. i.disabled {
  287. cursor: initial
  288. }
  289. i.disabled:hover {
  290. background-color: initial;
  291. }
  292. .icon-hangup {
  293. color: $hangupColor;
  294. }
  295. .overflow-menu {
  296. font-size: 1.2em;
  297. list-style-type: none;
  298. /**
  299. * Undo atlaskit padding by reducing margins.
  300. */
  301. margin: -15px -24px;
  302. padding: 0;
  303. .overflow-menu-item {
  304. align-items: center;
  305. cursor: pointer;
  306. display: flex;
  307. padding: 5px 10px;
  308. &:hover {
  309. background: rgba(0255, 255, 255, 0.2);
  310. }
  311. &.unclickable {
  312. cursor: default;
  313. }
  314. &.unclickable:hover {
  315. background: inherit;
  316. }
  317. }
  318. .overflow-menu-item-icon {
  319. margin-right: 10px;
  320. i {
  321. display: inline;
  322. }
  323. i:hover {
  324. background-color: initial;
  325. }
  326. img {
  327. max-width: 18px;
  328. max-height: 18px;
  329. }
  330. }
  331. .profile-text {
  332. max-width: 150px;
  333. text-overflow: ellipsis;
  334. overflow: hidden;
  335. white-space: nowrap;
  336. }
  337. }
  338. .toolbox-button {
  339. color: $toolbarButtonColor;
  340. cursor: pointer;
  341. display: inline-block;
  342. font-size: $newToolbarFontSize;
  343. line-height: $newToolbarSize;
  344. margin: 0 10px;
  345. text-align: center;
  346. }
  347. .toolbar-button-with-badge {
  348. position: relative;
  349. .badge-round {
  350. bottom: 9px;
  351. position: absolute;
  352. right: 9px;
  353. }
  354. }
  355. .toolbox-button-wth-dialog {
  356. display: inline-block;
  357. }
  358. .toolbox-icon {
  359. height: $newToolbarSize;
  360. width: $newToolbarSize;
  361. }
  362. }
  363. .filmstrip-toolbox {
  364. background-color: $newToolbarBackgroundColor;
  365. box-sizing: border-box;
  366. display: flex;
  367. flex-direction: column;
  368. z-index: $toolbarZ;
  369. i {
  370. cursor: pointer;
  371. display: block;
  372. font-size: $newToolbarFontSize;
  373. height: 37px;
  374. line-height: 37px;
  375. width: 37px;
  376. }
  377. i:hover {
  378. background-color: $newToolbarButtonHoverColor;
  379. }
  380. i.toggled {
  381. background: $newToolbarButtonToggleColor;
  382. }
  383. i.toggled:hover {
  384. background-color: $newToolbarButtonHoverColor;
  385. }
  386. .icon-hangup {
  387. color: $hangupColor;
  388. }
  389. .toolbox-button {
  390. color: $toolbarButtonColor;
  391. cursor: pointer;
  392. text-align: center;
  393. }
  394. border-radius: 3px;
  395. .toolbox-button:first-child i {
  396. border-top-left-radius: 3px;
  397. border-top-right-radius: 3px;
  398. }
  399. .toolbox-button:last-child i {
  400. border-bottom-left-radius: 3px;
  401. border-bottom-right-radius: 3px;
  402. }
  403. }
  404. .filmstrip-only {
  405. .toolbox,
  406. .toolbox-toolbars {
  407. align-items: center;
  408. display: flex;
  409. }
  410. }
  411. .subject {
  412. background: linear-gradient(to bottom, rgba(255,255,255,.85) , rgba(255,255,255,.35));
  413. border-bottom-left-radius: 12px;
  414. border-bottom-right-radius: 12px;
  415. box-shadow: 0 0 2px #000000, 0 0 10px #000000;
  416. margin-left: 40%;
  417. margin-right: 40%;
  418. padding: 5px;
  419. position: relative;
  420. text-align: center;
  421. width: auto;
  422. z-index: $zindex3;
  423. &.subject_slide-in {
  424. top: 80px;
  425. @include transition(top .3s ease-in);
  426. }
  427. &.subject_slide-out {
  428. top: 0;
  429. @include transition(top .3s ease-out);
  430. }
  431. }
  432. #toolbar_button_profile {
  433. height: $toolbarAvatarSize + 2*$toolbarAvatarPadding;
  434. }
  435. a.button>#avatar {
  436. border-radius: 50%;
  437. padding-bottom: $toolbarAvatarPadding;
  438. padding-top: $toolbarAvatarPadding;
  439. width: $toolbarAvatarSize;
  440. }
  441. #feedbackButton {
  442. margin-top: auto;
  443. }
  444. /**
  445. * START of slide in animation for extended toolbar.
  446. */
  447. @include keyframes(slideInX) {
  448. 0% { transform: translateX(-100%); }
  449. 100% { transform: translateX(0%); }
  450. }
  451. .slideInX {
  452. @include animation('slideInX .5s forwards');
  453. }
  454. @include keyframes(slideOutX) {
  455. 0% { transform: translateX(0%); }
  456. 100% { transform: translateX(-100%); }
  457. }
  458. .slideOutX {
  459. @include animation('slideOutX .5s forwards');
  460. }
  461. @include keyframes(slideInExtX) {
  462. 0% { transform: translateX(-500%); }
  463. 100% { transform: translateX(0%); }
  464. }
  465. .slideInExtX {
  466. @include animation('slideInExtX .5s forwards');
  467. }
  468. @include keyframes(slideOutExtX) {
  469. 0% { transform: translateX(0%); }
  470. 100% { transform: translateX(-500%); }
  471. }
  472. .slideOutExtX {
  473. @include animation('slideOutExtX .5s forwards');
  474. }
  475. /**
  476. * END of slide out animation for extended toolbar.
  477. */
  478. /**
  479. * START of slide in / out animation for main toolbar.
  480. */
  481. @include keyframes(slideInY) {
  482. 100% { transform: translateY(0%); }
  483. }
  484. .slideInY {
  485. @include animation('slideInY .5s forwards');
  486. }
  487. @include keyframes(slideOutY) {
  488. 0% { transform: translateY(0%); }
  489. 100% { transform: translateY(-100%); }
  490. }
  491. .slideOutY {
  492. @include animation('slideOutY .5s forwards');
  493. }
  494. /**
  495. * END of slide in / out animation for main toolbar.
  496. */
  497. /**
  498. * START of slide in animation for extended toolbar panel.
  499. */
  500. @include keyframes(slideInExt) {
  501. from { width: 0px; }
  502. to { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  503. }
  504. .slideInExt {
  505. @include animation("slideInExt .5s forwards");
  506. }
  507. @include keyframes(slideOutExt) {
  508. from { width: $sidebarWidth; } // TO FIX: Make this value a percentage.
  509. to { width: 0px; }
  510. }
  511. .slideOutExt {
  512. @include animation("slideOutExt .5s forwards");
  513. }
  514. /**
  515. * START of fade in animation for main toolbar
  516. */
  517. .fadeIn {
  518. opacity: 1;
  519. @include transition(all .3s ease-in);
  520. }
  521. .fadeOut {
  522. opacity: 0;
  523. @include transition(all .3s ease-out);
  524. }