Commit 0e13f8dc authored by Jacob Thornton's avatar Jacob Thornton

Merge branch 'master' of github.com:twitter/bootstrap into js-examples

Conflicts:
	bootstrap-1.2.0.css
	bootstrap-1.2.0.min.css
	lib/patterns.less
	lib/scaffolding.less
parents b4a84e1e 2589c0ac
DATE=$(shell DATE) DATE=$(shell DATE)
BOOTSTRAP = ./bootstrap-1.1.1.css BOOTSTRAP = ./bootstrap-1.2.0.css
BOOTSTRAP_MIN = ./bootstrap-1.1.1.min.css BOOTSTRAP_MIN = ./bootstrap-1.2.0.min.css
BOOTSTRAP_LESS = ./lib/bootstrap.less BOOTSTRAP_LESS = ./lib/bootstrap.less
LESS_COMPESSOR ?= `which lessc` LESS_COMPESSOR ?= `which lessc`
WATCHR ?= `which watchr` WATCHR ?= `which watchr`
......
...@@ -18,11 +18,29 @@ Here's what the LESS version looks like: ...@@ -18,11 +18,29 @@ Here's what the LESS version looks like:
Or if you prefer, the standard css way: Or if you prefer, the standard css way:
<link rel="stylesheet" type="text/css" href="bootstrap-1.1.1.css"> <link rel="stylesheet" type="text/css" href="bootstrap-1.2.0.css">
For more info, refer to the docs! For more info, refer to the docs!
Versioning
----------
For transparency and insight into our release cycle, and for striving to maintain backwards compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
Releases will be numbered with the follow format:
`<major>.<minor>.<patch>`
And constructed with the following guidelines:
* Breaking backwards compatibility bumps the major
* New additions without breaking backwards compatibility bumps the minor
* Bug fixes and misc changes bump the patch
For more information on SemVer, please visit http://semver.org/.
Bug Tracker Bug Tracker
----------- -----------
......
This diff is collapsed.
...@@ -24,8 +24,7 @@ section > .row { ...@@ -24,8 +24,7 @@ section > .row {
background-image: -moz-linear-gradient(#004D9F, #049cd9); background-image: -moz-linear-gradient(#004D9F, #049cd9);
background-image: -o-linear-gradient(top, #004D9F, #049cd9); background-image: -o-linear-gradient(top, #004D9F, #049cd9);
background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#004D9F', EndColorStr='#049cd9', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#004D9F', EndColorStr='#049cd9', GradientType=0))";
} }
#masthead div.inner, #footer div.inner { #masthead div.inner, #footer div.inner {
background: transparent url(../img/grid-18px.png) top center; background: transparent url(../img/grid-18px.png) top center;
...@@ -200,8 +199,7 @@ div.topbar-wrapper div.topbar { ...@@ -200,8 +199,7 @@ div.topbar-wrapper div.topbar {
position: absolute; position: absolute;
margin: 0 -20px; margin: 0 -20px;
} }
div.topbar-wrapper div.topbar .topbar-inner {
div.topbar-wrapper div.topbar .fill {
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
-webkit-border-radius: 4px; -webkit-border-radius: 4px;
......
...@@ -5,6 +5,7 @@ $(document).ready(function(){ ...@@ -5,6 +5,7 @@ $(document).ready(function(){
prettyPrint(); prettyPrint();
// scroll spy logic // scroll spy logic
// ================ // ================
...@@ -19,7 +20,6 @@ $(document).ready(function(){ ...@@ -19,7 +20,6 @@ $(document).ready(function(){
return $(id).offset().top; return $(id).offset().top;
}); });
function setButton(id) { function setButton(id) {
nav.parent("li").removeClass('active'); nav.parent("li").removeClass('active');
$(nav[$.inArray(id, targets)]).parent("li").addClass('active'); $(nav[$.inArray(id, targets)]).parent("li").addClass('active');
...@@ -48,10 +48,9 @@ $(document).ready(function(){ ...@@ -48,10 +48,9 @@ $(document).ready(function(){
// =============================== // ===============================
$("body").bind("click", function (e) { $("body").bind("click", function (e) {
$('a.menu').parent("li").removeClass("open"); $('.dropdown-toggle, .menu').parent("li").removeClass("open");
}); });
$(".dropdown-toggle, .menu").click(function (e) {
$("a.menu").click(function (e) {
var $li = $(this).parent("li").toggleClass('open'); var $li = $(this).parent("li").toggleClass('open');
return false; return false;
}); });
......
This diff is collapsed.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<![endif]--> <![endif]-->
<!-- Le styles --> <!-- Le styles -->
<link href="../bootstrap-1.1.1.css" rel="stylesheet"> <link href="../bootstrap-1.2.0.css" rel="stylesheet">
<!-- Le fav and touch icons --> <!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico"> <link rel="shortcut icon" href="images/favicon.ico">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="fill"> <div class="fill">
<div class="container"> <div class="container">
<h3><a href="#">Project name</a></h3> <h3><a href="#">Project name</a></h3>
<ul> <ul class="nav">
<li class="active"><a href="#">Home</a></li> <li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li> <li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li> <li><a href="#contact">Contact</a></li>
......
/* Responsive.less
* Adjusted grid styles to handle some common screen sizes
* ------------------------------------------------------- */
// MOBILE PORTRAIT & LANDSCAPE
// ---------------------------
// For devices narrower than 480px
@media only screen and (max-width: 480px) {
// Remove fixed width of containers
.container {
width: auto;
padding: 0 10px;
}
// Undo the floating of columns
.row {
margin-left: 0;
}
.row [class^="span"] {
float: none;
width: 100%;
display: block;
margin-left: 0;
}
// Stack form elements instead of floating them
fieldset legend {
margin-left: 0;
}
label {
float: none;
width: auto;
text-align: left;
}
div.input {
margin-left: 0;
width: 100%;
}
.input-xxlarge,
input.xxlarge,
textarea.xxlarge,
select.xxlarge {
width: 80%;
}
// Adjust modal
.modal-backdrop {
padding: 10px;
}
.modal {
width: 100%;
margin: 0;
left: auto;
}
}
\ No newline at end of file
/*! /*!
* Bootstrap v1.1.1 * Bootstrap v1.2.0
* *
* Copyright 2011 Twitter, Inc * Copyright 2011 Twitter, Inc
* Licensed under the Apache License v2.0 * Licensed under the Apache License v2.0
......
...@@ -61,29 +61,58 @@ input[type=radio] { ...@@ -61,29 +61,58 @@ input[type=radio] {
} }
// Inputs, Textareas, Selects // Inputs, Textareas, Selects
input[type=text], input,
input[type=password],
textarea, textarea,
select, select,
.uneditable-input { .uneditable-input {
display: inline-block; display: inline-block;
width: 210px; width: 210px;
height: @baseline;
padding: 4px; padding: 4px;
font-size: 13px; font-size: 13px;
line-height: @baseline; line-height: @baseline;
height: @baseline;
color: @gray; color: @gray;
border: 1px solid #ccc; border: 1px solid #ccc;
.border-radius(3px); .border-radius(3px);
} }
/* mini reset for non-html5 file types */
input[type=checkbox],
input[type=radio] {
width: auto;
height: auto;
padding: 0;
margin: 3px 0;
*margin-top: 0; /* IE6-7 */
line-height: normal;
border: none;
}
input[type=file] {
background-color: #fff;
padding: initial;
border: initial;
line-height: initial;
.box-shadow(none);
}
input[type=button],
input[type=reset],
input[type=submit] {
width: auto;
height: auto;
}
select, select,
input[type=file] { input[type=file] {
height: @baseline * 1.5; height: @baseline * 1.5;
line-height: @baseline * 1.5; line-height: @baseline * 1.5;
} }
textarea { textarea {
height: auto; height: auto;
} }
.uneditable-input { .uneditable-input {
background-color: #eee; background-color: #eee;
display: block; display: block;
...@@ -100,15 +129,13 @@ textarea { ...@@ -100,15 +129,13 @@ textarea {
} }
// Focus states // Focus states
input[type=text], input,
input[type=password],
select, textarea { select, textarea {
@transition: border linear .2s, box-shadow linear .2s; @transition: border linear .2s, box-shadow linear .2s;
.transition(@transition); .transition(@transition);
.box-shadow(inset 0 1px 3px rgba(0,0,0,.1)); .box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
} }
input[type=text]:focus, input:focus,
input[type=password]:focus,
textarea:focus { textarea:focus {
outline: none; outline: none;
border-color: rgba(82,168,236,.8); border-color: rgba(82,168,236,.8);
...@@ -128,8 +155,7 @@ form div.error { ...@@ -128,8 +155,7 @@ form div.error {
span.help-block { span.help-block {
color: @red; color: @red;
} }
input[type=text], input,
input[type=password],
textarea { textarea {
border-color: @error-text; border-color: @error-text;
.box-shadow(0 0 3px rgba(171,41,32,.25)); .box-shadow(0 0 3px rgba(171,41,32,.25));
...@@ -221,7 +247,7 @@ input.disabled { ...@@ -221,7 +247,7 @@ input.disabled {
// Inline Fields (input fields that appear as inline objects // Inline Fields (input fields that appear as inline objects
.inline-inputs { .inline-inputs {
color: @gray; color: @gray;
span, input[type=text] { span, input {
display: inline-block; display: inline-block;
} }
input.mini { input.mini {
...@@ -238,8 +264,7 @@ input.disabled { ...@@ -238,8 +264,7 @@ input.disabled {
// Allow us to put symbols and text within the input field for a cleaner look // Allow us to put symbols and text within the input field for a cleaner look
.input-prepend, .input-prepend,
.input-append { .input-append {
input[type=text], input {
input[type=password] {
.border-radius(0 3px 3px 0); .border-radius(0 3px 3px 0);
} }
.add-on { .add-on {
...@@ -270,8 +295,7 @@ input.disabled { ...@@ -270,8 +295,7 @@ input.disabled {
} }
} }
.input-append { .input-append {
input[type=text], input {
input[type=password] {
float: left; float: left;
.border-radius(3px 0 0 3px); .border-radius(3px 0 0 3px);
} }
......
This diff is collapsed.
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
@gridColumns: 16; @gridColumns: 16;
@gridColumnWidth: 40px; @gridColumnWidth: 40px;
@gridGutterWidth: 20px; @gridGutterWidth: 20px;
@extraSpace: 40px; @extraSpace: (@gridGutterWidth * 2); // For our grid calculations
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1)); @siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// Color Scheme // Color Scheme
...@@ -231,6 +231,7 @@ ...@@ -231,6 +231,7 @@
background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+ background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10 background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(left, @startColor, @endColor); // Le standard background-image: linear-gradient(left, @startColor, @endColor); // Le standard
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
} }
.vertical (@startColor: #555, @endColor: #333) { .vertical (@startColor: #555, @endColor: #333) {
background-color: @endColor; background-color: @endColor;
...@@ -242,6 +243,7 @@ ...@@ -242,6 +243,7 @@
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+ background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10 background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(top, @startColor, @endColor); // The standard background-image: linear-gradient(top, @startColor, @endColor); // The standard
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
} }
.directional (@startColor: #555, @endColor: #333, @deg: 45deg) { .directional (@startColor: #555, @endColor: #333, @deg: 45deg) {
background-color: @endColor; background-color: @endColor;
...@@ -257,13 +259,19 @@ ...@@ -257,13 +259,19 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor)); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -moz-linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback
} }
} }
// Reset filters for IE
.reset-filter() {
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
}
// Opacity // Opacity
.opacity(@opacity: 100) { .opacity(@opacity: 100) {
filter: e(%("alpha(opacity=%d)", @opacity)); filter: e(%("alpha(opacity=%d)", @opacity));
......
...@@ -134,13 +134,3 @@ textarea { ...@@ -134,13 +134,3 @@ textarea {
overflow: auto; // Remove vertical scrollbar in IE6-9 overflow: auto; // Remove vertical scrollbar in IE6-9
vertical-align: top; // Readability and alignment cross-browser vertical-align: top; // Readability and alignment cross-browser
} }
// Tables
// -------------------------
// Source: http://github.com/necolas/normalize.css
// Remove spacing between table cells
table {
border-collapse: collapse;
border-spacing: 0;
}
\ No newline at end of file
...@@ -9,28 +9,14 @@ ...@@ -9,28 +9,14 @@
.row { .row {
.clearfix(); .clearfix();
margin-left: -20px; margin-left: -1 * @gridGutterWidth;
// Default columns // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
.span1, // Credit to @dhg for the idea
.span2, [class^="span"] {
.span3,
.span4,
.span5,
.span6,
.span7,
.span8,
.span9,
.span10,
.span11,
.span12,
.span13,
.span14,
.span15,
.span16 {
display: inline; display: inline;
float: left; float: left;
margin-left: 20px; margin-left: @gridGutterWidth;
} }
// Default columns // Default columns
...@@ -64,6 +50,12 @@ ...@@ -64,6 +50,12 @@
.offset10 { .offset(10); } .offset10 { .offset(10); }
.offset11 { .offset(11); } .offset11 { .offset(11); }
.offset12 { .offset(12); } .offset12 { .offset(12); }
// Unique column sizes for 16-column grid
.span-one-third { width: 300px; }
.span-two-thirds { width: 620px; }
.offset-one-third { margin-left: 340px; }
.offset-two-thirds { margin-left: 660px; }
} }
...@@ -77,7 +69,6 @@ body { ...@@ -77,7 +69,6 @@ body {
margin: 0; margin: 0;
#font > .sans-serif(normal,@basefont,@baseline); #font > .sans-serif(normal,@basefont,@baseline);
color: @gray; color: @gray;
text-rendering: optimizeLegibility;
} }
// Container (centered, fixed-width layouts) // Container (centered, fixed-width layouts)
...@@ -90,11 +81,12 @@ body { ...@@ -90,11 +81,12 @@ body {
.container-fluid { .container-fluid {
padding: 0 20px; padding: 0 20px;
.clearfix(); .clearfix();
.sidebar { > .sidebar {
float: left; float: left;
width: 220px; width: 220px;
} }
.content { // TODO in v2: rename this and .popover .content to be more specific
> .content {
min-width: 700px; min-width: 700px;
max-width: 1180px; max-width: 1180px;
margin-left: 240px; margin-left: 240px;
......
Markdown is supported
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