ckin.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /*!
  2. ckin v0.0.1: Custom HTML5 Video Player Skins.
  3. (c) 2017
  4. MIT License
  5. git+https://github.com/hunzaboy/ckin.git
  6. */
  7. @font-face {
  8. font-family: 'ckin';
  9. src: url("../fonts/ckin.eot?g02cfx");
  10. src: url("../fonts/ckin.eot?g02cfx#iefix") format("embedded-opentype"), url("../fonts/ckin.ttf?g02cfx") format("truetype"), url("../fonts/ckin.woff?g02cfx") format("woff"), url("../fonts/ckin.svg?g02cfx#ckin") format("svg");
  11. font-weight: normal;
  12. font-style: normal;
  13. }
  14. [class^="ckin-"], [class*=" ckin-"] {
  15. /* use !important to prevent issues with browser extensions that change fonts */
  16. font-family: 'ckin' !important;
  17. speak: none;
  18. font-style: normal;
  19. font-weight: normal;
  20. font-variant: normal;
  21. text-transform: none;
  22. line-height: 1;
  23. /* Better Font Rendering =========== */
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. }
  27. .default__controls i{font-size: 16px;}
  28. .ckin-compress:before {
  29. content: "\e901";
  30. }
  31. .ckin-expand:before {
  32. content: "\e900";
  33. }
  34. .ckin-play:before {
  35. content: "\ea1c";
  36. }
  37. .ckin-pause:before {
  38. content: "\ea1d";
  39. }
  40. .ckin-stop:before {
  41. content: "\ea1e";
  42. }
  43. .ckin-backward:before {
  44. content: "\ea1f";
  45. }
  46. .ckin-forward:before {
  47. content: "\ea20";
  48. }
  49. .ckin-volume-high:before {
  50. content: "\ea26";
  51. }
  52. .ckin-volume-medium:before {
  53. content: "\ea27";
  54. }
  55. .ckin-volume-low:before {
  56. content: "\ea28";
  57. }
  58. .ckin-volume-mute:before {
  59. content: "\ea2a";
  60. }
  61. body {
  62. font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
  63. -webkit-font-smoothing: antialiased;
  64. -moz-osx-font-smoothing: grayscale;
  65. letter-spacing: 0.02em;
  66. }
  67. video {
  68. width: 100%;
  69. height: auto;
  70. cursor: pointer;
  71. }
  72. .ckin__player {
  73. margin-bottom: 20px;
  74. font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
  75. letter-spacing: 0.02em;
  76. }
  77. .ckin__player.ckin__fullscreen {
  78. position: fixed;
  79. top: 0;
  80. left: 0;
  81. right: 0;
  82. bottom: 0;
  83. height: 100%;
  84. width: 100%;
  85. z-index: 10000000;
  86. background: #000;
  87. border-radius: 0 !important;
  88. display: -ms-flexbox;
  89. display: flex;
  90. }
  91. .ckin__overlay {
  92. position: relative;
  93. }
  94. .ckin__overlay:before {
  95. background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
  96. }
  97. .ckin__overlay--2:before {
  98. background: rgba(24, 24, 24, 0.8);
  99. }
  100. .default {
  101. border: 0 solid rgba(0, 0, 0, 0.2);
  102. box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  103. position: relative;
  104. font-size: 0;
  105. overflow: hidden;
  106. border-radius: 5px;
  107. cursor: pointer;
  108. }
  109. .default:before {
  110. content: '';
  111. position: absolute;
  112. top: 0;
  113. left: 0;
  114. bottom: 0;
  115. right: 0;
  116. border-radius: 5px;
  117. transition: opacity .2s;
  118. opacity: 1;
  119. visibility: visible;
  120. }
  121. .default__title {
  122. position: absolute;
  123. left: 10px;
  124. top: 10px;
  125. z-index: 1;
  126. font-size: 14px;
  127. color: rgba(255, 255, 255, 0.8);
  128. }
  129. .default__button {
  130. background: none;
  131. border: 0;
  132. line-height: 1;
  133. color: #3566e3;
  134. outline: 0;
  135. padding: 0;
  136. cursor: pointer;
  137. -ms-flex-pack: center;
  138. justify-content: center;
  139. display: -ms-flexbox;
  140. display: flex;
  141. max-width: 50px;
  142. }
  143. .default__button i {
  144. -ms-flex-item-align: center;
  145. -ms-grid-row-align: center;
  146. align-self: center;
  147. }
  148. .default__button--big {
  149. background: none;
  150. border: 0;
  151. line-height: 1;
  152. color: #fff;;
  153. text-align: center;
  154. outline: 0;
  155. padding: 0;
  156. cursor: pointer;
  157. position: absolute;
  158. opacity: 1;
  159. visibility: visible;
  160. top: 50%;
  161. left: 50%;
  162. -ms-transform: translate(-50%, -50%) scale(1);
  163. transform: translate(-50%, -50%) scale(1);
  164. font-size: 36px;
  165. transition: all .2s;
  166. -ms-touch-action: manipulation;
  167. touch-action: manipulation;
  168. }
  169. .default__slider {
  170. width: 10px;
  171. height: 30px;
  172. }
  173. .default__controls {
  174. display: -ms-flexbox;
  175. display: flex;
  176. position: absolute;
  177. bottom: 0;
  178. right: 0;
  179. left: 0;
  180. transition: all .3s;
  181. -ms-flex-wrap: wrap;
  182. flex-wrap: wrap;
  183. background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  184. font-size: 32px;
  185. -ms-flex-align: center;
  186. align-items: center;
  187. padding: 10px;
  188. -ms-transform: translateY(0);
  189. transform: translateY(0);
  190. -ms-flex-pack: justify;
  191. justify-content: space-between;
  192. border-radius: 0 0 5px 5px;
  193. }
  194. .default.is-playing:before {
  195. opacity: 0;
  196. visibility: hidden;
  197. -ms-transform: translate(-50%, -50%) scale(1.3);
  198. transform: translate(-50%, -50%) scale(1.3);
  199. }
  200. .default.is-playing .default__button--big {
  201. opacity: 0;
  202. visibility: hidden;
  203. }
  204. .default.is-playing .default__controls {
  205. -ms-transform: translateY(52px);
  206. transform: translateY(52px);
  207. }
  208. .default.is-playing:hover .default__controls {
  209. -ms-transform: translateY(0);
  210. transform: translateY(0);
  211. }
  212. .default__controls > * {
  213. -ms-flex: 1;
  214. flex: 1;
  215. }
  216. .default .progress {
  217. position: relative;
  218. display: -ms-flexbox;
  219. display: flex;
  220. height: 10px;
  221. transition: height 0.3s;
  222. background: rgba(0, 0, 0, 0.5);
  223. cursor: pointer;
  224. border-radius: 4px;
  225. }
  226. .default .progress__filled {
  227. width: 0%;
  228. background: #3566e3;
  229. -ms-flex: 0;
  230. flex: 0;
  231. -ms-flex-preferred-size: 0%;
  232. flex-basis: 0%;
  233. border-radius: 4px;
  234. }
  235. .minimal {
  236. border: 0 solid rgba(0, 0, 0, 0.2);
  237. box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  238. position: relative;
  239. font-size: 0;
  240. overflow: hidden;
  241. border-radius: 5px;
  242. cursor: pointer;
  243. }
  244. .minimal:before {
  245. content: '';
  246. position: absolute;
  247. top: 0;
  248. left: 0;
  249. bottom: 0;
  250. right: 0;
  251. border-radius: 5px;
  252. transition: opacity .2s;
  253. opacity: 1;
  254. visibility: visible;
  255. }
  256. .minimal__title {
  257. position: absolute;
  258. left: 20px;
  259. top: 20px;
  260. z-index: 1;
  261. font-size: 24px;
  262. color: rgba(255, 255, 255, 0.8);
  263. font-style: italic;
  264. }
  265. .minimal__button {
  266. background: none;
  267. border: 0;
  268. line-height: 1;
  269. color: #3566e3;
  270. outline: 0;
  271. padding: 0;
  272. cursor: pointer;
  273. -ms-flex-pack: center;
  274. justify-content: center;
  275. display: -ms-flexbox;
  276. display: flex;
  277. max-width: 50px;
  278. }
  279. .minimal__button i {
  280. -ms-flex-item-align: center;
  281. -ms-grid-row-align: center;
  282. align-self: center;
  283. }
  284. .minimal__button--big {
  285. background: none;
  286. border: 0;
  287. line-height: 1;
  288. color: #3566e3;
  289. text-align: center;
  290. outline: 0;
  291. padding: 0;
  292. cursor: pointer;
  293. position: absolute;
  294. opacity: 1;
  295. visibility: visible;
  296. top: 50%;
  297. left: 50%;
  298. -ms-transform: translate(-50%, -50%) scale(1);
  299. transform: translate(-50%, -50%) scale(1);
  300. font-size: 64px;
  301. transition: all .2s ease-in;
  302. -ms-touch-action: manipulation;
  303. touch-action: manipulation;
  304. }
  305. .minimal__slider {
  306. width: 10px;
  307. height: 30px;
  308. }
  309. .minimal__controls {
  310. display: -ms-flexbox;
  311. display: flex;
  312. position: absolute;
  313. bottom: 0;
  314. right: 0;
  315. left: 0;
  316. transition: all .3s;
  317. -ms-flex-wrap: wrap;
  318. flex-wrap: wrap;
  319. background: #242424;
  320. font-size: 32px;
  321. -ms-flex-align: center;
  322. align-items: center;
  323. padding: 10px;
  324. -ms-transform: translateY(0);
  325. transform: translateY(0);
  326. -ms-flex-pack: justify;
  327. justify-content: space-between;
  328. border-radius: 0 0 5px 5px;
  329. }
  330. .minimal.is-playing:before {
  331. opacity: 0;
  332. visibility: hidden;
  333. }
  334. .minimal.is-playing .minimal__button--big {
  335. opacity: 0;
  336. visibility: hidden;
  337. -ms-transform: translate(-50%, -50%) scale(1.3);
  338. transform: translate(-50%, -50%) scale(1.3);
  339. }
  340. .minimal.is-playing .minimal__controls {
  341. -ms-transform: translateY(52px);
  342. transform: translateY(52px);
  343. }
  344. .minimal.is-playing:hover .minimal__controls {
  345. -ms-transform: translateY(0);
  346. transform: translateY(0);
  347. }
  348. .minimal__controls > * {
  349. -ms-flex: 1;
  350. flex: 1;
  351. }
  352. .minimal .progress {
  353. position: relative;
  354. display: -ms-flexbox;
  355. display: flex;
  356. height: 10px;
  357. transition: height 0.3s;
  358. background: rgba(0, 0, 0, 0.5);
  359. cursor: pointer;
  360. border-radius: 4px;
  361. }
  362. .minimal .progress__filled {
  363. width: 0%;
  364. background: #3566e3;
  365. -ms-flex: 0;
  366. flex: 0;
  367. -ms-flex-preferred-size: 0%;
  368. flex-basis: 0%;
  369. border-radius: 4px;
  370. }
  371. .compact {
  372. border: 0 solid rgba(0, 0, 0, 0.2);
  373. box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  374. position: relative;
  375. font-size: 0;
  376. overflow: hidden;
  377. border-radius: 5px;
  378. cursor: pointer;
  379. }
  380. .compact:before {
  381. content: '';
  382. position: absolute;
  383. top: 0;
  384. left: 0;
  385. bottom: 0;
  386. right: 0;
  387. border-radius: 5px;
  388. transition: opacity .2s;
  389. opacity: 1;
  390. visibility: visible;
  391. }
  392. .compact__title {
  393. position: absolute;
  394. left: 20px;
  395. top: 20px;
  396. z-index: 1;
  397. font-size: 24px;
  398. color: rgba(255, 255, 255, 0.8);
  399. }
  400. .compact__button {
  401. background: none;
  402. border: 0;
  403. line-height: 1;
  404. color: #3566e3;
  405. outline: 0;
  406. padding: 0;
  407. cursor: pointer;
  408. -ms-flex-pack: center;
  409. justify-content: center;
  410. display: -ms-flexbox;
  411. display: flex;
  412. max-width: 50px;
  413. }
  414. .compact__button i {
  415. -ms-flex-item-align: center;
  416. -ms-grid-row-align: center;
  417. align-self: center;
  418. }
  419. .compact__button--big {
  420. background: none;
  421. border: 0;
  422. line-height: 1;
  423. color: #3566e3;
  424. text-align: center;
  425. outline: 0;
  426. padding: 0;
  427. cursor: pointer;
  428. position: absolute;
  429. opacity: 1;
  430. visibility: visible;
  431. top: 50%;
  432. left: 50%;
  433. -ms-transform: translate(-50%, -50%) scale(1);
  434. transform: translate(-50%, -50%) scale(1);
  435. font-size: 64px;
  436. transition: all .2s ease-in;
  437. -ms-touch-action: manipulation;
  438. touch-action: manipulation;
  439. }
  440. .compact__slider {
  441. width: 10px;
  442. height: 30px;
  443. }
  444. .compact__controls {
  445. display: -ms-flexbox;
  446. display: flex;
  447. position: absolute;
  448. max-width: 400px;
  449. bottom: 0;
  450. right: 0;
  451. left: 50%;
  452. transition: all .3s;
  453. -ms-flex-wrap: wrap;
  454. flex-wrap: wrap;
  455. background: #242424;
  456. font-size: 32px;
  457. -ms-flex-align: center;
  458. align-items: center;
  459. padding: 10px;
  460. -ms-transform: translateY(-20px) translateX(-50%);
  461. transform: translateY(-20px) translateX(-50%);
  462. -ms-flex-pack: justify;
  463. justify-content: space-between;
  464. border-radius: 5px;
  465. }
  466. .compact.is-playing:before {
  467. opacity: 0;
  468. visibility: hidden;
  469. }
  470. .compact.is-playing .compact__button--big {
  471. opacity: 0;
  472. visibility: hidden;
  473. -ms-transform: translate(-50%, -50%) scale(1.3);
  474. transform: translate(-50%, -50%) scale(1.3);
  475. }
  476. .compact.is-playing .compact__controls {
  477. -ms-transform: translateY(52px) translateX(-50%);
  478. transform: translateY(52px) translateX(-50%);
  479. }
  480. .compact.is-playing:hover .compact__controls {
  481. -ms-transform: translateY(-20px) translateX(-50%);
  482. transform: translateY(-20px) translateX(-50%);
  483. }
  484. .compact__controls > * {
  485. -ms-flex: 1;
  486. flex: 1;
  487. }
  488. .compact .progress {
  489. position: relative;
  490. display: -ms-flexbox;
  491. display: flex;
  492. height: 10px;
  493. transition: height 0.3s;
  494. background: rgba(0, 0, 0, 0.5);
  495. cursor: pointer;
  496. border-radius: 4px;
  497. }
  498. .compact .progress__filled {
  499. width: 0%;
  500. background: #3566e3;
  501. -ms-flex: 0;
  502. flex: 0;
  503. -ms-flex-preferred-size: 0%;
  504. flex-basis: 0%;
  505. border-radius: 4px;
  506. }
  507. @media (max-width: 480px) {
  508. .ckin__player button {
  509. font-size: 18px;
  510. }
  511. }
  512. video::-webkit-media-controls-enclosure {
  513. display: none !important;
  514. }