diff --git a/_layouts/doc.html b/_layouts/doc.html index 65f9449..38f5b09 100644 --- a/_layouts/doc.html +++ b/_layouts/doc.html @@ -11,6 +11,32 @@ +
+

Bonsai

+ Menu +
+ + + +
+ +

+ {{page.title}} +

+ + {% if page.relatedLinks and page.relatedLinks != empty %} + + {% endif %} + + {{content}} +
+
+
- - -
- -

- {{page.title}} -

- - {% if page.relatedLinks and page.relatedLinks != empty %} - - {% endif %} - - {{content}} -
-
- diff --git a/assets/main.css b/assets/main.css index 6e43ee0..87d2149 100644 --- a/assets/main.css +++ b/assets/main.css @@ -28,6 +28,7 @@ p { } #logo { padding: 0; } +#logo-top a, #logo a { display: block; text-indent: -9999em; @@ -279,3 +280,73 @@ code { font-size: 1.2em; font-style: italic; } + +#mobile-header { + display: none; +} + +@media screen and (max-width: 520px) { + + #mobile-header { + display: block; + background: #111926; + position: relative; + } + + #logo-top a { + background-position: 5% 0 + } + + #link-to-nav { + display: inline-block; + position: absolute; + margin-top: -1em; + right: 1.5em; + top: 50%; + color: #fff; + font-weight: bold; + font-size: 1.2em; + padding: 0.666em 1.333em; + text-decoration: none; + background: #061426; + background: -webkit-linear-gradient(top, #272A33, #061426); + background: -moz-linear-gradient(top, #272A33, #061426); + background: -o-linear-gradient(top, #272A33, #061426); + background: linear-gradient(top, #272A33, #061426); + border-radius: 0.333em; + border: 1px solid #020E26; + box-shadow: inset 0 0 3px rgba(255,255,255,0.333); + } + + #side { + display: none; + } + + #logo { + display: none; + } + + #nav { + background: #111926; + position: static; + width: auto; + } + + #nav .menuHeading { + background-position: 95% 10px; + } + + #content { + font-size: 1.25em; + margin: 0 auto; + padding: 0 0 30px; + width: 95%; + } + + #content img { + max-width: 100%; + + } + + +}