Skip to content

Commit

Permalink
Merge branch 'master' of http://git.local.twitter.com/bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jul 2, 2011
2 parents 3117fc9 + 799fd6a commit 768fa3c
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 55 deletions.
Binary file modified .DS_Store
Binary file not shown.
33 changes: 26 additions & 7 deletions Makefile
@@ -1,10 +1,29 @@
# NOTE: you must have the less npm package installed globally to build! DATE=$(shell DATE)
# To install run: npm install less -g BOOTSTRAP = ./bootstrap-1.0.0.css
# ProTip: watchr -e "watch('lib/.*\.less') { system 'make' }" BOOTSTRAP_MIN = ./bootstrap-1.0.0.min.css
BOOTSTRAP_LESS = ./lib/bootstrap.less
LESS_COMPESSOR ?= `which lessc`
WATCHR ?= `which watchr`


build: build:
@lessc ./lib/bootstrap.less > ./bootstrap-1.0.0.css @@if test ! -z ${LESS_COMPESSOR}; then \
@lessc ./lib/bootstrap.less > ./bootstrap-1.0.0.min.css --compress sed 's/@DATE/'"${DATE}"'/' ${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \
@echo "Bootstrap successfully built! - `date`" lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \
rm -f ${BOOTSTRAP_LESS}.tmp; \
echo "Bootstrap successfully built! - `date`"; \
else \
echo "You must have the LESS compiler installed in order to build Bootstrap."; \
echo "You can install it by running: npm install less -g"; \
fi


.PHONY: build watch:
@@if test ! -z ${LESS_COMPESSOR}; then \
echo "Watching less files..."; \
watchr -e "watch('lib/.*\.less') { system 'make' }"; \
else \
echo "You must have the WATCHR installed in order to build Bootstrap."; \
echo "You can install it by running: gem install watchr"; \
fi

.PHONY: build watch
Binary file removed assets/img/dropdown-arrow.gif
Binary file not shown.
Binary file removed assets/img/grid-20px.png
Binary file not shown.
Binary file removed assets/img/tablesorter-indicators.png
Binary file not shown.
86 changes: 65 additions & 21 deletions bootstrap-1.0.0.css
Expand Up @@ -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: {{ date }} * Date: Sat Jul 2 11:50:18 PDT 2011
*/ */
/* /*
* Reset.less * Reset.less
Expand Down Expand Up @@ -1013,31 +1013,61 @@ table.zebra-striped tbody tr:hover td {
} }
table.zebra-striped th.header { table.zebra-striped th.header {
cursor: pointer; cursor: pointer;
padding-right: 20px; }
table.zebra-striped th.header:after {
width: 0px;
height: 0px;
display: inline-block;
float: right;
margin-top: 7px;
content: "↓";
text-indent: -99999px;
vertical-align: top;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #000;
visibility: hidden;
-webkit-box-shadow: 0 1px 0 #ffffff;
-moz-box-shadow: 0 1px 0 #ffffff;
box-shadow: 0 1px 0 #ffffff;
filter: alpha(opacity=30);
-khtml-opacity: 0.3;
-moz-opacity: 0.3;
opacity: 0.3;
} }
table.zebra-striped th.headerSortUp, table.zebra-striped th.headerSortDown { table.zebra-striped th.headerSortUp, table.zebra-striped th.headerSortDown {
background-image: url(assets/img/tablesorter-indicators.png);
background-position: right -23px;
background-repeat: no-repeat;
background-color: rgba(141, 192, 219, 0.25); background-color: rgba(141, 192, 219, 0.25);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-webkit-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
} }
table.zebra-striped th.header:hover { table.zebra-striped th.header:hover:after {
background-image: url(assets/img/tablesorter-indicators.png); visibility: visible;
background-position: right 15px;
background-repeat: no-repeat;
} }
table.zebra-striped th.actions:hover { table.zebra-striped th.actions:hover {
background-image: none; background-image: none;
} }
table.zebra-striped th.headerSortDown, table.zebra-striped th.headerSortDown:hover { table.zebra-striped th.headerSortDown:after, table.zebra-striped th.headerSortDown:hover:after {
background-position: right -25px; visibility: visible;
} filter: alpha(opacity=60);
table.zebra-striped th.headerSortUp, table.zebra-striped th.headerSortUp:hover { -khtml-opacity: 0.6;
background-position: right -65px; -moz-opacity: 0.6;
opacity: 0.6;
}
table.zebra-striped th.headerSortUp:after {
border-bottom: none;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000;
visibility: visible;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
filter: alpha(opacity=60);
-khtml-opacity: 0.6;
-moz-opacity: 0.6;
opacity: 0.6;
} }
table.zebra-striped th.blue { table.zebra-striped th.blue {
color: #049cdb; color: #049cdb;
Expand Down Expand Up @@ -1134,8 +1164,11 @@ div.topbar a.logo img {
div.topbar form { div.topbar form {
float: left; float: left;
margin: 5px 0 0 0; margin: 5px 0 0 0;
opacity: 1;
position: relative; position: relative;
filter: alpha(opacity=100);
-khtml-opacity: 1;
-moz-opacity: 1;
opacity: 1;
} }
div.topbar form input { div.topbar form input {
background-color: #bfbfbf; background-color: #bfbfbf;
Expand Down Expand Up @@ -1222,16 +1255,21 @@ div.topbar ul li.menu {
position: relative; position: relative;
} }
div.topbar ul li.menu a.menu:after { div.topbar ul li.menu a.menu:after {
width: 7px; width: 0px;
height: 7px; height: 0px;
display: inline-block; display: inline-block;
background: transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;
content: "↓"; content: "↓";
text-indent: -99999px; text-indent: -99999px;
vertical-align: top; vertical-align: top;
margin-top: 8px; margin-top: 8px;
margin-left: 4px; margin-left: 4px;
opacity: .5; border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #fff;
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
} }
div.topbar ul li.menu.open a.menu, div.topbar ul li.menu.open a:hover { div.topbar ul li.menu.open a.menu, div.topbar ul li.menu.open a:hover {
background-color: #00b4eb; background-color: #00b4eb;
Expand Down Expand Up @@ -1365,18 +1403,24 @@ div.alert-message.info {
div.alert-message a.close { div.alert-message a.close {
float: right; float: right;
margin-top: -2px; margin-top: -2px;
opacity: .5;
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
div.alert-message a.close:hover { div.alert-message a.close:hover {
opacity: 1;
text-decoration: none; text-decoration: none;
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
} }
div.block-message { div.block-message {
margin-bottom: 18px; margin-bottom: 18px;
Expand Down
16 changes: 8 additions & 8 deletions bootstrap-1.0.0.min.css

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

2 changes: 1 addition & 1 deletion lib/bootstrap.less
Expand Up @@ -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: {{ date }} * Date: @DATE
*/ */


// CSS Reset // CSS Reset
Expand Down
16 changes: 9 additions & 7 deletions lib/patterns.less
Expand Up @@ -50,8 +50,8 @@ div.topbar {
form { form {
float: left; float: left;
margin: 5px 0 0 0; margin: 5px 0 0 0;
opacity: 1;
position: relative; position: relative;
.opacity(100);
input { input {
background-color: @grayLight; background-color: @grayLight;
background-color: rgba(255,255,255,.3); background-color: rgba(255,255,255,.3);
Expand Down Expand Up @@ -131,16 +131,18 @@ div.topbar {
position: relative; position: relative;
a.menu { a.menu {
&:after { &:after {
width: 7px; width: 0px;
height: 7px; height: 0px;
display: inline-block; display: inline-block;
background: transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;
content: "↓"; content: "↓";
text-indent: -99999px; text-indent: -99999px;
vertical-align: top; vertical-align: top;
margin-top: 8px; margin-top: 8px;
margin-left: 4px; margin-left: 4px;
opacity: .5; border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #fff;
.opacity(50);
} }
} }
&.open { &.open {
Expand Down Expand Up @@ -276,15 +278,15 @@ div.alert-message {
a.close { a.close {
float: right; float: right;
margin-top: -2px; margin-top: -2px;
opacity: .5;
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
text-shadow: 0 1px 0 rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(0,0,0,.5);
.opacity(50);
.border-radius(3px); .border-radius(3px);
&:hover { &:hover {
opacity: 1;
text-decoration: none; text-decoration: none;
.opacity(50);
} }
} }
} }
Expand Down
44 changes: 33 additions & 11 deletions lib/tables.less
Expand Up @@ -44,32 +44,54 @@ table.zebra-striped {
// Tablesorting styles w/ jQuery plugin // Tablesorting styles w/ jQuery plugin
th.header { // For tablesorter tables, make THs have a pointer on hover th.header { // For tablesorter tables, make THs have a pointer on hover
cursor: pointer; cursor: pointer;
padding-right: 20px; &:after {
width: 0px;
height: 0px;
display: inline-block;
float: right;
margin-top:7px;
content: "↓";
text-indent: -99999px;
vertical-align: top;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #000;
visibility:hidden;
.box-shadow(0 1px 0 #fff);
.opacity(30);
}
} }
th.headerSortUp, th.headerSortUp,
th.headerSortDown { // Style the sorted column headers (THs) th.headerSortDown { // Style the sorted column headers (THs)
background-image: url(assets/img/tablesorter-indicators.png);
background-position: right -23px;
background-repeat: no-repeat;
background-color: rgba(141,192,219,.25); background-color: rgba(141,192,219,.25);
text-shadow: 0 1px 1px rgba(255,255,255,.75); text-shadow: 0 1px 1px rgba(255,255,255,.75);
.border-radius(3px 3px 0 0); .border-radius(3px 3px 0 0);
} }
th.header:hover { // Style the ascending (reverse alphabetical) column header th.header:hover { // Style the ascending (reverse alphabetical) column header
background-image: url(assets/img/tablesorter-indicators.png); &:after {
background-position: right 15px; visibility:visible;
background-repeat: no-repeat; }
} }
th.actions:hover { th.actions:hover {
background-image: none; background-image: none;
} }
th.headerSortDown, th.headerSortDown,
th.headerSortDown:hover { // Style the descending (alphabetical) column header th.headerSortDown:hover { // Style the descending (alphabetical) column header
background-position: right -25px; &:after {
visibility:visible;
.opacity(60);
}
} }
th.headerSortUp, th.headerSortUp { // Style the ascending (reverse alphabetical) column header
th.headerSortUp:hover { // Style the ascending (reverse alphabetical) column header &:after {
background-position: right -65px; border-bottom: none;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000;
visibility:visible;
.box-shadow(none); //can't add boxshadow to downward facing arrow :(
.opacity(60);
}
} }
// Blue Table Headings // Blue Table Headings
th.blue { th.blue {
Expand Down

0 comments on commit 768fa3c

Please sign in to comment.