style.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. b, u, i, center,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td,
  10. article, aside, canvas, details, embed,
  11. figure, figcaption, footer, header, hgroup,
  12. menu, nav, output, ruby, section, summary,
  13. time, mark, audio, video {
  14. margin: 0;
  15. padding: 0;
  16. border: 0;
  17. font-size: 100%;
  18. font: inherit;
  19. vertical-align: baseline;
  20. }
  21. article, aside, details, figcaption, figure,
  22. footer, header, hgroup, menu, nav, section {
  23. display: block;
  24. }
  25. body {
  26. line-height: 1;
  27. }
  28. ol, ul {
  29. list-style: none;
  30. }
  31. blockquote, q {
  32. quotes: none;
  33. }
  34. blockquote:before, blockquote:after,
  35. q:before, q:after {
  36. content: '';
  37. content: none;
  38. }
  39. table {
  40. border-collapse: collapse;
  41. border-spacing: 0;
  42. }
  43. .about {
  44. margin: 80px auto;
  45. padding: 8px;
  46. width: 260px;
  47. font: 10px/18px "Lucida Grande", Tahoma, Verdana, sans-serif;
  48. color: #777;
  49. text-align: center;
  50. text-shadow: 0 1px rgba(255, 255, 255, 0.25);
  51. background: #eee;
  52. background: rgba(250, 250, 250, 0.8);
  53. border-radius: 4px;
  54. -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 6px rgba(0, 0, 0, 0.2);
  55. box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 6px rgba(0, 0, 0, 0.2);
  56. background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  57. background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  58. background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  59. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  60. }
  61. .about a {
  62. color: #333;
  63. text-decoration: none;
  64. border-radius: 2px;
  65. -webkit-transition: 0.1s;
  66. -moz-transition: 0.1s;
  67. -o-transition: 0.1s;
  68. transition: 0.1s;
  69. }
  70. .about a:hover {
  71. text-decoration: none;
  72. background: #fafafa;
  73. background: rgba(255, 255, 255, 0.7);
  74. }
  75. .about-links {
  76. height: 30px;
  77. }
  78. .about-links a {
  79. float: left;
  80. width: 50%;
  81. line-height: 30px;
  82. font-size: 12px;
  83. }
  84. .about-author {
  85. margin-top: 5px;
  86. }
  87. .about-author a {
  88. padding: 1px 3px;
  89. margin: 0 -1px;
  90. }
  91. /*
  92. * Copyright (c) 2012-2013 Thibaut Courouble
  93. * http://www.webinterfacelab.com
  94. *
  95. * Licensed under the MIT License:
  96. * http://www.opensource.org/licenses/mit-license.php
  97. */
  98. body {
  99. font: 13px/20px "Lucida Grande", Tahoma, Verdana, sans-serif;
  100. color: #404040;
  101. background: #2a2a2a url("../images/bg.png") 0 0 repeat;
  102. }
  103. .container {
  104. margin: 80px auto;
  105. width: 640px;
  106. text-align: center;
  107. }
  108. .container .progress {
  109. margin: 0 auto;
  110. width: 400px;
  111. }
  112. .progress {
  113. padding: 4px;
  114. background: rgba(0, 0, 0, 0.25);
  115. border-radius: 6px;
  116. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
  117. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
  118. }
  119. .progress-bar {
  120. position: relative;
  121. height: 16px;
  122. border-radius: 4px;
  123. -webkit-transition: 0.1s linear;
  124. -moz-transition: 0.1s linear;
  125. -o-transition: 0.1s linear;
  126. transition: 0.1s linear;
  127. -webkit-transition-property: width, background-color;
  128. -moz-transition-property: width, background-color;
  129. -o-transition-property: width, background-color;
  130. transition-property: width, background-color;
  131. -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
  132. box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
  133. }
  134. .progress-bar:before, .progress-bar:after {
  135. content: '';
  136. position: absolute;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. }
  141. .progress-bar:before {
  142. bottom: 0;
  143. background: url("../images/stripes.png") 0 0 repeat;
  144. border-radius: 4px 4px 0 0;
  145. }
  146. .progress-bar:after {
  147. z-index: 2;
  148. bottom: 45%;
  149. border-radius: 4px;
  150. background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  151. background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  152. background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  153. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  154. }
  155. /*
  156. * Note: using adjacent or general sibling selectors combined with
  157. * pseudo classes doesn't work in Safari 5.0 and Chrome 12.
  158. * See this article for more info and a potential fix:
  159. * http://css-tricks.com/webkit-sibling-bug/
  160. */
  161. #five:checked ~ .progress > .progress-bar {
  162. width: 5%;
  163. background-color: #f63a0f;
  164. }
  165. #twentyfive:checked ~ .progress > .progress-bar {
  166. width: 25%;
  167. background-color: #f27011;
  168. }
  169. #fifty:checked ~ .progress > .progress-bar {
  170. width: 50%;
  171. background-color: #f2b01e;
  172. }
  173. #seventyfive:checked ~ .progress > .progress-bar {
  174. width: 75%;
  175. background-color: #f2d31b;
  176. }
  177. #onehundred:checked ~ .progress > .progress-bar {
  178. width: 100%;
  179. background-color: #86e01e;
  180. }
  181. .radio {
  182. display: none;
  183. }
  184. .label {
  185. display: inline-block;
  186. margin: 0 5px 20px;
  187. padding: 3px 8px;
  188. color: #aaa;
  189. text-shadow: 0 1px black;
  190. border-radius: 3px;
  191. cursor: pointer;
  192. }
  193. .radio:checked + .label {
  194. color: white;
  195. background: rgba(0, 0, 0, 0.25);
  196. }