diff options
author | Jingwen <jin@users.noreply.github.com> | 2017-12-11 05:22:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-11 05:24:32 -0800 |
commit | 6060c79520fed0ae00b788bb5d45456c986adac1 (patch) | |
tree | 7c246f5435d5c44126f2797c8554daeeabe35d45 /site/_layouts | |
parent | 609d551641e359045b8921a45c578ce23dbf1833 (diff) |
Fixed documentation navigation bar/content layout awkwardness.
Fixes https://github.com/bazelbuild/bazel/issues/4262
A specific browser view width range causes the navigation bar to be stacked on top of the documentation content, therefore requiring a bit of scrolling to get to it.
This fix changes col-lg-* to col-md-*, which reduces the view width threshold at which the columns are restyled using `@media queries`.
Tested locally on Chrome & Safari. This is also testable by going to the production site and changing the CSS classes in the inspector.
Closes #4263.
PiperOrigin-RevId: 178605473
Diffstat (limited to 'site/_layouts')
-rw-r--r-- | site/_layouts/documentation.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/_layouts/documentation.html b/site/_layouts/documentation.html index f2da015d93..11d3c539b3 100644 --- a/site/_layouts/documentation.html +++ b/site/_layouts/documentation.html @@ -16,7 +16,7 @@ nav: docs <div class="container vpad"> <div class="row"> - <div class="col-lg-3"> + <div class="col-md-3"> <a class="btn btn-default btn-lg btn-block sidebar-toggle" data-toggle="collapse" href="#sidebar-nav" aria-expanded="false" aria-controls="sidebar-nav"> @@ -200,7 +200,7 @@ nav: docs </nav> </div> - <div class="col-lg-9"> + <div class="col-md-9"> <a id="gh-edit" class="gh-edit default-hidden"><i class="fa fa-pencil" aria-hidden="true"></i> Edit</a> <script> var versionDocsURLRegex = /\/versions\/[\w\.]+\/(.*)/; |