Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2013-07-18 10:22:28 +0400
committerMark Otto <otto@github.com>2013-07-18 10:22:28 +0400
commitd7d1c2a767987c8aec0745ea5f26ab319b55f5af (patch)
tree498a014ca0a921e671dcc4bc28e72e87aa3b5293
parent9efba239b6c15b72a2872a6c5119fa3abe303951 (diff)
add ads to v3 docs
-rw-r--r--docs/_includes/ads.html1
-rw-r--r--docs/_layouts/default.html1
-rw-r--r--docs/assets/css/docs.css59
3 files changed, 58 insertions, 3 deletions
diff --git a/docs/_includes/ads.html b/docs/_includes/ads.html
new file mode 100644
index 0000000000..495e7ba47f
--- /dev/null
+++ b/docs/_includes/ads.html
@@ -0,0 +1 @@
+<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div> \ No newline at end of file
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index 019d7626a3..5d69544659 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -15,6 +15,7 @@
<div class="container">
<h1>{{ page.title }}</h1>
<p>{{ page.lead }}</p>
+ {% include ads.html %}
</div>
</div>
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index aae9e0635a..38a1369da2 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -155,6 +155,45 @@ body {
font-weight: 300;
line-height: 1.5;
}
+.bs-header .container {
+ position: relative;
+}
+
+/* Ads in page headers */
+.carbonad {
+ width: auto !important;
+ margin: 50px -30px -40px !important;
+ padding: 20px !important;
+ overflow: hidden; /* clearfix */
+ height: auto !important;
+ font-size: 13px !important;
+ line-height: 16px !important;
+ text-align: left;
+ background: none !important;
+ border: 0 !important;
+ border-top: 1px solid #e5e5e5 !important;
+}
+.carbonad-img {
+ margin: 0 !important;
+}
+.carbonad-text,
+.carbonad-tag {
+ float: none !important;
+ display: block !important;
+ width: auto !important;
+ height: auto !important;
+ margin-left: 145px !important;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
+}
+.carbonad-text {
+ padding-top: 0 !important;
+}
+.carbonad-tag {
+ text-align: left !important;
+}
+.carbonad #azcarbon > img {
+ display: none; /* hide what I assume are tracking images */
+}
/* Padding for in-page bookmarks */
.bs-docs-section {
@@ -720,6 +759,12 @@ input.focused {
line-height: 1;
}
+ .carbonad {
+ margin: 0 !important;
+ border: 1px solid #e5e5e5 !important;
+ border-radius: 4px;
+ }
+
/* Show the docs nav */
.bs-sidebar {
display: block;
@@ -756,9 +801,17 @@ input.focused {
width: 213px;
}
- /* Icons */
- .the-icons li {
- width: 12.5%;
+ .bs-header h1,
+ .bs-header p {
+ margin-right: 380px;
+ }
+ .carbonad {
+ position: absolute;
+ top: 0;
+ right: 0;
+ padding: 15px !important;
+ width: 330px !important;
+ min-height: 132px;
}
}