Skip to content

Commit

Permalink
Merge branch '2.1.1-wip' of github.com:twitter/bootstrap into 2.1.1-wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Aug 28, 2012
2 parents 4751a0a + 7d412b1 commit 215d92b
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 8 deletions.
16 changes: 16 additions & 0 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,22 @@ table .span24 {
background-color: #d9edf7;
}

.table-hover tbody tr.success:hover td {
background-color: #d0e9c6;
}

.table-hover tbody tr.error:hover td {
background-color: #ebcccc;
}

.table-hover tbody tr.warning:hover td {
background-color: #faf2cc;
}

.table-hover tbody tr.info:hover td {
background-color: #c4e3f3;
}

[class^="icon-"],
[class*=" icon-"] {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ form.bs-docs-example {

/* Tablet
------------------------- */
@media (max-width: 768px) {
@media (max-width: 767px) {
/* Remove any padding from the body */
body {
padding-top: 0;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
background-color: mix(@midColor, @endColor, 80%);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop*100%, @endColor);
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-repeat: no-repeat;
Expand Down
27 changes: 22 additions & 5 deletions less/tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,38 @@ table {
}



// TABLE BACKGROUNDS
// -----------------
// Exact selectors below required to override .table-striped

.table {
tbody tr.success td {
.table tbody tr {
&.success td {
background-color: @successBackground;
}
tbody tr.error td {
&.error td {
background-color: @errorBackground;
}
tbody tr.warning td {
&.warning td {
background-color: @warningBackground;
}
tbody tr.info td {
&.info td {
background-color: @infoBackground;
}
}

// Hover states for .table-hover
.table-hover tbody tr {
&.success:hover td {
background-color: darken(@successBackground, 5%);
}
&.error:hover td {
background-color: darken(@errorBackground, 5%);
}
&.warning:hover td {
background-color: darken(@warningBackground, 5%);
}
&.info:hover td {
background-color: darken(@infoBackground, 5%);
}
}
72 changes: 72 additions & 0 deletions less/tests/css-tests.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,75 @@ body {
.fluid-grid .span1 {
background-color: #999;
}


/* Gradients */

[class^="gradient-"] {
width: 100%;
height: 400px;
margin: 20px 0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}

.gradient-horizontal {
background-color: #333333;
background-image: -moz-linear-gradient(left, #555555, #333333);
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#555555), to(#333333));
background-image: -webkit-linear-gradient(left, #555555, #333333);
background-image: -o-linear-gradient(left, #555555, #333333);
background-image: linear-gradient(to right, #555555, #333333);
background-repeat: repeat-x;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=1);
}

.gradient-vertical {
background-color: #474747;
background-image: -moz-linear-gradient(top, #555555, #333333);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#333333));
background-image: -webkit-linear-gradient(top, #555555, #333333);
background-image: -o-linear-gradient(top, #555555, #333333);
background-image: linear-gradient(to bottom, #555555, #333333);
background-repeat: repeat-x;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=0);
}

.gradient-directional {
background-color: #333333;
background-image: -moz-linear-gradient(45deg, #555555, #333333);
background-image: -webkit-linear-gradient(45deg, #555555, #333333);
background-image: -o-linear-gradient(45deg, #555555, #333333);
background-image: linear-gradient(45deg, #555555, #333333);
background-repeat: repeat-x;
}

.gradient-vertical-three {
background-color: #8940a5;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#00b3ee), color-stop(50%, #7a43b6), to(#c3325f));
background-image: -webkit-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
background-image: -moz-linear-gradient(top, #00b3ee, #7a43b6 50%, #c3325f);
background-image: -o-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
background-image: linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
background-repeat: no-repeat;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff00b3ee', endColorstr='#ffc3325f', GradientType=0);
}

.gradient-radial {
background-color: #333333;
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(#555555), to(#333333));
background-image: -webkit-radial-gradient(circle, #555555, #333333);
background-image: -moz-radial-gradient(circle, #555555, #333333);
background-image: -o-radial-gradient(circle, #555555, #333333);
background-repeat: no-repeat;
}

.gradient-striped {
background-color: #555555;
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
30 changes: 30 additions & 0 deletions less/tests/css-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,36 @@ <h4>Hidden on...</h4>



<!-- Gradients
================================================== -->

<div class="page-header">
<h1>Gradients</h1>
</div>

<h4>Horizontal</h4>
<div class="gradient-horizontal"></div>

<h4>Vertical</h4>
<div class="gradient-vertical"></div>

<h4>Directional</h4>
<div class="gradient-directional"></div>

<h4>Three colors</h4>
<div class="gradient-vertical-three"></div>

<h4>Radial</h4>
<div class="gradient-radial"></div>

<h4>Striped</h4>
<div class="gradient-striped"></div>







</div><!-- /container -->

Expand Down

0 comments on commit 215d92b

Please sign in to comment.