Skip to content

Commit

Permalink
Merge pull request #616 from stephenplusplus/spp--docs-move-report-bu…
Browse files Browse the repository at this point in the history
…tton

docs: add report-issue button to header
  • Loading branch information
ryanseys committed May 24, 2015
2 parents 1c81c27 + 5b0b63a commit 116a53e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 12 deletions.
12 changes: 1 addition & 11 deletions docs/site/components/docs/docs.html
Original file line number Diff line number Diff line change
@@ -1,15 +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 skip-external-link">
<img src="site/img/icon-link-github.svg" />
Report an Issue
</a>
</div>
</div>
</header>
<header header title="{{pageTitle}}" />
</script>

<div subpage
Expand Down
9 changes: 9 additions & 0 deletions docs/site/components/subpage/subpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ <h1 class="logo">
<span class="gcloud">gcloud</span>
</a>
</h1>

<div language-switcher></div>

<div class="header--right">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
class="v-btn skip-external-link">
<img src="site/img/icon-link-github.svg" />
Report an Issue
</a>
</div>
</header>

<header ng-if="headerTemplateUrl" ng-include="headerTemplateUrl"></header>
Expand Down
40 changes: 39 additions & 1 deletion docs/site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,32 @@ ul {
padding: 0;
}

.header--right {
display: none;
position: absolute;
}

.page-header.fixed .v-btn {
background-color: #fff;
color: #444;
border-radius: 8px;
border: 0;
border-right: 2px solid #A0C2F4;
border-bottom: 2px solid #A0C2F4;
padding: 11px 10px;
font-size: .8em;
transition: border-color 1s, border-width .1s;
}

.page-header.fixed .v-btn:hover {
opacity: 1;
border-color: #aaa;
}

.page-header.fixed .v-btn:active {
border-width: 1px;
}

/*
Logo
*/
Expand Down Expand Up @@ -1130,6 +1156,14 @@ ul {
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 19em) {
.header--right {
display: block;
right: 54px;
top: 10px;
}
}

@media only screen and (min-width: 37em) {

/*
Expand Down Expand Up @@ -1175,7 +1209,6 @@ ul {
width: 0.6em;
height: 0.6em;
}

}

@media only screen and (min-width: 45em) {
Expand Down Expand Up @@ -1205,6 +1238,11 @@ ul {
line-height: 70px;
}

.header--right {
top: 20px;
right: 20px;
}

/*
Logo
*/
Expand Down

0 comments on commit 116a53e

Please sign in to comment.