Skip to content

Commit 116a53e

Browse files
committed
Merge pull request #616 from stephenplusplus/spp--docs-move-report-button
docs: add report-issue button to header
2 parents 1c81c27 + 5b0b63a commit 116a53e

3 files changed

Lines changed: 49 additions & 12 deletions

File tree

docs/site/components/docs/docs.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
<script id="docs-header.html" type="text/ng-template">
2-
<header header title="{{pageTitle}}">
3-
<div class="row row--right">
4-
<div class="col margin-vertical">
5-
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
6-
class="v-btn skip-external-link">
7-
<img src="site/img/icon-link-github.svg" />
8-
Report an Issue
9-
</a>
10-
</div>
11-
</div>
12-
</header>
2+
<header header title="{{pageTitle}}" />
133
</script>
144

155
<div subpage

docs/site/components/subpage/subpage.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ <h1 class="logo">
66
<span class="gcloud">gcloud</span>
77
</a>
88
</h1>
9+
910
<div language-switcher></div>
11+
12+
<div class="header--right">
13+
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
14+
class="v-btn skip-external-link">
15+
<img src="site/img/icon-link-github.svg" />
16+
Report an Issue
17+
</a>
18+
</div>
1019
</header>
1120

1221
<header ng-if="headerTemplateUrl" ng-include="headerTemplateUrl"></header>

docs/site/css/main.css

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,32 @@ ul {
293293
padding: 0;
294294
}
295295

296+
.header--right {
297+
display: none;
298+
position: absolute;
299+
}
300+
301+
.page-header.fixed .v-btn {
302+
background-color: #fff;
303+
color: #444;
304+
border-radius: 8px;
305+
border: 0;
306+
border-right: 2px solid #A0C2F4;
307+
border-bottom: 2px solid #A0C2F4;
308+
padding: 11px 10px;
309+
font-size: .8em;
310+
transition: border-color 1s, border-width .1s;
311+
}
312+
313+
.page-header.fixed .v-btn:hover {
314+
opacity: 1;
315+
border-color: #aaa;
316+
}
317+
318+
.page-header.fixed .v-btn:active {
319+
border-width: 1px;
320+
}
321+
296322
/*
297323
Logo
298324
*/
@@ -1130,6 +1156,14 @@ ul {
11301156
Modify as content requires.
11311157
========================================================================== */
11321158

1159+
@media only screen and (min-width: 19em) {
1160+
.header--right {
1161+
display: block;
1162+
right: 54px;
1163+
top: 10px;
1164+
}
1165+
}
1166+
11331167
@media only screen and (min-width: 37em) {
11341168

11351169
/*
@@ -1175,7 +1209,6 @@ ul {
11751209
width: 0.6em;
11761210
height: 0.6em;
11771211
}
1178-
11791212
}
11801213

11811214
@media only screen and (min-width: 45em) {
@@ -1205,6 +1238,11 @@ ul {
12051238
line-height: 70px;
12061239
}
12071240

1241+
.header--right {
1242+
top: 20px;
1243+
right: 20px;
1244+
}
1245+
12081246
/*
12091247
Logo
12101248
*/

0 commit comments

Comments
 (0)