timeTo.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. figure, figcaption {
  2. display: block;
  3. }
  4. .transition {
  5. -webkit-transition: top 400ms linear;
  6. -moz-transition: top 400ms linear;
  7. -ms-transition: top 400ms linear;
  8. -o-transition: top 400ms linear;
  9. transition: top 400ms linear;
  10. }
  11. .timeTo {
  12. font-family: Tahoma, Verdana, Aial, sans-serif;
  13. font-size: 28px;
  14. line-height: 108%;
  15. font-weight: bold;
  16. height: 32px;
  17. }
  18. .timeTo span {
  19. vertical-align: top;
  20. }
  21. .timeTo.timeTo-white div {
  22. color: black;
  23. background: #ffffff; /* Old browsers */
  24. background: -moz-linear-gradient(top, #ffffff 38%, #cccccc 100%); /* FF3.6+ */
  25. background: -webkit-gradient(linear, left top, left bottom, color-stop(38%,#ffffff), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
  26. background: -webkit-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
  27. background: -o-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* Opera 11.10+ */
  28. background: -ms-linear-gradient(top, #ffffff 38%,#cccccc 100%); /* IE10+ */
  29. background: linear-gradient(to bottom, #ffffff 38%,#cccccc 100%); /* W3C */
  30. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
  31. }
  32. .timeTo.timeTo-black div {
  33. color: white;
  34. background: #45484d; /* Old browsers */
  35. background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); /* FF3.6+ */
  36. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000)); /* Chrome,Safari4+ */
  37. background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
  38. background: -o-linear-gradient(top, #45484d 0%,#000000 100%); /* Opera 11.10+ */
  39. background: -ms-linear-gradient(top, #45484d 0%,#000000 100%); /* IE10+ */
  40. background: linear-gradient(to bottom, #45484d 0%,#000000 100%); /* W3C */
  41. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
  42. }
  43. .timeTo.timeTo-black .timeTo-alert {
  44. background: #a74444; /* Old browsers */
  45. background: -moz-linear-gradient(top, #a74444 0%, #3f0000 67%); /* FF3.6+ */
  46. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a74444), color-stop(67%,#3f0000)); /* Chrome,Safari4+ */
  47. background: -webkit-linear-gradient(top, #a74444 0%,#3f0000 67%); /* Chrome10+,Safari5.1+ */
  48. background: -o-linear-gradient(top, #a74444 0%,#3f0000 67%); /* Opera 11.10+ */
  49. background: -ms-linear-gradient(top, #a74444 0%,#3f0000 67%); /* IE10+ */
  50. background: linear-gradient(to bottom, #a74444 0%,#3f0000 67%); /* W3C */
  51. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a74444', endColorstr='#3f0000',GradientType=0 ); /* IE6-9 */
  52. }
  53. .timeTo.timeTo-white .timeTo-alert {
  54. background: #ffffff; /* Old browsers */
  55. background: -moz-linear-gradient(top, #ffffff 35%, #e17373 100%); /* FF3.6+ */
  56. background: -webkit-gradient(linear, left top, left bottom, color-stop(35%,#ffffff), color-stop(100%,#e17373)); /* Chrome,Safari4+ */
  57. background: -webkit-linear-gradient(top, #ffffff 35%,#e17373 100%); /* Chrome10+,Safari5.1+ */
  58. background: -o-linear-gradient(top, #ffffff 35%,#e17373 100%); /* Opera 11.10+ */
  59. background: -ms-linear-gradient(top, #ffffff 35%,#e17373 100%); /* IE10+ */
  60. background: linear-gradient(to bottom, #ffffff 35%,#e17373 100%); /* W3C */
  61. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e17373',GradientType=0 ); /* IE6-9 */
  62. }
  63. .timeTo figure {
  64. display: inline-block;
  65. margin: 0;
  66. padding: 0;
  67. }
  68. .timeTo figcaption {
  69. text-align: center;
  70. /*font-size: 12px;*/
  71. line-height: 80%;
  72. font-weight: normal;
  73. color: #888;
  74. }
  75. .timeTo div {
  76. position: relative;
  77. display: inline-block;
  78. width: 25px;
  79. height: 30px;
  80. border-top: 1px solid silver;
  81. border-right: 1px solid silver;
  82. border-bottom: 1px solid silver;
  83. overflow: hidden;
  84. }
  85. .timeTo div.first {
  86. border-left: 1px solid silver;
  87. }
  88. .timeTo ul {
  89. list-style-type: none;
  90. margin: 0;
  91. padding: 0;
  92. position: absolute;
  93. left: 3px;
  94. }
  95. .timeTo ul li {
  96. margin: 0;
  97. padding: 0;
  98. list-style: none;
  99. }