diff --git a/doc-src/content/stylesheets/partials/_ads.scss b/doc-src/content/stylesheets/partials/_ads.scss new file mode 100644 index 00000000..f33b5a07 --- /dev/null +++ b/doc-src/content/stylesheets/partials/_ads.scss @@ -0,0 +1,29 @@ +.advertisement { + padding: 8px 5px !important; + text-align: center; + line-height: 1.1em !important; + @include opacity(0); + @include transition(opacity 1s ease-in 3s); + &.visible { + @include opacity(1); + } + a:not(.pagerankspam) { + display: block; + color: white; + @extend .heading-font; + text-decoration: none; + &:hover { + @include text-shadow(0 0 2px #aaa); + } + } + .pagerankspam { font-size: 9px; } + .dark & { + @extend .code-block-dark; + img:hover { @include single-box-shadow(white); } + } + .light & { + @extend .code-block-light; + a:not(.pagerankspam) { color: #222} + img:hover { @include single-box-shadow(#222); } + } +} diff --git a/doc-src/content/stylesheets/screen.scss b/doc-src/content/stylesheets/screen.scss index f00a96a1..b3c7d2a5 100644 --- a/doc-src/content/stylesheets/screen.scss +++ b/doc-src/content/stylesheets/screen.scss @@ -13,6 +13,7 @@ @import "partials/nav"; @import "partials/sidebar"; +@import "partials/ads"; @import "partials/main"; @import "partials/code"; @import "partials/example"; @@ -25,4 +26,4 @@ html.dark { @include dark-theme(true); } -html.light { @include light-theme(true); } \ No newline at end of file +html.light { @include light-theme(true); } diff --git a/doc-src/layouts/partials/sidebar.haml b/doc-src/layouts/partials/sidebar.haml index 9a836d62..95b88d1b 100644 --- a/doc-src/layouts/partials/sidebar.haml +++ b/doc-src/layouts/partials/sidebar.haml @@ -3,3 +3,8 @@ - sidebar_item ||= sidebar_item(@item) - 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