Skip to content

Commit c550d09

Browse files
committed
Merge pull request #202 from stephenplusplus/doc-button
site: make the doc link more linky.
2 parents ca0ccc7 + e364d43 commit c550d09

File tree

3 files changed

+59
-24
lines changed

3 files changed

+59
-24
lines changed

docs/css/main.css

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ h2, h3 {
357357
.featuring-links {
358358
list-style: none;
359359
margin: 0;
360+
margin-bottom: -1em;
360361
padding: 0;
361362
}
362363

@@ -402,6 +403,36 @@ h2, h3 {
402403
width: 2em;
403404
}
404405

406+
.btn-docs img {
407+
background-color: #fff;
408+
border: 1px solid transparent;
409+
-webkit-border-radius: 80px;
410+
-moz-border-radius: 80px;
411+
border-radius: 80px;
412+
padding: 4px;
413+
width: 40px;
414+
/* Transitions */
415+
-webkit-transition: all 0.5s ease;
416+
-moz-transition: all 0.5s ease;
417+
-ms-transition: all 0.5s ease;
418+
-o-transition: all 0.5s ease;
419+
transition: all 0.5s ease;
420+
}
421+
422+
.btn-docs:hover img {
423+
border: 1px solid #ccc;
424+
transform: rotate(135deg);
425+
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
426+
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
427+
box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
428+
}
429+
430+
.btn-docs:active img {
431+
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
432+
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
433+
box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
434+
}
435+
405436
.ext-link {
406437
display: block;
407438
padding: 1em;
@@ -416,6 +447,10 @@ h2, h3 {
416447
transition: all 0.3s ease;
417448
}
418449

450+
.featuring-links li:last-child .ext-link {
451+
border-bottom: none;
452+
}
453+
419454
.ext-link:hover {
420455
background: #f6f6f6;
421456
}
@@ -880,7 +915,7 @@ h2, h3 {
880915
Modify as content requires.
881916
========================================================================== */
882917

883-
@media only screen and (min-width: 35em) {
918+
@media only screen and (min-width: 37em) {
884919

885920
/*
886921
Main
@@ -894,6 +929,10 @@ h2, h3 {
894929
Featuring
895930
*/
896931

932+
.featuring-links li:first-child {
933+
display: block;
934+
}
935+
897936
.featuring-links {
898937
text-align: center;
899938
}
@@ -902,10 +941,6 @@ h2, h3 {
902941
display: inline-block;
903942
}
904943

905-
.featuring-links li:first-child {
906-
display: block;
907-
}
908-
909944
.featuring-links .btn {
910945
display: inline-block;
911946
padding: 1em 2.4em;

docs/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ <h2>One-line npm install</h2>
2424
<div class="container">
2525
<ul class="featuring-links">
2626
<li>
27-
<a href="#/docs" title="gcloud-node docs" class="btn">
28-
<img src="img/icon-lang-nodejs.svg" alt="Node.js icon" />
29-
Docs
27+
<a href="#/docs" title="gcloud-node docs" class="btn btn-docs">
28+
<img src="img/icon-lang-nodejs.svg" alt="Node.js icon">
29+
Read the Docs
3030
</a>
3131
</li>
3232
<li>

docs/img/icon-lang-nodejs.svg

Lines changed: 16 additions & 16 deletions
Loading

0 commit comments

Comments
 (0)