Skip to content

Commit fa74584

Browse files
committed
Merge pull request #137 from ajkannan/icon
Adding icon
2 parents fc9265a + f962a23 commit fa74584

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

src/site/resources/css/site.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,36 @@ h1, h2, h3, h4, h5, h6 {
386386
margin-right: 0.5em;
387387
}
388388

389+
.btn-docs img {
390+
background-color: #fff;
391+
border: 1px solid transparent;
392+
-webkit-border-radius: 80px;
393+
-moz-border-radius: 80px;
394+
border-radius: 80px;
395+
padding: 4px;
396+
width: 40px;
397+
/* Transitions */
398+
-webkit-transition: all 0.5s ease;
399+
-moz-transition: all 0.5s ease;
400+
-ms-transition: all 0.5s ease;
401+
-o-transition: all 0.5s ease;
402+
transition: all 0.5s ease;
403+
}
404+
405+
.btn-docs:hover img {
406+
border: 1px solid #ccc;
407+
transform: rotate(135deg);
408+
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
409+
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
410+
box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
411+
}
412+
413+
.btn-docs:active img {
414+
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
415+
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
416+
box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
417+
}
418+
389419
.featuring-links .btn {
390420
margin-bottom: 1em;
391421
padding: 1.5em;
107 KB
Loading

src/site/resources/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
<h1 class="logo"><img src="img/logo-full.svg" alt="Google Cloud Platform" /></h1>
2121
<nav class="main-nav">
2222
<div class="nav-current">Java</div>
23-
<ul class="menu">
23+
<ul class="menu">
2424
<li>
2525
<a href="#" title="Java docs page">
26+
<img src="img/icon-lang-java.png" alt="Java icon" class="menu-icon" width="24" height="24" />
2627
Java
2728
</a>
2829
</li>
@@ -71,7 +72,8 @@ <h2>Quickstart with Maven: Add gcloud to your pom.xml</h2>
7172
<div class="container">
7273
<ul class="featuring-links">
7374
<li>
74-
<a href="./apidocs/index.html" title="gcloud-java docs" class="btn">
75+
<a href="./apidocs/index.html" title="gcloud-java docs" class="btn btn-docs">
76+
<img src="img/icon-lang-java.png" alt="Java icon" class="menu-icon" />
7577
Read the Docs
7678
</a>
7779
</li>

0 commit comments

Comments
 (0)