1 .footnotes { font-size: 80%; }
6 * \//\ \ __ ___ __ __ ___ ___
7 * \ \ \ /'__`\ /' _ `\/\ \/\ \ / __`\ /' _ `\
8 * \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \
9 * /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\
10 * \/____/\/__/\/_/\/_/\/_/`/___/> \/___/ \/_/\/_/
14 * Designed, built, and released under MIT license by @mdo. Learn more at
15 * https://github.com/poole/lanyon.
36 * Update the foundational and global aspects of the page.
39 /* Prevent scroll on narrow devices */
46 font-family: "PT Serif", Georgia, "Times New Roman", serif;
49 h1, h2, h3, h4, h5, h6 {
50 font-family: "PT Sans", Helvetica, Arial, sans-serif;
53 letter-spacing: -.025rem;
60 * The wrapper is used to position site content when the sidebar is toggled. We
61 * use an outter wrap to position the sidebar without interferring with the
62 * regular page content.
74 * Center the page content.
80 @media (min-width: 38em) {
85 @media (min-width: 56em) {
95 * Super small header above the content for site name and short description.
100 padding-bottom: 1rem;
102 border-bottom: 1px solid #eee;
112 .masthead-title small {
119 @media (max-width: 48em) {
123 .masthead-title small {
132 * The sidebar is the drawer, the item we are toggling with our handy hamburger
133 * button in the corner of the page.
135 * This particular sidebar implementation was inspired by Chris Coyier's
136 * "Offcanvas Menu with CSS Target" article, and the checkbox variation from the
137 * comments by a reader. It modifies both implementations to continue using the
138 * checkbox (no change in URL means no polluted browser history), but this uses
139 * `position` for the menu to avoid some potential content reflow issues.
141 * Source: http://css-tricks.com/off-canvas-menu-with-css-target/#comment-207504
144 /* Style and "hide" the sidebar */
153 font-family: "PT Sans", Helvetica, Arial, sans-serif;
154 font-size: .875rem; /* 15px */
155 color: rgba(255,255,255,.6);
156 background-color: #202020;
157 -webkit-transition: all .3s ease-in-out;
158 transition: all .3s ease-in-out;
160 @media (min-width: 30em) {
162 font-size: .75rem; /* 14px */
166 /* Sidebar content */
174 .sidebar-item p:last-child {
180 border-bottom: 1px solid rgba(255,255,255,.1);
185 border-top: 1px solid rgba(255,255,255,.1);
187 .sidebar-nav-item.active,
188 a.sidebar-nav-item:hover,
189 a.sidebar-nav-item:focus {
190 text-decoration: none;
191 background-color: rgba(255,255,255,.1);
192 border-color: transparent;
195 @media (min-width: 48em) {
200 padding-left: 1.5rem;
201 padding-right: 1.5rem;
205 /* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
209 -webkit-user-select: none;
210 -moz-user-select: none;
214 /* Style the `label` that we use to target the `.sidebar-checkbox` */
220 padding: .25rem .75rem;
222 background-color: #fff;
223 border-radius: .25rem;
227 .sidebar-toggle:before {
228 display: inline-block;
232 background-image: -webkit-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%);
233 background-image: -moz-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%);
234 background-image: -ms-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%);
235 background-image: linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%);
238 .sidebar-toggle:active,
239 #sidebar-checkbox:focus ~ .sidebar-toggle,
240 #sidebar-checkbox:checked ~ .sidebar-toggle {
242 background-color: #555;
245 .sidebar-toggle:active:before,
246 #sidebar-checkbox:focus ~ .sidebar-toggle:before,
247 #sidebar-checkbox:checked ~ .sidebar-toggle:before {
248 background-image: -webkit-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%);
249 background-image: -moz-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%);
250 background-image: -ms-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%);
251 background-image: linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%);
254 @media (min-width: 30.1em) {
268 * Handle the sliding effects of the sidebar and content in one spot, seperate
269 * from the default styles.
271 * As an a heads up, we don't use `transform: translate3d()` here because when
272 * mixed with `position: fixed;` for the sidebar toggle, it creates a new
273 * containing block. Put simply, the fixed sidebar toggle behaves like
274 * `position: absolute;` when transformed.
276 * Read more about it at http://meyerweb.com/eric/thoughts/2011/09/12/.
282 -webkit-backface-visibility: hidden;
283 -ms-backface-visibility: hidden;
284 backface-visibility: hidden;
288 -webkit-transition: -webkit-transform .3s ease-in-out;
289 transition: transform .3s ease-in-out;
292 #sidebar-checkbox:checked + .sidebar {
296 #sidebar-checkbox:checked ~ .sidebar,
297 #sidebar-checkbox:checked ~ .wrap,
298 #sidebar-checkbox:checked ~ .sidebar-toggle {
299 -webkit-transform: translateX(14rem);
300 -ms-transform: translateX(14rem);
301 transform: translateX(14rem);
308 * Each post is wrapped in `.post` and is used on default and post layouts. Each
309 * page is wrapped in `.page` and is only used on the page layout.
317 /* Blog post or page title */
328 /* Meta data line below post title */
339 padding-bottom: 2rem;
340 border-top: 1px solid #eee;
349 .related-posts li small {
353 .related-posts li a:hover {
355 text-decoration: none;
357 .related-posts li a:hover small {
365 * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
366 * there are no more previous or next posts to show.
370 overflow: hidden; /* clearfix */
373 font-family: "PT Sans", Helvetica, Arial, sans-serif;
378 /* Pagination items can be `span`s or `a`s */
382 border: 1px solid #eee;
384 .pagination-item:first-child {
388 /* Only provide a hover state for linked pagination items */
389 a.pagination-item:hover {
390 background-color: #f5f5f5;
393 @media (min-width: 30em) {
401 .pagination-item:first-child {
403 border-top-left-radius: 4px;
404 border-bottom-left-radius: 4px;
406 .pagination-item:last-child {
408 border-top-right-radius: 4px;
409 border-bottom-right-radius: 4px;
417 * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle
421 .layout-reverse .sidebar {
425 .layout-reverse .sidebar-toggle {
430 .layout-reverse #sidebar-checkbox:checked ~ .sidebar,
431 .layout-reverse #sidebar-checkbox:checked ~ .wrap,
432 .layout-reverse #sidebar-checkbox:checked ~ .sidebar-toggle {
433 -webkit-transform: translateX(-14rem);
434 -ms-transform: translateX(-14rem);
435 transform: translateX(-14rem);
442 * Apply custom color schemes by adding the appropriate class to the `body`.
443 * Based on colors from Base16: http://chriskempson.github.io/base16/#default.
447 .theme-base-08 .sidebar,
448 .theme-base-08 .sidebar-toggle:active,
449 .theme-base-08 #sidebar-checkbox:checked ~ .sidebar-toggle {
450 background-color: #ac4142;
452 .theme-base-08 .container a,
453 .theme-base-08 .sidebar-toggle,
454 .theme-base-08 .related-posts li a:hover {
459 .theme-base-09 .sidebar,
460 .theme-base-09 .sidebar-toggle:active,
461 .theme-base-09 #sidebar-checkbox:checked ~ .sidebar-toggle {
462 background-color: #d28445;
464 .theme-base-09 .container a,
465 .theme-base-09 .sidebar-toggle,
466 .theme-base-09 .related-posts li a:hover {
471 .theme-base-0a .sidebar,
472 .theme-base-0a .sidebar-toggle:active,
473 .theme-base-0a #sidebar-checkbox:checked ~ .sidebar-toggle {
474 background-color: #f4bf75;
476 .theme-base-0a .container a,
477 .theme-base-0a .sidebar-toggle,
478 .theme-base-0a .related-posts li a:hover {
483 .theme-base-0b .sidebar,
484 .theme-base-0b .sidebar-toggle:active,
485 .theme-base-0b #sidebar-checkbox:checked ~ .sidebar-toggle {
486 background-color: #90a959;
488 .theme-base-0b .container a,
489 .theme-base-0b .sidebar-toggle,
490 .theme-base-0b .related-posts li a:hover {
495 .theme-base-0c .sidebar,
496 .theme-base-0c .sidebar-toggle:active,
497 .theme-base-0c #sidebar-checkbox:checked ~ .sidebar-toggle {
498 background-color: #75b5aa;
500 .theme-base-0c .container a,
501 .theme-base-0c .sidebar-toggle,
502 .theme-base-0c .related-posts li a:hover {
507 .theme-base-0d .sidebar,
508 .theme-base-0d .sidebar-toggle:active,
509 .theme-base-0d #sidebar-checkbox:checked ~ .sidebar-toggle {
510 background-color: #6a9fb5;
512 .theme-base-0d .container a,
513 .theme-base-0d .sidebar-toggle,
514 .theme-base-0d .related-posts li a:hover {
519 .theme-base-0e .sidebar,
520 .theme-base-0e .sidebar-toggle:active,
521 .theme-base-0e #sidebar-checkbox:checked ~ .sidebar-toggle {
522 background-color: #aa759f;
524 .theme-base-0e .container a,
525 .theme-base-0e .sidebar-toggle,
526 .theme-base-0e .related-posts li a:hover {
531 .theme-base-0f .sidebar,
532 .theme-base-0f .sidebar-toggle:active,
533 .theme-base-0f #sidebar-checkbox:checked ~ .sidebar-toggle {
534 background-color: #8f5536;
536 .theme-base-0f .container a,
537 .theme-base-0f .sidebar-toggle,
538 .theme-base-0f .related-posts li a:hover {
546 * Make the sidebar content overlay the viewport content instead of pushing it
547 * aside when toggled.
550 .sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
551 -webkit-transform: translateX(0);
552 -ms-transform: translateX(0);
553 transform: translateX(0);
555 .sidebar-overlay #sidebar-checkbox:checked ~ .sidebar-toggle {
556 box-shadow: 0 0 0 .25rem #fff;
558 .sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
559 box-shadow: .25rem 0 .5rem rgba(0,0,0,.1);
562 /* Only one tweak for a reverse layout */
563 .layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
564 box-shadow: -.25rem 0 .5rem rgba(0,0,0,.1);