Permalink
Browse files

Use twitter-bootstrap for CSS

  • Loading branch information...
1 parent c8ff51f commit ea5d0160a4b2712600026f2c064dc0212d123455 Charles Jolley committed Feb 10, 2012
Showing with 46,951 additions and 253 deletions.
  1. +1 −0 .gitignore
  2. BIN app/assets/img/glyphicons-halflings-white.png
  3. BIN app/assets/img/glyphicons-halflings.png
  4. +5 −1 app/styles/main.less
  5. +16 −0 brunch/less_language.coffee
  6. +5 −3 config.coffee
  7. +2 −1 package.json
  8. +33 −0 twitter-bootstrap/.gitignore
  9. +13 −0 twitter-bootstrap/LICENSE
  10. +52 −0 twitter-bootstrap/Makefile
  11. +94 −0 twitter-bootstrap/README.md
  12. BIN twitter-bootstrap/docs/assets/bootstrap.zip
  13. +567 −0 twitter-bootstrap/docs/assets/css/bootstrap-responsive.css
  14. +3,363 −0 twitter-bootstrap/docs/assets/css/bootstrap.css
  15. +790 −0 twitter-bootstrap/docs/assets/css/docs.css
  16. BIN twitter-bootstrap/docs/assets/ico/bootstrap-apple-114x114.png
  17. BIN twitter-bootstrap/docs/assets/ico/bootstrap-apple-57x57.png
  18. BIN twitter-bootstrap/docs/assets/ico/bootstrap-apple-72x72.png
  19. BIN twitter-bootstrap/docs/assets/ico/favicon.ico
  20. BIN twitter-bootstrap/docs/assets/img/bird.png
  21. BIN twitter-bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg
  22. BIN twitter-bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg
  23. BIN twitter-bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg
  24. BIN twitter-bootstrap/docs/assets/img/browsers.png
  25. BIN twitter-bootstrap/docs/assets/img/example-diagram-01.png
  26. BIN twitter-bootstrap/docs/assets/img/example-diagram-02.png
  27. BIN twitter-bootstrap/docs/assets/img/example-diagram-03.png
  28. BIN twitter-bootstrap/docs/assets/img/example-sites/bartop.png
  29. BIN twitter-bootstrap/docs/assets/img/example-sites/fleetio.png
  30. BIN twitter-bootstrap/docs/assets/img/example-sites/jshint.png
  31. BIN twitter-bootstrap/docs/assets/img/example-sites/kippt.png
  32. BIN twitter-bootstrap/docs/assets/img/example-sites/railwayjs.png
  33. BIN twitter-bootstrap/docs/assets/img/example-sites/totalwireframe.png
  34. BIN twitter-bootstrap/docs/assets/img/examples/bootstrap-example-fluid.jpg
  35. BIN twitter-bootstrap/docs/assets/img/examples/bootstrap-example-hero.jpg
  36. BIN twitter-bootstrap/docs/assets/img/examples/bootstrap-example-starter.jpg
  37. BIN twitter-bootstrap/docs/assets/img/github-16px.png
  38. BIN twitter-bootstrap/docs/assets/img/glyphicons-halflings-white.png
  39. BIN twitter-bootstrap/docs/assets/img/glyphicons-halflings.png
  40. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_009_magic.png
  41. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_042_group.png
  42. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_079_podium.png
  43. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_082_roundabout.png
  44. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png
  45. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_163_iphone.png
  46. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_214_resize_small.png
  47. BIN twitter-bootstrap/docs/assets/img/glyphicons/glyphicons_266_book_open.png
  48. BIN twitter-bootstrap/docs/assets/img/grid-18px-masked.png
  49. BIN twitter-bootstrap/docs/assets/img/icon-css3.png
  50. BIN twitter-bootstrap/docs/assets/img/icon-github.png
  51. BIN twitter-bootstrap/docs/assets/img/icon-html5.png
  52. BIN twitter-bootstrap/docs/assets/img/icon-twitter.png
  53. BIN twitter-bootstrap/docs/assets/img/less-logo-large.png
  54. BIN twitter-bootstrap/docs/assets/img/less-small.png
  55. BIN twitter-bootstrap/docs/assets/img/responsive-illustrations.png
  56. +106 −0 twitter-bootstrap/docs/assets/js/README.md
  57. +181 −0 twitter-bootstrap/docs/assets/js/application.js
  58. +91 −0 twitter-bootstrap/docs/assets/js/bootstrap-alert.js
  59. +98 −0 twitter-bootstrap/docs/assets/js/bootstrap-button.js
  60. +154 −0 twitter-bootstrap/docs/assets/js/bootstrap-carousel.js
  61. +136 −0 twitter-bootstrap/docs/assets/js/bootstrap-collapse.js
  62. +92 −0 twitter-bootstrap/docs/assets/js/bootstrap-dropdown.js
  63. +209 −0 twitter-bootstrap/docs/assets/js/bootstrap-modal.js
  64. +95 −0 twitter-bootstrap/docs/assets/js/bootstrap-popover.js
  65. +125 −0 twitter-bootstrap/docs/assets/js/bootstrap-scrollspy.js
  66. +130 −0 twitter-bootstrap/docs/assets/js/bootstrap-tab.js
  67. +270 −0 twitter-bootstrap/docs/assets/js/bootstrap-tooltip.js
  68. +51 −0 twitter-bootstrap/docs/assets/js/bootstrap-transition.js
  69. +271 −0 twitter-bootstrap/docs/assets/js/bootstrap-typeahead.js
  70. +30 −0 twitter-bootstrap/docs/assets/js/google-code-prettify/prettify.css
  71. +28 −0 twitter-bootstrap/docs/assets/js/google-code-prettify/prettify.js
  72. +9,252 −0 twitter-bootstrap/docs/assets/js/jquery.js
  73. +1,580 −0 twitter-bootstrap/docs/base-css.html
  74. +1,515 −0 twitter-bootstrap/docs/components.html
  75. +358 −0 twitter-bootstrap/docs/download.html
  76. +143 −0 twitter-bootstrap/docs/examples.html
  77. +141 −0 twitter-bootstrap/docs/examples/fluid.html
  78. +97 −0 twitter-bootstrap/docs/examples/hero.html
  79. +78 −0 twitter-bootstrap/docs/examples/starter-template.html
  80. +247 −0 twitter-bootstrap/docs/index.html
  81. +1,463 −0 twitter-bootstrap/docs/javascript.html
  82. +794 −0 twitter-bootstrap/docs/less.html
  83. +436 −0 twitter-bootstrap/docs/scaffolding.html
  84. +113 −0 twitter-bootstrap/docs/templates/layout.mustache
  85. +1,468 −0 twitter-bootstrap/docs/templates/pages/base-css.mustache
  86. +1,403 −0 twitter-bootstrap/docs/templates/pages/components.mustache
  87. +246 −0 twitter-bootstrap/docs/templates/pages/download.mustache
  88. +31 −0 twitter-bootstrap/docs/templates/pages/examples.mustache
  89. +136 −0 twitter-bootstrap/docs/templates/pages/index.mustache
  90. +1,352 −0 twitter-bootstrap/docs/templates/pages/javascript.mustache
  91. +682 −0 twitter-bootstrap/docs/templates/pages/less.mustache
  92. +324 −0 twitter-bootstrap/docs/templates/pages/scaffolding.mustache
  93. +183 −0 twitter-bootstrap/docs/templates/pages/upgrading.mustache
  94. +295 −0 twitter-bootstrap/docs/upgrading.html
  95. BIN twitter-bootstrap/img/glyphicons-halflings-white.png
  96. BIN twitter-bootstrap/img/glyphicons-halflings.png
  97. +106 −0 twitter-bootstrap/js/README.md
  98. +91 −0 twitter-bootstrap/js/bootstrap-alert.js
  99. +98 −0 twitter-bootstrap/js/bootstrap-button.js
  100. +154 −0 twitter-bootstrap/js/bootstrap-carousel.js
  101. +136 −0 twitter-bootstrap/js/bootstrap-collapse.js
  102. +92 −0 twitter-bootstrap/js/bootstrap-dropdown.js
  103. +209 −0 twitter-bootstrap/js/bootstrap-modal.js
  104. +95 −0 twitter-bootstrap/js/bootstrap-popover.js
  105. +125 −0 twitter-bootstrap/js/bootstrap-scrollspy.js
  106. +130 −0 twitter-bootstrap/js/bootstrap-tab.js
  107. +270 −0 twitter-bootstrap/js/bootstrap-tooltip.js
  108. +51 −0 twitter-bootstrap/js/bootstrap-transition.js
  109. +271 −0 twitter-bootstrap/js/bootstrap-typeahead.js
  110. +49 −0 twitter-bootstrap/js/tests/index.html
  111. +41 −0 twitter-bootstrap/js/tests/unit/bootstrap-alert.js
  112. +54 −0 twitter-bootstrap/js/tests/unit/bootstrap-button.js
  113. +25 −0 twitter-bootstrap/js/tests/unit/bootstrap-collapse.js
  114. +53 −0 twitter-bootstrap/js/tests/unit/bootstrap-dropdown.js
  115. +85 −0 twitter-bootstrap/js/tests/unit/bootstrap-modal.js
  116. +93 −0 twitter-bootstrap/js/tests/unit/bootstrap-popover.js
  117. +31 −0 twitter-bootstrap/js/tests/unit/bootstrap-scrollspy.js
  118. +45 −0 twitter-bootstrap/js/tests/unit/bootstrap-tab.js
  119. +62 −0 twitter-bootstrap/js/tests/unit/bootstrap-tooltip.js
  120. +13 −0 twitter-bootstrap/js/tests/unit/bootstrap-transition.js
  121. +128 −0 twitter-bootstrap/js/tests/unit/bootstrap-typeahead.js
  122. +9,252 −0 twitter-bootstrap/js/tests/vendor/jquery.js
  123. +232 −0 twitter-bootstrap/js/tests/vendor/qunit.css
  124. +1,510 −0 twitter-bootstrap/js/tests/vendor/qunit.js
  125. +28 −0 twitter-bootstrap/less/accordion.less
  126. +70 −0 twitter-bootstrap/less/alerts.less
  127. +62 −0 twitter-bootstrap/less/bootstrap.less
  128. +22 −0 twitter-bootstrap/less/breadcrumbs.less
  129. +147 −0 twitter-bootstrap/less/button-groups.less
  130. +165 −0 twitter-bootstrap/less/buttons.less
  131. +121 −0 twitter-bootstrap/less/carousel.less
  132. +18 −0 twitter-bootstrap/less/close.less
  133. +44 −0 twitter-bootstrap/less/code.less
  134. +18 −0 twitter-bootstrap/less/component-animations.less
  135. +131 −0 twitter-bootstrap/less/dropdowns.less
  136. +515 −0 twitter-bootstrap/less/forms.less
  137. +8 −0 twitter-bootstrap/less/grid.less
  138. +20 −0 twitter-bootstrap/less/hero-unit.less
  139. +16 −0 twitter-bootstrap/less/labels.less
  140. +17 −0 twitter-bootstrap/less/layouts.less
  141. +537 −0 twitter-bootstrap/less/mixins.less
  142. +72 −0 twitter-bootstrap/less/modals.less
  143. +292 −0 twitter-bootstrap/less/navbar.less
  144. +343 −0 twitter-bootstrap/less/navs.less
  145. +30 −0 twitter-bootstrap/less/pager.less
  146. +55 −0 twitter-bootstrap/less/pagination.less
  147. +13 −0 twitter-bootstrap/less/patterns.less
  148. +49 −0 twitter-bootstrap/less/popovers.less
  149. +18 −0 twitter-bootstrap/less/print.less
  150. +95 −0 twitter-bootstrap/less/progress-bars.less
  151. +126 −0 twitter-bootstrap/less/reset.less
  152. +323 −0 twitter-bootstrap/less/responsive.less
  153. +29 −0 twitter-bootstrap/less/scaffolding.less
  154. +156 −0 twitter-bootstrap/less/sprites.less
  155. +139 −0 twitter-bootstrap/less/tables.less
  156. +35 −0 twitter-bootstrap/less/thumbnails.less
  157. +35 −0 twitter-bootstrap/less/tooltip.less
  158. +217 −0 twitter-bootstrap/less/type.less
  159. +23 −0 twitter-bootstrap/less/utilities.less
  160. +99 −0 twitter-bootstrap/less/variables.less
  161. +17 −0 twitter-bootstrap/less/wells.less
  162. +0 −46 vendor/styles/helpers.css
  163. +0 −202 vendor/styles/normalize.css
