From 7832c9ee55dd98f21847b081c36f018a6cbc7d3f Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Fri, 14 Jun 2013 21:12:15 +0200 Subject: [PATCH] Move to AdPack/BSA --- content/css/screen.scss | 74 +++++++++++++++++++++++++++++------------ layouts/default.haml | 9 +++++ layouts/post.haml | 17 ++-------- 3 files changed, 65 insertions(+), 35 deletions(-) diff --git a/content/css/screen.scss b/content/css/screen.scss index 28d2eaa..b8c4e29 100644 --- a/content/css/screen.scss +++ b/content/css/screen.scss @@ -140,27 +140,6 @@ nav#primary { margin: 32px auto 32px auto; } -.influads { - margin: 32px auto 32px auto; - font-size: 12px; - text-align: center; - - .influads_text { - margin-top: 3px; - margin-bottom: 6px; - - a { - color: $concrete; - } - } - - .influads_powered_div { - a { - color: $silver; - } - } -} - #content { margin: 12px; @@ -303,3 +282,56 @@ form { } } + +body .one { + .bsa_it_ad { + background: transparent; + border: none; + font-family: inherit; + padding: 68px 15px 0 10px; + margin: 0; + text-align: center; + } + + .bsa_it_ad:hover img { + -moz-box-shadow: 0 0 3px #000; + -webkit-box-shadow: 0 0 3px #000; + box-shadow: 0 0 3px #000; + } + + .bsa_it_ad .bsa_it_i { + display: block; + padding: 0; + float: none; + margin: 0 0 5px; + } + + .bsa_it_ad .bsa_it_i img { + padding: 0; + border: none; + } + + .bsa_it_ad .bsa_it_t { + padding: 3px 0; + display: block; + } + + .bsa_it_ad .bsa_it_d { + padding: 0; + font-size: 11px; + color: #696969; + } + + .bsa_it_p { + display: none; + } +} + +body #bsap_aplink, +body #bsap_aplink:hover { + display: block; + font-size: 10px; + margin: 3px 15px 0; + text-align: center; +} + diff --git a/layouts/default.haml b/layouts/default.haml index c7f8bf8..3ef2e38 100644 --- a/layouts/default.haml +++ b/layouts/default.haml @@ -25,6 +25,15 @@ %title= "#{@item[:title]} — ariejan.net" %body + :javascript + (function(){ + var bsa = document.createElement('script'); + bsa.type = 'text/javascript'; + bsa.async = true; + bsa.src = '//s3.buysellads.com/ac/bsa.js'; + (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); + })(); + %header#title %h1= link_to "ariejan.net", "https://ariejan.net/" diff --git a/layouts/post.haml b/layouts/post.haml index f04c8eb..8aa2861 100644 --- a/layouts/post.haml +++ b/layouts/post.haml @@ -21,17 +21,6 @@ })(); %section#sidebar - %aside.influads - #influad - - if ENV['NANOC_ENV'] == "development" - .influads_block - .influads_img - %img(src="http://placehold.it/130x100&text=Influad%20(130x100)" width="130" height="100") - .influads_text - = link_to "The exquisite, low-cost way to design, send, and track email.", "#" - .influads_powered_div - = link_to "Powered by InfluAds", "#" - - else - :plain -
- + %aside.adpack + .bsarocks.bsap_a40a34b3f2d124df05e7c20ddaa79bd8#bsap_1287881 + %a(href="http://adpacks.com" id="bsap_aplink") via Ad Packs