aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-06-28 11:56:49 -0700
committerMark Otto <[email protected]>2011-06-28 11:56:49 -0700
commit9660f6f18d610ee4b03c0e3bf2823393fc66640b (patch)
tree281e07e2dc2e4b397df48534e3ceb7e0b547d819 /lib
parent80abe21189992f165ff8c7091743bda727adfedd (diff)
downloadbootstrap-9660f6f18d610ee4b03c0e3bf2823393fc66640b.tar.xz
bootstrap-9660f6f18d610ee4b03c0e3bf2823393fc66640b.zip
new buttons, new modal updates around spacing and placeholder content
Diffstat (limited to 'lib')
-rw-r--r--lib/patterns.less29
-rw-r--r--lib/preboot.less36
-rw-r--r--lib/reset.less32
-rw-r--r--lib/scaffolding.less3
4 files changed, 63 insertions, 37 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index d1043adc0..d9e0c6ca6 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -487,20 +487,16 @@ div.modal {
top: 50%;
left: 50%;
z-index: 2000;
- width: 620px;
- height: 500px;
- margin: -310px 0 0 -250px;
+ width: 560px;
+ margin: -280px 0 0 -250px;
background-color: @white;
border: 1px solid rgba(0,0,0,.3);
.border-radius(6px);
- .box-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
+ .box-shadow(0 3px 7px rgba(0,0,0,0.3));
+ .background-clip(padding);
.modal-header {
- border-bottom:1px solid #eee;
+ border-bottom: 1px solid #eee;
padding: 5px 20px;
- h2 {
- font-size: 20px;
- font-weight: 200;
- }
a.close {
position: absolute;
right: 10px;
@@ -510,4 +506,19 @@ div.modal {
font-size: 18px;
}
}
+ .modal-body {
+ padding: 20px;
+ }
+ .modal-footer {
+ background-color: #eee;
+ padding: 14px 20px 15px;
+ border-top: 1px solid #ddd;
+ .border-radius(0 0 6px 6px);
+ .box-shadow(inset 0 1px 0 #fff);
+ .clearfix();
+ .btn {
+ float: right;
+ margin-left: 10px;
+ }
+ }
}
diff --git a/lib/preboot.less b/lib/preboot.less
index f7c5c9ba9..b91df8a62 100644
--- a/lib/preboot.less
+++ b/lib/preboot.less
@@ -21,6 +21,7 @@
// Accent Colors
@blue: #08b5fb;
+@blueDark: #0069d6;
@green: #46a546;
@red: #9d261d;
@yellow: #ffc40d;
@@ -41,16 +42,16 @@
/* Color Scheme
-------------------------------------------------- */
-@baseColor: @blue; // Set a base color
-@complement: spin(@baseColor, 180); // Determine a complementary color
-@split1: spin(@baseColor, 158); // Split complements
-@split2: spin(@baseColor, -158);
-@triad1: spin(@baseColor, 135); // Triads colors
-@triad2: spin(@baseColor, -135);
-@tetra1: spin(@baseColor, 90); // Tetra colors
-@tetra2: spin(@baseColor, -90);
-@analog1: spin(@baseColor, 22); // Analogs colors
-@analog2: spin(@baseColor, -22);
+@baseColor: @blue; // Set a base color
+@complement: spin(@baseColor, 180); // Determine a complementary color
+@split1: spin(@baseColor, 158); // Split complements
+@split2: spin(@baseColor, -158);
+@triad1: spin(@baseColor, 135); // Triads colors
+@triad2: spin(@baseColor, -135);
+@tetra1: spin(@baseColor, 90); // Tetra colors
+@tetra2: spin(@baseColor, -90);
+@analog1: spin(@baseColor, 22); // Analogs colors
+@analog2: spin(@baseColor, -22);
/* Mixins
@@ -160,6 +161,13 @@
transition: @transition;
}
+// Background clipping
+.background-clip(@clip) {
+ -webkit-background-clip: @clip;
+ -moz-background-clip: @clip;
+ background-clip: @clip;
+}
+
// CSS3 Content Columns
.content-columns(@columnCount, @columnGap: 20px) {
-webkit-column-count: @columnCount;
@@ -171,16 +179,18 @@
}
// Buttons
-.button(@color: #f5f5f5, @textColor: #333, @textShadow: 0 1px 1px rgba(255,255,255,.75), @fontSize: 13px, @padding: 9px 15px 10px, @borderRadius: 6px) {
+.button(@color: #f5f5f5, @padding: 4px 14px, @textColor: #333, @textShadow: 0 1px 1px rgba(255,255,255,.75), @fontSize: 13px, @borderColor: rgba(0,0,0,.1), @borderRadius: 4px) {
display: inline-block;
- #gradient > .vertical(@color,darken(saturate(@color,10),10));
+ #gradient > .vertical-three-colors(@color, @color, 0.25, darken(@color, 10%));
padding: @padding;
text-shadow: @textShadow;
color: @textColor;
font-size: @fontSize;
line-height: @baseline;
+ border: 1px solid @borderColor;
+ border-bottom-color: fadein(@borderColor, 15%);
.border-radius(@borderRadius);
- @shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.25);
+ @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.1);
.box-shadow(@shadow);
&:hover {
background-position: 0 -15px;
diff --git a/lib/reset.less b/lib/reset.less
index af9a89f08..040177b11 100644
--- a/lib/reset.less
+++ b/lib/reset.less
@@ -1,16 +1,20 @@
-/*--------------------------------------------------
-
+/*
Global Reset
-
- Props to Eric Meyer (meyerweb.com) for his CSS
- reset file. We're using an adapted version here
- that cuts out some of the reset HTML elements we
- will never need here (i.e., dfn, samp, etc).
-
--------------------------------------------------- */
+ Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
+*/
- html, body { margin: 0; padding: 0; }
- h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
- table { border-collapse: collapse; border-spacing: 0; }
- ol, ul { list-style: none; }
- q:before, q:after, blockquote:before, blockquote:after { content: ""; } \ No newline at end of file
+// Eric Meyer reset
+html, body { margin: 0; padding: 0; }
+h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
+table { border-collapse: collapse; border-spacing: 0; }
+ol, ul { list-style: none; }
+q:before, q:after, blockquote:before, blockquote:after { content: ""; }
+
+// HTML5
+header,
+section,
+footer,
+article,
+aside {
+ display: block;
+}
diff --git a/lib/scaffolding.less b/lib/scaffolding.less
index 1e81d4de3..55adceb21 100644
--- a/lib/scaffolding.less
+++ b/lib/scaffolding.less
@@ -80,7 +80,7 @@ a {
.btn {
.button();
&.primary {
- #gradient > .vertical(@blue, darken(@blue, 15));
+ #gradient > .vertical(@blue, @blueDark);
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
&:hover {
@@ -89,6 +89,7 @@ a {
}
&.large {
font-size: 16px;
+ line-height: 30px;
.border-radius(6px);
}
&.small {