playerControl.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. .player-control {
  2. min-width: 640px;
  3. position: relative;
  4. margin: auto;
  5. width: 65%;
  6. background: #2a2a2a;
  7. box-sizing: border-box;
  8. border-radius: 5px;
  9. height: 80px;
  10. -moz-box-sizing: border-box;
  11. font-family: Arial, sans-serif;
  12. padding: 0;
  13. z-index: 2;
  14. opacity: 1;
  15. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  16. -webkit-transition: opacity 0.3s ease-in;
  17. transition: opacity 0.3s ease-in;
  18. -moz-user-select: none;
  19. -webkit-user-select: none;
  20. user-select: none;
  21. cursor: default;
  22. }
  23. .player-control .progress {
  24. width: 80%;
  25. height: 8px;
  26. border-radius: 5px;
  27. background: #676767;
  28. box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.1);
  29. float: left;
  30. cursor: pointer;
  31. top: 50%;
  32. margin-top: -4px;
  33. padding: 0;
  34. position: relative;
  35. }
  36. .player-control .progress-bar {
  37. background: #fff;
  38. box-shadow: inset -30px 0px 69px -20px #89f6f5;
  39. border-radius: 5px;
  40. height: 100%;
  41. position: relative;
  42. z-index: 999;
  43. width: 0;
  44. }
  45. .player-control .button-holder {
  46. position: relative;
  47. left: 10px;
  48. }
  49. .player-control .progress-button {
  50. top: -3px;
  51. background: #fff;
  52. box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  53. border-radius: 30px;
  54. width: 6px;
  55. height: 15px;
  56. position: absolute;
  57. left: -1px;
  58. text-decoration: overline;
  59. }
  60. .player-control [class^="buffered"] {
  61. background: rgba(255, 255, 255, 0.1);
  62. position: absolute;
  63. top: 0;
  64. left: 30px;
  65. height: 100%;
  66. border-radius: 5px;
  67. z-index: 1;
  68. }
  69. .player-control .play-pause {
  70. display: inline-block;
  71. font-size: 2.3em;
  72. float: left;
  73. text-shadow: 0 0 0 #fff;
  74. color: rgba(255, 255, 255, 0.8);
  75. width: 10%;
  76. padding: 29px 0 0 3%;
  77. cursor: pointer;
  78. font-variant: small-caps;
  79. }
  80. .player-control .play, .player-control .pause-button {
  81. -webkit-transition: all 0.2s ease-out;
  82. }
  83. .player-control .play .pause-button, .player-control .pause .play-button {
  84. display: none;
  85. }
  86. .player-control .pause-button {
  87. padding: 0 2px;
  88. box-sizing: border-box;
  89. -moz-box-sizing: border-box;
  90. height: 34px;
  91. }
  92. .player-control .pause-button span {
  93. background: #fff;
  94. width: 8px;
  95. height: 24px;
  96. float: left;
  97. display: block;
  98. }
  99. .player-control .pause-button span:first-of-type {
  100. margin: 0 4px 0 0;
  101. }
  102. .player-control .time {
  103. color: #fff;
  104. font-weight: bold;
  105. font-size: 1.2em;
  106. position: absolute;
  107. right: 0;
  108. top: 16px;
  109. }
  110. .player-control .stime, .ttime {
  111. color: #444;
  112. }
  113. .player-control .play:hover {
  114. text-shadow: 0 0 5px #fff;
  115. }
  116. .player-control .play:active, .pause-button:active span {
  117. text-shadow: 0 0 7px #fff;
  118. }
  119. .player-control .pause-button:hover span {
  120. box-shadow: 0 0 5px #fff;
  121. }
  122. .player-control .pause-button:active span {
  123. box-shadow: 0 0 7px #fff;
  124. }
  125. .player-control .volume {
  126. position: relative;
  127. float: right;
  128. width: 48px;
  129. margin-right: 16px;
  130. height: 100%;
  131. }
  132. .player-control .volume-holder {
  133. height: 100px;
  134. width: 100%;
  135. background: black;
  136. position: absolute;
  137. display: none;
  138. background: #4f4f4f;
  139. left: 0;
  140. border-radius: 5px 5px 0 0;
  141. top: -100px;
  142. }
  143. .player-control .volume-bar-holder {
  144. background: #333;
  145. width: 8px;
  146. box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
  147. margin: 15px auto;
  148. height: 80px;
  149. border-radius: 5px;
  150. position: relative;
  151. cursor: pointer;
  152. }
  153. .player-control .volume-button {
  154. background: #fff;
  155. box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  156. border-radius: 30px;
  157. width: 15px;
  158. height: 8px;
  159. margin-left: -3px;
  160. margin-top: -4px; /* height / 2 center the mouse */
  161. }
  162. .player-control .volume-button-holder {
  163. position: relative;
  164. top: 0;
  165. }
  166. .player-control .volume-bar {
  167. background: #fff;
  168. box-shadow: inset -30px 0px 69px -20px #89f6f5;
  169. border-radius: 5px;
  170. width: 100%;
  171. height: 100%;
  172. position: absolute;
  173. bottom: 0;
  174. }
  175. .player-control .v-mute:before, .player-control .v-mute:after {
  176. width: 10px;
  177. box-shadow: inset 0 0 0 32px;
  178. position: absolute;
  179. -webkit-transform: translateY(-50%) rotate(45deg);
  180. -ms-transform: translateY(-50%) rotate(45deg);
  181. transform: translateY(-50%) rotate(45deg);
  182. }
  183. .player-control .v-mute:before {
  184. left: 17px;
  185. height: 2px;
  186. width: 10px;
  187. }
  188. .player-control .v-mute:after {
  189. height: 10px;
  190. width: 2px;
  191. left: 21px;
  192. }
  193. .player-control .v-low:before,
  194. .player-control .v-medium:before,
  195. .player-control .v-high:before,
  196. .player-control .v-high:after,
  197. .player-control .v-very-high:before,
  198. .player-control .v-very-high:after {
  199. width: 15px;
  200. height: 15px;
  201. position: absolute;
  202. border-radius: 50%;
  203. border-top-color: transparent;
  204. border-bottom-color: transparent;
  205. border-left-color: transparent;
  206. left: 2px;
  207. -webkit-transform: translateY(-50%);
  208. -ms-transform: translateY(-50%);
  209. transform: translateY(-50%);
  210. }
  211. .player-control .v-high:before,
  212. .player-control .v-medium:before {
  213. border-style: double;
  214. border-width: 6px;
  215. left: -2px;
  216. }
  217. .player-control .v-very-high:before {
  218. border-style: inset;
  219. border-width: 6px;
  220. left: -2px;
  221. }
  222. .player-control .v-high:after,
  223. .player-control .v-very-high:after {
  224. width: 32px;
  225. height: 32px;
  226. left: -7px;
  227. }
  228. .v-low:before,
  229. .v-high:before,
  230. .v-high:after,
  231. .v-very-high:before,
  232. .v-very-high:after {
  233. border: 2px solid;
  234. }
  235. .player-control .title {
  236. position: absolute;
  237. line-height: 40px;
  238. text-align: center;
  239. width: 100%;
  240. }
  241. .player-control .volume:hover {
  242. background-color: #4f4f4f;
  243. }
  244. .player-control .volume:hover .volume-holder {
  245. display: block !important;
  246. }
  247. [class*=-icon], [class*=-icon] * {
  248. box-sizing: border-box;
  249. }
  250. [class*=-icon] {
  251. display: inline-block;
  252. vertical-align: middle;
  253. position: relative;
  254. font-style: normal;
  255. color: #fff;
  256. text-align: left;
  257. text-indent: -9999px;
  258. direction: ltr;
  259. }
  260. [class*=-icon]:after, [class*=-icon]:before {
  261. content: '';
  262. pointer-events: none;
  263. }
  264. .volume-icon {
  265. width: 0;
  266. height: 0;
  267. border: 7px solid;
  268. border-left: none;
  269. border-top-color: transparent;
  270. border-bottom-color: transparent;
  271. padding: 6px 3px;
  272. box-shadow: inset 4px 0;
  273. margin: -20px 10px 4px 11px;
  274. top: 50%
  275. }
  276. .open-url {
  277. min-width: 320px;
  278. width: 40%;
  279. margin: 20px auto 20px auto;
  280. }
  281. .open-url > div {
  282. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  283. }
  284. .open-url input {
  285. color: #fff;
  286. display: inline-block;
  287. border-radius: 3px 0 0 3px;
  288. font-size: 16px;
  289. padding-left: 16px;
  290. width: 90%;
  291. vertical-align: middle;
  292. border: none;
  293. }
  294. .open-url input, .open-url .submit-button {
  295. background-color: #2a2a2a;
  296. height: 38px;
  297. }
  298. .open-url input:focus {
  299. outline:0;
  300. }
  301. .open-url .submit-button {
  302. display: inline-block;
  303. vertical-align: middle;
  304. border-radius: 0 3px 3px 0;
  305. cursor: pointer;
  306. margin-left: -4px;
  307. width: 10%;
  308. font-size: 32px;
  309. line-height: 32px;
  310. color: rgba(255, 132, 0, 1);
  311. text-align: center;
  312. border: none;
  313. outline: none;
  314. font-weight: lighter;
  315. -moz-user-select: none;
  316. -webkit-user-select: none;
  317. user-select: none;
  318. font-family: Arial, Helvetica, sans-serif;
  319. }
  320. .open-url .submit-button:hover {
  321. color: rgba(255, 132, 0, 0.5);
  322. }
  323. .display-message {
  324. opacity: 0;
  325. position: fixed;
  326. background: #2a2a2a;
  327. padding: 16px;
  328. bottom: 70px;
  329. left: 24px;
  330. text-align: center;
  331. border-radius: 3px;
  332. box-shadow: 0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);
  333. transition: opacity 200ms,-webkit-transform 300ms cubic-bezier(0.165,0.840,0.440,1.000);
  334. white-space: nowrap;
  335. -webkit-transform: translateY(40px);
  336. transform: translateY(40px);
  337. color: #fff;
  338. }
  339. .display-message.show {
  340. opacity: 1;
  341. }