From ee3e3f7a0e6b29283a913fab903765355fc7b52a Mon Sep 17 00:00:00 2001 From: Sayz Lim Date: Sat, 10 Jun 2017 02:25:15 +0700 Subject: [PATCH] Install Carbon --- example/example.css | 80 +++++++++++++++++++++++++++++++++++++++++++++ index.html | 1 + 2 files changed, 81 insertions(+) diff --git a/example/example.css b/example/example.css index d9ae9cc0..306ace3d 100644 --- a/example/example.css +++ b/example/example.css @@ -202,3 +202,83 @@ button:hover { margin-top: -8px; line-height: 16px; } + +/* Carbon */ + +#carbonads { + position: absolute; + display: block; + overflow: hidden; + margin-left: -180px; + padding: 1em; + max-width: calc(130px + 2em); + background-color: #aa5579; + text-align: center; + font-size: 12px; + font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; + line-height: 1.5; +} + +#carbonads a { + color: inherit; + text-decoration: none; + font-weight: 400; + transition: color .2s ease-in-out; +} + +#carbonads a:hover { + color: #221c3b; +} + +#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; + text-transform: uppercase; + letter-spacing: 1px; + font-size: 9px; +} + +@media only screen and (min-width: 320px) and (max-width: 960px) { + #carbonads { + position: relative; + float: none; + margin: 0 auto -2em; + 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; + } +} diff --git a/index.html b/index.html index 59e715e3..5830c71f 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@

Drag and drop so simple it hurts< Fork me on GitHub
+