Commit Graph
11 Commits
Author SHA1 Message Date
Carol (Nichols || Goulding) 7db393dae7 Update theme/index.hbs to make printing work again
From mdBook cd711bfb1ca161e8a834f4527f3936f818a6f50f
2017-10-26 14:36:41 -04:00
Havvy 1d1f7135c4 Rebase second-edition's index.hbs with upstream mdbook's
* Adds the Source Code Pro font
* Adds the Ayu theme code highlight css
* Adds boilerplate for additional CSS and JS
* Adds boilerplate for google analytics
* Adds editable playpens js (if it's enabled?)
* Moves store.js to header scripts
* Propagates the use store.js change fully
* Adds Clipboard.js (Fixes console error)
* Changes MathJax URL (Fixes console warning / eventual error)

The diff between upstream (mdbook) and ours is now:

```diff
5c5
<         <title>{{ title }}</title>
---
>         <title>{{ chapter_title }} - {{ title }}</title>
29a30,95
>         <style>
>             .page-wrapper.has-warning > .nav-chapters {
>               /* add height for warning content & margin */
>               top: 120px;
>             }
>
>             p.warning {
>                 background-color: rgb(242, 222, 222);
>                 border-bottom-color: rgb(238, 211, 215);
>                 border-bottom-left-radius: 4px;
>                 border-bottom-right-radius: 4px;
>                 border-bottom-style: solid;
>                 border-bottom-width: 0.666667px;
>                 border-image-outset: 0 0 0 0;
>                 border-image-repeat: stretch stretch;
>                 border-image-slice: 100% 100% 100% 100%;
>                 border-image-source: none;
>                 border-image-width: 1 1 1 1;
>                 border-left-color: rgb(238, 211, 215);
>                 border-left-style: solid;
>                 border-left-width: 0.666667px;
>                 border-right-color: rgb(238, 211, 215);
>                 border-right-style: solid;
>                 border-right-width: 0.666667px;
>                 border-top-color: rgb(238, 211, 215);
>                 border-top-left-radius: 4px;
>                 border-top-right-radius: 4px;
>                 border-top-style: solid;
>                 border-top-width: 0.666667px;
>                 color: rgb(185, 74, 72);
>                 margin-bottom: 0px;
>                 margin-left: 0px;
>                 margin-right: 0px;
>                 margin-top: 30px;
>                 padding-bottom: 8px;
>                 padding-left: 14px;
>                 padding-right: 35px;
>                 padding-top: 8px;
>             }
>             p.warning strong {
>                 color: rgb(185, 74, 72)
>             }
>             p.warning a {
>                 color: rgb(0, 136, 204)
>             }
>
>             a .hljs {
>                 color: #4183c4;
>             }
>
>             .rust .content a .hljs,
>             .coal .content a .hljs,
>             .navy .content a .hljs {
>                 color: #2b79a2;
>             }
>
>             a:hover .hljs {
>                 text-decoration: underline;
>             }
>
>             /* Styles keystrokes such as ctrl-C */
>             .keystroke {
>                 font-variant: small-caps;
>             }
>         </style>
>
79c145
<         <div id="page-wrapper" class="page-wrapper">
---
>         <div id="page-wrapper" class="page-wrapper has-warning">
81a148
>                 <header><p class="warning">You are reading a <strong>draft</strong> of the next edition of TRPL. For more, go <a href="../index.html">here</a>.</p></header>
```
2017-09-26 13:32:01 -07:00
Grant Moyer 15c32807ab Resolve merge conflicts 2017-07-30 22:42:09 -04:00
Grant Moyer 9388df2d42 Move keystroke CSS to index.hbs\nto minimize overridden default mdBook files 2017-07-30 22:15:45 -04:00
Grant Moyer b699358fea Change keystroke CSS to support IE and Edge 2017-07-25 00:26:32 -04:00
Grant Moyer 93b06d21eb Add CSS for small caps keyboard shortcuts 2017-07-24 22:43:48 -04:00
Federico Fissore 1a464423fb Added missing script tag to load store.js 2017-06-27 18:50:51 +02:00
jnf bcb1cc59bb Adds a status class for noting when warnings are present.
The status class, `.has-warning`, provides a hook for other content to adjust
their positioning. It's leveraged to push down the absolutely positioned chapter
navs far enough so that they clear both the warning message and the icons in the
header bar. Fixes #656.
2017-05-02 13:01:09 -07:00
steveklabnik e8a9c6bf8b Pull back on that red a bit 2017-04-14 14:42:08 -04:00
steveklabnik df374a5149 fix link in theme 2017-04-13 15:32:52 -04:00
steveklabnik 371948a6b6 move theme to top level
https://github.com/azerupi/mdBook/issues/227
2017-04-13 14:32:17 -04:00