main.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. @font-face {
  2. font-family: 'iconfont';
  3. /* project id 1867770 */
  4. src: url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.eot');
  5. src: url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.eot?#iefix') format('embedded-opentype'), url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.woff2') format('woff2'), url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.woff') format('woff'), url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.ttf') format('truetype'), url('https://at.alicdn.com/t/font_1867770_5pzef3csvso.svg#iconfont') format('svg');
  6. }
  7. .sv-target video {
  8. background-color: #000;
  9. }
  10. .sv-font {
  11. font-family: 'iconfont';
  12. }
  13. .sv-pic-pic {
  14. color: #ffffff;
  15. font-size: 20px;
  16. margin-right: 6px;
  17. }
  18. .sv-play {
  19. color: #ffffff;
  20. font-size: 20px;
  21. }
  22. .sv-fontBtn {
  23. color: #ffffff;
  24. font-size: 20px;
  25. }
  26. .sv-next {
  27. color: #ffffff;
  28. font-size: 20px;
  29. }
  30. .sv-fullScreen {
  31. color: #ffffff;
  32. font-size: 20px;
  33. }
  34. .sv-cancelFull {
  35. color: #ffffff;
  36. font-size: 20px;
  37. }
  38. .sv-target {
  39. position: relative;
  40. }
  41. .sv-control {
  42. position: absolute;
  43. bottom: 0;
  44. left: 0;
  45. width: 100%;
  46. height: 54px;
  47. background-color: rgba(0, 0, 0, 0.5);
  48. display: flex;
  49. flex-direction: row;
  50. justify-content: space-between;
  51. }
  52. .sv-play-container {
  53. height: 100%;
  54. /* background-color: royalblue; */
  55. display: flex;
  56. flex-direction: row;
  57. padding-right: 10px;
  58. }
  59. .sv-control-r {
  60. height: 100%;
  61. /* background-color: royalblue; */
  62. display: flex;
  63. flex-direction: row;
  64. padding-left: 10px;
  65. padding-right: 10px;
  66. }
  67. .sv-play-container button.sv-playBtn {
  68. background: none;
  69. border: none;
  70. cursor: pointer;
  71. padding: 0 10px;
  72. outline: none;
  73. color: inherit;
  74. text-align: inherit;
  75. font: inherit;
  76. line-height: inherit;
  77. margin-left: 10px;
  78. }
  79. .sv-control-r button.showMute {
  80. background: none;
  81. border: none;
  82. cursor: pointer;
  83. padding: 0 10px;
  84. outline: none;
  85. color: inherit;
  86. text-align: inherit;
  87. font: inherit;
  88. line-height: inherit;
  89. position: relative;
  90. }
  91. .sv-time {
  92. height: 100%;
  93. color: #ffffff;
  94. display: flex;
  95. flex-direction: row;
  96. align-items: center;
  97. font-size: 12px;
  98. }
  99. .sv-time-split {
  100. padding: 0 4px;
  101. }
  102. .sv-mutePanel {
  103. position: absolute;
  104. top: -120px;
  105. left: 0;
  106. width: 20px;
  107. height: 80px;
  108. background-color: rgba(0, 0, 0, 0.8);
  109. display: flex;
  110. flex-direction: column;
  111. padding: 16px 6px;
  112. border-radius: 4px;
  113. }
  114. .sv-mute-num {
  115. width: 100%;
  116. height: 20px;
  117. background-color: transparent;
  118. color: #ffffff;
  119. font-size: 12px;
  120. text-align: center;
  121. margin-bottom: 4px;
  122. }
  123. .sv-mute-slider {
  124. flex: 1;
  125. width: 3px;
  126. background-color: #ffffff;
  127. margin: 0 auto;
  128. position: relative;
  129. display: flex;
  130. flex-direction: column-reverse;
  131. }
  132. .sv-mute-sliderRange {
  133. width: 100%;
  134. background-color: #00a1d6;
  135. }
  136. .sv-control-r button.sv-mute-button {
  137. position: absolute;
  138. top: 0;
  139. left: -4.5px;
  140. width: 12px;
  141. height: 12px;
  142. border-radius: 50%;
  143. z-index: 10;
  144. background-color: #00a1d6;
  145. border: 0;
  146. cursor: pointer;
  147. outline: none;
  148. }
  149. .sv-progressBar {
  150. position: absolute;
  151. top: 0;
  152. left: 2%;
  153. width: 96%;
  154. height: 2px;
  155. background-color: hsla(0, 0%, 100%, .2);
  156. border-radius: 4px;
  157. cursor: pointer;
  158. }
  159. .sv-cacheProgress {
  160. width: 0%;
  161. height: 100%;
  162. background-color: #7a7878;
  163. border-radius: 4px;
  164. }
  165. .sv-progressNum {
  166. width: 0%;
  167. height: 100%;
  168. position: absolute;
  169. top: 0;
  170. left: 0;
  171. border-radius: 4px;
  172. background-color: #00a1d6;
  173. }
  174. .sv-progressBtn {
  175. position: absolute;
  176. left: 0%;
  177. top: -7px;
  178. width: 16px;
  179. height: 16px;
  180. border-radius: 50%;
  181. background-color: rgba(0, 161, 214, 0.5);
  182. cursor: pointer;
  183. }
  184. .sv-progressBtn>div {
  185. width: 10px;
  186. height: 10px;
  187. border-radius: 50%;
  188. background-color: #00a1d6;
  189. margin-top: 2.6px;
  190. margin-left: 2.8px;
  191. }
  192. .hide {
  193. display: none!important;
  194. }
  195. .sv-full-screen {
  196. position: fixed!important;
  197. width: 100%!important;
  198. height: 100%!important;
  199. left: 0!important;
  200. top: 0!important;
  201. margin: 0!important;
  202. padding: 0!important;
  203. }
  204. .sv-loading {
  205. /* width: 60px;
  206. height: 60px; */
  207. position: absolute;
  208. left: 48%;
  209. top: 48%;
  210. }
  211. .sv-loading span {
  212. display: inline-block;
  213. width: 4px;
  214. height: 100%;
  215. border-radius: 4px;
  216. background: #00a1d6;
  217. -webkit-animation: load 1s ease infinite;
  218. animation: load 1s ease infinite;
  219. }
  220. @-webkit-keyframes load {
  221. 0%,
  222. 100% {
  223. height: 20px;
  224. background: #00a1d6;
  225. }
  226. 50% {
  227. height: 40px;
  228. margin: -15px 0;
  229. background: lightblue;
  230. }
  231. }
  232. .sv-loading span:nth-child(2) {
  233. -webkit-animation-delay: 0.2s;
  234. animation-delay: 0.2s;
  235. }
  236. .sv-loading span:nth-child(3) {
  237. -webkit-animation-delay: 0.4s;
  238. animation-delay: 0.4s;
  239. }
  240. .sv-loading span:nth-child(4) {
  241. -webkit-animation-delay: 0.6s;
  242. animation-delay: 0.6s;
  243. }
  244. .sv-loading span:nth-child(5) {
  245. -webkit-animation-delay: 0.8s;
  246. animation-delay: 0.8s;
  247. }
  248. /* 弹幕 */
  249. .sv-brrage {
  250. position: absolute;
  251. padding: 4px;
  252. background-color: transparent;
  253. display: flex;
  254. flex-direction: row;
  255. white-space: nowrap;
  256. width: auto;
  257. word-wrap: break-word;
  258. max-width: 500px;
  259. min-width: 100px;
  260. }
  261. .sv-brrage-center {
  262. text-shadow: rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px;
  263. }
  264. /* 画中画 */
  265. .sv-picinpic {
  266. position: absolute;
  267. z-index: 22;
  268. position: absolute;
  269. top: 20px;
  270. right: 20px;
  271. white-space: nowrap;
  272. height: 36px;
  273. padding: 0 12px;
  274. overflow: visible;
  275. border-radius: 2px;
  276. border-radius: 18px;
  277. background: #2b2b2b;
  278. background: rgba(43, 43, 43, .8);
  279. color: #fff;
  280. display: flex;
  281. flex-direction: row;
  282. align-items: center;
  283. justify-content: center;
  284. font-size: 14px;
  285. cursor: pointer;
  286. }
  287. .sv-picinpic:hover {
  288. background: linear-gradient(90deg, #4ca9c7 0, #03bbf7)!important
  289. }
  290. .sv-el-control-style {
  291. padding-right: 10px;
  292. padding-left: 10px;
  293. height: 100%;
  294. display: flex;
  295. flex-direction: row;
  296. }
  297. .sv-nextBtn {
  298. background: none;
  299. border: none;
  300. cursor: pointer;
  301. outline: none;
  302. text-align: inherit;
  303. }
  304. .sv-speedBtn {
  305. background: none;
  306. border: none;
  307. cursor: pointer;
  308. outline: none;
  309. text-align: inherit;
  310. position: relative;
  311. }
  312. .sv-speedBtn .sv-speed-btn {
  313. position: absolute;
  314. bottom: 54px;
  315. left: -10px;
  316. padding: 10px;
  317. border-radius: 4px;
  318. background-color: rgba(0, 0, 0, 0.8);
  319. /* box-sizing: border-box;
  320. border: 1px solid #ffffff; */
  321. }
  322. .sv-speedBtn .sv-speed-btn ul {
  323. padding: 0;
  324. margin: 0;
  325. }
  326. .sv-speedBtn .sv-speed-btn ul li {
  327. list-style: none;
  328. font-size: 12px;
  329. line-height: 20px;
  330. cursor: pointer;
  331. }
  332. .sv-speedBtn .sv-speed-btn ul li:hover {
  333. color: #00a1d6;
  334. }
  335. .sv-active {
  336. color: #00a1d6!important;
  337. }
  338. .sv-control-c {
  339. height: 100%;
  340. }
  341. /* 弹幕控件 */
  342. .sv-barrage {
  343. display: flex;
  344. flex-direction: row;
  345. align-items: center;
  346. height: 100%;
  347. position: relative;
  348. }
  349. .sv-barrage-a {
  350. height: 26px;
  351. }
  352. .sv-barrage-input {
  353. height: 17px;
  354. outline: none;
  355. padding: 6px 30px;
  356. border-top-left-radius: 4px;
  357. border-bottom-left-radius: 4px;
  358. border-top: 1px solid #333333;
  359. border-left: 1px solid #333333;
  360. border-bottom: 1px solid #333333;
  361. border-right: 1px solid #00a1d6;
  362. background: none;
  363. font-size: 12px;
  364. color: #fff;
  365. }
  366. .sv-barrage-button {
  367. height: 31px;
  368. background-color: #00a1d6;
  369. color: #fff;
  370. width: 60px;
  371. min-width: 60px;
  372. text-align: center;
  373. cursor: pointer;
  374. box-sizing: border-box;
  375. border-top: 1px solid #333333;
  376. border-right: 1px solid #333333;
  377. border-bottom: 1px solid #333333;
  378. border-left: 1px solid #00a1d6;
  379. border-top-right-radius: 4px;
  380. border-bottom-right-radius: 4px;
  381. outline: none;
  382. vertical-align: middle;
  383. }
  384. .sv-barrage-button:hover {
  385. background-color: #03bbf7;
  386. border-left: 1px solid #03bbf7;
  387. }
  388. .sv-barrage-font {
  389. position: absolute;
  390. left: 6px;
  391. top: 16px;
  392. cursor: pointer;
  393. }
  394. .sv-apanel {
  395. position: absolute;
  396. bottom: 54px;
  397. left: -10px;
  398. padding: 10px;
  399. border-radius: 4px;
  400. background-color: rgba(0, 0, 0, 0.8);
  401. width: 200px;
  402. height: 100px;
  403. display: flex;
  404. flex-direction: column;
  405. color: #fff;
  406. z-index: 99999;
  407. }
  408. .sv-apanel-item {
  409. display: flex;
  410. flex-direction: column;
  411. overflow: hidden;
  412. }
  413. .sv-apanel-item span {
  414. font-size: 12px;
  415. }
  416. .sv-apanel-item ul {
  417. margin: 0;
  418. padding: 0;
  419. margin-top: 8px;
  420. }
  421. .sv-apanel-item ul li {
  422. list-style: none;
  423. background-color: #fff;
  424. display: block;
  425. width: 20px;
  426. height: 20px;
  427. margin: 4px;
  428. float: left;
  429. cursor: pointer;
  430. }
  431. .activeColor {
  432. box-sizing: border-box;
  433. border: 2px solid #ffff;
  434. }
  435. #videoContainer {
  436. width: 800px;
  437. height: 500px;
  438. margin-left: auto;
  439. margin-right: auto;
  440. margin-top: 100px;
  441. }
  442. body {
  443. background-color: #00000089;
  444. color: #5F5F5F;
  445. margin: 0;
  446. padding: 0;
  447. height: 100%;
  448. overflow: hidden;
  449. }
  450. .container {
  451. text-align: center;
  452. font-size: 72px;
  453. margin-top: 20%;
  454. }
  455. /*zoom-marker*/
  456. .picview {
  457. width: 50%;
  458. margin: auto auto auto auto;
  459. height: 800px;
  460. overflow: hidden;
  461. }
  462. .picview img {
  463. position: absolute;
  464. left: 30%;
  465. top: 20%;
  466. width: 500px;
  467. z-index: 1;
  468. }
  469. .zoom-marker {
  470. cursor: pointer;
  471. z-index: 2;
  472. }