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