From 9a66390150fe28e89a168092f5e31945ace8164e Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 17 Mar 2012 15:44:20 -0700 Subject: [PATCH] Homepage ad. --- doc-src/content/index.haml | 10 ++++++---- doc-src/content/stylesheets/home.scss | 3 ++- doc-src/content/stylesheets/partials/_ads.scss | 15 ++++++++++++++- doc-src/layouts/partials/ad.haml | 4 ++++ doc-src/layouts/partials/sidebar.haml | 6 ++---- 5 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 doc-src/layouts/partials/ad.haml diff --git a/doc-src/content/index.haml b/doc-src/content/index.haml index bc74afd6..daab61a0 100644 --- a/doc-src/content/index.haml +++ b/doc-src/content/index.haml @@ -7,21 +7,23 @@ layout: homepage %h1#logo Compass %h2 Compass is an open-source CSS Authoring Framework. .overview - .compass + .info-box.compass %h4 Why designers love Compass. %ol %li Experience cleaner markup without presentational classes. - %li It’s chock full of the web’s best reusable patterns. + %li It’s chock full of the web’s best reusable patterns. %li It makes creating sprites a breeze. - %li Compass mixins make CSS3 easy. + %li Compass mixins make CSS3 easy. + %li Create beautiful typographic rhythms. %li Download and create extensions with ease. - .sass + .info-box.sass %h4 Compass uses Sass. %p Sass is an extension of CSS3 which adds nested rules, variables, mixins, selector inheritance, and more. Sass generates well formatted CSS and makes your stylesheets easier to organize and maintain. + = render 'partials/ad' %h3 Brilliant people use Compass, including these wildly talented folks: %ul#featured_sites %li diff --git a/doc-src/content/stylesheets/home.scss b/doc-src/content/stylesheets/home.scss index 8f607170..14614be3 100644 --- a/doc-src/content/stylesheets/home.scss +++ b/doc-src/content/stylesheets/home.scss @@ -10,8 +10,9 @@ @import "partials/typography"; @import "partials/main"; @import "partials/home"; +@import "partials/ads"; html.dark { @include dark-theme; } html.light { @include light-theme; } -@import "core/clearing-classes"; \ No newline at end of file +@import "core/clearing-classes"; diff --git a/doc-src/content/stylesheets/partials/_ads.scss b/doc-src/content/stylesheets/partials/_ads.scss index f33b5a07..83fcd2a4 100644 --- a/doc-src/content/stylesheets/partials/_ads.scss +++ b/doc-src/content/stylesheets/partials/_ads.scss @@ -3,7 +3,7 @@ text-align: center; line-height: 1.1em !important; @include opacity(0); - @include transition(opacity 1s ease-in 3s); + @include transition(opacity 1s ease-in 1.5s); &.visible { @include opacity(1); } @@ -26,4 +26,17 @@ a:not(.pagerankspam) { color: #222} img:hover { @include single-box-shadow(#222); } } + #home & { + float: right; + width: 380px; + margin-top: 11px; + .fusionimg { + margin: 6px 8px; + float: left; + } + .fusiontext { + padding-top: 6px; + } + } } + diff --git a/doc-src/layouts/partials/ad.haml b/doc-src/layouts/partials/ad.haml new file mode 100644 index 00000000..f0d1fe18 --- /dev/null +++ b/doc-src/layouts/partials/ad.haml @@ -0,0 +1,4 @@ +.advertisement + + #fusion_ad + %a.pagerankspam(href="http://fusionads.net") Powered by Fusion diff --git a/doc-src/layouts/partials/sidebar.haml b/doc-src/layouts/partials/sidebar.haml index 95b88d1b..4f3b888e 100644 --- a/doc-src/layouts/partials/sidebar.haml +++ b/doc-src/layouts/partials/sidebar.haml @@ -4,7 +4,5 @@ - sidebar_item ||= reference_item(:stylesheet => @default_stylesheet) %ul= item_tree(sidebar_item, :depth => 1, :omit_self => get_var(:omit_self){true}, :heading_level => get_var(:heading_level){1}, :heading_depth => get_var(:heading_depth){10}) -.advertisement - - #fusion_ad - %a.pagerankspam(href="http://fusionads.net") Powered by Fusion + += render 'partials/ad'