styles.scss 5.5 KB

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