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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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: relative;
  153. width: 100%;
  154. height: 100%;
  155. visibility: hidden;
  156. z-index: $zindex2;
  157. }
  158. &.audio-only {
  159. .videoThumbnailProblemFilter {
  160. filter: none;
  161. }
  162. }
  163. }
  164. #localVideoWrapper {
  165. display:inline-block;
  166. }
  167. .flipVideoX {
  168. transform: scale(-1, 1);
  169. -moz-transform: scale(-1, 1);
  170. -webkit-transform: scale(-1, 1);
  171. -o-transform: scale(-1, 1);
  172. }
  173. #localVideoWrapper video,
  174. #localVideoWrapper object {
  175. border-radius: $borderRadius !important;
  176. cursor: hand;
  177. object-fit: cover;
  178. }
  179. #largeVideo,
  180. #largeVideoWrapper,
  181. #largeVideoContainer {
  182. overflow: hidden;
  183. text-align: center;
  184. }
  185. #largeVideoContainer {
  186. height: 100%;
  187. width: 100%;
  188. }
  189. #largeVideoWrapper {
  190. box-shadow: 0 0 20px -2px #444;
  191. }
  192. #largeVideo,
  193. #largeVideoWrapper
  194. {
  195. object-fit: cover;
  196. }
  197. #sharedVideo,
  198. #etherpad,
  199. #localVideoWrapper video,
  200. #localVideoWrapper object,
  201. #localVideoWrapper,
  202. #largeVideoWrapper,
  203. #largeVideoWrapper>video,
  204. #largeVideoWrapper>object,
  205. .videocontainer>video,
  206. .videocontainer>object {
  207. position: absolute;
  208. left: 0;
  209. top: 0;
  210. z-index: $zindex1;
  211. width: 100%;
  212. height: 100%;
  213. }
  214. #etherpad {
  215. text-align: center;
  216. }
  217. #etherpad {
  218. z-index: $zindex0;
  219. }
  220. /**
  221. * Positions video thumbnail display name and editor.
  222. */
  223. #alwaysOnTop .displayname,
  224. .videocontainer .displayname,
  225. .videocontainer .editdisplayname {
  226. display: inline-block;
  227. position: absolute;
  228. left: 10%;
  229. width: 80%;
  230. top: 50%;
  231. @include transform(translateY(-40%));
  232. color: $participantNameColor;
  233. text-align: center;
  234. text-overflow: ellipsis;
  235. font-size: 12px;
  236. font-weight: 100;
  237. overflow: hidden;
  238. white-space: nowrap;
  239. line-height: $thumbnailToolbarHeight;
  240. z-index: $zindex2;
  241. }
  242. #alwaysOnTop .displayname {
  243. font-size: 15px;
  244. position: inherit;
  245. width: 100%;
  246. left: 0px;
  247. top: 0px;
  248. margin-top: 10px;
  249. }
  250. /**
  251. * Positions video thumbnail display name editor.
  252. */
  253. .videocontainer .editdisplayname {
  254. outline: none;
  255. border: none;
  256. background: none;
  257. box-shadow: none;
  258. padding: 0;
  259. }
  260. #localVideoContainer .displayname:hover {
  261. cursor: text;
  262. }
  263. .videocontainer .displayname {
  264. pointer-events: none;
  265. padding: 0 3px 0 3px;
  266. }
  267. .videocontainer .editdisplayname {
  268. height: auto;
  269. }
  270. #localDisplayName {
  271. pointer-events: auto !important;
  272. }
  273. .videocontainer>a.displayname {
  274. display: inline-block;
  275. position: absolute;
  276. color: #FFFFFF;
  277. bottom: 0;
  278. right: 0;
  279. padding: 3px 5px;
  280. font-size: 9pt;
  281. cursor: pointer;
  282. z-index: $zindex2;
  283. }
  284. /**
  285. * Video thumbnail toolbar icon.
  286. */
  287. .videocontainer .toolbar-icon {
  288. font-size: 8pt;
  289. text-align: center;
  290. text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
  291. color: #FFFFFF;
  292. width: 12px;
  293. line-height: $thumbnailToolbarHeight;
  294. height: $thumbnailToolbarHeight;
  295. padding: 0;
  296. border: 0;
  297. margin: 0px 5px 0px 0px;
  298. }
  299. /**
  300. * Toolbar icon internal i elements (font icons).
  301. */
  302. .toolbar-icon>div {
  303. height: $thumbnailToolbarHeight;
  304. display: flex;
  305. flex-direction: column;
  306. justify-content: center;
  307. }
  308. /**
  309. * Toolbar icons positioned on the right.
  310. */
  311. .moderator-icon {
  312. display: inline-block;
  313. &.right {
  314. float: right;
  315. margin: 0px 0px 0px 5px;
  316. }
  317. .toolbar-icon {
  318. margin: 0;
  319. }
  320. }
  321. .raisehandindicator {
  322. background: $raiseHandBg;
  323. }
  324. .connection-indicator {
  325. background: $connectionIndicatorBg;
  326. &.status-high {
  327. background: green;
  328. }
  329. &.status-med {
  330. background: #FFD740;
  331. }
  332. &.status-lost {
  333. background: gray;
  334. }
  335. &.status-low {
  336. background: #BF2117;
  337. }
  338. &.status-other {
  339. background: $connectionIndicatorBg;
  340. }
  341. }
  342. .remote-video-menu-trigger,
  343. .remotevideomenu
  344. {
  345. display: inline-block;
  346. position: absolute;
  347. top: 0px;
  348. right: 0;
  349. z-index: $zindex2;
  350. width: 18px;
  351. height: 13px;
  352. color: #FFF;
  353. font-size: 10pt;
  354. margin-right: $remoteVideoMenuIconMargin;
  355. >i{
  356. cursor: hand;
  357. }
  358. }
  359. .remote-video-menu-trigger {
  360. margin-top: 7px;
  361. }
  362. /**
  363. * Audio indicator on video thumbnails.
  364. */
  365. .videocontainer>span.audioindicator,
  366. .videocontainer>.audioindicator-container {
  367. position: absolute;
  368. display: inline-block;
  369. left: 6px;
  370. top: 50%;
  371. margin-top: -17px;
  372. width: 6px;
  373. height: 35px;
  374. z-index: $zindex2;
  375. border: none;
  376. .audiodot-top,
  377. .audiodot-bottom,
  378. .audiodot-middle {
  379. opacity: 0;
  380. display: inline-block;
  381. @include circle(5px);
  382. background: $audioLevelShadow;
  383. margin: 1px 0 1px 0;
  384. transition: opacity .25s ease-in-out;
  385. -moz-transition: opacity .25s ease-in-out;
  386. }
  387. span.audiodot-top::after,
  388. span.audiodot-bottom::after,
  389. span.audiodot-middle::after {
  390. content: "";
  391. display: inline-block;
  392. width: 5px;
  393. height: 5px;
  394. border-radius: 50%;
  395. -webkit-filter: blur(0.5px);
  396. filter: blur(0.5px);
  397. background: $audioLevelBg;
  398. }
  399. }
  400. #reloadPresentation {
  401. display: none;
  402. position: absolute;
  403. color: #FFFFFF;
  404. top: 0;
  405. right:0;
  406. padding: 10px 10px;
  407. font-size: 11pt;
  408. cursor: pointer;
  409. background: rgba(0, 0, 0, 0.3);
  410. border-radius: 5px;
  411. background-clip: padding-box;
  412. -webkit-border-radius: 5px;
  413. -webkit-background-clip: padding-box;
  414. z-index: $reloadZ; /*The reload button should appear on top of the header!*/
  415. }
  416. .audiolevel {
  417. display: inline-block;
  418. position: absolute;
  419. z-index: $zindex0;
  420. border-radius:1px;
  421. pointer-events: none;
  422. }
  423. #dominantSpeaker {
  424. visibility: hidden;
  425. width: 300px;
  426. height: 300px;
  427. margin: auto;
  428. position: relative;
  429. top: 50%;
  430. transform: translateY(-50%);
  431. }
  432. #mixedstream {
  433. display:none !important;
  434. }
  435. #dominantSpeakerAvatarContainer,
  436. .dynamic-shadow {
  437. width: 200px;
  438. height: 200px;
  439. }
  440. #dominantSpeakerAvatarContainer {
  441. top: 50px;
  442. margin: auto;
  443. position: relative;
  444. overflow: hidden;
  445. visibility: inherit;
  446. }
  447. .dynamic-shadow {
  448. border-radius: 50%;
  449. position: absolute;
  450. top: 50%;
  451. left: 50%;
  452. margin: -100px 0 0 -100px;
  453. transition: box-shadow 0.3s ease;
  454. }
  455. .avatar-container {
  456. @include maxSize(60px);
  457. @include absoluteAligning();
  458. display: flex;
  459. justify-content: center;
  460. height: 50%;
  461. overflow: hidden;
  462. width: auto;
  463. .userAvatar {
  464. height: 100%;
  465. object-fit: cover;
  466. width: 100%;
  467. }
  468. }
  469. #videoNotAvailableScreen {
  470. text-align: center;
  471. #avatarContainer {
  472. border-radius: 50%;
  473. display: inline-block;
  474. height: 50vh;
  475. margin-top: 25vh;
  476. overflow: hidden;
  477. width: 50vh;
  478. #avatar {
  479. height: 100%;
  480. object-fit: cover;
  481. width: 100%;
  482. }
  483. }
  484. }
  485. .sharedVideoAvatar {
  486. height: 100%;
  487. width: 100%;
  488. object-fit: cover;
  489. }
  490. .videoMessageFilter {
  491. -webkit-filter: grayscale(.5) opacity(0.8);
  492. filter: grayscale(.5) opacity(0.8);
  493. }
  494. .remoteVideoProblemFilter {
  495. -webkit-filter: grayscale(100%);
  496. filter: grayscale(100%);
  497. }
  498. .videoProblemFilter {
  499. -webkit-filter: blur(10px) grayscale(.5) opacity(0.8);
  500. filter: blur(10px) grayscale(.5) opacity(0.8);
  501. }
  502. .videoThumbnailProblemFilter {
  503. -webkit-filter: grayscale(100%);
  504. filter: grayscale(100%);
  505. }
  506. #remotePresenceMessage,
  507. #remoteConnectionMessage {
  508. position: absolute;
  509. width: auto;
  510. z-index: $zindex2;
  511. font-weight: 600;
  512. font-size: 14px;
  513. text-align: center;
  514. color: #FFF;
  515. left: 50%;
  516. transform: translate(-50%, 0);
  517. }
  518. #remotePresenceMessage .presence-label,
  519. #remoteConnectionMessage {
  520. opacity: .80;
  521. text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
  522. 0px 1px 1px rgba(0,0,0,0.3),
  523. 1px 0px 1px rgba(0,0,0,0.3),
  524. 0px 0px 1px rgba(0,0,0,0.3);
  525. background: rgba(0,0,0,.5);
  526. border-radius: 5px;
  527. padding: 5px;
  528. padding-left: 10px;
  529. padding-right: 10px;
  530. }
  531. #remoteConnectionMessage {
  532. display: none;
  533. }
  534. #localConnectionMessage {
  535. display: none;
  536. position: absolute;
  537. left: 0;
  538. width: 100%;
  539. top:50%;
  540. z-index: $zindex2;
  541. font-weight: 600;
  542. font-size: 14px;
  543. text-align: center;
  544. color: #FFF;
  545. opacity: .80;
  546. text-shadow: 0px 0px 1px rgba(0,0,0,0.3),
  547. 0px 1px 1px rgba(0,0,0,0.3),
  548. 1px 0px 1px rgba(0,0,0,0.3),
  549. 0px 0px 1px rgba(0,0,0,0.3);
  550. }
  551. .display-avatar-with-name {
  552. .avatar-container {
  553. visibility: visible;
  554. }
  555. .displayNameContainer {
  556. visibility: visible;
  557. }
  558. .videocontainer__hoverOverlay {
  559. visibility: visible;
  560. }
  561. video {
  562. visibility: hidden;
  563. }
  564. }
  565. .display-name-on-black {
  566. .avatar-container {
  567. visibility: hidden;
  568. }
  569. .displayNameContainer {
  570. visibility: visible;
  571. }
  572. .videocontainer__hoverOverlay {
  573. visibility: hidden;
  574. }
  575. video {
  576. opacity: 0.2;
  577. visibility: visible;
  578. }
  579. }
  580. .display-video {
  581. .avatar-container {
  582. visibility: hidden;
  583. }
  584. .displayNameContainer {
  585. visibility: hidden;
  586. }
  587. .videocontainer__hoverOverlay {
  588. visibility: hidden;
  589. }
  590. video {
  591. visibility: visible;
  592. }
  593. }
  594. .display-name-on-video {
  595. .avatar-container {
  596. visibility: hidden;
  597. }
  598. .displayNameContainer {
  599. visibility: visible;
  600. }
  601. .videocontainer__hoverOverlay {
  602. visibility: visible;
  603. }
  604. video {
  605. visibility: visible;
  606. }
  607. }
  608. .display-avatar-only {
  609. .avatar-container {
  610. visibility: visible;
  611. }
  612. .displayNameContainer {
  613. visibility: hidden;
  614. }
  615. .videocontainer__hoverOverlay {
  616. visibility: hidden;
  617. }
  618. video {
  619. visibility: hidden;
  620. }
  621. }
  622. .presence-label {
  623. color: $participantNameColor;
  624. font-size: 12px;
  625. font-weight: 100;
  626. left: 0;
  627. margin: 0 auto;
  628. overflow: hidden;
  629. pointer-events: none;
  630. right: 0;
  631. text-align: center;
  632. text-overflow: ellipsis;
  633. top: calc(50% + 30px);
  634. white-space: nowrap;
  635. width: 100%;
  636. }