@@ -0,0 +1,491 @@
1+/*
2+ * ___
3+ * /\_ \
4+ * \//\ \ __ ___ __ __ ___ ___
5+ * \ \ \ /'__`\ /' _ `\/\ \/\ \ / __`\ /' _ `\
6+ * \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \
7+ * /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\
8+ * \/____/\/__/\/_/\/_/\/_/`/___/> \/___/ \/_/\/_/
9+ * /\___/
10+ * \/__/
11+ *
12+ * Lanyon is a responsive, mobile first Jekyll theme that features a toggleable
13+ * sidebar drawer for out of sight navigation. It's based on Poole, the Jekyll
14+ * butler. See the project readme for usage information.
15+ *
16+ * Designed, built, and released under MIT license by @mdo.
17+ *
18+ * Learn more at https://github.com/poole/lanyon.
19+ */
20+
21+
22+/*
23+ * Contents
24+ *
25+ * Global resets
26+ * Masthead
27+ * Sidebar
28+ * Posts and pages
29+ * Pagination
30+ * Reverse layout
31+ * Themes
32+ */
33+
34+
35+/*
36+ * Global resets
37+ *
38+ * Update the foundational and global aspects of the page.
39+ */
40+
41+/* Prevent scroll on narrow devices */
42+html,
43+body {
44+ overflow-x: hidden;
45+}
46+
47+html {
48+ font-family: "PT Serif", Georgia, "Times New Roman", serif;
49+}
50+
51+h1, h2, h3, h4, h5, h6 {
52+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
53+ font-weight: 400;
54+ color: #313131;
55+ letter-spacing: -.025rem;
56+}
57+
58+
59+/*
60+ * Wrapper
61+ *
62+ * The wrapper is used to position site content when the sidebar is toggled. We
63+ * use an outter wrap to position the sidebar without interferring with the
64+ * regular page content.
65+ */
66+
67+.wrap {
68+ position: relative;
69+ width: 100%;
70+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
71+ transition: transform 0.3s ease-in-out;
72+}
73+
74+
75+/*
76+ * Masthead
77+ *
78+ * Super small header above the content for site name and short description.
79+ */
80+
81+.masthead {
82+ text-align: center;
83+}
84+.masthead-title small {
85+ display: none;
86+}
87+@media (min-width: 48rem) {
88+ .masthead {
89+ text-align: left;
90+ }
91+ .masthead-title small {
92+ display: inline;
93+ }
94+}
95+
96+
97+/*
98+ * Sidebar
99+ *
100+ * The sidebar is the drawer, the item we are toggling with our handy hamburger
101+ * button in the corner of the page.
102+ *
103+ * This particular sidebar implementation was inspired by Chris Coyier's
104+ * "Offcanvas Menu with CSS Target" article, and the checkbox variation from the
105+ * comments by a reader. It modifies both implementations to continue using the
106+ * checkbox (no change in URL means no polluted browser history), but this uses
107+ * `position` for the menu to avoid some potential content reflow issues.
108+ *
109+ * Source: http://css-tricks.com/off-canvas-menu-with-css-target/#comment-207504
110+ */
111+
112+/* Style and "hide" the sidebar */
113+.sidebar {
114+ max-height: 0;
115+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
116+ font-size: .875rem; /* 14px */
117+ color: rgba(255,255,255,.6);
118+ background-color: #202020;
119+ transition: max-height 0.3s ease-in-out;
120+}
121+
122+@media (min-width: 48rem) {
123+ .sidebar {
124+ position: fixed;
125+ top: 0;
126+ bottom: 0;
127+ left: 0;
128+ overflow-y: auto;
129+ width: 14rem;
130+ max-height: none;
131+ font-size: .75rem; /* 15px */
132+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
133+ -moz-transition: -moz-transform 0.3s ease-in-out;
134+ -ms-transition: -ms-transform 0.3s ease-in-out;
135+ transition: transform 0.3s ease-in-out;
136+ -webkit-transform: translate3d(-100%, 0, 0);
137+ -moz-transform: translate3d(-100%, 0, 0);
138+ -ms-transform: translate3d(-100%, 0, 0);
139+ transform: translate3d(-100%, 0, 0);
140+ -webkit-backface-visibility: hidden;
141+ -moz-backface-visibility: hidden;
142+ -ms-backface-visibility: hidden;
143+ backface-visibility: hidden;
144+ }
145+}
146+
147+/* Sidebar content */
148+.sidebar a {
149+ font-weight: normal;
150+ color: #fff;
151+}
152+.sidebar-item {
153+ padding: 1rem;
154+}
155+.sidebar-item p:last-child {
156+ margin-bottom: 0;
157+}
158+
159+/* Sidebar nav */
160+.sidebar-nav {
161+ border-bottom: 1px solid rgba(255,255,255,.1);
162+}
163+.sidebar-nav-item {
164+ display: block;
165+ padding: .5rem 1rem;
166+ border-top: 1px solid rgba(255,255,255,.1);
167+}
168+.sidebar-nav-item.active,
169+a.sidebar-nav-item:hover,
170+a.sidebar-nav-item:focus {
171+ text-decoration: none;
172+ background-color: rgba(255,255,255,.1);
173+ border-color: transparent;
174+}
175+
176+@media (min-width: 48rem) {
177+ .sidebar-item {
178+ padding: 1.5rem;
179+ }
180+ .sidebar-nav-item {
181+ padding-left: 1.5rem;
182+ padding-right: 1.5rem;
183+ }
184+}
185+
186+/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
187+.sidebar-checkbox {
188+ display: none;
189+}
190+
191+/* Style the `label` that we use to target the `.sidebar-checkbox` */
192+.sidebar-toggle {
193+ position: absolute;
194+ top: .8rem;
195+ left: 1rem;
196+ padding: .4rem .65rem;
197+ font-family: Arial, sans-serif; /* Ensure vertical alignment */
198+ line-height: 1;
199+ color: #505050;
200+ background-color: #fff;
201+ border-radius: 4px;
202+ cursor: pointer;
203+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
204+ -moz-transition: -moz-transform 0.3s ease-in-out;
205+ -ms-transition: -ms-transform 0.3s ease-in-out;
206+ transition: transform 0.3s ease-in-out;
207+}
208+.sidebar-toggle:active,
209+#sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
210+ color: #fff;
211+ background-color: #505050;
212+}
213+
214+#sidebar-checkbox:checked + .sidebar {
215+ max-height: 1000px;
216+}
217+
218+@media (min-width: 48rem) {
219+ .sidebar-toggle {
220+ position: fixed;
221+ left: 1rem;
222+ }
223+ #sidebar-checkbox:checked + .sidebar {
224+ max-height: none;
225+ }
226+ #sidebar-checkbox:checked + .sidebar {
227+ -webkit-transform: translate3d(0, 0, 0);
228+ -moz-transform: translate3d(0, 0, 0);
229+ -ms-transform: translate3d(0, 0, 0);
230+ transform: translate3d(0, 0, 0);
231+ }
232+ #sidebar-checkbox:checked ~ .wrap {
233+ -webkit-transform: translate3d(14rem, 0, 0);
234+ -moz-transform: translate3d(14rem, 0, 0);
235+ -ms-transform: translate3d(14rem, 0, 0);
236+ transform: translate3d(14rem, 0, 0);
237+ }
238+}
239+
240+
241+/*
242+ * Posts and pages
243+ *
244+ * Each post is wrapped in `.post` and is used on default and post layouts. Each
245+ * page is wrapped in `.page` and is only used on the page layout.
246+ */
247+
248+.page,
249+.post {
250+ margin-bottom: 4em;
251+}
252+
253+/* Blog post or page title */
254+.page-title,
255+.post-title,
256+.post-title a {
257+ color: #303030;
258+}
259+.page-title,
260+.post-title {
261+ margin-top: 0;
262+}
263+
264+/* Meta data line below post title */
265+.post-date {
266+ display: block;
267+ margin-top: -.5rem;
268+ margin-bottom: 1rem;
269+ color: #9a9a9a;
270+}
271+
272+/* Related posts */
273+.related {
274+ padding-top: 2rem;
275+ padding-bottom: 2rem;
276+ border-top: 1px solid #eee;
277+}
278+.related-posts {
279+ padding-left: 0;
280+ list-style: none;
281+}
282+.related-posts h3 {
283+ margin-top: 0;
284+}
285+.related-posts li small {
286+ font-size: 75%;
287+ color: #999;
288+}
289+.related-posts li a:hover {
290+ color: #268bd2;
291+ text-decoration: none;
292+}
293+.related-posts li a:hover small {
294+ color: inherit;
295+}
296+
297+
298+/*
299+ * Pagination
300+ *
301+ * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
302+ * there are no more previous or next posts to show.
303+ */
304+
305+.pagination {
306+ overflow: hidden; /* clearfix */
307+ margin-left: -1rem;
308+ margin-right: -1rem;
309+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
310+ color: #ccc;
311+ text-align: center;
312+}
313+
314+/* Pagination items can be `span`s or `a`s */
315+.pagination-item {
316+ display: block;
317+ padding: 1rem;
318+ border: 1px solid #eee;
319+}
320+.pagination-item:first-child {
321+ margin-bottom: -1px;
322+}
323+
324+/* Only provide a hover state for linked pagination items */
325+a.pagination-item:hover {
326+ background-color: #f5f5f5;
327+}
328+
329+@media (min-width: 30rem) {
330+ .pagination {
331+ margin: 3rem 0;
332+ }
333+ .pagination-item {
334+ float: left;
335+ width: 50%;
336+ }
337+ .pagination-item:first-child {
338+ margin-bottom: 0;
339+ border-top-left-radius: 4px;
340+ border-bottom-left-radius: 4px;
341+ }
342+ .pagination-item:last-child {
343+ margin-left: -1px;
344+ border-top-right-radius: 4px;
345+ border-bottom-right-radius: 4px;
346+ }
347+}
348+
349+
350+/*
351+ * Reverse layout
352+ *
353+ * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle
354+ * on the right side.
355+ */
356+
357+.layout-reverse .sidebar-toggle {
358+ left: auto;
359+ right: 0;
360+}
361+
362+@media (min-width: 48rem) {
363+ .layout-reverse .sidebar {
364+ left: auto;
365+ right: -14rem;
366+ transition-property: right;
367+ }
368+ .layout-reverse .sidebar-toggle {
369+ left: auto;
370+ right: 1rem;
371+ }
372+ .layout-reverse .wrap {
373+ transition-property: right;
374+ }
375+ .layout-reverse #sidebar-checkbox:checked + .sidebar {
376+ left: auto;
377+ right: 0;
378+ }
379+ .layout-reverse #sidebar-checkbox:checked ~ .wrap {
380+ left: auto;
381+ right: 14rem;
382+ }
383+ .layout-reverse #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
384+ left: auto;
385+ right: 15rem;
386+ }
387+}
388+
389+
390+/*
391+ * Themes
392+ *
393+ * Apply custom color schemes by adding the appropriate class to the `body`.
394+ * Based on colors from Base16: http://chriskempson.github.io/base16/#default.
395+ */
396+
397+/* Red */
398+.theme-base-08 .sidebar,
399+.theme-base-08 .sidebar-toggle:active,
400+.theme-base-08 #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
401+ background-color: #ac4142;
402+}
403+.theme-base-08 .container a,
404+.theme-base-08 .sidebar-toggle,
405+.theme-base-08 .related-posts li a:hover {
406+ color: #ac4142;
407+}
408+
409+/* Orange */
410+.theme-base-09 .sidebar,
411+.theme-base-09 .sidebar-toggle:active,
412+.theme-base-09 #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
413+ background-color: #d28445;
414+}
415+.theme-base-09 .container a,
416+.theme-base-09 .sidebar-toggle,
417+.theme-base-09 .related-posts li a:hover {
418+ color: #d28445;
419+}
420+
421+/* Yellow */
422+.theme-base-0a .sidebar,
423+.theme-base-0a .sidebar-toggle:active,
424+.theme-base-0a #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
425+ background-color: #f4bf75;
426+}
427+.theme-base-0a .container a,
428+.theme-base-0a .sidebar-toggle,
429+.theme-base-0a .related-posts li a:hover {
430+ color: #f4bf75;
431+}
432+
433+/* Green */
434+.theme-base-0b .sidebar,
435+.theme-base-0b .sidebar-toggle:active,
436+.theme-base-0b #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
437+ background-color: #90a959;
438+}
439+.theme-base-0b .container a,
440+.theme-base-0b .sidebar-toggle,
441+.theme-base-0b .related-posts li a:hover {
442+ color: #90a959;
443+}
444+
445+/* Cyan */
446+.theme-base-0c .sidebar,
447+.theme-base-0c .sidebar-toggle:active,
448+.theme-base-0c #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
449+ background-color: #75b5aa;
450+}
451+.theme-base-0c .container a,
452+.theme-base-0c .sidebar-toggle,
453+.theme-base-0c .related-posts li a:hover {
454+ color: #75b5aa;
455+}
456+
457+/* Blue */
458+.theme-base-0d .sidebar,
459+.theme-base-0d .sidebar-toggle:active,
460+.theme-base-0d #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
461+ background-color: #6a9fb5;
462+}
463+.theme-base-0d .container a,
464+.theme-base-0d .sidebar-toggle,
465+.theme-base-0d .related-posts li a:hover {
466+ color: #6a9fb5;
467+}
468+
469+/* Magenta */
470+.theme-base-0e .sidebar,
471+.theme-base-0e .sidebar-toggle:active,
472+.theme-base-0e #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
473+ background-color: #aa759f;
474+}
475+.theme-base-0e .container a,
476+.theme-base-0e .sidebar-toggle,
477+.theme-base-0e .related-posts li a:hover {
478+ color: #aa759f;
479+}
480+
481+/* Brown */
482+.theme-base-0f .sidebar,
483+.theme-base-0f .sidebar-toggle:active,
484+.theme-base-0f #sidebar-checkbox:checked ~ .wrap .sidebar-toggle {
485+ background-color: #8f5536;
486+}
487+.theme-base-0f .container a,
488+.theme-base-0f .sidebar-toggle,
489+.theme-base-0f .related-posts li a:hover {
490+ color: #8f5536;
491+}