Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 7d894bc0b5ebf092831345339845e9dbc7957505 mtyeh411 committed May 1, 2012
Showing with 14,854 additions and 0 deletions.
  1. +17 −0 Bootstrap.i18n.php
  2. +73 −0 Bootstrap.skin.php
  3. +40 −0 bootstrap.php
  4. +1 −0 bootstrap/.gitignore
  5. +13 −0 bootstrap/LICENSE
  6. +30 −0 bootstrap/Makefile
  7. +115 −0 bootstrap/README.md
  8. +4,647 −0 bootstrap/bootstrap.css
  9. +706 −0 bootstrap/bootstrap.min.css
  10. +317 −0 bootstrap/docs/assets/css/docs.css
  11. BIN bootstrap/docs/assets/ico/bootstrap-apple-114x114.png
  12. BIN bootstrap/docs/assets/ico/bootstrap-apple-57x57.png
  13. BIN bootstrap/docs/assets/ico/bootstrap-apple-72x72.png
  14. BIN bootstrap/docs/assets/ico/favicon.ico
  15. BIN bootstrap/docs/assets/img/bird.png
  16. BIN bootstrap/docs/assets/img/browsers.png
  17. BIN bootstrap/docs/assets/img/example-diagram-01.png
  18. BIN bootstrap/docs/assets/img/example-diagram-02.png
  19. BIN bootstrap/docs/assets/img/example-diagram-03.png
  20. BIN bootstrap/docs/assets/img/grid-18px.png
  21. BIN bootstrap/docs/assets/img/twitter-logo-no-bird.png
  22. +52 −0 bootstrap/docs/assets/js/application.js
  23. +41 −0 bootstrap/docs/assets/js/google-code-prettify/prettify.css
  24. +28 −0 bootstrap/docs/assets/js/google-code-prettify/prettify.js
  25. +1,932 −0 bootstrap/docs/index.html
  26. +676 −0 bootstrap/docs/javascript.html
  27. +119 −0 bootstrap/examples/container-app.html
  28. +126 −0 bootstrap/examples/fluid.html
  29. +79 −0 bootstrap/examples/hero.html
  30. BIN bootstrap/img/wiki_logo.png
  31. +104 −0 bootstrap/js/bootstrap-alerts.js
  32. +50 −0 bootstrap/js/bootstrap-dropdown.js
  33. +231 −0 bootstrap/js/bootstrap-modal.js
  34. +77 −0 bootstrap/js/bootstrap-popover.js
  35. +105 −0 bootstrap/js/bootstrap-scrollspy.js
  36. +62 −0 bootstrap/js/bootstrap-tabs.js
  37. +307 −0 bootstrap/js/bootstrap-twipsy.js
  38. +38 −0 bootstrap/js/tests/index.html
  39. +41 −0 bootstrap/js/tests/unit/bootstrap-alerts.js
  40. +52 −0 bootstrap/js/tests/unit/bootstrap-dropdown.js
  41. +151 −0 bootstrap/js/tests/unit/bootstrap-modal.js
  42. +76 −0 bootstrap/js/tests/unit/bootstrap-popover.js
  43. +31 −0 bootstrap/js/tests/unit/bootstrap-scrollspy.js
  44. +49 −0 bootstrap/js/tests/unit/bootstrap-tabs.js
  45. +81 −0 bootstrap/js/tests/unit/bootstrap-twipsy.js
  46. +232 −0 bootstrap/js/tests/vendor/qunit.css
  47. +1,510 −0 bootstrap/js/tests/vendor/qunit.js
  48. +26 −0 bootstrap/lib/bootstrap.less
  49. +465 −0 bootstrap/lib/forms.less
  50. +217 −0 bootstrap/lib/mixins.less
  51. +1,005 −0 bootstrap/lib/patterns.less
  52. +141 −0 bootstrap/lib/reset.less
  53. +135 −0 bootstrap/lib/scaffolding.less
  54. +171 −0 bootstrap/lib/tables.less
  55. +187 −0 bootstrap/lib/type.less
  56. +60 −0 bootstrap/lib/variables.less
  57. +233 −0 bootstrap/site.css
  58. +5 −0 bootstrap/site.js
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Internationalization file for skin Bootstrap.
+ *
+ * @file
+ * @ingroup Skins
+*/
+
+ $messages = array();
+
+ /** English
+ * @author Matt Yeh
+ */
+ $messages['en'] = array(
+ 'skinname-bootstrap' => "Bootstrap",
+ 'bootstrap-desc' => "Bootstrap skin",
+ );
@@ -0,0 +1,73 @@
+<?php
+/**
+ * Skin file for skin Bootstrap.
+ *
+ * @file
+ * @ingroup Skins
+ */
+
+ /**
+ * SkinTemplate class for Bootstrap skin
+ * @ingroup Skins
+ */
+ class SkinBootstrap extends SkinTemplate {
+
+ var $skinname = 'bootstrap', $stylename = 'bootstrap',
+ $template = 'BootstrapTemplate', $useHeadElement = true;
+
+ /**
+ * @param $out OutputPage object
+ */
+ public function initPage( OutputPage $out ) {
+ parent::initPage( $out );
+ $out->addModuleScripts( 'skins.bootstrap' );
+ }
+
+ /**
+ * @param $out OutputPage object
+ */
+ function setupSkinUserCss( OutputPage $out ) {
+ parent::setupSkinUserCss( $out );
+ $out->addModuleStyles( 'skins.bootstrap' );
+ $out->addModuleScripts( 'skins.bootstrap' );
+ }
+ }
+
+ /**
+ * BaseTemplate class for Bootstrap skin
+ * @ingroup Skins
+ */
+ class BootstrapTemplate extends BaseTemplate {
+
+ /**
+ * Outputs the entire context of the page
+ */
+ public function execute() {
+ // Suppress warnings to prevent notices about missing indexes in $this->data
+ wfSuppressWarnings();
+
+ $this->html( 'headelement' ); ?>
+
+ <div class="container-fluid">
+ <div class="row-fluid">
+ <div class="span3">
+
+ </div>
+ <div class="span9">
+ <div class="page-header">
+ <h1>
+ <?php $this->html( 'title' ) ?>
+ <small><?php $this->html( 'subtitle' ) ?></small>
+ </h1>
+ </div>
+ <?php $this->html( 'bodycontent' ); ?>
+ <?php $this->printTrail(); ?>
+ </div>
+ </div>
+ </div>
+
+ </body>
+ </html>
+ <?php wfRestoreWarnings();
+ }
+ }
@@ -0,0 +1,40 @@
+<?php
+/**
+ * Bootstrap Skin
+ *
+ * @file
+ * @ingroup Skins
+ * @author Matt Yeh (http://www.github.com/mtyeh411)
+ * licence http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
+ */
+
+ if( !defined( 'MEDIAWIKI' ) ) die( "This is a skin extension to the MediaWiki package and cannot be run standalone." );
+
+ $wgExtensionCredits['skin'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'Bootstrap',
+ 'url' => 'http://www.github.com/mtyeh411/bootstrap-mediawiki',
+ 'author' => '[http://www.github.com/mtyeh411 Matt Yeh]',
+ 'descriptionmsg' => 'Bootstrap skin',
+ );
+
+ $wgValidSkinNames['bootstrap'] = 'Bootstrap';
+ $wgAutoloadClasses['SkinBootstrap'] = dirname( __FILE__ ).'/Bootstrap.skin.php';
+ $wgExtensionMessagesFiles['Bootstrap'] = dirname( __FILE__ ).'/Bootstrap.i18n.php';
+
+ $wgResourceModules['skins.bootstrap'] = array(
+ 'styles' => array(
+ 'bootstrap/bootstrap/bootstrap.css',
+ 'bootstrap/bootstrap/site.css',
+ ),
+ 'scripts' => array(
+ //'bootstrap/bootstrap/site.js',
+ //'bootstrap/bootstrap/js/bootstrap-tabs.js',
+ //'bootstrap/bootstrap/js/bootstrap-dropdown.js',
+ ),
+ 'dependencies' => array(
+ // jquery automatically loaded
+ ),
+ 'remoteBasePath' => &$GLOBALS['wgStylePath'],
+ 'localBasePath' => &$GLOBALS['wgStyleDirectory'],
+ );
@@ -0,0 +1 @@
+.DS_Store
@@ -0,0 +1,13 @@
+Copyright 2011 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.
@@ -0,0 +1,30 @@
+VERSION=1.2.0
+DATE=$(shell DATE)
+BOOTSTRAP = ./bootstrap.css
+BOOTSTRAP_MIN = ./bootstrap.min.css
+BOOTSTRAP_LESS = ./lib/bootstrap.less
+LESS_COMPESSOR ?= `which lessc`
+WATCHR ?= `which watchr`
+
+build:
+ @@if test ! -z ${LESS_COMPESSOR}; then \
+ sed -e 's/@VERSION/'"v${VERSION}"'/' -e 's/@DATE/'"${DATE}"'/' <${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \
+ 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
+
+watch:
+ @@if test ! -z ${WATCHR}; then \
+ echo "Watching less files..."; \
+ watchr -e "watch('lib/.*\.less') { system 'make' }"; \
+ else \
+ echo "You must have the watchr installed in order to watch Bootstrap less files."; \
+ echo "You can install it by running: gem install watchr"; \
+ fi
+
+.PHONY: build watch
@@ -0,0 +1,115 @@
+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!
+
+
+Usage
+-----
+
+You can use Twitter Bootstrap in one of two ways: just drop the compiled CSS into any new project and start cranking, or run LESS on your site and compile on the fly like a boss.
+
+Here's what the LESS version looks like:
+
+``` html
+<link rel="stylesheet/less" type="text/css" href="lib/bootstrap.less">
+<script src="less.js" type="text/javascript"></script>
+```
+
+Or if you prefer, the standard css way:
+
+``` html
+<link rel="stylesheet" type="text/css" href="bootstrap.css">
+```
+
+For more info, refer to the docs!
+
+
+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 build`
+This will run the less compiler on the bootstrap lib and generate a bootstrap.css and bootstrap.min.css file.
+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 2011 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.
Oops, something went wrong.

0 comments on commit 7d894bc

Please sign in to comment.