From de5b9b33eea01266580b1e55e320ff3fb160e559 Mon Sep 17 00:00:00 2001 From: Jared Lee Date: Fri, 21 Oct 2016 15:50:52 +1300 Subject: [PATCH] Added logo button to all templates and fixed title clipping with logo button --- themes/docs/css/styles.css | 9 +++- themes/docs/templates/DocumentationViewer.ss | 16 ++++--- .../docs/templates/DocumentationViewer_all.ss | 44 +++++++++++++++++++ .../templates/DocumentationViewer_results.ss | 44 +++++++++++++++++++ 4 files changed, 104 insertions(+), 9 deletions(-) create mode 100644 themes/docs/templates/DocumentationViewer_all.ss create mode 100644 themes/docs/templates/DocumentationViewer_results.ss diff --git a/themes/docs/css/styles.css b/themes/docs/css/styles.css index 4138218..b9dcd8a 100644 --- a/themes/docs/css/styles.css +++ b/themes/docs/css/styles.css @@ -100,13 +100,18 @@ form .message.error { display: none; } /* SilverStripe logo on top of page */ + #masthead .menu-bar { + margin-bottom: 24px; + height: 40px; + } + #masthead .logo { display: inline-block; float: left; height: 40px; - width: 75%; - margin-bottom: 24px; + width: 140px; margin-left: 4px; + margin-top: 4px; background: url(https://www.silverstripe.org/themes/ssv3/img/global-logo-open-source.svg) no-repeat; } } diff --git a/themes/docs/templates/DocumentationViewer.ss b/themes/docs/templates/DocumentationViewer.ss index f724517..2743b2d 100644 --- a/themes/docs/templates/DocumentationViewer.ss +++ b/themes/docs/templates/DocumentationViewer.ss @@ -5,13 +5,15 @@
class="has_versions"<% end_if %>>
- - - - - - - + <% if Breadcrumbs.count > 1 %> <% include DocumentationBreadcrumbs %> <% else_if Page.Title %> diff --git a/themes/docs/templates/DocumentationViewer_all.ss b/themes/docs/templates/DocumentationViewer_all.ss new file mode 100644 index 0000000..e6812eb --- /dev/null +++ b/themes/docs/templates/DocumentationViewer_all.ss @@ -0,0 +1,44 @@ + + + + <% include DocumentationHead %> + +
class="has_versions"<% end_if %>> +
+ +
+

+

+ Documentation + / + Index +

+
+ + + +
+
+ +
+
+ + $Layout + + <% include DocumentationFooter %> + +
+
+ + + <% include DocumentationGA %> + <% include DocumentationEnd %> + diff --git a/themes/docs/templates/DocumentationViewer_results.ss b/themes/docs/templates/DocumentationViewer_results.ss new file mode 100644 index 0000000..697ecb9 --- /dev/null +++ b/themes/docs/templates/DocumentationViewer_results.ss @@ -0,0 +1,44 @@ + + + + <% include DocumentationHead %> + +
class="has_versions"<% end_if %>> +
+ +
+

+

+ Documentation + / + Search +

+
+ + + +
+
+ +
+
+ + $Layout + + <% include DocumentationFooter %> + +
+
+ + + <% include DocumentationGA %> + <% include DocumentationEnd %> +