mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
fix btn borders ie7/ie8
This commit is contained in:
8
bootstrap-1.0.0.css
vendored
8
bootstrap-1.0.0.css
vendored
@@ -6,7 +6,7 @@
|
|||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
* Date: Sun Aug 21 19:46:16 PDT 2011
|
* Date: Sun Aug 21 19:56:38 PDT 2011
|
||||||
*/
|
*/
|
||||||
/* Reset.less
|
/* Reset.less
|
||||||
* 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).
|
||||||
@@ -395,9 +395,9 @@ a:hover {
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
border: 1px solid;
|
||||||
border-bottom: 1px solid #ccc;
|
border-color: #ccc #ccc #bbb;
|
||||||
border-bottom-color: rgba(0, 0, 0, 0.25);
|
border-color: borderColor borderColor rgba(0, 0, 0, 0.25);
|
||||||
-webkit-border-radius: 4px;
|
-webkit-border-radius: 4px;
|
||||||
-moz-border-radius: 4px;
|
-moz-border-radius: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
2
bootstrap-1.0.0.min.css
vendored
2
bootstrap-1.0.0.min.css
vendored
@@ -47,7 +47,7 @@ div.container-fluid:after{clear:both;}
|
|||||||
div.container-fluid div.sidebar{float:left;width:220px;}
|
div.container-fluid div.sidebar{float:left;width:220px;}
|
||||||
div.container-fluid div.content{min-width:700px;max-width:1180px;margin-left:240px;}
|
div.container-fluid div.content{min-width:700px;max-width:1180px;margin-left:240px;}
|
||||||
a{color:#0069d6;text-decoration:none;line-height:inherit;}a:hover{color:#0050a3;text-decoration:underline;}
|
a{color:#0069d6;text-decoration:none;line-height:inherit;}a:hover{color:#0050a3;text-decoration:underline;}
|
||||||
.btn{display:inline-block;background-color:#e6e6e6;background-repeat:no-repeat;background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.25, #ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(#ffffff, color-stop(0.25, #ffffff), #e6e6e6);background-image:-moz-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:-ms-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:-o-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);padding:4px 14px;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);color:#333333;font-size:13px;line-height:18px;border:1px solid rgba(0, 0, 0, 0.1);border-bottom:1px solid #ccc;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.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-webkit-transition:0.1s linear all;-moz-transition:0.1s linear all;transition:0.1s linear all;}.btn:hover{background-position:0 -15px;color:#333333;text-decoration:none;}
|
.btn{display:inline-block;background-color:#e6e6e6;background-repeat:no-repeat;background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.25, #ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(#ffffff, color-stop(0.25, #ffffff), #e6e6e6);background-image:-moz-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:-ms-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:-o-linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);background-image:linear-gradient(#ffffff, color-stop(#ffffff, 0.25), #e6e6e6);padding:4px 14px;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);color:#333333;font-size:13px;line-height:18px;border:1px solid;border-color:#ccc #ccc #bbb;border-color:borderColor borderColor 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.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-webkit-transition:0.1s linear all;-moz-transition:0.1s linear all;transition:0.1s linear all;}.btn:hover{background-position:0 -15px;color:#333333;text-decoration:none;}
|
||||||
.btn.primary{background-color:#0064cd;background-repeat:repeat-x;background-image:-khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));background-image:-moz-linear-gradient(#049cdb, #0064cd);background-image:-ms-linear-gradient(#049cdb, #0064cd);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));background-image:-webkit-linear-gradient(#049cdb, #0064cd);background-image:-o-linear-gradient(#049cdb, #0064cd);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);background-image:linear-gradient(#049cdb, #0064cd);color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);border-bottom-color:#003f81;border-bottom-color:rgba(0, 0, 0, 0.25);}.btn.primary:hover{color:#fff;}
|
.btn.primary{background-color:#0064cd;background-repeat:repeat-x;background-image:-khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));background-image:-moz-linear-gradient(#049cdb, #0064cd);background-image:-ms-linear-gradient(#049cdb, #0064cd);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));background-image:-webkit-linear-gradient(#049cdb, #0064cd);background-image:-o-linear-gradient(#049cdb, #0064cd);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);background-image:linear-gradient(#049cdb, #0064cd);color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);border-bottom-color:#003f81;border-bottom-color:rgba(0, 0, 0, 0.25);}.btn.primary:hover{color:#fff;}
|
||||||
.btn.large{font-size:16px;line-height:28px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}
|
.btn.large{font-size:16px;line-height:28px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}
|
||||||
.btn.small{padding-right:9px;padding-left:9px;font-size:11px;}
|
.btn.small{padding-right:9px;padding-left:9px;font-size:11px;}
|
||||||
|
@@ -843,8 +843,10 @@
|
|||||||
<h3>Example buttons</h3>
|
<h3>Example buttons</h3>
|
||||||
<p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code><a></code>, <code><button></code>, and select <code><input></code> elements. Here’s how it looks:</p>
|
<p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code><a></code>, <code><button></code>, and select <code><input></code> elements. Here’s how it looks:</p>
|
||||||
<div class="well" style="padding: 14px 19px;">
|
<div class="well" style="padding: 14px 19px;">
|
||||||
|
<form>
|
||||||
<button type="submit" class="btn primary">Submit</button>
|
<button type="submit" class="btn primary">Submit</button>
|
||||||
<button type="submit" class="btn">Cancel</button>
|
<button type="submit" class="btn">Cancel</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<h3>Alternate sizes</h3>
|
<h3>Alternate sizes</h3>
|
||||||
<p>Fancy larger or smaller buttons? Have at it!</p>
|
<p>Fancy larger or smaller buttons? Have at it!</p>
|
||||||
@@ -866,8 +868,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<h4>Buttons</h4>
|
<h4>Buttons</h4>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
|
<form>
|
||||||
<button class="btn large primary disabled" disabled>Primary action</button>
|
<button class="btn large primary disabled" disabled>Primary action</button>
|
||||||
<button class="btn large disabled" disabled>Action</button>
|
<button class="btn large disabled" disabled>Action</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -286,11 +286,10 @@ div.page-header {
|
|||||||
// One-liner alert bars
|
// One-liner alert bars
|
||||||
div.alert-message {
|
div.alert-message {
|
||||||
|
|
||||||
// TODO: Ask cloudhead how to do this fany filter elegantly. Less eval is returning strings with quotes ;_;
|
// TODO: Ask cloudhead how to do this fancy filter elegantly. Less eval is returning strings with quotes ;_;
|
||||||
#gradient > .vertical(transparent, rgba(0,0,0,0.15));
|
#gradient > .vertical(transparent, rgba(0,0,0,0.15));
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
|
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
|
||||||
filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
|
filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
|
||||||
|
|
||||||
background-color: @grayLighter;
|
background-color: @grayLighter;
|
||||||
margin-bottom: @baseline;
|
margin-bottom: @baseline;
|
||||||
padding: 8px 15px;
|
padding: 8px 15px;
|
||||||
|
@@ -189,9 +189,10 @@
|
|||||||
color: @textColor;
|
color: @textColor;
|
||||||
font-size: @fontSize;
|
font-size: @fontSize;
|
||||||
line-height: @baseline;
|
line-height: @baseline;
|
||||||
border: 1px solid @borderColor;
|
border: 1px solid;
|
||||||
border-bottom: 1px solid #ccc;
|
border-color: #ccc #ccc #bbb;
|
||||||
border-bottom-color: fadein(@borderColor, 15%);
|
border-color: borderColor borderColor fadein(@borderColor, 15%);
|
||||||
|
|
||||||
.border-radius(@borderRadius);
|
.border-radius(@borderRadius);
|
||||||
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
|
Reference in New Issue
Block a user