Commit b38a13ef authored by Jacob Thornton's avatar Jacob Thornton

Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip

parents 6935f693 1a22c3b3
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
display: block; display: block;
line-height: 18px; line-height: 18px;
} }
input[type="checkbox"], input[type="radio"] {
border: 1px solid #ccc;
}
.form-horizontal .control-group > label { .form-horizontal .control-group > label {
float: none; float: none;
width: auto; width: auto;
...@@ -20,7 +23,8 @@ ...@@ -20,7 +23,8 @@
padding-top: 0; padding-top: 0;
} }
.form-horizontal .form-actions { .form-horizontal .form-actions {
padding-left: 0; padding-left: 10px;
padding-right: 10px;
} }
.modal { .modal {
position: absolute; position: absolute;
......
This diff is collapsed.
...@@ -306,42 +306,6 @@ hr.soften { ...@@ -306,42 +306,6 @@ hr.soften {
} }
/* Quickstart section for getting le code
-------------------------------------------------- */
.getting-started p {
color: #777;
margin-bottom: 9px;
}
.getting-started .current-version,
.getting-started .current-version a {
color: #999;
}
.getting-started form {
margin-bottom: 0;
}
.getting-started textarea {
display: block;
width: 95%;
height: auto;
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 12px;
line-height: 20px;
white-space: nowrap;
overflow: hidden;
color: #999;
/* Makes inputs behave like true block-level elements */
-webkit-box-sizing: border-box; /* Older Webkit */
-moz-box-sizing: border-box; /* Older FF */
-ms-box-sizing: border-box; /* IE8 */
box-sizing: border-box; /* CSS3 spec*/
/* Hacks for IE7 to make this work just okay enough to function */
*width: 80%;
*height: 24px;
}
.getting-started textarea:focus {
color: #333;
}
/* Footer /* Footer
-------------------------------------------------- */ -------------------------------------------------- */
...@@ -354,27 +318,6 @@ hr.soften { ...@@ -354,27 +318,6 @@ hr.soften {
margin-bottom: 0; margin-bottom: 0;
color: #555; color: #555;
} }
.footer dl {
margin-bottom: 0;
}
.footer dl dt {
font-size: 11px;
color: #999;
text-transform: uppercase;
}
.footer dl dd + dt {
margin-top: 18px;
}
.footer dl dd {
margin-left: 0;
font-size: 12px;
}
.footer dl a {
color: #999;
}
.footer dl a:hover {
color: #555;
}
...@@ -745,6 +688,11 @@ form.well { ...@@ -745,6 +688,11 @@ form.well {
bottom: auto; bottom: auto;
left: auto; left: auto;
} }
/* Forms docs */
.form-docs {
padding-left: 0; /* down from 10px */
}
} }
......
...@@ -1128,11 +1128,11 @@ For example, <code>section</code> should be wrapped as inline. ...@@ -1128,11 +1128,11 @@ For example, <code>section</code> should be wrapped as inline.
<label class="control-label">Radio buttons</label> <label class="control-label">Radio buttons</label>
<div class="controls"> <div class="controls">
<label class="radio"> <label class="radio">
<input type="radio" id="optionsRadios1" value="option1" checked> <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that&mdash;be sure to include why it’s great Option one is this and that&mdash;be sure to include why it’s great
</label> </label>
<label class="radio"> <label class="radio">
<input type="radio" id="optionsRadios2" value="option2"> <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can is something else and selecting it will deselect option one Option two can is something else and selecting it will deselect option one
</label> </label>
</div> </div>
......
...@@ -1063,11 +1063,11 @@ ...@@ -1063,11 +1063,11 @@
<label class="control-label">{{_i}}Radio buttons{{/i}}</label> <label class="control-label">{{_i}}Radio buttons{{/i}}</label>
<div class="controls"> <div class="controls">
<label class="radio"> <label class="radio">
<input type="radio" id="optionsRadios1" value="option1" checked> <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
{{_i}}Option one is this and that&mdash;be sure to include why it’s great{{/i}} {{_i}}Option one is this and that&mdash;be sure to include why it’s great{{/i}}
</label> </label>
<label class="radio"> <label class="radio">
<input type="radio" id="optionsRadios2" value="option2"> <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
{{_i}}Option two can is something else and selecting it will deselect option one{{/i}} {{_i}}Option two can is something else and selecting it will deselect option one{{/i}}
</label> </label>
</div> </div>
......
...@@ -25,19 +25,19 @@ ...@@ -25,19 +25,19 @@
color: rgba(255,255,255,.75); color: rgba(255,255,255,.75);
} }
&.primary { &.primary {
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 15)); .buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
} }
// Danger and error appear as red // Danger and error appear as red
&.danger { &.danger {
.buttonBackground(#ee5f5b, #c43c35); .buttonBackground(#ee5f5b, #bd362f);
} }
// Success appears as green // Success appears as green
&.success { &.success {
.buttonBackground(#62c462, #57a957); .buttonBackground(#62c462, #51a351);
} }
// Info appears as a neutral blue // Info appears as a neutral blue
&.info { &.info {
.buttonBackground(#5bc0de, #339bb9); .buttonBackground(#5bc0de, #2f96b4);
} }
} }
......
...@@ -84,9 +84,9 @@ input[type="radio"] { ...@@ -84,9 +84,9 @@ input[type="radio"] {
margin: 3px 0; margin: 3px 0;
*margin-top: 0; /* IE7 */ *margin-top: 0; /* IE7 */
line-height: normal; line-height: normal;
border: none; border: 0;
cursor: pointer; cursor: pointer;
.border-radius(0); border-radius: 0 e("\0/");
} }
// Reset the file input to browser defaults // Reset the file input to browser defaults
......
...@@ -298,6 +298,7 @@ ...@@ -298,6 +298,7 @@
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
background-repeat: repeat-x; background-repeat: repeat-x;
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: mix(@startColor, @endColor, 60%); background-color: mix(@startColor, @endColor, 60%);
...@@ -308,6 +309,7 @@ ...@@ -308,6 +309,7 @@
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
background-repeat: repeat-x; background-repeat: repeat-x;
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;
...@@ -327,6 +329,7 @@ ...@@ -327,6 +329,7 @@
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);
background-repeat: no-repeat; background-repeat: no-repeat;
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
} }
.radial(@innerColor: #555, @outerColor: #333) { .radial(@innerColor: #555, @outerColor: #333) {
background-color: @outerColor; background-color: @outerColor;
...@@ -347,6 +350,10 @@ ...@@ -347,6 +350,10 @@
background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
} }
} }
// Reset filters for IE
.reset-filter() {
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
}
// Mixin for generating button backgrounds // Mixin for generating button backgrounds
...@@ -354,6 +361,7 @@ ...@@ -354,6 +361,7 @@
.buttonBackground(@startColor, @endColor) { .buttonBackground(@startColor, @endColor) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9 // gradientBar will set the background to a pleasing blend of these, to support IE<=9
.gradientBar(@startColor, @endColor); .gradientBar(@startColor, @endColor);
.reset-filter();
// in these cases the gradient won't cover the background, so we override // in these cases the gradient won't cover the background, so we override
&:hover, &:active, &.active, &.disabled, &[disabled] { &:hover, &:active, &.active, &.disabled, &[disabled] {
......
...@@ -11,11 +11,10 @@ ...@@ -11,11 +11,10 @@
to { background-position: 40px 0; } to { background-position: 40px 0; }
} }
// Temporarily commented out since LESS won't compile with this @-moz-keyframes progress-bar-stripes {
// @-moz-keyframes progress-bar-stripes { from { background-position: 0 0; }
// from { background-position: 0 0; } to { background-position: 40px 0; }
// to { background-position: 40px 0; } }
// }
// Spec // Spec
@keyframes progress-bar-stripes { @keyframes progress-bar-stripes {
......
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
line-height: @baseLineHeight; line-height: @baseLineHeight;
} }
// Update checkboxes for iOS
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #ccc;
}
// Remove the horizontal form styles // Remove the horizontal form styles
.form-horizontal .control-group > label { .form-horizontal .control-group > label {
float: none; float: none;
...@@ -50,7 +56,8 @@ ...@@ -50,7 +56,8 @@
} }
// Move over buttons in .form-actions to align with .controls // Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions { .form-horizontal .form-actions {
padding-left: 0; padding-left: 10px;
padding-right: 10px;
} }
// Modals // Modals
......
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