styles.scss 5.5 KB

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