Skip to content

Commit

Permalink
new buttons, new modal updates around spacing and placeholder content
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jun 28, 2011
1 parent 80abe21 commit 9660f6f
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 123 deletions.
Binary file modified .DS_Store
Binary file not shown.
135 changes: 70 additions & 65 deletions bootstrap-1.0.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
Master Stylesheet
This file is only for importing all required stylesheets for LESS to include and then compile.
*/
/*--------------------------------------------------
/*
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;
Expand Down Expand Up @@ -86,6 +80,13 @@ blockquote:before,
blockquote:after {
content: "";
}
header,
section,
footer,
article,
aside {
display: block;
}
/*
Preboot
Variables and mixins to pre-ignite any new web development project
Expand Down Expand Up @@ -333,80 +334,58 @@ a:hover {
}
.btn {
display: inline-block;
background-color: #dfd8d8;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#f5f5f5), to(#dfd8d8));
/* Konqueror */

background-image: -moz-linear-gradient(#f5f5f5, #dfd8d8);
/* FF 3.6+ */

background-image: -ms-linear-gradient(#f5f5f5, #dfd8d8);
/* IE10 */

background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f5f5f5), color-stop(100%, #dfd8d8));
/* Safari 4+, Chrome 2+ */

background-image: -webkit-linear-gradient(#f5f5f5, #dfd8d8);
/* Safari 5.1+, Chrome 10+ */

background-image: -o-linear-gradient(#f5f5f5, #dfd8d8);
/* Opera 11.10 */

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#dfd8d8', GradientType=0);
/* IE6 & IE7 */

-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#dfd8d8', GradientType=0)";
/* IE8+ */

background-image: linear-gradient(#f5f5f5, #dfd8d8);
/* the standard */

padding: 9px 15px 10px;
background-color: #dcdcdc;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), color-stop(0.25, #f5f5f5), to(#dcdcdc));
background-image: -webkit-linear-gradient(#f5f5f5, color-stop(0.25, #f5f5f5), #dcdcdc);
background-image: -moz-linear-gradient(#f5f5f5, color-stop(#f5f5f5, 0.25), #dcdcdc);
padding: 4px 14px;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
color: #333333;
font-size: 13px;
line-height: 20px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(0, 0, 0, 0.1);
border-bottom-color: rgba(0, 0, 0, 0.25);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn:hover {
background-position: 0 -15px;
color: #333333;
text-decoration: none;
}
.btn.primary {
background-color: #0381b4;
background-color: #0069d6;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#08b5fb), to(#0381b4));
background-image: -khtml-gradient(linear, left top, left bottom, from(#08b5fb), to(#0069d6));
/* Konqueror */

background-image: -moz-linear-gradient(#08b5fb, #0381b4);
background-image: -moz-linear-gradient(#08b5fb, #0069d6);
/* FF 3.6+ */

background-image: -ms-linear-gradient(#08b5fb, #0381b4);
background-image: -ms-linear-gradient(#08b5fb, #0069d6);
/* IE10 */

background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #08b5fb), color-stop(100%, #0381b4));
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #08b5fb), color-stop(100%, #0069d6));
/* Safari 4+, Chrome 2+ */

background-image: -webkit-linear-gradient(#08b5fb, #0381b4);
background-image: -webkit-linear-gradient(#08b5fb, #0069d6);
/* Safari 5.1+, Chrome 10+ */

background-image: -o-linear-gradient(#08b5fb, #0381b4);
background-image: -o-linear-gradient(#08b5fb, #0069d6);
/* Opera 11.10 */

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08b5fb', endColorstr='#0381b4', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08b5fb', endColorstr='#0069d6', GradientType=0);
/* IE6 & IE7 */

-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#08b5fb', endColorstr='#0381b4', GradientType=0)";
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#08b5fb', endColorstr='#0069d6', GradientType=0)";
/* IE8+ */

background-image: linear-gradient(#08b5fb, #0381b4);
background-image: linear-gradient(#08b5fb, #0069d6);
/* the standard */

color: #fff;
Expand All @@ -417,6 +396,7 @@ a:hover {
}
.btn.large {
font-size: 16px;
line-height: 30px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
Expand Down Expand Up @@ -1660,25 +1640,24 @@ 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: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.3);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
-webkit-background-clip: padding;
-moz-background-clip: padding;
background-clip: padding;
}
div.modal .modal-header {
border-bottom: 1px solid #eee;
padding: 5px 20px;
}
div.modal .modal-header h2 {
font-size: 20px;
font-weight: 200;
}
div.modal .modal-header a.close {
position: absolute;
right: 10px;
Expand All @@ -1687,3 +1666,29 @@ div.modal .modal-header a.close {
line-height: 10px;
font-size: 18px;
}
div.modal .modal-body {
padding: 20px;
}
div.modal .modal-footer {
background-color: #eee;
padding: 14px 20px 15px;
border-top: 1px solid #ddd;
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
-webkit-box-shadow: inset 0 1px 0 #ffffff;
-moz-box-shadow: inset 0 1px 0 #ffffff;
box-shadow: inset 0 1px 0 #ffffff;
zoom: 1;
}
div.modal .modal-footer:after {
display: block;
visibility: hidden;
height: 0;
clear: both;
content: ".";
}
div.modal .modal-footer .btn {
float: right;
margin-left: 10px;
}
13 changes: 8 additions & 5 deletions bootstrap-1.0.0.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,9 @@
/* Body and structure
-------------------------------------------------- */
body {
background-color: #ffffff;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), color-stop(0.15, #ffffff), to(#ffffff));
background-image: -webkit-linear-gradient(#eeeeee, color-stop(0.15, #ffffff), #ffffff);
background-image: -moz-linear-gradient(#eeeeee, color-stop(#ffffff, 0.15), #ffffff);
background-attachment: fixed;
background-position: 0 40px;
background-color: #fff;
position: relative;
}
header,
section,
footer,
article,
aside {
display: block;
}
section {
padding-top: 80px;
margin-bottom: -40px;
Expand Down
7 changes: 5 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1189,14 +1189,17 @@ <h2>Tweet Modal</h2>
</div>
<div class="span12 columns">
<div class="modal-backdrop" style="position:relative; min-height:200px; padding:40px; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; z-index: 1">
<div class="modal" style="position:relative; top: auto; left: auto; margin: 0 auto; width:565px; height: 265px; z-index: 1">
<div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
<div class="modal-header">
<h2>Add new Tweet</h2>
<h3>Add new Tweet</h3>
<a href="#" class="close">&times;</a>
</div>
<div class="modal-body">
<p>One fine body..</p>
</div>
<div class="modal-footer">
<a href="" class="btn primary">Primary</a>
<a href="" class="btn secondary">Secondary</a>
</div>
</div>
</div>
Expand Down
29 changes: 20 additions & 9 deletions lib/patterns.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
}
Loading

0 comments on commit 9660f6f

Please sign in to comment.