mirror of https://github.com/IanLunn/Hover.git
Added Carbon ads
This commit is contained in:
parent
061cbfd06c
commit
01d128f01a
|
@ -25,6 +25,59 @@ body {
|
|||
line-height: 140%;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 2em;
|
||||
background-color: #ddd;
|
||||
border: none;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.sep {
|
||||
color: #ddd;
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.carbon-ad.ad {
|
||||
position: relative;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
max-width: 320px;
|
||||
margin: 0 auto;
|
||||
margin-top: 6em;
|
||||
padding: 1em 2.5em;
|
||||
padding-top: 2em;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.carbon-ad-label {
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
margin-bottom: 2px;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.carbon-ad .carbon-poweredby {
|
||||
margin-bottom: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.carbon-ad .carbon-img {
|
||||
margin: 0 auto;
|
||||
margin-bottom: .625em;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.carbon-ad img {
|
||||
display: block;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
|
||||
.main {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
|
@ -93,19 +146,28 @@ a {
|
|||
}
|
||||
|
||||
.footer a:hover,
|
||||
.tutorial:hover {
|
||||
.nav:hover {
|
||||
color: #207AD1;
|
||||
}
|
||||
|
||||
.tutorial {
|
||||
.nav {
|
||||
display: inline-block;
|
||||
font-size: .8em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tutorial:hover,
|
||||
.tutorial:focus,
|
||||
.tutorial:active {
|
||||
.nav.hvr-icon-down,
|
||||
.nav.hvr-icon-forward {
|
||||
padding-right: 1.2em;
|
||||
}
|
||||
|
||||
.nav.hvr-icon-down::before,
|
||||
.nav.hvr-icon-forward::before {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.nav:hover,
|
||||
.nav:focus,
|
||||
.nav:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
13
index.html
13
index.html
|
@ -35,10 +35,19 @@
|
|||
|
||||
<div class="aligncenter">
|
||||
<a class="button cta hvr-float-shadow" href="https://github.com/IanLunn/Hover">Download on GitHub</a><br />
|
||||
<a class="tutorial hvr-pop" href="http://ianlunn.co.uk/articles/hover-css-tutorial-introduction/">Read Tutorial →</a>
|
||||
<a class="nav hvr-icon-down" href="#effects">View Effects</a> <span class="sep">|</span>
|
||||
<a class="nav hvr-icon-forward" href="http://ianlunn.co.uk/articles/hover-css-tutorial-introduction/">Read Tutorial</a>
|
||||
</div>
|
||||
|
||||
<div class="effects">
|
||||
<hr />
|
||||
|
||||
<div class="ad carbon-ad">
|
||||
<p class="carbon-ad-label">Support Hover.css by visiting an ad:</p>
|
||||
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ianlunngithubiohover" id="_carbonads_js"></script>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="effects" class="effects">
|
||||
|
||||
<h2>2D Transitions</h2>
|
||||
|
||||
|
|
Loading…
Reference in New Issue