playerControl.css 7.8 KB

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