123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- @import "bourbon/bourbon";
- @import "neat/neat";
- // Colors
- $header: #153E56;
- $white: #ffffff;
- $mid-gray: #75787b;
- $border-gray: #babbbd;
- $link: #0072ce;
- $link-active: #002d72;
- $link-hover: #7eb8dd;
- $header-height: 80px;
- $header-height-mobile: 65px;
- // Fonts
- $serif: "Merriweather", "Georgia", "Times New Roman", serif;
- $sans-serif: "Open Sans", Arial, sans-serif;
- // Mobile Breakpoints
- $mobile: new-breakpoint(min-width 0px max-width 640px 4);
- $slimmer: new-breakpoint(min-width 641px max-width 980px 12);
- /** more normalize **/
- *,
- *:before,
- *:after {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- html, body {
- height: 100%;
- }
- /*
- Typography
- ==================================
- */
- body {
- font-family: $serif;
- font-weight: 400;
- font-style: normal;
- line-height: 1.9em;
- }
- header h1 {
- font-family: $serif;
- font-weight: normal;
- }
- h1, h2, h3, h4, h5, h6 {
- font-family: $sans-serif;
- }
- h1 {
- margin-top: 0.8em;
- margin-bottom: 1em;
- font-size: 24pt;
- line-height: 1.3em;
- }
- h2, h3, h4, h5, h6 {
- margin-top: 2em;
- line-height: 1.2em;
- }
- h2:before, h3:before, h4:before, h5:before, h6:before {
- content: '';
- display: block; position: relative;
- width: 0; height: 4em;
- margin-top: -4em;
- }
- /** Table Structure */
- table {
- border-collapse:collapse;
- border-spacing:0;
- border:1px solid black;
- }
- td {
- text-align:left;
- font-weight:normal;
- vertical-align:middle;
- border:1px solid black;
- padding:5px;
- }
- th {border: 1px solid black;
- padding:5px;}
-
- /** Overall structure, desktop and mobile */
- header {
- background-color: $header;
- padding: 1.3em;
- color: $white;
- position: fixed;
- height: $header-height;
- width: 100%;
- h1 {
- margin: 0;
- font-size: 26pt;
- }
- h1 a,
- h1 a:link,
- h1 a:visited {
- color: $white;
- border-bottom: 0px;
- }
- h1 a:hover {
- border-bottom: 1px solid #fff;
- }
- }
- aside {
- @include span-columns(3.25);
- margin-top: $header-height;
- }
- article {
- @include shift(0.25);
- @include span-columns(8);
- margin-bottom: 20px;
- margin-top: $header-height;
- }
- @media screen and (max-width: 600px) {
- header {
- padding: 20px 10px;
- height: $header-height-mobile;
- h1 {
- font-size: 18pt;
- }
- }
- aside {
- @include span-columns(12);
- margin-top: $header-height-mobile;
- }
- article {
- @include span-columns(12);
- padding-left: 5px;
- padding-right: 10px;
- margin-top: 0px;
- }
- }
- @media screen and (max-width: 320px) {
- header {
- h1 {
- font-size: 16pt;
- }
- }
- }
- /* todo: errrr */
- img {width: 700px;}
- /* Lists */
- article ul {
- padding-left: 1.1em;
- }
- article li {
- margin-bottom: 1em;
- }
- li h3,
- li h4 {
- margin: 0;
- }
- li p {
- margin-top: 0;
- }
- /* Navigation */
- aside {
- p {
- padding-left: 15px;
- }
- .sidebar-nav a {
- display: block;
- padding: 10px;
- -webkit-transition: .4s;
- transition: .4s;
- }
- .sidebar-nav a,
- .sidebar-nav a:link,
- .sidebar-nav a:visited {
- border-bottom: none;
- color: $mid-gray;
- }
- .sidebar-nav li:hover,
- .sidebar-nav .sidebar-nav-active {
- color: $mid-gray;
- border-left: 5px solid $header;
- background-color: transparent;
- border-bottom: 1px solid $border-gray;
- padding-left: 0;
- }
- .sidebar-nav ul {
- margin: 0;
- padding: 0;
- }
- .sidebar-nav li {
- list-style: none;
- border-bottom: 1px solid $border-gray;
- font-size: 1.125em;
- padding-left: 5px;
- }
- .sidebar-nav li:last-child {
- border-bottom: none;
- }
- }
- p > code, li > code {
- padding: 2px 4px;
- background-color: #eaeaff;
- border: 1px solid #d5d5d5;
- font-size: 10pt;
- font-family: monospace;
- }
- pre {
- max-width: 100%;
- font-size: 0.875em;
- overflow-y: scroll;
- background-color: #f1f2f2;
- padding: 10px;
- }
- /* Links */
- /* for hover effects */
- a {
- -webkit-transition: .2s;
- -moz-transition: .2s;
- transition: .2s;
- }
- a,
- a:link,
- a:visited {
- color: $link;
- border-bottom: 1px dotted $link;
- text-decoration: none;
- }
- a:hover {
- border-bottom: 1px solid $link-hover;
- color: $link-hover;
- text-decoration: none;
- }
- a:active {
- border-bottom: 1px solid $link;
- color: $link-active;
- text-decoration: none;
- }
- a:focus {
- border-bottom: 1px solid $link;
- color: $link;
- outline: thin dotted;
- text-decoration: none;
- }
- a.skip-link {
- color: $link;
- border-bottom: none;
- padding: .25em;
- }
- a.skip-link:hover,
- a.skip-link:active,
- a.skip-link:focus {
- background-color: $link;
- color: $white;
- border-bottom: none;
- }
- /* Helpers */
- /* Hide from both screenreaders and browsers: h5bp.com/u */
- .hidden {
- display: none !important;
- visibility: hidden;
- }
- /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
- .visuallyhidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
- }
- /* Extends the .visuallyhidden class to allow the element to be focusable
- * when navigated to via the keyboard: h5bp.com/p */
- .visuallyhidden.focusable:active,
- .visuallyhidden.focusable:focus {
- clip: auto;
- height: auto;
- margin: 0;
- overflow: visible;
- position: static;
- width: auto;
- }
- /* Hide visually and from screenreaders, but maintain layout */
- .invisible {
- visibility: hidden;
- }
|