View
@@ -1,2 +1,3 @@
build
node_modules
+.DS_Store
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,3 +1,7 @@
+
+@import "bootstrap.less";
+@import "responsive.less";
+
body {
- background: white;
+ background: red;
}
@@ -0,0 +1,16 @@
+
+LESS = require 'less'
+PATH = require 'path'
+
+{BaseLanguage} = require 'brunch-extensions/lib/languages/base'
+
+class exports.LESSLanguage extends BaseLanguage
+
+ compile: (file, done) ->
+ paths = @config.less_paths || []
+ paths = paths.map (path) -> PATH.resolve path
+ paths.unshift '.'
+
+ @readFile file, (error, data) ->
+ return done(error) if error != null
+ LESS.render data, { paths: paths }, done
View
@@ -1,14 +1,17 @@
{languages, plugins} = require 'brunch-extensions'
-{LESSLanguage} = require 'brunch-extensions/lib/languages/less'
+#{LESSLanguage} = require 'brunch-extensions/lib/languages/less'
{HandlebarsLanguage} = require './brunch/handlebars_language'
{ManifestPlugin} = require './brunch/manifest_plugin'
+{LESSLanguage} = require './brunch/less_language'
# Make config loadable via require() for brunch.
exports.config =
# Available plugins:
# * AssetsPlugin: copy `app/assets` contents to `build/`
plugins: [plugins.AssetsPlugin, ManifestPlugin]
+ less_paths: ['twitter-bootstrap/less']
+
# Contains a list of output filenames that your application would generate.
# Format:
#
@@ -39,5 +42,4 @@ exports.config =
'\.css$': languages.CSSLanguage
'\.less$': LESSLanguage
order:
- before: ['vendor/styles/normalize.css']
- after: ['vendor/styles/helpers.css']
+ before: []
View
@@ -16,7 +16,8 @@
},
"dependencies": {
"brunch-extensions": "0.1.0",
- "async": "latest"
+ "async": "0.1.15",
+ "less": "1.2.1"
},
"devDependencies": {
@@ -0,0 +1,33 @@
+# Numerous always-ignore extensions
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.vi
+*~
+*.sass-cache
+
+# OS or Editor folders
+.DS_Store
+Thumbs.db
+.cache
+.project
+.settings
+.tmproj
+*.esproj
+nbproject
+*.sublime-project
+*.sublime-workspace
+
+# Komodo
+*.komodoproject
+.komodotools
+
+# Folders to ignore
+.hg
+.svn
+.CVS
+.idea
View
@@ -0,0 +1,13 @@
+Copyright 2012 Twitter, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
@@ -0,0 +1,52 @@
+BOOTSTRAP = ./docs/assets/css/bootstrap.css
+BOOTSTRAP_LESS = ./less/bootstrap.less
+BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
+BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
+LESS_COMPRESSOR ?= `which lessc`
+WATCHR ?= `which watchr`
+
+#
+# BUILD DOCS
+#
+
+docs: bootstrap
+ zip -r docs/assets/bootstrap.zip bootstrap
+ rm -r bootstrap
+ lessc ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
+ lessc ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
+ node docs/build
+ cp img/* docs/assets/img/
+ cp js/*.js docs/assets/js/
+ cp js/tests/vendor/jquery.js docs/assets/js/
+ cp js/tests/vendor/jquery.js docs/assets/js/
+
+#
+# BUILD SIMPLE BOOTSTRAP DIRECTORY
+# lessc & uglifyjs are required
+#
+
+bootstrap:
+ mkdir -p bootstrap/img
+ mkdir -p bootstrap/css
+ mkdir -p bootstrap/js
+ cp img/* bootstrap/img/
+ lessc ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
+ lessc --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
+ lessc ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap.responsive
+ lessc --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap.min.responsive
+ cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > bootstrap/js/bootstrap.js
+ uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.js
+
+#
+# WATCH LESS FILES
+#
+
+gh-pages:
+ cp -r docs/* ../bootstrap-gh-pages
+
+watch:
+ echo "Watching less files..."; \
+ watchr -e "watch('less/.*\.less') { system 'make' }"
+
+
+.PHONY: dist docs watch gh-pages
@@ -0,0 +1,94 @@
+TWITTER BOOTSTRAP
+=================
+
+Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
+
+To get started -- checkout http://twitter.github.com/bootstrap!
+
+
+Versioning
+----------
+
+For transparency and insight into our release cycle, and for striving to maintain backwards compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
+
+Releases will be numbered with the follow format:
+
+`<major>.<minor>.<patch>`
+
+And constructed with the following guidelines:
+
+* Breaking backwards compatibility bumps the major
+* New additions without breaking backwards compatibility bumps the minor
+* Bug fixes and misc changes bump the patch
+
+For more information on SemVer, please visit http://semver.org/.
+
+
+Bug tracker
+-----------
+
+Have a bug? Please create an issue here on GitHub!
+
+https://github.com/twitter/bootstrap/issues
+
+
+Twitter account
+---------------
+
+Keep up to date on announcements and more by following Bootstrap on Twitter, <a href="http://twitter.com/TwBootstrap">@TwBootstrap</a>.
+
+
+Mailing list
+------------
+
+Have a question? Ask on our mailing list!
+
+twitter-bootstrap@googlegroups.com
+
+http://groups.google.com/group/twitter-bootstrap
+
+
+Developers
+----------
+
+We have included a makefile with convenience methods for working with the Bootstrap library.
+
++ **build** - `make`
+This will run the less compiler on the bootstrap lib and regenerate the docs dir.
+The lessc compiler is required for this command to run.
+
++ **watch** - `make watch`
+This is a convenience method for watching your less files and automatically building them whenever you save.
+Watchr is required for this command to run.
+
+
+Authors
+-------
+
+**Mark Otto**
+
++ http://twitter.com/mdo
++ http://github.com/markdotto
+
+**Jacob Thornton**
+
++ http://twitter.com/fat
++ http://github.com/fat
+
+
+Copyright and license
+---------------------
+
+Copyright 2012 Twitter, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this work except in compliance with the License.
+You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
Binary file not shown.
Oops, something went wrong.

0 comments on commit ea5d016

Please sign in to comment.