base-css.html 35.4 KB
Newer Older
1001
1002
1003
1004
1005
1006
1007
      <p><strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code>&lt;button&gt;</code> and <code>&lt;a&gt;</code> elements for consistency.</p>
    </div>
  </div>

  <div class="row">
    <div class="span4">
      <h3>Multiple sizes</h3>
1008
      <p>Fancy larger or smaller buttons? Have at it!</p>
1009
      <p>
1010
1011
        <a href="#" class="btn large primary">Primary action</a>
        <a href="#" class="btn large">Action</a>
1012
1013
      </p>
      <p>
1014
1015
        <a href="#" class="btn small primary">Primary action</a>
        <a href="#" class="btn small">Action</a>
1016
1017
1018
      </p>
    </div>
    <div class="span8">
1019
1020
      <h3>Disabled state</h3>
      <p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code>&lt;button&gt;</code> elements.</p>
1021
      <p>
1022
1023
        <a href="#" class="btn large primary disabled">Primary action</a>
        <a href="#" class="btn large disabled">Action</a>
1024
1025
      </p>
      <p>
1026
        <button class="btn large primary disabled" disabled="disabled">Primary action</button>&nbsp;<button class="btn large" disabled>Action</button>
1027
      </p>
1028
    </div>
1029
  </div>
1030

1031
1032
1033
1034
1035
1036
  <h2>Button groups</h2>
  <div class="well">
    <div class="btn-group">
      <a class="btn" href="#">Left</a>
      <a class="btn" href="#">Middle</a>
      <a class="btn" href="#">Right</a>
1037
    </div>
1038
1039
1040
1041
1042
1043
1044
1045
1046
  </div>
  <div class="well">
    <div class="btn-toolbar">
      <div class="btn-group">
        <a class="btn" href="#">1</a>
        <a class="btn" href="#">2</a>
        <a class="btn" href="#">3</a>
        <a class="btn" href="#">4</a>
        <a class="btn" href="#">5</a>
1047
      </div>
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
      <div class="btn-group">
        <a class="btn" href="#">6</a>
        <a class="btn" href="#">7</a>
        <a class="btn" href="#">8</a>
      </div>
      <div class="btn-group">
        <a class="btn" href="#">9</a>
      </div>
      <div class="btn-group">
        <a class="btn" href="#">10</a>
1058
1059
      </div>
    </div>
1060
  </div>
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088

</section>


      <!-- Footer
      ================================================== -->
      <footer class="footer">
        <p class="pull-right"><a href="#">Back to top</a></p>
        <p>
          Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br>
          Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation 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.5.2.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>
For faster browsing, not all history is shown. View entire blame