player.css 6.7 KB

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