epiclock.retro.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*!
  2. * Retro Style Flip Clock
  3. * Copyright (c) 2009 Eric Garside (http://eric.garside.name)
  4. * Dual licensed under:
  5. * MIT: http://www.opensource.org/licenses/mit-license.php
  6. * GPLv3: http://www.opensource.org/licenses/gpl-3.0.html
  7. */
  8. /* Master Style
  9. ----------------------------------*/
  10. .epiclock-retro .epiclock, .epiclock-retro .epiclock-img
  11. { display: block; float: left; }
  12. .epiclock-retro .epiclock-img .epiclock-animation,
  13. .epiclock-retro .epiclock-meridian,
  14. .epiclock-retro .epiclock-separator { display: block; float: left; background-image: url(epiclock.retro.png); background-repeat: no-repeat; height: 40px; }
  15. /* Individual Styles
  16. ----------------------------------*/
  17. .epiclock-retro .epiclock-spacer { display: block; float: left; width: 10px; height: 1px; margin: 0; }
  18. .epiclock-retro .epiclock-animation { width: 40px; }
  19. .epiclock-retro .epiclock-separator { width: 26px; text-indent: -999999px; background-position: 0 -840px; }
  20. /* Container Clearfix
  21. ----------------------------------*/
  22. .epiclock-retro:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
  23. .epiclock-retro { display: inline-block; }
  24. * html .epiclock-retro { height:1%; }
  25. .epiclock-retro { display:block; }
  26. /* Static Positions
  27. ----------------------------------*/
  28. .epiclock-retro .d1 .s { background-position: 0 -40px; }
  29. .epiclock-retro .d2 .s { background-position: -40px -80px; }
  30. .epiclock-retro .d3 .s { background-position: 0 -160px; }
  31. .epiclock-retro .d4 .s { background-position: -40px -200px; }
  32. .epiclock-retro .d5 .s { background-position: 0 -280px; }
  33. .epiclock-retro .d6 .s { background-position: -40px -320px; }
  34. .epiclock-retro .d7 .s { background-position: 0 -400px; }
  35. .epiclock-retro .d8 .s { background-position: -40px -440px; }
  36. .epiclock-retro .d9 .s { background-position: 0 -520px; }
  37. .epiclock-retro .d0 .s { background-position: -40px -560px; }
  38. .epiclock-retro .dpm .s { background-position: 0 -680px; width: 80px; }
  39. .epiclock-retro .dam .s { background-position: 0 -800px; width: 80px; }
  40. /* Animation Phase 1
  41. ----------------------------------*/
  42. .epiclock-retro .d1 .a1 { background-position: 0 0; }
  43. .epiclock-retro .d2 .a1 { background-position: -40px -40px; }
  44. .epiclock-retro .d3 .a1 { background-position: 0 -120px; }
  45. .epiclock-retro .d4 .a1 { background-position: -40px -160px; }
  46. .epiclock-retro .d5 .a1 { background-position: 0 -240px; }
  47. .epiclock-retro .d6 .a1 { background-position: -40px -280px; }
  48. .epiclock-retro .d7 .a1 { background-position: 0 -360px; }
  49. .epiclock-retro .d8 .a1 { background-position: -40px -400px; }
  50. .epiclock-retro .d9 .a1 { background-position: 0 -480px; }
  51. .epiclock-retro .d0 .a1 { background-position: -40px -520px; }
  52. .epiclock-retro .dpm .a1 { background-position: 0 -720px; width: 80px; }
  53. .epiclock-retro .dam .a1 { background-position: 0 -600px; width: 80px; }
  54. /* Animation Phase 2
  55. ----------------------------------*/
  56. .epiclock-retro .d1 .a2 { background-position: -40px 0; }
  57. .epiclock-retro .d2 .a2 { background-position: 0 -80px; }
  58. .epiclock-retro .d3 .a2 { background-position: -40px -120px; }
  59. .epiclock-retro .d4 .a2 { background-position: 0 -200px; }
  60. .epiclock-retro .d5 .a2 { background-position: -40px -240px; }
  61. .epiclock-retro .d6 .a2 { background-position: 0 -320px; }
  62. .epiclock-retro .d7 .a2 { background-position: -40px -360px; }
  63. .epiclock-retro .d8 .a2 { background-position: 0 -440px; }
  64. .epiclock-retro .d9 .a2 { background-position: -40px -480px; }
  65. .epiclock-retro .d0 .a2 { background-position: 0 -560px; }
  66. .epiclock-retro .dpm .a2 { background-position: 0 -760px; width: 80px; }
  67. .epiclock-retro .dam .a2 { background-position: 0 -640px; width: 80px; }