| @@ -1,0 +1,63 @@ | ||
| 1 | +/** | |
| 2 | + HTML markup structure of an ad: | |
| 3 | + | |
| 4 | + <div class="wpcnt"> | |
| 5 | + <div class="wpa [wpmrec|wpwidesky|wpleaderboard]"> | |
| 6 | + <a class="wpa-about" href="http://wordpress.com/about-these-ads/" rel="nofollow"> | |
| 7 | + About these ads | |
| 8 | + </a> | |
| 9 | + <div class="u"> | |
| 10 | + [ad unit here] | |
| 11 | + </div> | |
| 12 | + </div> | |
| 13 | + </div> | |
| 14 | +*/ | |
| 15 | + | |
| 16 | +/* outer container */ | |
| 17 | +.wpcnt { | |
| 18 | + text-align: center; | |
| 19 | + line-height: 2; | |
| 20 | +} | |
| 21 | + | |
| 22 | +/* inner container */ | |
| 23 | +.wpa { | |
| 24 | + position: relative; | |
| 25 | + overflow: hidden; /* this hides "about these ads" when there's no adfill */ | |
| 26 | + display: inline-block; | |
| 27 | + max-width: 100%; /* important! this bit of CSS will *crop* any ad that's larger than the parent container! */ | |
| 28 | +} | |
| 29 | + | |
| 30 | +/* about these ads */ | |
| 31 | +.wpa-about { | |
| 32 | + position: absolute; | |
| 33 | + top: 5px; | |
| 34 | + left: 0; | |
| 35 | + right: 0; | |
| 36 | + display: block; | |
| 37 | + margin-top: 0; | |
| 38 | + color: #888; | |
| 39 | + font: 10px/1 "Open Sans", Arial, sans-serif !important; | |
| 40 | + text-align: left !important; | |
| 41 | + text-decoration: none !important; | |
| 42 | + opacity: 0.85; | |
| 43 | + border-bottom: none !important; /* some themes ad dotted underlines, that won't look nice */ | |
| 44 | + box-shadow: none !important; | |
| 45 | +} | |
| 46 | + | |
| 47 | +/* ad unit wrapper */ | |
| 48 | +.wpa .u > div { /* @todo: deprecate wpdvert */ | |
| 49 | + display: block; | |
| 50 | + margin-top: 5px; /* this makes "about these ads" visible */ | |
| 51 | + margin-bottom: 1em; /* every ad should have a little space below it */ | |
| 52 | +} | |
| 53 | + | |
| 54 | +div.wpa > div { | |
| 55 | + margin-top: 20px; | |
| 56 | +} | |
| 57 | + | |
| 58 | +.wpa .u .adsbygoogle { | |
| 59 | + display: block; | |
| 60 | + margin-top: 17px; /* this makes "about these ads" visible */ | |
| 61 | + margin-bottom: 1em; /* every ad should have a little space below it */ | |
| 62 | + background-color: transparent; | |
| 63 | +} | |