Skip to content

Commit fc70444

Browse files
committed
more style tweaks for mobile
1 parent 9a384e6 commit fc70444

File tree

2 files changed

+33
-26
lines changed

2 files changed

+33
-26
lines changed

lib/resources/styles.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ header .masthead {
5858
padding-top: 64px;
5959
}
6060

61+
header .masthead .contents {
62+
padding: 0;
63+
}
64+
65+
@media screen and (max-width:768px) {
66+
header .masthead .contents {
67+
padding-left: 15px;
68+
padding-right: 15px;
69+
}
70+
}
71+
6172
.body {
6273
margin-top: 24px;
6374
}
@@ -549,11 +560,6 @@ button {
549560

550561
/* left-nav disappears, and can transition in from the left */
551562
@media screen and (max-width:768px) {
552-
.main-content {
553-
padding-left: 0;
554-
padding-right: 0;
555-
}
556-
557563
#sidenav-left-toggle {
558564
display: inline;
559565
background: no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='#FFFFFF' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>");

lib/templates/_head.html

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,31 +46,32 @@
4646
</div> <!-- /row -->
4747
</div> <!-- /container -->
4848
</nav>
49+
4950
<div class="container masthead">
5051
<div class="row">
51-
<ol class="breadcrumbs gt-separated visible-xs">
52-
{{#navLinks}}
53-
<li><a href="{{href}}">{{name}}</a></li>
54-
{{/navLinks}}
55-
{{^navLinks.isEmpty}}
56-
<li class="self-crumb">{{self.name}}</li>
57-
{{/navLinks.isEmpty}}
58-
</ol>
59-
<div class="title-description">
60-
<h1 class="title">
61-
{{{ layoutTitle }}}
62-
</h1>
63-
<!-- p class="subtitle">
64-
{{{ oneLineDoc }}}
65-
</p -->
66-
</div>
67-
<ul class="subnav">
68-
{{#subnavItems}}
69-
<li><a href="{{href}}">{{name}}</a></li>
70-
{{/subnavItems}}
71-
</ul>
52+
<div class="col-sm-12 contents">
53+
<ol class="breadcrumbs gt-separated visible-xs">
54+
{{#navLinks}}
55+
<li><a href="{{href}}">{{name}}</a></li>
56+
{{/navLinks}}
57+
{{^navLinks.isEmpty}}
58+
<li class="self-crumb">{{self.name}}</li>
59+
{{/navLinks.isEmpty}}
60+
</ol>
61+
<div class="title-description">
62+
<h1 class="title">
63+
{{{ layoutTitle }}}
64+
</h1>
65+
</div>
66+
<ul class="subnav">
67+
{{#subnavItems}}
68+
<li><a href="{{href}}">{{name}}</a></li>
69+
{{/subnavItems}}
70+
</ul>
71+
</div> <!-- /col -->
7272
</div> <!-- /row -->
7373
</div> <!-- /container -->
74+
7475
</header>
7576

7677
<div class="container body">

0 commit comments

Comments
 (0)