player.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. /*Copyright Epic Games, Inc. All Rights Reserved.*/
  2. :root {
  3. /*Using colour scheme https://color.adobe.com/TD-Colors---Option-3-color-theme-10394433/*/
  4. --colour1: #2B3A42;
  5. --colour2: #3F5765;
  6. --colour3: #BDD4DE;
  7. --colour4: #EFEFEF;
  8. --colour5: #FF5035;
  9. --buttonFont: Helvetica;
  10. --inputFont: Helvetica;
  11. }
  12. body {
  13. margin: 0px;
  14. background-color: black;
  15. }
  16. #playerUI {
  17. width: 100%;
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. z-index: 10;
  22. }
  23. .statsContainer {
  24. background-color: rgba(0, 0, 0, 0.8);
  25. text-align: left;
  26. display: block;
  27. margin-top: 5px;
  28. }
  29. .stats {
  30. font-size: 14px;
  31. font-weight: bold;
  32. padding: 6px;
  33. color: lime;
  34. }
  35. canvas {
  36. image-rendering: crisp-edges;
  37. position: absolute;
  38. }
  39. video {
  40. position: absolute;
  41. width: 100%;
  42. height: 100%;
  43. }
  44. #player {}
  45. #overlay {
  46. -moz-border-radius-bottomright: 5px;
  47. -moz-border-radius-bottomleft: 5px;
  48. -webkit-border-bottom-right-radius: 5px;
  49. -webkit-border-bottom-left-radius: 5px;
  50. border-bottom-right-radius: 5px;
  51. /* future proofing */
  52. border-bottom-left-radius: 5px;
  53. /* future proofing */
  54. -khtml-border-bottom-right-radius: 5px;
  55. /* for old Konqueror browsers */
  56. -khtml-border-bottom-left-radius: 5px;
  57. /* for old Konqueror browsers */
  58. -webkit-touch-callout: none;
  59. /* iOS Safari */
  60. -webkit-user-select: none;
  61. /* Safari */
  62. -khtml-user-select: none;
  63. /* Konqueror HTML */
  64. -moz-user-select: none;
  65. /* Firefox */
  66. -ms-user-select: none;
  67. /* Internet Explorer/Edge */
  68. user-select: none;
  69. /* Non-prefixed version, currently
  70. supported by Chrome and Opera */
  71. position: absolute;
  72. padding: 4px;
  73. top: 0;
  74. right: 2%;
  75. z-index: 100;
  76. border: 2px solid var(--colour4);
  77. border-top-width: 0px;
  78. }
  79. .overlay {
  80. background-color: var(--colour2);
  81. font-family: var(--buttonFont);
  82. font-weight: lighter;
  83. color: var(--colour4);
  84. }
  85. .overlay-shown>#overlaySettings {
  86. padding: 50px 4px 4px 4px;
  87. display: block;
  88. }
  89. .overlay-shown>div>#overlayButton {
  90. transform: rotate(-135deg);
  91. -webkit-transform: rotate(-135deg);
  92. /* Safari */
  93. -moz-transform: rotate(-135deg);
  94. /* Firefox */
  95. -ms-transform: rotate(-135deg);
  96. /* IE */
  97. -o-transform: rotate(-135deg);
  98. /* Opera */
  99. }
  100. #overlayButton:hover {
  101. cursor: pointer;
  102. }
  103. #overlayButton {
  104. transition-duration: 250ms;
  105. float: right;
  106. text-align: right;
  107. font-size: 40px;
  108. }
  109. #qualityStatus {
  110. float: left;
  111. font-size: 37px;
  112. padding-right: 4px;
  113. }
  114. #overlaySettings {
  115. width: 400px;
  116. display: none;
  117. }
  118. .greyStatus {
  119. color: grey;
  120. }
  121. .limeStatus {
  122. color: lime;
  123. }
  124. .orangeStatus {
  125. color: orange;
  126. }
  127. .redStatus {
  128. color: red;
  129. }
  130. #videoMessageOverlay {
  131. z-index: 20;
  132. color: var(--colour4);
  133. ;
  134. font-size: 1.8em;
  135. position: absolute;
  136. margin: auto;
  137. font-family: var(--inputFont);
  138. ;
  139. width: 100%;
  140. }
  141. #videoPlayOverlay {
  142. z-index: 30;
  143. position: absolute;
  144. color: var(--colour4);
  145. font-size: 1.8em;
  146. font-family: var(--inputFont);
  147. width: 100%;
  148. height: 100%;
  149. background-color: rgba(100, 100, 100, 0.7);
  150. }
  151. /* State for element to be clickable */
  152. .clickableState {
  153. align-items: center;
  154. justify-content: center;
  155. display: flex;
  156. cursor: pointer;
  157. }
  158. /* State for element to show text, this is for informational use*/
  159. .textDisplayState {
  160. display: flex;
  161. }
  162. /* State to hide overlay, WebRTC communication is in progress and or is playing */
  163. .hiddenState {
  164. display: none;
  165. }
  166. #playButton {
  167. display: inline-block;
  168. height: auto;
  169. }
  170. img#playButton {
  171. max-width: 241px;
  172. width: 10%;
  173. }
  174. #UIInteraction {
  175. position: fixed;
  176. }
  177. #UIInteractionButtonBoundary {
  178. padding: 2px;
  179. }
  180. #UIInteractionButton {
  181. cursor: pointer;
  182. }
  183. #hiddenInput {
  184. position: absolute;
  185. left: -10%;
  186. /* Although invisible, push off-screen to prevent user interaction. */
  187. width: 0px;
  188. opacity: 0;
  189. }
  190. #editTextButton {
  191. position: absolute;
  192. height: 40px;
  193. width: 40px;
  194. }
  195. .settings-text {
  196. color: var(--colour4);
  197. vertical-align: middle;
  198. font-size: 18px;
  199. font-weight: normal;
  200. display: inline-block;
  201. }
  202. .overlay-button {
  203. line-height: 1.1;
  204. padding: 1px 6px;
  205. }
  206. .btn-overlay {
  207. float: right;
  208. vertical-align: middle;
  209. display: inline-block;
  210. }
  211. .btn-flat {
  212. background: var(--colour4);
  213. border: 2px solid var(--colour5);
  214. font-weight: bold;
  215. cursor: pointer;
  216. font-family: var(--buttonFont);
  217. font-size: 10px;
  218. color: var(--colour5);
  219. border-radius: 5px;
  220. height: 20px;
  221. }
  222. .btn-flat:disabled {
  223. background: var(--colour4);
  224. border-color: var(--colour3);
  225. color: var(--colour3);
  226. cursor: default;
  227. }
  228. .btn-flat:active {
  229. border-color: var(--colour2);
  230. color: var(--colour2);
  231. }
  232. .btn-flat:focus {
  233. outline: none;
  234. }
  235. /*** Toggle Switch styles ***/
  236. .tgl-switch {
  237. float: right;
  238. vertical-align: middle;
  239. display: inline-block;
  240. }
  241. .tgl-switch .tgl {
  242. display: none;
  243. }
  244. .tgl,
  245. .tgl:after,
  246. .tgl:before,
  247. .tgl *,
  248. .tgl *:after,
  249. .tgl *:before,
  250. .tgl+.tgl-slider {
  251. -webkit-box-sizing: border-box;
  252. box-sizing: border-box;
  253. }
  254. .tgl::-moz-selection,
  255. .tgl:after::-moz-selection,
  256. .tgl:before::-moz-selection,
  257. .tgl *::-moz-selection,
  258. .tgl *:after::-moz-selection,
  259. .tgl *:before::-moz-selection,
  260. .tgl+.tgl-slider::-moz-selection {
  261. background: none;
  262. }
  263. .tgl::selection,
  264. .tgl:after::selection,
  265. .tgl:before::selection,
  266. .tgl *::selection,
  267. .tgl *:after::selection,
  268. .tgl *:before::selection,
  269. .tgl+.tgl-slider::selection {
  270. background: none;
  271. }
  272. .tgl-slider {
  273. float: right;
  274. }
  275. .tgl+.tgl-slider {
  276. outline: 0;
  277. display: block;
  278. width: 40px;
  279. height: 18px;
  280. position: relative;
  281. cursor: pointer;
  282. -webkit-user-select: none;
  283. -moz-user-select: none;
  284. -ms-user-select: none;
  285. user-select: none;
  286. }
  287. .tgl+.tgl-slider:after,
  288. .tgl+.tgl-slider:before {
  289. position: relative;
  290. display: block;
  291. content: "";
  292. width: 50%;
  293. height: 100%;
  294. }
  295. .tgl+.tgl-slider:after {
  296. left: 0;
  297. }
  298. .tgl+.tgl-slider:before {
  299. display: none;
  300. }
  301. .tgl-flat+.tgl-slider {
  302. padding: 2px;
  303. -webkit-transition: all .2s ease;
  304. transition: all .2s ease;
  305. background: #fff;
  306. border: 3px solid var(--colour4);
  307. border-radius: 2em;
  308. }
  309. .tgl-flat+.tgl-slider:after {
  310. -webkit-transition: all .2s ease;
  311. transition: all .2s ease;
  312. background: var(--colour4);
  313. content: "";
  314. border-radius: 1em;
  315. }
  316. .tgl-flat:checked+.tgl-slider {
  317. border: 3px solid var(--colour5);
  318. }
  319. .tgl-flat:checked+.tgl-slider:after {
  320. left: 50%;
  321. background: var(--colour5);
  322. }
  323. /*** Toggle Switch styles ***/
  324. #encoderSettings,
  325. #webRTCSettings {
  326. margin: 10px 0px;
  327. }
  328. #encoderParamsContainer,
  329. #webrtcParamsContainer {
  330. padding-left: 5%;
  331. }
  332. #encoder-params-submit {
  333. float: right;
  334. }
  335. #webrtc-params-submit {
  336. float: right;
  337. }
  338. select {
  339. text-align: right;
  340. }
  341. .form-group {
  342. display: grid;
  343. grid-template-columns: 50% 50%;
  344. }
  345. .form-group label {
  346. color: var(--colour4);
  347. vertical-align: middle;
  348. font-size: 18px;
  349. font-weight: normal;
  350. }
  351. #latencyTest {
  352. display: block;
  353. }
  354. #latencyTest button {
  355. margin: 30px 0px;
  356. }
  357. #freezeFrameOverlay {
  358. background-color: transparent;
  359. }
  360. .freezeframeBackground {
  361. background-color: #000 !important;
  362. }