You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

acornmediaplayer.base.css 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. /*
  2. * Acorn Media Player - jQuery plugin 1.0
  3. *
  4. * Copyright (C) 2010 Cristian I. Colceriu
  5. *
  6. * Dual licensed under the MIT and GPL licenses:
  7. * http://www.opensource.org/licenses/mit-license.php
  8. * http://www.gnu.org/licenses/gpl.html
  9. *
  10. * www.ghinda.net
  11. * contact@ghinda.net
  12. *
  13. * Base stylesheet
  14. *
  15. */
  16. /* Main elements */
  17. .acorn-player, .acorn-controls {
  18. position: relative;
  19. }
  20. .acorn-timer {
  21. cursor: default;
  22. }
  23. .acorn-buffer {
  24. width: 0px;
  25. }
  26. /* <video> */
  27. .acorn-player video {
  28. background-color: #000;
  29. }
  30. /* <audio> */
  31. .acorn-player.audio-player {
  32. width: 500px;
  33. }
  34. .acorn-player.audio-player audio {
  35. display: none;
  36. }
  37. /* Captions and Transcript */
  38. .acorn-transcript {
  39. clear: both;
  40. display: none;
  41. overflow: auto;
  42. height: 15em;
  43. }
  44. .acorn-transcript-button {
  45. display: none;
  46. }
  47. /*
  48. * Show the timings in square brackets before each "subtitle" in the transcript.
  49. * Borrowed and adapted from Bruce Lawson's “Accessible HTML5 Video with JavaScripted captions”
  50. * http://dev.opera.com/articles/view/accessible-html5-video-with-javascripted-captions/
  51. */
  52. .acorn-transcript span {
  53. display: block;
  54. float: left;
  55. width: 100%;
  56. line-height: 1.5em;
  57. -moz-border-radius: 5px;
  58. -webkit-border-radius: 5px;
  59. border-radius: 5px;
  60. }
  61. .acorn-transcript span:hover {
  62. background-color: #cadde7 !important;
  63. font-weight: bold;
  64. }
  65. .acorn-transcript span:nth-of-type(even) {
  66. background-color: #efefef;
  67. }
  68. .acorn-transcript [data-begin]:before {
  69. display: block;
  70. float: left;
  71. content: " [" attr(data-begin) "s-" attr(data-end)"s] ";
  72. width: 15%;
  73. padding: 0.2em 1.5em 0.2em 0.2em;
  74. }
  75. .acorn-caption {
  76. display: none;
  77. position: absolute;
  78. bottom: 75px;
  79. width: 100%;
  80. text-align: center;
  81. }
  82. .acorn-caption-button {
  83. display: none;
  84. }
  85. .acorn-caption-selector {
  86. position: absolute;
  87. display: none;
  88. width: 170px;
  89. padding: 5px;
  90. height: 75px;
  91. margin-bottom: 10px;
  92. overflow: auto;
  93. background-color: #000;
  94. border: 3px solid #fff;
  95. z-index: 3;
  96. -moz-border-radius: 5px;
  97. -webkit-border-radius: 5px;
  98. border-radius: 5px;
  99. -moz-box-shadow: 0px 1px 5px #000;
  100. -webkit-box-shadow: 0px 1px 5px #000;
  101. box-shadow: 0px 1px 5px #000;
  102. }
  103. .acorn-caption-selector label {
  104. display: block;
  105. font-weight: bold;
  106. color: #fff;
  107. }
  108. .acorn-caption-selector ul, .acorn-caption-selector li {
  109. list-style-type: none;
  110. margin: 0px;
  111. padding: 0px;
  112. }
  113. /* Fullscreen Mode */
  114. .fullscreen-video {
  115. position: fixed !important;
  116. top: 0px;
  117. left: 0px;
  118. z-index: 99999 !important;
  119. background-color: #000;
  120. }
  121. .acorn-controls.fullscreen-controls {
  122. position: fixed !important;
  123. z-index: 100000 !important;
  124. }
  125. /* Loading */
  126. .show-loading .loading-media {
  127. visibility: visible;
  128. }
  129. .loading-media {
  130. visibility: hidden;
  131. position: absolute;
  132. left: 25%;
  133. top: 50%;
  134. width: 20px;
  135. height: 20px;
  136. margin-top: -10px;
  137. margin-lefT: -10px;
  138. background-color: #000;
  139. border: 5px solid #fff;
  140. border-top: 5px solid rgba(0,0,0,0);
  141. border-left: 5px solid rgba(0,0,0,0);
  142. border-radius: 20px;
  143. animation: spin 1s infinite linear;
  144. -o-animation: spin 1s infinite linear;
  145. -moz-animation: spin 1s infinite linear;
  146. -webkit-animation: spin 1s infinite linear;
  147. }
  148. @-o-keyframes spin {
  149. 0% { -o-transform:rotate(0deg); }
  150. 100% { -o-transform:rotate(360deg); }
  151. }
  152. @-ms-keyframes spin {
  153. 0% { -ms-transform:rotate(0deg); }
  154. 100% { -ms-transform:rotate(360deg); }
  155. }
  156. @-moz-keyframes spin {
  157. 0% { -moz-transform:rotate(0deg); }
  158. 100% { -moz-transform:rotate(360deg); }
  159. }
  160. @-webkit-keyframes spin {
  161. 0% { -webkit-transform:rotate(0deg); }
  162. 100% { -webkit-transform:rotate(360deg); }
  163. }
  164. @keyframes spin {
  165. 0% { transform:rotate(0deg); }
  166. 100% { transform:rotate(360deg); }
  167. }
  168. /* Controls overlay while loading */
  169. .show-loading .acorn-controls:after {
  170. content: '';
  171. position: absolute;
  172. top: -2px; /* Slider handle goes above */
  173. padding-bottom: 2px;
  174. left: 0;
  175. z-index: 10;
  176. width: 100%;
  177. height: 100%;
  178. background: #000;
  179. opacity: 0.9;
  180. }
  181. /* Styles needed for the jQuery UI slider
  182. * We're declaring these so we don't have to use jQuery UI's stylesheet
  183. */
  184. a.ui-slider-handle {
  185. position: absolute;
  186. display: block;
  187. margin-left: -0.6em;
  188. z-index: 2;
  189. cursor: default;
  190. outline: none;
  191. }
  192. .ui-slider {
  193. position: relative;
  194. }
  195. .ui-slider-range {
  196. position: absolute;
  197. display: block;
  198. width: 100%;
  199. height: 100%;
  200. left: 0;
  201. bottom: 0;
  202. border: none;
  203. z-index: 1;
  204. }