From e8dc86a0e98b3691aa49ef180353ab76a3ab808d Mon Sep 17 00:00:00 2001 From: Jared Lee Date: Fri, 21 Oct 2016 10:20:21 +1300 Subject: [PATCH] WIP mobile header style override for docsviewer --- themes/docs/css/styles.css | 13 ++++++++++++- themes/docs/templates/DocumentationViewer.ss | 20 +++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/themes/docs/css/styles.css b/themes/docs/css/styles.css index e0978f6..b846100 100644 --- a/themes/docs/css/styles.css +++ b/themes/docs/css/styles.css @@ -91,10 +91,21 @@ form .message.error { /* Remove global navigation in mobile view */ .nav-mobile { display: block; + min-height: 0; + margin: 0; } @media (max-width: 992px) { - .nav-mobile{ + /*.nav-mobile{ + display: none; + }*/ + .site-header { display: none; } + #sidebar a.logo { + height: 20px; + width: 20px; + background-color: red; + background: url(https://www.silverstripe.org/themes/ssv3/img/global-logo-open-source.svg); + } } diff --git a/themes/docs/templates/DocumentationViewer.ss b/themes/docs/templates/DocumentationViewer.ss index 973f298..4ac7993 100644 --- a/themes/docs/templates/DocumentationViewer.ss +++ b/themes/docs/templates/DocumentationViewer.ss @@ -1,11 +1,17 @@ - <% include DocumentationHead %> - + <% include DocumentationHead %> +
class="has_versions"<% end_if %>>
- <% if Breadcrumbs.count > 1 %> + + + + + + + <% if Breadcrumbs.count > 1 %> <% include DocumentationBreadcrumbs %> <% else_if Page.Title %>

$Page.Title

@@ -18,8 +24,8 @@ <% include DocumentationVersions %>
-
- + +
@@ -27,11 +33,11 @@
$Layout - + <% include DocumentationFooter %>
- <% include DocumentationGA %> + <% include DocumentationGA %> <% include DocumentationEnd %>