aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-02-12 11:07:34 -0800
committerJacob Thornton <[email protected]>2012-02-12 11:07:34 -0800
commitd7953a8f1e491d6ec5e479e26d15ae3b545fbb5f (patch)
tree8bc5e771a8b3dad44e16aedb7ac1827ca368d952 /less
parented07a4d0ce0e769ef6efbd8d465670b26a0a5e37 (diff)
parent2eedf60d6284f8eef256999d2a59dd18bcbd2b2a (diff)
downloadbootstrap-d7953a8f1e491d6ec5e479e26d15ae3b545fbb5f.tar.xz
bootstrap-d7953a8f1e491d6ec5e479e26d15ae3b545fbb5f.zip
Merge branch '2.0.1-wip' of https://github.com/twitter/bootstrap into 2.0.1-wip
Conflicts: docs/assets/bootstrap.zip
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less1
-rw-r--r--less/code.less10
-rw-r--r--less/forms.less32
-rw-r--r--less/navs.less3
-rw-r--r--less/responsive.less2
-rw-r--r--less/sprites.less3
-rw-r--r--less/tables.less7
-rw-r--r--less/type.less5
-rw-r--r--less/variables.less3
9 files changed, 52 insertions, 14 deletions
diff --git a/less/buttons.less b/less/buttons.less
index 880d1f64a..0dc9e374b 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -53,7 +53,6 @@
.box-shadow(@shadow);
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
- color: rgba(0,0,0,.5);
outline: 0;
}
diff --git a/less/code.less b/less/code.less
index e75cfa00d..35a8ae6b8 100644
--- a/less/code.less
+++ b/less/code.less
@@ -11,12 +11,16 @@ pre {
color: @grayDark;
.border-radius(3px);
}
+
+// Inline code
code {
padding: 3px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
+
+// Blocks of code
pre {
display: block;
padding: (@baseLineHeight - 1) / 2;
@@ -44,3 +48,9 @@ pre {
border: 0;
}
}
+
+// Enable scrollable blocks of code
+.pre-scrollable {
+ max-height: 340px;
+ overflow-y: scroll;
+} \ No newline at end of file
diff --git a/less/forms.less b/less/forms.less
index 5bce4cebd..81833b064 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -28,6 +28,12 @@ legend {
color: @grayDark;
border: 0;
border-bottom: 1px solid #eee;
+
+ // Small
+ small {
+ font-size: @baseLineHeight * .75;
+ color: @grayLight;
+ }
}
// Set font for forms
@@ -116,6 +122,11 @@ input[type="file"] {
line-height: 28px;
}
+// Reset line-height for IE
+input[type="file"] {
+ line-height: 18px \9;
+}
+
// Chrome on Linux and Mobile Safari need background-color
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
@@ -196,7 +207,7 @@ textarea:focus {
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
outline: 0;
- outline: thin dotted \9; /* IE6-8 */
+ outline: thin dotted \9; /* IE6-9 */
}
input[type="file"]:focus,
input[type="radio"]:focus,
@@ -453,21 +464,30 @@ select:focus:required:invalid {
.form-inline .input-prepend .add-on {
vertical-align: middle;
}
+// Inline checkbox/radio labels
+.form-search .radio,
+.form-inline .radio,
+.form-search .checkbox,
+.form-inline .checkbox {
+ margin-bottom: 0;
+ vertical-align: middle;
+}
// Margin to space out fieldsets
.control-group {
margin-bottom: @baseLineHeight / 2;
}
+// Legend collapses margin, so next element is responsible for spacing
+legend + .control-group {
+ margin-top: @baseLineHeight;
+ -webkit-margin-top-collapse: separate;
+}
+
// Horizontal-specific styles
// --------------------------
.form-horizontal {
- // Legend collapses margin, so we're relegated to padding
- legend + .control-group {
- margin-top: @baseLineHeight;
- -webkit-margin-top-collapse: separate;
- }
// Increase spacing between groups
.control-group {
margin-bottom: @baseLineHeight;
diff --git a/less/navs.less b/less/navs.less
index a29cb712b..0d37ea388 100644
--- a/less/navs.less
+++ b/less/navs.less
@@ -249,6 +249,9 @@
.tabbable {
.clearfix();
}
+.tab-content {
+ overflow: hidden; // prevent content from running below tabs
+}
// Remove border on bottom, left, right
.tabs-below .nav-tabs,
diff --git a/less/responsive.less b/less/responsive.less
index 7ed58bb4e..1e3bf371c 100644
--- a/less/responsive.less
+++ b/less/responsive.less
@@ -56,7 +56,7 @@
.uneditable-input {
display: block;
width: 100%;
- height: 28px; /* Make inputs at least the height of their button counterpart */
+ min-height: 28px; /* Make inputs at least the height of their button counterpart */
/* Makes inputs behave like true block-level elements */
-webkit-box-sizing: border-box; /* Older Webkit */
-moz-box-sizing: border-box; /* Older FF */
diff --git a/less/sprites.less b/less/sprites.less
index ce7668844..a7741661e 100644
--- a/less/sprites.less
+++ b/less/sprites.less
@@ -14,7 +14,8 @@
// For the white version of the icons, just add the .icon-white class:
// <i class="icon-inbox icon-white"></i>
-[class^="icon-"] {
+[class^="icon-"],
+[class*=" icon-"] {
display: inline-block;
width: 14px;
height: 14px;
diff --git a/less/tables.less b/less/tables.less
index cbc013aca..3a4066d71 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -25,14 +25,15 @@ table {
padding: 8px;
line-height: @baseLineHeight;
text-align: left;
+ vertical-align: top;
border-top: 1px solid #ddd;
}
th {
font-weight: bold;
- vertical-align: bottom;
}
- td {
- vertical-align: top;
+ // Bottom align for column headings
+ thead th {
+ vertical-align: bottom;
}
// Remove top border from thead by default
thead:first-child tr th,
diff --git a/less/type.less b/less/type.less
index 7841bb090..6ba83bc3a 100644
--- a/less/type.less
+++ b/less/type.less
@@ -110,7 +110,8 @@ ol {
li {
line-height: @baseLineHeight;
}
-ul.unstyled {
+ul.unstyled,
+ol.unstyled {
margin-left: 0;
list-style: none;
}
@@ -137,7 +138,7 @@ dd {
hr {
margin: @baseLineHeight 0;
border: 0;
- border-top: 1px solid #e5e5e5;
+ border-top: 1px solid @hrBorder;
border-bottom: 1px solid @white;
}
diff --git a/less/variables.less b/less/variables.less
index 9f58d730e..ced64d7cd 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -61,6 +61,9 @@
// Input placeholder text color
@placeholderText: @grayLight;
+// Hr border color
+@hrBorder: @grayLighter;
+
// Navbar
@navbarHeight: 40px;
@navbarBackground: @grayDarker;