Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Update Carbon Ad Code #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
93 changes: 84 additions & 9 deletions css/html5demos.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body {
body {
font: normal 16px/20px "Helvetica Neue", Helvetica, sans-serif;
background: rgb(237, 237, 236);
margin: 0;
Expand Down Expand Up @@ -141,7 +141,7 @@ li {
button, input {
font-size: 16px;
padding: 3px;
margin-left: 5px;
margin-left: 5px;
}

#view-source {
Expand Down Expand Up @@ -262,7 +262,7 @@ body.view-source #view-source {
.tags span:hover,
.tags span.selected {
border: 1px solid #75784C;
background: #FF7;
background: #FF7;
color: #333521;
}

Expand Down Expand Up @@ -298,12 +298,6 @@ body.view-source #view-source {
background: url(../images/yourbrowser.gif) no-repeat top right;
}

#carbonads-container {
position: fixed;
margin-left: 620px;
margin-top: -2px;
}

/** Pretty printing styles. Used with prettify.js. */
pre { font-size: 14px; }
.str { color: #080; }
Expand All @@ -317,3 +311,84 @@ pre { font-size: 14px; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }


/* Carbon Ads */
#carbonads {
position: fixed;
display: block;
overflow: hidden;
margin-top: -2px;
margin-left: 620px;
padding: 1em;
max-width: 130px;
border: 1px solid hsl(0, 0%, 91%);
background-color: #fbfbfb;
text-align: center;
font-size: 11px;
font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif;
line-height: 1.5;
}

#carbonads a {
color: inherit;
text-decoration: none;
}

#carbonads a:hover {
color: inherit;
}

#carbonads span {
display: block;
overflow: hidden;
}

.carbon-img {
display: block;
margin: 0 auto 1em;
}

.carbon-text {
display: block;
margin-bottom: 1em;
}

.carbon-poweredby {
display: block;
color: #888 !important;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 8px;
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
#carbonads {
position: relative;
float: none;
margin: 3em auto 1em;
max-width: 330px;
}
#carbonads span {
position: relative;
}
#carbonads > span {
max-width: none;
}
.carbon-img {
float: left;
margin: 0 1em 0 0;
}
.carbon-text {
float: left;
margin-bottom: 0;
max-width: calc(100% - 130px - 1em);
text-align: left;
}
.carbon-poweredby {
position: absolute;
right: 0;
bottom: 0;
display: block;
}
}
2 changes: 1 addition & 1 deletion includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<section id="wrapper">
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/14060/azcarbon_2_1_0_VERT"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=html5demoscom" id="_carbonads_js"></script>
<header>
<h1><?=$title?></h1>
</header>
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function spans($list) {
</head>
<body>
<section id="wrapper">
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/14060/azcarbon_2_1_0_VERT"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=html5demoscom" id="_carbonads_js"></script>
<header>
<h1><abbr>HTML</abbr> 5 Demos and Examples</h1>
</header>
Expand Down