Skip to content

Commit

Permalink
Merge pull request #137 from ajkannan/icon
Browse files Browse the repository at this point in the history
Adding icon
  • Loading branch information
aozarov committed Aug 21, 2015
2 parents fc9265a + f962a23 commit fa74584
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
30 changes: 30 additions & 0 deletions src/site/resources/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,36 @@ h1, h2, h3, h4, h5, h6 {
margin-right: 0.5em;
}

.btn-docs img {
background-color: #fff;
border: 1px solid transparent;
-webkit-border-radius: 80px;
-moz-border-radius: 80px;
border-radius: 80px;
padding: 4px;
width: 40px;
/* Transitions */
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}

.btn-docs:hover img {
border: 1px solid #ccc;
transform: rotate(135deg);
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
box-shadow: 4px 4px 4px rgba(0, 0, 0, .3);
}

.btn-docs:active img {
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
box-shadow: 4px 4px 4px rgba(0, 0, 0, .5);
}

.featuring-links .btn {
margin-bottom: 1em;
padding: 1.5em;
Expand Down
Binary file added src/site/resources/img/icon-lang-java.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/site/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
<h1 class="logo"><img src="img/logo-full.svg" alt="Google Cloud Platform" /></h1>
<nav class="main-nav">
<div class="nav-current">Java</div>
<ul class="menu">
<ul class="menu">
<li>
<a href="#" title="Java docs page">
<img src="img/icon-lang-java.png" alt="Java icon" class="menu-icon" width="24" height="24" />
Java
</a>
</li>
Expand Down Expand Up @@ -71,7 +72,8 @@ <h2>Quickstart with Maven: Add gcloud to your pom.xml</h2>
<div class="container">
<ul class="featuring-links">
<li>
<a href="./apidocs/index.html" title="gcloud-java docs" class="btn">
<a href="./apidocs/index.html" title="gcloud-java docs" class="btn btn-docs">
<img src="img/icon-lang-java.png" alt="Java icon" class="menu-icon" />
Read the Docs
</a>
</li>
Expand Down

0 comments on commit fa74584

Please sign in to comment.