1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
|
---
# Only the main Sass file needs front matter (the dashes are enough)
---
@charset "utf-8";
@font-face {
font-family: 'Lato';
src: url("{{ '/static/fonts/LatoLatin-Italic.woff2' }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Italic.woff' }}") format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Lato';
src: url("{{ '/static/fonts/LatoLatin-Black.woff2' }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Black.woff' }}") format('woff');
font-weight: 900;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url("{{ '/static/fonts/LatoLatin-BlackItalic.woff2' }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-BlackItalic.woff' }}") format('woff');
font-weight: 900;
font-style: italic;
}
@font-face {
font-family: 'Lato';
src: url("{{ '/static/fonts/LatoLatin-Light.woff2' }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Light.woff' }}") format('woff');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url("{{ '/static/fonts/LatoLatin-Regular.woff2' }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Regular.woff' }}") format('woff');
font-weight: normal;
font-style: normal;
}
// Our variables
$base-font-family: 'Lato', Calibri, Arial, sans-serif;
$header-font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
$base-font-size: 18px;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.4em;
$spacing-unit: 12px;
// Two configured colors (see _config.yml)
$primary-bg: {{ site.color.primary }};
$secondary-bg: {{ site.color.secondary }};
// $primary-bg overlays
{% if site.color.primary-overlay == 'light' %}
$primary-overlay: darken($primary-bg, 70%);
$primary-overlay-special: darken($primary-bg, 40%);
{% else %}
$primary-overlay: #fff;
$primary-overlay-special: lighten($primary-bg, 30%);
{% endif %}
// $secondary-bg overlays
{% if site.color.secondary-overlay == 'light' %}
$text: #393939;
$sidenav: darken($secondary-bg, 20%);
$sidenav-text: $text;
$sidenav-overlay: darken($sidenav, 10%);
$sidenav-active: lighten($sidenav, 10%);
{% else %}
$text: #fff;
$sidenav: lighten($secondary-bg, 20%);
$sidenav-text: $text;
$sidenav-overlay: lighten($sidenav, 10%);
$sidenav-active: darken($sidenav, 10%);
{% endif %}
$code-bg: #002b36;
$header-height: 34px;
$header-ptop: 10px;
$header-pbot: 8px;
// Width of the content area
$content-width: 900px;
// Table setting variables
$lightergrey: #F8F8F8;
$greyish: #E8E8E8;
$lightgrey: #B0B0B0;
$green: #2db04b;
// Using media queries with like this:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: $spacing-unit / 2;
// padding-left: $spacing-unit / 2;
// }
// }
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}
// Import partials from `sass_dir` (defaults to `_sass`)
@import
"reset",
"base",
"header",
"search",
"syntax-highlighting",
"promo",
"buttons",
"gridBlock",
"poweredby",
"footer",
"react_header_nav",
"react_docs_nav",
"tables",
"blog"
;
// Anchor links
// http://ben.balter.com/2014/03/13/pages-anchor-links/
.header-link {
position: absolute;
margin-left: 0.2em;
opacity: 0;
-webkit-transition: opacity 0.2s ease-in-out 0.1s;
-moz-transition: opacity 0.2s ease-in-out 0.1s;
-ms-transition: opacity 0.2s ease-in-out 0.1s;
}
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
opacity: 1;
}
/* Social Banner */
.socialBanner {
font-weight: bold;
font-size: 20px;
padding: 20px;
max-width: 768px;
margin: 0 auto;
text-align: center;
}
|