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

Commit

Permalink
fix: update carbon css
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Jun 29, 2017
1 parent 8482c50 commit ed8bc9b
Showing 1 changed file with 83 additions and 9 deletions.
92 changes: 83 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 @@ -144,7 +144,7 @@ li {
button, input {
font-size: 16px;
padding: 3px;
margin-left: 5px;
margin-left: 5px;
}

#view-source {
Expand Down Expand Up @@ -265,7 +265,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 @@ -301,12 +301,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 @@ -331,3 +325,83 @@ pre { font-size: 14px; }
margin-top: 40px;
}
}

/* 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;
}
}

0 comments on commit ed8bc9b

Please sign in to comment.