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