main.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /**
  2. * css reset
  3. * html5 display-role reset
  4. * and default styles
  5. */
  6. html, body, div, span, object, h1, h2, h3, h4, h5,
  7. h6, p, blockquote, pre, a, code, em, img, strong,
  8. dl, ol, ul, li, embed, footer, header, menu, nav,
  9. time, audio, video, progress {
  10. margin: 0;
  11. padding: 0;
  12. border: 0;
  13. font: inherit;
  14. vertical-align: baseline;
  15. }
  16. footer, header, menu, main {
  17. display: block;
  18. }
  19. audio, canvas, progress, video {
  20. display: inline-block;
  21. vertical-align: baseline;
  22. }
  23. html {
  24. font-family: 'droidsans', helvetica;
  25. font-size: 22px;
  26. }
  27. body {
  28. line-height: 1.4;
  29. color: #333;
  30. background-color: #fff;
  31. }
  32. h1 {
  33. font-size: 1.75em;
  34. }
  35. h2 {
  36. font-size: 1.5em;
  37. }
  38. h3 {
  39. font-size: 1.25em;
  40. }
  41. h1, h2, h3, h4, h5, h6 {
  42. font-family: 'aller', sans-serif, georgia;
  43. margin-top: 20px;
  44. margin-bottom: 12px;
  45. letter-spacing: 2px;
  46. }
  47. h3, h4 {
  48. margin-top: 15px;
  49. margin-bottom: 10px;
  50. }
  51. h5, h6 {
  52. margin-top: 10px;
  53. }
  54. h1, h2 {
  55. font-weight: bolder;
  56. }
  57. h3, h4, strong, b {
  58. font-weight: bold;
  59. }
  60. em {
  61. font-style: italic;
  62. font-weight: 200;
  63. }
  64. blockquote {
  65. font-family: "aller", sans-serif, helvetica;
  66. quotes: none;
  67. padding: 10px 20px;
  68. margin: 0 0 20px;
  69. border-left: 5px solid #eee;
  70. font-style: italic;
  71. }
  72. hr {
  73. height: 0;
  74. margin: 20px 0;
  75. border: 0;
  76. border-top: 1px solid #eee;
  77. }
  78. pre {
  79. font-family: "Bitstream Vera Sans Mono", monospace;
  80. }
  81. code {
  82. padding: 2px 4px;
  83. font-size: 0.9em;
  84. padding: 0.05em 4px;
  85. border-radius: 4px;
  86. background: #000;
  87. overflow-x: auto;
  88. color: #f8f8f8;
  89. }
  90. pre code {
  91. display: block;
  92. margin: 10px 0;
  93. padding: 0.5em;
  94. }
  95. ul {
  96. list-style: disc;
  97. }
  98. ol {
  99. list-style: decimal;
  100. }
  101. li {
  102. margin-left: 45px;
  103. margin-bottom: 5px;
  104. line-height: 1.25;
  105. }
  106. ul, ol, dl, p {
  107. margin-bottom: 10px;
  108. }
  109. a, a:visited {
  110. color: #337ab7;
  111. }
  112. a:hover, a:active {
  113. background-color: transparent;
  114. text-decoration: underline;
  115. outline: 0;
  116. color: inherit;
  117. }
  118. a:hover, a:focus {
  119. text-decoration: underline;
  120. color: #23527c;
  121. }
  122. a:focus {
  123. outline: thin dotted;
  124. text-decoration: underline;
  125. outline-offset: -2px;
  126. }
  127. h1 a, h1 a:visited, h2 a, h2 a:visited, h3 a, h3 a:visited,
  128. h4 a, h4 a:visited, strong a, strong a:visited {
  129. color: #444;
  130. text-decoration: underline;
  131. }
  132. img {
  133. display: block;
  134. border: none;
  135. max-width: 100%;
  136. height: auto;
  137. vertical-align: middle;
  138. }
  139. /* containers */
  140. header, main, footer {
  141. max-width: 980px;
  142. margin: 20px auto;
  143. padding: 0 2%;
  144. }
  145. /* form styles */
  146. fieldset {
  147. width: 100%;
  148. margin: 0px;
  149. padding: 5px 12px;
  150. }
  151. label {
  152. width: 32%;
  153. display: inline-block;
  154. margin: 5px 0px;
  155. }
  156. input[type=text], input[type=number] {
  157. border-radius: 5px;
  158. padding: 5px 3px;
  159. }
  160. label>span {
  161. line-height: 28px;
  162. }
  163. label>span, label>input {
  164. font: 14px 'droidsans', helvetica;
  165. width: 46%;
  166. display: inline-block;
  167. }
  168. /* footer styles */
  169. footer {
  170. text-align: center;
  171. }
  172. /* responsive font sizes and link styles */
  173. @media only screen and (min-width: 981px) {
  174. html {
  175. font-size: 19px;
  176. }
  177. }
  178. @media only screen and (min-width: 1200px) {
  179. html {
  180. font-size: 16px;
  181. }
  182. a, a:hover, a:active, a:visited, h1 a, h2 a, h3 a, h4 a, strong a {
  183. text-decoration: none;
  184. }
  185. header h1 {
  186. font-size: 3em;
  187. }
  188. }