Skip to content

Adding icon #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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