circle.player.css 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * Project: CirclePlayer
  3. * http://www.jplayer.org
  4. *
  5. * Copyright (c) 2012 Happyworm Ltd
  6. *
  7. * Author: Silvia Benvenuti
  8. * Edited by: Mark J Panaghiston
  9. * Date: 2nd October 2012
  10. * Artwork inspired by: http://forrst.com/posts/Untitled-CJz
  11. */
  12. .cp-container {
  13. position:relative;
  14. width:104px; /* 200 - (2 * 48) */
  15. height:104px;
  16. background:url("bgr.jpg") 0 0 no-repeat;
  17. padding:48px;
  18. -webkit-tap-highlight-color:rgba(0,0,0,0);
  19. }
  20. .cp-container :focus {
  21. border:none;
  22. outline:0;
  23. }
  24. .cp-buffer-1,
  25. .cp-buffer-2,
  26. .cp-progress-1,
  27. .cp-progress-2 {
  28. position:absolute;
  29. top:0;
  30. left:0;
  31. width:104px;
  32. height:104px;
  33. clip:rect(0px,52px,104px,0px);
  34. -moz-border-radius:52px;
  35. -webkit-border-radius:52px;
  36. border-radius:52px;
  37. }
  38. .cp-buffer-1,
  39. .cp-buffer-2 {
  40. background:url("buffer.png") 0 0 no-repeat;
  41. }
  42. /* FALLBACK for .progress
  43. * (24 steps starting from 1hr filled progress, Decrease second value by 104px for next step)
  44. * (It needs the container selector to work. Or use div)
  45. */
  46. .cp-container .cp-fallback {
  47. background:url("progress_sprite.jpg") no-repeat;
  48. background-position:0 104px;
  49. }
  50. .cp-progress-1,
  51. .cp-progress-2 {
  52. background:url("progress.png") 0 0 no-repeat;
  53. }
  54. .cp-buffer-holder,
  55. .cp-progress-holder,
  56. .cp-circle-control {
  57. position:absolute;
  58. width:104px;
  59. height:104px;
  60. }
  61. .cp-circle-control {
  62. cursor:pointer;
  63. }
  64. .cp-buffer-holder,
  65. .cp-progress-holder {
  66. clip:rect(0px,104px,104px,52px);
  67. display:none;
  68. }
  69. /* This is needed when progress is greater than 50% or for fallback */
  70. .cp-buffer-holder.cp-gt50,
  71. .cp-progress-holder.cp-gt50,
  72. .cp-progress-1.cp-fallback{
  73. clip:rect(auto, auto, auto, auto);
  74. }
  75. .cp-controls {
  76. margin:0;
  77. padding:26px;
  78. }
  79. .cp-controls li{
  80. list-style-type:none;
  81. display:block;
  82. /*IE Fix*/
  83. position:absolute;
  84. }
  85. .cp-controls li a{
  86. position:relative;
  87. display:block;
  88. width:50px;
  89. height:50px;
  90. text-indent:-9999px;
  91. z-index:1;
  92. cursor:pointer;
  93. }
  94. .cp-controls .cp-play {
  95. background:url("controls.jpg") 0 0 no-repeat;
  96. }
  97. .cp-controls .cp-play:hover {
  98. background:url("controls.jpg") -50px 0 no-repeat;
  99. }
  100. .cp-controls .cp-pause {
  101. background:url("controls.jpg") 0 -50px no-repeat;
  102. }
  103. .cp-controls .cp-pause:hover {
  104. background:url("controls.jpg") -50px -50px no-repeat;
  105. }
  106. .cp-jplayer {
  107. width:0;
  108. height:0;
  109. }