Skip to content

Commit 7efd8bd

Browse files
site: re-do doc link.
1 parent 5fab052 commit 7efd8bd

File tree

3 files changed

+45
-36
lines changed

3 files changed

+45
-36
lines changed

docs/css/main.css

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ h2, h3 {
345345
Featuring
346346
*/
347347

348-
.featuring .block-title {
348+
.featuring {
349349
text-align: center;
350350
}
351351

@@ -356,7 +356,7 @@ h2, h3 {
356356

357357
.featuring-links {
358358
list-style: none;
359-
margin: 0;
359+
margin: auto;
360360
padding: 8px;
361361
background-color: #eee;
362362
border-radius: 5px;
@@ -408,16 +408,17 @@ h2, h3 {
408408
text-align: center;
409409
font-size: 1.4em;
410410
font-weight: normal;
411-
margin-bottom: 1.3em;
411+
margin-bottom: 1em;
412412
}
413413

414414
.docs-link img {
415-
background-color: #5d6061;
416-
-webkit-border-radius: 5px;
417-
-moz-border-radius: 5px;
418-
border-radius: 5px;
415+
display: none;
416+
border: 1px solid transparent;
417+
-webkit-border-radius: 80px;
418+
-moz-border-radius: 80px;
419+
border-radius: 80px;
419420
padding: 4px;
420-
width: 4%;
421+
width: 40px;
421422
margin-top: -3px;
422423
margin-left: 8px;
423424
margin-right: 8px;
@@ -441,29 +442,25 @@ h2, h3 {
441442
}
442443

443444
.docs-link .supplementary-text {
444-
font-size: .8em;
445-
color: rgba(93, 96, 97, .8);
445+
text-decoration: none;
446446
}
447447

448-
.docs-link a:hover .link-text {
448+
.docs-link .link-text {
449449
text-decoration: underline;
450450
}
451451

452452
.docs-link a:hover img {
453-
background-color: #4285f4;
454-
-webkit-border-radius: 80px;
455-
-moz-border-radius: 80px;
456-
border-radius: 80px;
453+
border: 1px solid #ccc;
457454
transform: rotate(135deg);
458455
-webkit-box-shadow: 4px 4px 4px #eee;
459456
-moz-box-shadow: 4px 4px 4px #eee;
460457
box-shadow: 4px 4px 4px #eee;
461458
}
462459

463460
.docs-link a:active img {
464-
-webkit-box-shadow: 4px 4px 4px #ddd;
465-
-moz-box-shadow: 4px 4px 4px #ddd;
466-
box-shadow: 4px 4px 4px #ddd;
461+
-webkit-box-shadow: 4px 4px 4px #ccc;
462+
-moz-box-shadow: 4px 4px 4px #ccc;
463+
box-shadow: 4px 4px 4px #ccc;
467464
}
468465

469466
.ext-link {
@@ -480,6 +477,10 @@ h2, h3 {
480477
transition: all 0.3s ease;
481478
}
482479

480+
.featuring-links li:last-child .ext-link {
481+
border-bottom: none;
482+
}
483+
483484
.ext-link:hover {
484485
background: #f6f6f6;
485486
}
@@ -944,7 +945,7 @@ h2, h3 {
944945
Modify as content requires.
945946
========================================================================== */
946947

947-
@media only screen and (min-width: 36em) {
948+
@media only screen and (min-width: 37em) {
948949

949950
/*
950951
Main
@@ -954,11 +955,19 @@ h2, h3 {
954955
font-size: 1em;
955956
}
956957

958+
/*
959+
Docs Link
960+
*/
961+
.docs-link img {
962+
display: inline;
963+
}
964+
957965
/*
958966
Featuring
959967
*/
960968

961969
.featuring-links {
970+
display: inline-block;
962971
text-align: center;
963972
}
964973

docs/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>One-line npm install</h2>
2424
<div class="container">
2525
<div class="docs-link">
2626
<a href="#/docs" title="gcloud-node docs">
27-
<span class="supplementary-text">See the</span><img src="img/icon-lang-nodejs.svg" alt="Node.js icon"><span class="link-text">API Documentation</span>
27+
<img src="img/icon-lang-nodejs.svg" alt="Node.js icon"><span class="supplementary-text">See the</span> <span class="link-text">API Documentation</span>
2828
</a>
2929
</div>
3030
<ul class="featuring-links">

docs/img/icon-lang-nodejs.svg

Lines changed: 16 additions & 16 deletions
Loading

0 commit comments

Comments
 (0)