Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_videolayout_default.scss 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. #videoconference_page {
  2. min-height: 100%;
  3. }
  4. #videospace {
  5. display: block;
  6. height: 100%;
  7. width: 100%;
  8. min-height: 100%;
  9. position: absolute;
  10. top: 0px;
  11. left: 0px;
  12. right: 0px;
  13. overflow: hidden;
  14. }
  15. #largeVideoBackgroundContainer,
  16. .large-video-background {
  17. height: 100%;
  18. left: 0;
  19. overflow: hidden;
  20. position: absolute;
  21. top: 0;
  22. width: 100%;
  23. #largeVideoBackground {
  24. min-height: 100%;
  25. min-width: 100%;
  26. }
  27. }
  28. #largeVideoBackgroundContainer {
  29. filter: blur(40px);
  30. }
  31. .videocontainer {
  32. position: relative;
  33. text-align: center;
  34. &__background {
  35. @include topLeft();
  36. background-color: black;
  37. border-radius: $borderRadius;
  38. width: 100%;
  39. height: 100%;
  40. }
  41. /**
  42. * The toolbar of the video thumbnail.
  43. */
  44. &__toolbar,
  45. &__toptoolbar {
  46. position: absolute;
  47. left: 0;
  48. pointer-events: none;
  49. z-index: $zindex10;
  50. width: 100%;
  51. box-sizing: border-box; // Includes the padding in the 100% width.
  52. /**
  53. * FIXME (lenny): Disabling pointer-events is a pretty big sin that
  54. * sidesteps the problems. There are z-index wars occurring within
  55. * videocontainer and AtlasKit Tooltips rely on their parent z-indexe
  56. * being higher than whatever they need to appear over. So set a higher
  57. * z-index for the tooltip containers but make any empty space not block
  58. * mouse overs for various mouseover triggers.
  59. */
  60. pointer-events: none;
  61. * {
  62. pointer-events: auto;
  63. }
  64. .indicator-container {
  65. display: inline-block;
  66. float: left;
  67. pointer-events: all;
  68. }
  69. }
  70. &__toolbar {
  71. bottom: 0;
  72. height: $thumbnailToolbarHeight;
  73. padding: 0 5px 0 5px;
  74. }
  75. &__toptoolbar {
  76. $toolbarIconMargin: 5px;
  77. top: 0;
  78. padding-bottom: 0;
  79. /**
  80. * Override text-align center as icons need to be left justified.
  81. */
  82. text-align: left;
  83. /**
  84. * Intentionally use margin on the icon itself as AtlasKit InlineDialog
  85. * positioning depends on the trigger (indicator icon).
  86. */
  87. .indicator {
  88. margin-left: 5px;
  89. margin-top: $toolbarIconMargin;
  90. }
  91. .indicator-container:nth-child(1) .indicator {
  92. margin-left: $toolbarIconMargin;
  93. }
  94. .indicator-container {
  95. display: inline-block;
  96. vertical-align: top;
  97. .popover-trigger {
  98. display: inline-block;
  99. }
  100. }
  101. .connection-indicator,
  102. .indicator {
  103. position: relative;
  104. font-size: 8px;
  105. text-align: center;
  106. line-height: $thumbnailIndicatorSize;
  107. padding: 0;
  108. @include circle($thumbnailIndicatorSize);
  109. box-sizing: border-box;
  110. z-index: $zindex3;
  111. background: $dominantSpeakerBg;
  112. color: $thumbnailPictogramColor;
  113. border: $thumbnailIndicatorBorder solid $thumbnailPictogramColor;
  114. .indicatoricon {
  115. @include absoluteAligning();
  116. }
  117. .connection {
  118. position: relative;
  119. display: inline-block;
  120. margin: 0 auto;
  121. left: 0;
  122. @include transform(translate(0, -50%));
  123. &_empty,
  124. &_lost
  125. {
  126. color: #8B8B8B;/*#FFFFFF*/
  127. overflow: hidden;
  128. }
  129. &_full
  130. {
  131. @include topLeft();
  132. color: #FFFFFF;/*#15A1ED*/
  133. overflow: hidden;
  134. }
  135. &_ninja
  136. {
  137. font-size: 1.5em;
  138. }
  139. }
  140. .icon-gsm-bars {
  141. cursor: pointer;
  142. font-size: 1em;
  143. }
  144. }
  145. .hide-connection-indicator {
  146. display: none;
  147. }
  148. }
  149. &__hoverOverlay {
  150. background: rgba(0,0,0,.6);
  151. border-radius: $borderRadius;
  152. position: absolute;
  153. top: 0px;
  154. left: 0px;
  155. width: 100%;
  156. height: 100%;
  157. visibility: hidden;
  158. z-index: $zindex2;
  159. }
  160. &.audio-only {
  161. .videoThumbnailProblemFilter {
  162. filter: none;
  163. }
  164. }
  165. }
  166. #localVideoWrapper {
  167. display:inline-block;
  168. }
  169. .flipVideoX {
  170. transform: scale(-1, 1);
  171. -moz-transform: scale(-1, 1);
  172. -webkit-transform: scale(-1, 1);
  173. -o-transform: scale(-1, 1);
  174. }
  175. #localVideoWrapper video,
  176. #localVideoWrapper object {
  177. border-radius: $borderRadius !important;
  178. cursor: hand;
  179. object-fit: cover;
  180. }
  181. #largeVideo,
  182. #largeVideoWrapper,
  183. #largeVideoContainer {
  184. overflow: hidden;
  185. text-align: center;
  186. }
  187. #largeVideoContainer {
  188. height: 100%;
  189. width: 100%;
  190. }
  191. #largeVideoWrapper {
  192. box-shadow: 0 0 20px -2px #444;
  193. }
  194. #largeVideo,
  195. #largeVideoWrapper
  196. {
  197. object-fit: cover;
  198. }
  199. #sharedVideo,
  200. #etherpad,
  201. #localVideoWrapper video,
  202. #localVideoWrapper object,
  203. #localVideoWrapper,
  204. #largeVideoWrapper,
  205. #largeVideoWrapper>video,
  206. #largeVideoWrapper>object,
  207. .videocontainer>video,
  208. .videocontainer>object {
  209. position: absolute;
  210. left: 0;
  211. top: 0;
  212. z-index: $zindex1;
  213. width: 100%;
  214. height: 100%;
  215. }
  216. #etherpad {
  217. text-align: center;
  218. }
  219. #etherpad {
  220. z-index: $zindex0;
  221. }
  222. /**
  223. * Positions video thumbnail display name and editor.
  224. */
  225. #alwaysOnTop .displayname,
  226. .videocontainer .displayname,
  227. .videocontainer .editdisplayname {
  228. display: inline-block;
  229. position: absolute;
  230. left: 10%;
  231. width: 80%;
  232. top: 50%;
  233. @include transform(translateY(-40%));
  234. color: $participantNameColor;
  235. text-align: center;
  236. text-overflow: ellipsis;
  237. font-size: 12px;
  238. font-weight: 100;
  239. overflow: hidden;
  240. white-space: nowrap;
  241. line-height: $thumbnailToolbarHeight;
  242. z-index: $zindex2;
  243. }
  244. #alwaysOnTop .displayname {
  245. font-size: 15px;
  246. position: inherit;
  247. width: 100%;
  248. left: 0px;
  249. top: 0px;
  250. margin-top: 10px;
  251. }
  252. /**
  253. * Positions video thumbnail display name editor.
  254. */
  255. .videocontainer .editdisplayname {
  256. outline: none;
  257. border: none;
  258. background: none;
  259. box-shadow: none;
  260. padding: 0;
  261. }
  262. #localVideoContainer .displayname:hover {
  263. cursor: text;
  264. }
  265. .videocontainer .displayname {
  266. pointer-events: none;
  267. padding: 0 3px 0 3px;
  268. }
  269. .videocontainer .editdisplayname {
  270. height: auto;
  271. }
  272. #localDisplayName {
  273. pointer-events: auto !important;
  274. }
  275. .videocontainer>a.displayname {
  276. display: inline-block;
  277. position: absolute;
  278. color: #FFFFFF;
  279. bottom: 0;
  280. right: 0;
  281. padding: 3px 5px;
  282. font-size: 9pt;
  283. cursor: pointer;
  284. z-index: $zindex2;
  285. }
  286. /**
  287. * Video thumbnail toolbar icon.
  288. */
  289. .videocontainer .toolbar-icon {
  290. font-size: 8pt;
  291. text-align: center;
  292. text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
  293. color: #FFFFFF;
  294. width: 12px;
  295. line-height: $thumbnailToolbarHeight;
  296. height: $thumbnailToolbarHeight;
  297. padding: 0;
  298. border: 0;
  299. margin: 0px 5px 0px 0px;
  300. }
  301. /**
  302. * Toolbar icon internal i elements (font icons).
  303. */
  304. .toolbar-icon>div {
  305. height: $thumbnailToolbarHeight;
  306. display: flex;
  307. flex-direction: column;
  308. justify-content: center;
  309. }
  310. /**
  311. * Toolbar icons positioned on the right.
  312. */
  313. .moderator-icon {
  314. display: inline-block;
  315. &.right {
  316. float: right;
  317. margin: 0px 0px 0px 5px;
  318. }
  319. .toolbar-icon {
  320. margin: 0;
  321. }
  322. }
  323. .raisehandindicator {
  324. background: $raiseHandBg;
  325. }
  326. .connection-indicator {
  327. background: $connectionIndicatorBg;
  328. &.status-high {
  329. background: green;
  330. }
  331. &.status-med {
  332. background: #FFD740;
  333. }
  334. &.status-lost {
  335. background: gray;
  336. }
  337. &.status-low {
  338. background: #BF2117;
  339. }
  340. &.status-other {
  341. background: $connectionIndicatorBg;
  342. }
  343. }
  344. .remote-video-menu-trigger,
  345. .remotevideomenu
  346. {
  347. display: inline-block;
  348. position: absolute;
  349. top: 0px;
  350. right: 0;
  351. z-index: $zindex2;
  352. width: 18px;
  353. height: 13px;
  354. color: #FFF;
  355. font-size: 10pt;
  356. margin-right: $remoteVideoMenuIconMargin;
  357. >i{
  358. cursor: hand;
  359. }
  360. }
  361. .remote-video-menu-trigger {
  362. margin-top: 7px;
  363. }
  364. /**
  365. * Audio indicator on video thumbnails.
  366. */
  367. .videocontainer>span.audioindicator,
  368. .videocontainer>.audioindicator-container {
  369. position: absolute;
  370. display: inline-block;
  371. left: 6px;
  372. top: 50%;
  373. margin-top: -17px;
  374. width: 6px;
  375. height: 35px;
  376. z-index: $zindex2;
  377. border: none;
  378. .audiodot-top,
  379. .audiodot-bottom,
  380. .audiodot-middle {
  381. opacity: 0;
  382. display: inline-block;
  383. @include circle(5px);
  384. background: $audioLevelShadow;
  385. margin: 1px 0 1px 0;
  386. transition: opacity .25s ease-in-out;
  387. -moz-transition: opacity .25s ease-in-out;
  388. }
  389. span.audiodot-top::after,
  390. span.audiodot-bottom::after,
  391. span.audiodot-middle::after {
  392. content: "";
  393. display: inline-block;
  394. width: 5px;
  395. height: 5px;
  396. border-radius: 50%;
  397. -webkit-filter: blur(0.5px);
  398. filter: blur(0.5px);
  399. background: $audioLevelBg;
  400. }
  401. }
  402. #reloadPresentation {
  403. display: none;
  404. position: absolute;
  405. color: #FFFFFF;
  406. top: 0;
  407. right:0;
  408. padding: 10px 10px;
  409. font-size: 11pt;
  410. cursor: pointer;
  411. background: rgba(0, 0, 0, 0.3);
  412. border-radius: 5px;
  413. background-clip: padding-box;
  414. -webkit-border-radius: 5px;
  415. -webkit-background-clip: padding-box;
  416. z-index: $reloadZ; /*The reload button should appear on top of the header!*/
  417. }
  418. .audiolevel {
  419. display: inline-block;
  420. position: absolute;
  421. z-index: $zindex0;
  422. border-radius:1px;
  423. pointer-events: none;
  424. }
  425. #dominantSpeaker {
  426. visibility: hidden;
  427. width: 300px;
  428. height: 300px;
  429. margin: auto;
  430. position: relative;
  431. top: 50%;
  432. transform: translateY(-50%);
  433. }
  434. #mixedstream {
  435. display:none !important;
  436. }
  437. #dominantSpeakerAvatarContainer,
  438. .dynamic-shadow {
  439. width: 200px;
  440. height: 200px;
  441. }
  442. #dominantSpeakerAvatarContainer {
  443. top: 50px;
  444. margin: auto;
  445. position: relative;
  446. overflow: hidden;
  447. visibility: inherit;
  448. }
  449. .dynamic-shadow {
  450. border-radius: 50%;
  451. position: absolute;
  452. top: 50%;
  453. left: 50%;
  454. margin: -100px 0 0 -100px;
  455. transition: box-shadow 0.3s ease;
  456. }
  457. .avatar-container {
  458. @include maxSize(60px);
  459. @include absoluteAligning();
  460. display: flex;
  461. justify-content: center;
  462. height: 50%;
  463. width: auto;
  464. overflow: hidden;
  465. .userAvatar {
  466. height: 100%;
  467. object-fit: cover;
  468. width: 100%;
  469. top: 0px;
  470. left: 0px;
  471. position: absolute;
  472. }
  473. }
  474. #videoNotAvailableScreen {
  475. text-align: center;
  476. #avatarContainer {
  477. border-radius: 50%;
  478. display: inline-block;
  479. height: 50vh;
  480. margin-top: 25vh;
  481. overflow: hidden;
  482. width: 50vh;
  483. #avatar {
  484. height: 100%;
  485. object-fit: cover;
  486. width: 100%;
  487. }
  488. }
  489. }
  490. .sharedVideoAvatar {
  491. position: absolute;
  492. left: 0px;
  493. top: 0px;
  494. height: 100%;
  495. width: 100%;
  496. object-fit: cover;
  497. }
  498. .videoMessageFilter {
  499. -webkit-filter: grayscale(.5) opacity(0.8);
  500. filter: grayscale(.5) opacity(0.8);
  501. }
  502. .remoteVideoProblemFilter {
  503. -webkit-filter: grayscale(100%);
  504. filter: grayscale(100%);
  505. }
  506. .videoProblemFilter {
  507. -webkit-filter: blur(10px) grayscale(.5) opacity(0.8);
  508. filter: blur(10px) grayscale(.5) opacity(0.8);
  509. }
  510. .videoThumbnailProblemFilter {
  511. -webkit-filter: grayscale(100%);
  512. filter: grayscale(100%);
  513. }
  514. #remotePresenceMessage,
  515. #remoteConnectionMessage {
  516. position: absolute;
  517. width: auto;
  518. z-index: $zindex2;
  519. font-weight: 600;
  520. font-size: 14px;
  521. text-align: center;
  522. color: #FFF;
  523. left: 50%;
  524. transform: translate(-50%, 0);
  525. }
  526. #remotePresenceMessage .presence-label,
  527. #remoteConnectionMessage {
  528. opacity: .80;
  529. text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
  530. 0px 1px 1px rgba(0,0,0,0.3),
  531. 1px 0px 1px rgba(0,0,0,0.3),
  532. 0px 0px 1px rgba(0,0,0,0.3);
  533. background: rgba(0,0,0,.5);
  534. border-radius: 5px;
  535. padding: 5px;
  536. padding-left: 10px;
  537. padding-right: 10px;
  538. }
  539. #remoteConnectionMessage {
  540. display: none;
  541. }
  542. #localConnectionMessage {
  543. display: none;
  544. position: absolute;
  545. left: 0;
  546. width: 100%;
  547. top:50%;
  548. z-index: $zindex2;
  549. font-weight: 600;
  550. font-size: 14px;
  551. text-align: center;
  552. color: #FFF;
  553. opacity: .80;
  554. text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
  555. 0px 1px 1px rgba(0,0,0,0.3),
  556. 1px 0px 1px rgba(0,0,0,0.3),
  557. 0px 0px 1px rgba(0,0,0,0.3);
  558. }
  559. .display-avatar-with-name {
  560. .avatar-container {
  561. visibility: visible;
  562. }
  563. .displayNameContainer {
  564. visibility: visible;
  565. }
  566. .videocontainer__hoverOverlay {
  567. visibility: visible;
  568. }
  569. video {
  570. visibility: hidden;
  571. }
  572. }
  573. .display-name-on-black {
  574. .avatar-container {
  575. visibility: hidden;
  576. }
  577. .displayNameContainer {
  578. visibility: visible;
  579. }
  580. .videocontainer__hoverOverlay {
  581. visibility: hidden;
  582. }
  583. video {
  584. opacity: 0.2;
  585. visibility: visible;
  586. }
  587. }
  588. .display-video {
  589. .avatar-container {
  590. visibility: hidden;
  591. }
  592. .displayNameContainer {
  593. visibility: hidden;
  594. }
  595. .videocontainer__hoverOverlay {
  596. visibility: hidden;
  597. }
  598. video {
  599. visibility: visible;
  600. }
  601. }
  602. .display-name-on-video {
  603. .avatar-container {
  604. visibility: hidden;
  605. }
  606. .displayNameContainer {
  607. visibility: visible;
  608. }
  609. .videocontainer__hoverOverlay {
  610. visibility: visible;
  611. }
  612. video {
  613. visibility: visible;
  614. }
  615. }
  616. .display-avatar-only {
  617. .avatar-container {
  618. visibility: visible;
  619. }
  620. .displayNameContainer {
  621. visibility: hidden;
  622. }
  623. .videocontainer__hoverOverlay {
  624. visibility: hidden;
  625. }
  626. video {
  627. visibility: hidden;
  628. }
  629. }
  630. .presence-label {
  631. color: $participantNameColor;
  632. font-size: 12px;
  633. font-weight: 100;
  634. left: 0;
  635. margin: 0 auto;
  636. overflow: hidden;
  637. pointer-events: none;
  638. right: 0;
  639. text-align: center;
  640. text-overflow: ellipsis;
  641. top: calc(50% + 30px);
  642. white-space: nowrap;
  643. width: 100%;
  644. }