mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
WIP mobile header style override for docsviewer
This commit is contained in:
parent
faf1b063d5
commit
e8dc86a0e9
@ -91,10 +91,21 @@ form .message.error {
|
|||||||
/* Remove global navigation in mobile view */
|
/* Remove global navigation in mobile view */
|
||||||
.nav-mobile {
|
.nav-mobile {
|
||||||
display: block;
|
display: block;
|
||||||
|
min-height: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
.nav-mobile{
|
/*.nav-mobile{
|
||||||
|
display: none;
|
||||||
|
}*/
|
||||||
|
.site-header {
|
||||||
display: none;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
20
themes/docs/templates/DocumentationViewer.ss
vendored
20
themes/docs/templates/DocumentationViewer.ss
vendored
@ -1,11 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<% include DocumentationHead %>
|
<% include DocumentationHead %>
|
||||||
|
|
||||||
<div id="masthead" <% if Versions %>class="has_versions"<% end_if %>>
|
<div id="masthead" <% if Versions %>class="has_versions"<% end_if %>>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<% if Breadcrumbs.count > 1 %>
|
<a class="menu-toggle">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
<% if Breadcrumbs.count > 1 %>
|
||||||
<% include DocumentationBreadcrumbs %>
|
<% include DocumentationBreadcrumbs %>
|
||||||
<% else_if Page.Title %>
|
<% else_if Page.Title %>
|
||||||
<h1>$Page.Title</h1>
|
<h1>$Page.Title</h1>
|
||||||
@ -18,8 +24,8 @@
|
|||||||
|
|
||||||
<% include DocumentationVersions %>
|
<% include DocumentationVersions %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div id="layout" class="clearfix">
|
<div id="layout" class="clearfix">
|
||||||
|
|
||||||
@ -27,11 +33,11 @@
|
|||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
$Layout
|
$Layout
|
||||||
|
|
||||||
<% include DocumentationFooter %>
|
<% include DocumentationFooter %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% include DocumentationGA %>
|
<% include DocumentationGA %>
|
||||||
<% include DocumentationEnd %>
|
<% include DocumentationEnd %>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user