選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

_toolbars.scss 14KB

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