main.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* fonts */
  2. @font-face {
  3. font-family: 'aller';
  4. src: url('https://d2xxklvztqk0jd.cloudfront.net/fonts/aller.ttf') format('truetype');
  5. font-weight: normal;
  6. font-style: normal;
  7. }
  8. @font-face {
  9. font-family: 'droidsans';
  10. src: url('https://d2xxklvztqk0jd.cloudfront.net/fonts/droidsans.ttf') format('truetype');
  11. font-weight: normal;
  12. font-style: normal;
  13. }
  14. @font-face {
  15. font-family: 'formatekonave';
  16. src: url('https://d2xxklvztqk0jd.cloudfront.net/fonts/formatekonave.ttf') format('truetype');
  17. font-weight: normal;
  18. font-style: normal;
  19. }
  20. /**
  21. * css reset
  22. * html5 display-role reset
  23. * and default styles
  24. */
  25. html, body, div, span, object, h1, h2, h3, h4, h5,
  26. h6, p, blockquote, pre, a, code, em, img, strong,
  27. dl, ol, ul, li, embed, footer, header, menu, nav,
  28. time, audio, video, progress {
  29. margin: 0;
  30. padding: 0;
  31. border: 0;
  32. font: inherit;
  33. vertical-align: baseline;
  34. }
  35. footer, header, menu, nav {
  36. display: block;
  37. }
  38. audio, canvas, progress, video {
  39. display: inline-block;
  40. vertical-align: baseline;
  41. }
  42. html {
  43. font-family: 'droidsans', helvetica;
  44. font-size: 22px;
  45. }
  46. body {
  47. line-height: 1.4;
  48. color: #333;
  49. background-color: #fff;
  50. }
  51. h1 {
  52. font-size: 1.75em;
  53. }
  54. h2 {
  55. font-size: 1.5em;
  56. }
  57. h3 {
  58. font-size: 1.25em;
  59. }
  60. h1, h2, h3, h4, h5, h6 {
  61. font-family: 'aller', sans-serif, georgia;
  62. margin-top: 20px;
  63. margin-bottom: 12px;
  64. letter-spacing: 2px;
  65. }
  66. h3, h4 {
  67. margin-top: 15px;
  68. margin-bottom: 10px;
  69. }
  70. h5, h6 {
  71. margin-top: 10px;
  72. }
  73. h1, h2 {
  74. font-weight: bolder;
  75. }
  76. h3, h4, strong, b {
  77. font-weight: bold;
  78. }
  79. em {
  80. font-style: italic;
  81. font-weight: 200;
  82. }
  83. blockquote {
  84. font-family: "aller", sans-serif, helvetica;
  85. quotes: none;
  86. padding: 10px 20px;
  87. margin: 0 0 20px;
  88. border-left: 5px solid #eee;
  89. font-style: italic;
  90. }
  91. hr {
  92. height: 0;
  93. margin: 20px 0;
  94. border: 0;
  95. border-top: 1px solid #eee;
  96. }
  97. pre {
  98. font-family: 'formatekonave', monospace;
  99. }
  100. code {
  101. padding: 2px 4px;
  102. font-size: 0.9em;
  103. padding: 0.05em 4px;
  104. border-radius: 4px;
  105. background: #000;
  106. overflow-x: auto;
  107. color: #f8f8f8;
  108. }
  109. pre code {
  110. display: block;
  111. margin: 10px 0;
  112. padding: 0.5em;
  113. }
  114. ul {
  115. list-style: disc;
  116. }
  117. ol {
  118. list-style: decimal;
  119. }
  120. li {
  121. margin-left: 45px;
  122. margin-bottom: 5px;
  123. line-height: 1.25;
  124. }
  125. ul, ol, dl, p {
  126. margin-bottom: 10px;
  127. }
  128. a, a:visited {
  129. color: #337ab7;
  130. }
  131. a:hover, a:active {
  132. background-color: transparent;
  133. text-decoration: underline;
  134. outline: 0;
  135. color: inherit;
  136. }
  137. a:hover, a:focus {
  138. text-decoration: underline;
  139. color: #23527c;
  140. }
  141. a:focus {
  142. outline: thin dotted;
  143. text-decoration: underline;
  144. outline-offset: -2px;
  145. }
  146. h1 a, h1 a:visited, h2 a, h2 a:visited, h3 a, h3 a:visited,
  147. h4 a, h4 a:visited, strong a, strong a:visited {
  148. color: #444;
  149. text-decoration: underline;
  150. }
  151. img {
  152. display: block;
  153. border: none;
  154. max-width: 100%;
  155. height: auto;
  156. vertical-align: middle;
  157. }
  158. /* containers */
  159. header, .content, footer {
  160. max-width: 980px;
  161. margin: 20px auto;
  162. padding: 0 2%;
  163. }
  164. /* header & navigation */
  165. header>a {
  166. color: #000;
  167. text-decoration: none;
  168. }
  169. header h1 {
  170. margin-bottom: 15px;
  171. }
  172. nav li {
  173. font-size: 1.5em;
  174. line-height: 2;
  175. padding: 0 15px;
  176. list-style: none;
  177. }
  178. /* footer styles */
  179. footer {
  180. text-align: center;
  181. }
  182. footer .link {
  183. display: inline-block;
  184. width: 29px;
  185. height: 29px;
  186. margin: 0 15px;
  187. overflow: hidden;
  188. background-repeat: no-repeat;
  189. }
  190. footer .facebook {
  191. background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/facebook.png');
  192. }
  193. footer .linkedin {
  194. background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/linkedin.png');
  195. width: 34px;
  196. }
  197. footer .youtube {
  198. background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/youtube.png');
  199. width: 41px;
  200. }
  201. footer .github {
  202. background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/github.png');
  203. }
  204. footer .skype {
  205. background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/skype.png');
  206. }
  207. /* clearfix */
  208. .group:after {
  209. content: "";
  210. display: table;
  211. clear: both;
  212. }
  213. /* responsive font sizes and link styles */
  214. @media only screen and (min-width: 981px) {
  215. html {
  216. font-size: 19px;
  217. }
  218. }
  219. @media only screen and (min-width: 1200px) {
  220. html {
  221. font-size: 16px;
  222. }
  223. a, a:hover, a:active, a:visited, h1 a, h2 a, h3 a, h4 a, strong a {
  224. text-decoration: none;
  225. }
  226. header h1 {
  227. font-size: 3em;
  228. }
  229. nav li {
  230. display: inline;
  231. }
  232. }
  233. /* for print support */
  234. @media print {
  235. nav, footer {
  236. display: none;
  237. }
  238. p, ul, ol, li {
  239. orphans: 5;
  240. widows: 3;
  241. }
  242. ul, ol, blockquote, pre, code {
  243. page-break-inside: avoid;
  244. }
  245. h2, h3, h4 {
  246. page-break-after: avoid;
  247. }
  248. html {
  249. font-size: 1em;
  250. }
  251. body {
  252. background: white;
  253. }
  254. .content {
  255. background: transparent;
  256. }
  257. p a[href^="http"]:after, li a[href^="http"]:after {
  258. content: " (" attr(href) ")";
  259. }
  260. }