Commit f771bf14 authored by Mark Otto's avatar Mark Otto
Browse files

Merge branch 'bs3_rc1' into 3.0.0-wip

parents 82055891 7bb88179
Showing with 105 additions and 48 deletions
+105 -48
...@@ -39,4 +39,3 @@ nbproject ...@@ -39,4 +39,3 @@ nbproject
.CVS .CVS
.idea .idea
node_modules node_modules
dist
BOOTSTRAP ?= ./docs/assets/css/bootstrap.css BOOTSTRAP ?= ./dist/css/bootstrap.css
BOOTSTRAP_LESS ?= ./less/bootstrap.less BOOTSTRAP_LESS ?= ./less/bootstrap.less
DATE=$(shell date +%I:%M%p) DATE=$(shell date +%I:%M%p)
CHECK=\033[32m✔ Done\033[39m CHECK=\033[32m✔ Done\033[39m
...@@ -22,14 +22,14 @@ build: ...@@ -22,14 +22,14 @@ build:
@recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP} @recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
@echo " ${CHECK}" @echo " ${CHECK}"
@printf "Prepping documentation assets..." @printf "Prepping documentation assets..."
@cp js/tests/vendor/jquery.js docs/assets/js/ @cp js/tests/vendor/jquery.js assets/js/
@echo " ${CHECK}" @echo " ${CHECK}"
@printf "Compiling and minifying JavaScript..." @printf "Compiling and minifying JavaScript..."
@cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > docs/assets/js/bootstrap.js @cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > dist/js/bootstrap.js
@uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js @uglifyjs -nc dist/js/bootstrap.js > dist/js/bootstrap.min.tmp.js
@echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js @echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2013 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > dist/js/copyright.js
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js @cat dist/js/copyright.js dist/js/bootstrap.min.tmp.js > dist/js/bootstrap.min.js
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js @rm dist/js/copyright.js dist/js/bootstrap.min.tmp.js
@echo " ${CHECK}" @echo " ${CHECK}"
@echo "${HR}" @echo "${HR}"
@echo "\033[36mSuccess!\n\033[39m" @echo "\033[36mSuccess!\n\033[39m"
...@@ -72,7 +72,7 @@ bootstrap/js/*.js: js/*.js ...@@ -72,7 +72,7 @@ bootstrap/js/*.js: js/*.js
mkdir -p bootstrap/js mkdir -p bootstrap/js
cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > bootstrap/js/bootstrap.js cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > bootstrap/js/bootstrap.js
uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2013 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
......
...@@ -6,6 +6,6 @@ pygments: true ...@@ -6,6 +6,6 @@ pygments: true
permalink: pretty permalink: pretty
# Server # Server
source: ./docs
destination: ./_gh_pages destination: ./_gh_pages
exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md"]
port: 9001 port: 9001
<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
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
================================================== --> ================================================== -->
<!-- Placed at the end of the document so the pages load faster --> <!-- Placed at the end of the document so the pages load faster -->
<script src="/assets/js/jquery.js"></script> <script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.js"></script> <script src="/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="/assets/js/holder/holder.js"></script> <script src="/assets/js/holder.js"></script>
<script src="/assets/js/application.js"></script> <script src="/assets/js/application.js"></script>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</title> </title>
<!-- Bootstrap core CSS --> <!-- Bootstrap core CSS -->
<link href="/assets/css/bootstrap.css" rel="stylesheet"> <link href="/dist/css/bootstrap.css" rel="stylesheet">
{% if page.layout != "example" %} {% if page.layout != "example" %}
<!-- Documentation extras --> <!-- Documentation extras -->
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="/assets/js/html5shiv.js"></script> <script src="/assets/js/html5shiv.js"></script>
<script src="/assets/js/respond/respond.min.js"></script> <script src="/assets/js/respond.min.js"></script>
<![endif]--> <![endif]-->
<!-- Favicons --> <!-- Favicons -->
......
File moved
File moved
File moved
File moved
...@@ -24,6 +24,13 @@ ...@@ -24,6 +24,13 @@
<a href="/customize">Customize</a> <a href="/customize">Customize</a>
</li> </li>
</ul> </ul>
{% if page.layout == "default" %}
<ul class="nav navbar-nav pull-right">
<li>
<a href="http://getbootstrap.com/2.3.2/">Looking for Bootstrap 2.3.2?</a>
</li>
</ul>
{% endif %}
</div> </div>
</div> </div>
</div> </div>
File moved
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<!-- Meta, title, CSS, favicons, etc. --> <!-- Meta, title, CSS, favicons, etc. -->
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<div class="container"> <div class="container">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p>{{ page.lead }}</p> <p>{{ page.lead }}</p>
{% include ads.html %}
</div> </div>
</div> </div>
......
File moved
...@@ -13,6 +13,19 @@ body { ...@@ -13,6 +13,19 @@ body {
padding-top: 50px; /* Account for fixed navbar */ padding-top: 50px; /* Account for fixed navbar */
} }
/* Custom docs button */
.btn-bs {
color: #b94a48;
background-color: #fff;
border-color: #e5e5e5;
}
.btn-bs:hover,
.btn-bs:active {
color: #fff;
background-color: #b94a48;
border-color: #b94a48;
}
/* Top nav and header /* Top nav and header
...@@ -43,6 +56,15 @@ body { ...@@ -43,6 +56,15 @@ body {
border-color: #993c3a; border-color: #993c3a;
} }
/* Old docs callout */
.bs-old-docs {
padding: 15px 20px;
color: #777;
border-bottom: 1px solid #e5e5e5;
}
.bs-old-docs strong {
color: #555;
}
/* Homepage masthead /* Homepage masthead
...@@ -63,20 +85,11 @@ body { ...@@ -63,20 +85,11 @@ body {
} }
/* Download button */ /* Download button */
.bs-masthead .btn { .bs-masthead .btn-bs {
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
padding: 18px 24px; padding: 18px 24px;
font-size: 21px; font-size: 21px;
color: #b94a48; /* redeclare to override the `.jumbotron a` */
background-color: #fff;
border-color: #e5e5e5;
}
.bs-masthead .btn:hover,
.bs-masthead .btn:active {
color: #fff; /* redeclare to override the `.jumbotron a` */
background-color: #b94a48;
border-color: #b94a48;
} }
/* Textual links */ /* Textual links */
...@@ -95,12 +108,10 @@ body { ...@@ -95,12 +108,10 @@ body {
} }
/* Customize and Download button /* Customize and Download button
-------------------------------------------------- */ -------------------------------------------------- */
.bs-customizer {
}
.bs-customizer .toggle { .bs-customizer .toggle {
float: right; float: right;
} }
...@@ -116,23 +127,8 @@ body { ...@@ -116,23 +127,8 @@ body {
background-color: #fafafa; background-color: #fafafa;
} }
.bs-customize-download { .bs-customize-download {
text-align:center; text-align: center;
}
.bs-customize-download .btn {
margin-top: 5px;
margin-bottom: 5px;
padding: 18px 24px;
font-size: 21px;
color: #b94a48;
background-color: #fff;
border-color: #b94a48;
}
.bs-customize-download .btn:hover,
.bs-customize-download .btn:active {
color: #fff;
background-color: #b94a48;
} }
...@@ -146,7 +142,7 @@ body { ...@@ -146,7 +142,7 @@ body {
font-size: 16px; font-size: 16px;
color: #5a5a5a; color: #5a5a5a;
text-align: center; text-align: center;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #e5e5e5;
} }
.bs-header h1 { .bs-header h1 {
color: #b94a48; color: #b94a48;
...@@ -155,6 +151,45 @@ body { ...@@ -155,6 +151,45 @@ body {
font-weight: 300; font-weight: 300;
line-height: 1.5; 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 */ /* Padding for in-page bookmarks */
.bs-docs-section { .bs-docs-section {
...@@ -720,6 +755,12 @@ input.focused { ...@@ -720,6 +755,12 @@ input.focused {
line-height: 1; line-height: 1;
} }
.carbonad {
margin: 0 !important;
border: 1px solid #e5e5e5 !important;
border-radius: 4px;
}
/* Show the docs nav */ /* Show the docs nav */
.bs-sidebar { .bs-sidebar {
display: block; display: block;
...@@ -756,9 +797,17 @@ input.focused { ...@@ -756,9 +797,17 @@ input.focused {
width: 213px; width: 213px;
} }
/* Icons */ .bs-header h1,
.the-icons li { .bs-header p {
width: 12.5%; margin-right: 380px;
}
.carbonad {
position: absolute;
top: 20px;
right: 0;
padding: 15px !important;
width: 330px !important;
min-height: 132px;
} }
} }
......
File moved
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment