Skip to content

Commit

Permalink
Fix googleapis#587 - Move buttons to top blue header.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeewax committed May 12, 2015
1 parent 11e808b commit 9cfe972
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/site/components/docs/docs.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
<script id="docs-header.html" type="text/ng-template">
<header header title="{{pageTitle}}">
<div class="row row--right">
<div class="col margin-vertical">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
class="v-btn">
<img src="site/img/icon-link-github.svg" />
Report an Issue
</a>
</div>
<div class="col margin-vertical">
<a href="#/docs/history" ng-show="showReference"
class="v-btn">
<img src="site/img/icon-arrow-bullet.svg" />
Version History (<i>{{version}}</i>)
</a>
</div>
<div>
<div ng-if="lastBuiltDate" class="build-date">Docs last built {{lastBuiltDate}}.</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions docs/site/components/subpage/subpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@ <h1 class="logo">
<span class="gcloud">gcloud</span>
</a>
</h1>

<div language-switcher></div>

<div class="page-header-buttons">
<div class="col margin-vertical">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
class="v-btn">
<img src="site/img/icon-link-github.svg" />
Report an Issue
</a>
</div>
<div class="col margin-vertical">
<a href="#/docs/history" ng-show="showReference"
class="v-btn">
<img src="site/img/icon-arrow-bullet.svg" />
Version History (<i>{{version}}</i>)
</a>
</div>
</div>
</header>

<header ng-if="headerTemplateUrl" ng-include="headerTemplateUrl"></header>
Expand Down
7 changes: 7 additions & 0 deletions docs/site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ ul {
padding: 0;
}

.page-header-buttons {
position: fixed;
right: 20px;
top: 10px;
}

/*
Logo
*/
Expand Down Expand Up @@ -835,6 +841,7 @@ ul {
}

.build-date {
float: right;
font-style: italic;
font-size: 0.8em;
}
Expand Down

0 comments on commit 9cfe972

Please sign in to comment.