numbercss.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /* The Digits */
  2. .digits{
  3. /*width:220px;*/
  4. }
  5. .light{
  6. /*width: 220px;*/
  7. height: 60px;
  8. text-align: center;
  9. float:left;
  10. }
  11. .digits div{
  12. text-align:left;
  13. position:relative;
  14. width: 28px;
  15. height:50px;
  16. display:inline-block;
  17. margin:0 4px;
  18. }
  19. .light .digits div span {
  20. background-color: #f0de78;
  21. border-color: #f0de78;
  22. }
  23. .digits div span{
  24. opacity:0;
  25. position:absolute;
  26. -webkit-transition:0.25s;
  27. -moz-transition:0.25s;
  28. transition:0.25s;
  29. }
  30. .digits div span:before,
  31. .digits div span:after{
  32. content:'';
  33. position:absolute;
  34. width:0;
  35. height:0;
  36. border:5px solid transparent;
  37. }
  38. .digits .d1{ height:5px;width:16px;top:0;left:6px;}
  39. .digits .d1:before{ border-width:0 5px 5px 0;border-right-color:inherit;left:-5px;}
  40. .digits .d1:after{ border-width:0 0 5px 5px;border-left-color:inherit;right:-5px;}
  41. .digits .d2{ height:5px;width:16px;top:24px;left:6px;}
  42. .digits .d2:before{ border-width:3px 4px 2px;border-right-color:inherit;left:-8px;}
  43. .digits .d2:after{ border-width:3px 4px 2px;border-left-color:inherit;right:-8px;}
  44. .digits .d3{ height:5px;width:16px;top:48px;left:6px;}
  45. .digits .d3:before{ border-width:5px 5px 0 0;border-right-color:inherit;left:-5px;}
  46. .digits .d3:after{ border-width:5px 0 0 5px;border-left-color:inherit;right:-5px;}
  47. .digits .d4{ width:5px;height:14px;top:7px;left:0;}
  48. .digits .d4:before{ border-width:0 5px 5px 0;border-bottom-color:inherit;top:-5px;}
  49. .digits .d4:after{ border-width:0 0 5px 5px;border-left-color:inherit;bottom:-5px;}
  50. .digits .d5{ width:5px;height:14px;top:7px;right:0;}
  51. .digits .d5:before{ border-width:0 0 5px 5px;border-bottom-color:inherit;top:-5px;}
  52. .digits .d5:after{ border-width:5px 0 0 5px;border-top-color:inherit;bottom:-5px;}
  53. .digits .d6{ width:5px;height:14px;top:32px;left:0;}
  54. .digits .d6:before{ border-width:0 5px 5px 0;border-bottom-color:inherit;top:-5px;}
  55. .digits .d6:after{ border-width:0 0 5px 5px;border-left-color:inherit;bottom:-5px;}
  56. .digits .d7{ width:5px;height:14px;top:32px;right:0;}
  57. .digits .d7:before{ border-width:0 0 5px 5px;border-bottom-color:inherit;top:-5px;}
  58. .digits .d7:after{ border-width:5px 0 0 5px;border-top-color:inherit;bottom:-5px;}
  59. /* 1 */
  60. .digits div.one .d5,
  61. .digits div.one .d7{
  62. opacity:1;
  63. }
  64. /* 2 */
  65. .digits div.two .d1,
  66. .digits div.two .d5,
  67. .digits div.two .d2,
  68. .digits div.two .d6,
  69. .digits div.two .d3{
  70. opacity:1;
  71. }
  72. /* 3 */
  73. .digits div.three .d1,
  74. .digits div.three .d5,
  75. .digits div.three .d2,
  76. .digits div.three .d7,
  77. .digits div.three .d3{
  78. opacity:1;
  79. }
  80. /* 4 */
  81. .digits div.four .d5,
  82. .digits div.four .d2,
  83. .digits div.four .d4,
  84. .digits div.four .d7{
  85. opacity:1;
  86. }
  87. /* 5 */
  88. .digits div.five .d1,
  89. .digits div.five .d2,
  90. .digits div.five .d4,
  91. .digits div.five .d3,
  92. .digits div.five .d7{
  93. opacity:1;
  94. }
  95. /* 6 */
  96. .digits div.six .d1,
  97. .digits div.six .d2,
  98. .digits div.six .d4,
  99. .digits div.six .d3,
  100. .digits div.six .d6,
  101. .digits div.six .d7{
  102. opacity:1;
  103. }
  104. /* 7 */
  105. .digits div.seven .d1,
  106. .digits div.seven .d5,
  107. .digits div.seven .d7{
  108. opacity:1;
  109. }
  110. /* 8 */
  111. .digits div.eight .d1,
  112. .digits div.eight .d2,
  113. .digits div.eight .d3,
  114. .digits div.eight .d4,
  115. .digits div.eight .d5,
  116. .digits div.eight .d6,
  117. .digits div.eight .d7{
  118. opacity:1;
  119. }
  120. /* 9 */
  121. .digits div.nine .d1,
  122. .digits div.nine .d2,
  123. .digits div.nine .d3,
  124. .digits div.nine .d4,
  125. .digits div.nine .d5,
  126. .digits div.nine .d7{
  127. opacity:1;
  128. }
  129. /* 0 */
  130. .digits div.zero .d1,
  131. .digits div.zero .d3,
  132. .digits div.zero .d4,
  133. .digits div.zero .d5,
  134. .digits div.zero .d6,
  135. .digits div.zero .d7{
  136. opacity:1;
  137. }
  138. /* dot */
  139. .digits div.dot{
  140. width: 5px;
  141. }
  142. .dot:after{
  143. width: 5px;
  144. height: 5px;
  145. content: '';
  146. position: absolute;
  147. left: 0;
  148. bottom: 0px;
  149. background-color: #f0de78;
  150. }