styles.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. * {
  2. -webkit-box-sizing: border-box;
  3. -moz-box-sizing: border-box;
  4. box-sizing: border-box; }
  5. /** more normalize **/
  6. *,
  7. *:before,
  8. *:after {
  9. -webkit-box-sizing: border-box;
  10. -moz-box-sizing: border-box;
  11. box-sizing: border-box; }
  12. html, body {
  13. height: 100%; }
  14. /*
  15. Typography
  16. ==================================
  17. */
  18. body {
  19. font-family: "Merriweather", "Georgia", "Times New Roman", serif;
  20. font-weight: 400;
  21. font-style: normal;
  22. line-height: 1.9em; }
  23. header h1 {
  24. font-family: "Merriweather", "Georgia", "Times New Roman", serif;
  25. font-weight: normal; }
  26. h1, h2, h3, h4, h5, h6 {
  27. font-family: "Open Sans", Arial, sans-serif; }
  28. h1 {
  29. margin-top: 0.8em;
  30. margin-bottom: 1em;
  31. font-size: 24pt;
  32. line-height: 1.3em; }
  33. h2, h3, h4, h5, h6 {
  34. margin-top: 2em;
  35. line-height: 1.2em; }
  36. h2:before, h3:before, h4:before, h5:before, h6:before {
  37. content: '';
  38. display: block;
  39. position: relative;
  40. width: 0;
  41. height: 4em;
  42. margin-top: -4em; }
  43. /** Overall structure, desktop and mobile */
  44. header {
  45. background-color: #153E56;
  46. padding: 1.3em;
  47. color: #ffffff;
  48. position: fixed;
  49. height: 80px;
  50. width: 100%; }
  51. header h1 {
  52. margin: 0;
  53. font-size: 26pt; }
  54. header h1 a,
  55. header h1 a:link,
  56. header h1 a:visited {
  57. color: #ffffff;
  58. border-bottom: 0px; }
  59. header h1 a:hover {
  60. border-bottom: 1px solid #fff; }
  61. aside {
  62. float: left;
  63. display: block;
  64. margin-right: 2.35765%;
  65. width: 25.36421%;
  66. margin-top: 80px; }
  67. aside:last-child {
  68. margin-right: 0; }
  69. article {
  70. margin-left: 2.13245%;
  71. float: left;
  72. display: block;
  73. margin-right: 2.35765%;
  74. width: 65.88078%;
  75. margin-bottom: 20px;
  76. margin-top: 80px; }
  77. article:last-child {
  78. margin-right: 0; }
  79. @media screen and (max-width: 600px) {
  80. header {
  81. padding: 20px 10px;
  82. height: 65px; }
  83. header h1 {
  84. font-size: 18pt; }
  85. aside {
  86. float: left;
  87. display: block;
  88. margin-right: 2.35765%;
  89. width: 100%;
  90. margin-top: 65px; }
  91. aside:last-child {
  92. margin-right: 0; }
  93. article {
  94. float: left;
  95. display: block;
  96. margin-right: 2.35765%;
  97. width: 100%;
  98. padding-left: 5px;
  99. padding-right: 10px;
  100. margin-top: 0px; }
  101. article:last-child {
  102. margin-right: 0; } }
  103. @media screen and (max-width: 320px) {
  104. header h1 {
  105. font-size: 16pt; } }
  106. /* todo: errrr */
  107. img {
  108. width: 700px; }
  109. /* Lists */
  110. article ul {
  111. padding-left: 1.1em; }
  112. article li {
  113. margin-bottom: 1em; }
  114. li h3,
  115. li h4 {
  116. margin: 0; }
  117. li p {
  118. margin-top: 0; }
  119. /* Navigation */
  120. aside p {
  121. padding-left: 15px; }
  122. aside .sidebar-nav a {
  123. display: block;
  124. padding: 10px;
  125. -webkit-transition: .4s;
  126. transition: .4s; }
  127. aside .sidebar-nav a,
  128. aside .sidebar-nav a:link,
  129. aside .sidebar-nav a:visited {
  130. border-bottom: none;
  131. color: #75787b; }
  132. aside .sidebar-nav li:hover,
  133. aside .sidebar-nav .sidebar-nav-active {
  134. color: #75787b;
  135. border-left: 5px solid #153E56;
  136. background-color: transparent;
  137. border-bottom: 1px solid #babbbd;
  138. padding-left: 0; }
  139. aside .sidebar-nav ul {
  140. margin: 0;
  141. padding: 0; }
  142. aside .sidebar-nav li {
  143. list-style: none;
  144. border-bottom: 1px solid #babbbd;
  145. /*font-size: 1.125em;*/
  146. font-size: 0.8em;
  147. padding-left: 5px; }
  148. aside .sidebar-nav li:last-child {
  149. border-bottom: none; }
  150. p > code, li > code {
  151. padding: 2px 4px;
  152. background-color: #eaeaff;
  153. border: 1px solid #d5d5d5;
  154. font-size: 10pt;
  155. font-family: monospace; }
  156. pre {
  157. max-width: 100%;
  158. font-size: 0.875em;
  159. overflow-y: scroll;
  160. background-color: #f1f2f2;
  161. padding: 10px; }
  162. /* Links */
  163. /* for hover effects */
  164. a {
  165. -webkit-transition: .2s;
  166. -moz-transition: .2s;
  167. transition: .2s; }
  168. a,
  169. a:link,
  170. a:visited {
  171. color: #0072ce;
  172. border-bottom: 1px dotted #0072ce;
  173. text-decoration: none; }
  174. a:hover {
  175. border-bottom: 1px solid #7eb8dd;
  176. color: #7eb8dd;
  177. text-decoration: none; }
  178. a:active {
  179. border-bottom: 1px solid #0072ce;
  180. color: #002d72;
  181. text-decoration: none; }
  182. a:focus {
  183. border-bottom: 1px solid #0072ce;
  184. color: #0072ce;
  185. outline: thin dotted;
  186. text-decoration: none; }
  187. a.skip-link {
  188. color: #0072ce;
  189. border-bottom: none;
  190. padding: .25em; }
  191. a.skip-link:hover,
  192. a.skip-link:active,
  193. a.skip-link:focus {
  194. background-color: #0072ce;
  195. color: #ffffff;
  196. border-bottom: none; }
  197. /* Helpers */
  198. /* Hide from both screenreaders and browsers: h5bp.com/u */
  199. .hidden {
  200. display: none !important;
  201. visibility: hidden; }
  202. /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
  203. .visuallyhidden {
  204. border: 0;
  205. clip: rect(0 0 0 0);
  206. height: 1px;
  207. margin: -1px;
  208. overflow: hidden;
  209. padding: 0;
  210. position: absolute;
  211. width: 1px; }
  212. /* Extends the .visuallyhidden class to allow the element to be focusable
  213. * when navigated to via the keyboard: h5bp.com/p */
  214. .visuallyhidden.focusable:active,
  215. .visuallyhidden.focusable:focus {
  216. clip: auto;
  217. height: auto;
  218. margin: 0;
  219. overflow: visible;
  220. position: static;
  221. width: auto; }
  222. /* Hide visually and from screenreaders, but maintain layout */
  223. .invisible {
  224. visibility: hidden; }
  225. /*# sourceMappingURL=styles.css.map */