]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip
authorJacob Thornton <jacobthornton@gmail.com>
Fri, 23 Dec 2011 03:15:09 +0000 (19:15 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Fri, 23 Dec 2011 03:15:09 +0000 (19:15 -0800)
Conflicts:
bootstrap.css
docs/assets/js/application.js
docs/base-css.html
docs/components.html
docs/index.html
docs/javascript.html
docs/less.html
docs/scaffolding.html
docs/upgrading.html

1  2 
bootstrap.css
bootstrap.min.css
docs/assets/js/application.js
docs/base-css.html
docs/components.html
docs/index.html
docs/javascript.html
docs/less.html
docs/scaffolding.html
docs/upgrading.html
lib/mixins.less

diff --cc bootstrap.css
index ee80000c2b6e21d5d84a37ff3535a2699853a145,354f534b28618871225e146eea74fffcac0e2b7e..eb7b65678392d9b41591c4563b9cf321b170a15d
@@@ -6,7 -6,7 +6,11 @@@
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Designed and built with all the love in the world @twitter by @mdo and @fat.
++<<<<<<< HEAD
 + * Date: Thu Dec 22 19:09:49 PST 2011
++=======
+  * Date: Wed Dec 21 18:38:56 CST 2011
++>>>>>>> 9fb380151d477f1741b7609ade7a9e7fd5450b2c
   */
  html, body {
    margin: 0;
Simple merge
index c653233e6b4467450810c86b521deabae5a57b88,724daf9ebdf92b29e6908885c6817cbe6fac8be9..c8e796a398a3999773be4eddb75d43f7115e8c82
@@@ -1,64 -1,83 +1,76 @@@
  $(function(){
  
 -  window.addEventListener("load",function() {
 -    // Set a timeout...
 -    setTimeout(function(){
 -      // Hide the address bar!
 -      window.scrollTo(0, 1);
 -    }, 0);
 -  });
 -
 -
 -  // Docs topbar nav
 -  // ===============
 -
 -  $('.nav .active').click(function(e) {
 -    e.preventDefault();
 -    $(this).siblings().toggle();
 -  });
 -
 -
 -  // Show grid dimensions on hover
 -  // =============================
 -
 -  $('.show-grid > div').hover(function() {
 -    var width = $(this).width();
 -    $(this).attr('title', width);
 -    $(this).twipsy();
 -  });
 -
 +  // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
 +  // IT'S ALL JUST JUNK FOR OUR DOCS!
 +  // ++++++++++++++++++++++++++++++++++++++++++
 +
+   // Hide the Mobile Safari address bar once loaded
+   // ==============================================
 -  $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
++  // Set a timeout...
++  setTimeout(function(){
++    // Hide the address bar!
++    window.scrollTo(0, 1);
++  }, 0);
+   // table sort example
+   // ==================
 +  // make code pretty
 +  prettyPrint && prettyPrint()
  
 +  // table sort example
 +  if ($.fn.tableSorter) {
 +    $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
 +  }
  
    // add on logic
 -  // ============
 -
 -  $('.add-on :checkbox').click(function () {
 -    if ($(this).attr('checked')) {
 -      $(this).parents('.add-on').addClass('active')
 -    } else {
 -      $(this).parents('.add-on').removeClass('active')
 -    }
 +  $('.add-on :checkbox').on('click', function () {
 +    var $this = $(this)
 +      , method = $this.attr('checked') ? 'addClass' : 'removeClass'
 +    $(this).parents('.add-on')[method]('active')
    })
  
 -
    // Disable certain links in docs
 -  // =============================
 -  // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page
 +  // Please do not carry these styles over to your projects
 +  // it's merely here to prevent button clicks form taking you
 +  // away from your spot on page!!
  
 -  $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) {
 +  $('[href^=#]').click(function (e) {
      e.preventDefault()
    })
  
    // Copy code blocks in docs
 -  $(".copy-code").focus(function () {
 -    var el = this;
 -    // push select to event loop for chrome :{o
 -    setTimeout(function () { $(el).select(); }, 1);
 -  });
 -
 -
 -  // POSITION STATIC TWIPSIES
 -  // ========================
 -
 -  $(window).on('load resize', function () {
 -    $(".twipsies a").each(function () {
 -       $(this)
 -        .twipsy({
 -          live: false
 -        , placement: $(this).attr('title')
 -        , trigger: 'manual'
 -        , offset: 2
 -        })
 -        .twipsy('show')
 -      })
 +  $(".copy-code").on('focus', function () {
 +    var el = this
 +    setTimeout(function () { $(el).select() }, 0)
    })
 -});
 +
 +  if ($.fn.twipsy) {
 +
 +    // position static twipsies for components page
 +    if ($(".twipsies a").length) {
 +      $(window).on('load resize', function () {
 +        $(".twipsies a").each(function () {
 +          $(this)
 +            .twipsy({
 +              placement: $(this).attr('title')
 +            , trigger: 'manual'
 +            })
 +            .twipsy('show')
 +          })
 +      })
 +    }
 +
 +    // add tipsies to grid for scaffolding
 +    if ($('#grid-system').length) {
 +
 +      $('#grid-system').twipsy({
 +          selector: '.show-grid > div'
 +        , title: function () { return $(this).width() + 'px' }
 +      })
 +
 +    }
 +  }
 +
- })
++})
index 6173a4de6e1a0d8839fbf8621fed12363f4e556a,bb54b0c511131e646d0ecb408c892c6be13e5791..34e844df3075c0fa24cfd5169adb31979c3b7c62
@@@ -1110,10 -1178,14 +1178,9 @@@ Form state
  
      <!-- Le javascript -->
      <!-- Placed at the end of the document so the pages load faster -->
-     <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
-     <script src="../js/tests/vendor/jquery.js"></script>
+     <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
 -    <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
      <script src="assets/js/google-code-prettify/prettify.js"></script>
      <script>$(function () { prettyPrint() })</script>
 -    <script src="../js/bootstrap-transitions.js"></script>
 -    <script src="../js/bootstrap-dropdown.js"></script>
 -    <script src="../js/bootstrap-twipsy.js"></script>
 -    <script src="../js/bootstrap-scrollspy.js"></script>
      <script src="assets/js/application.js"></script>
    </body>
  </html>
index 4d2c608230fdcef4c2c4722c45b33649f5dd0acd,2f359ab57fdbdda16ddd73d31eaa0dc11aa02a6c..26a657cb5985d86a774bb6da74956b78a14118f7
  
  
  
- <!-- Navigation
+ <!-- Autocomplete
+ ================================================== -->
+ <section id="autocomplete">
+   <div class="page-header">
+     <h1>Autocomplete <small></small></h1>
+   </div>
+ </section>
+ <!-- Carousel
  ================================================== -->
- <section id="navigation">
+ <section id="carousel">
    <div class="page-header">
-     <h1>Navigation</h1>
+     <h1>Carousel <small></small></h1>
+   </div>
+ </section>
+ <!-- Navbar
+ ================================================== -->
+ <section id="navbar">
+   <div class="page-header">
+     <h1>Navbar</h1>
    </div>
    <h2>Fixed navbar</h2>
 -  <div class="navbar navbar-static">
 +  <div class="navbar navbar-static" >
      <div class="navbar-inner">
        <div class="container" style="width: auto;">
          <a class="brand" href="#">Project Name</a>
diff --cc docs/index.html
index 81d7df41e62721cd92606e810706f54d51e46324,9cad062714b98e94a03fe4ef8d1523d39418dde7..0d340fa1ab6eeae313ae88e27049e67960d57d83
  
      <!-- Le javascript -->
      <!-- Placed at the end of the document so the pages load faster -->
 -
 +    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+     <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
+     <script src="assets/js/application.js"></script>
    </body>
- </html>
+ </html>
Simple merge
diff --cc docs/less.html
index 13dfee282d87fc0dfc77328f5b93422ce884e535,e004bc24c2c90e69867c507cf34f07d0191541cb..7d3efd296c3cf5b2e897fe61ab6bca00bcb916b1
  
      <!-- Le javascript -->
      <!-- Placed at the end of the document so the pages load faster -->
-     <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
-     <script src="../js/tests/vendor/jquery.js"></script>
+     <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
 -    <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
      <script src="assets/js/google-code-prettify/prettify.js"></script>
 -    <script>$(function () { prettyPrint() })</script>
 -    <script src="../js/bootstrap-transitions.js"></script>
 -    <script src="../js/bootstrap-dropdown.js"></script>
 -    <script src="../js/bootstrap-twipsy.js"></script>
 -    <script src="../js/bootstrap-scrollspy.js"></script>
      <script src="assets/js/application.js"></script>
    </body>
  </html>
index 311a6954c90456b7673352b534353ad1f3600b53,4735534129bad011a19fb467f46010683995a5a4..dc35bd5775321de26b8e1cf564885efcdf9233b7
  
      <!-- Le javascript -->
      <!-- Placed at the end of the document so the pages load faster -->
-     <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
-     <script src="../js/tests/vendor/jquery.js"></script>
+     <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
 -    <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
      <script src="assets/js/google-code-prettify/prettify.js"></script>
 -    <script>$(function () { prettyPrint() })</script>
 -    <script src="../js/bootstrap-transitions.js"></script>
 -    <script src="../js/bootstrap-dropdown.js"></script>
 +    <script src="../js/bootstrap-transition.js"></script>
      <script src="../js/bootstrap-twipsy.js"></script>
 -    <script src="../js/bootstrap-scrollspy.js"></script>
      <script src="assets/js/application.js"></script>
    </body>
- </html>
+ </html>
index 4dedb37d8813cc4d8cb8b1df00c53e9d41d7d4ae,3e5a14a8ab78d464728ac6b2054b231300076e26..7be1fd7089c3deb60cf21f375ff68b3013099e17
        <li>Added button bar options</li>
      </ul>
    </li>
 +</ul>
+ <!--
+   <li>
+     <ul>
+       <li></li>
+     </ul>
+   </li>
+ -->
+ </ul>
        <!-- Footer
        ================================================== -->
        <footer class="footer">
          <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
        </footer>
      </div><!-- /container -->
 -    <!-- Le javascript -->
 -    <!-- Placed at the end of the document so the pages load faster -->
 -    <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
 -    <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
 -    <script src="assets/js/google-code-prettify/prettify.js"></script>
 -    <script>$(function () { prettyPrint() })</script>
 -    <script src="../js/bootstrap-transitions.js"></script>
 -    <script src="../js/bootstrap-dropdown.js"></script>
 -    <script src="../js/bootstrap-twipsy.js"></script>
 -    <script src="../js/bootstrap-scrollspy.js"></script>
 -    <script src="assets/js/application.js"></script>
    </body>
  </html>
diff --cc lib/mixins.less
Simple merge