components.html 83.8 KB
Newer Older
2001
2002
2003
          <div class="progress progress-danger">
            <div class="bar" style="width: 80%"></div>
          </div>
2004
        </div>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
<pre class="prettyprint linenums">
&lt;div class="progress progress-info"&gt;
  &lt;div class="bar" style="width: 20%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-success"&gt;
  &lt;div class="bar" style="width: 40%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-warning"&gt;
  &lt;div class="bar" style="width: 60%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-danger"&gt;
  &lt;div class="bar" style="width: 80%"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
2019

2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
        <h3>Striped bars</h3>
        <p>Similar to the solid colors, we have varied striped progress bars.</p>
        <div class="bs-docs-example">
          <div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
            <div class="bar" style="width: 20%"></div>
          </div>
          <div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
            <div class="bar" style="width: 40%"></div>
          </div>
          <div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
            <div class="bar" style="width: 60%"></div>
          </div>
          <div class="progress progress-danger progress-striped">
            <div class="bar" style="width: 80%"></div>
          </div>
2035
        </div>
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
<pre class="prettyprint linenums">
&lt;div class="progress progress-info progress-striped"&gt;
  &lt;div class="bar" style="width: 20%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-success progress-striped"&gt;
  &lt;div class="bar" style="width: 40%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-warning progress-striped"&gt;
  &lt;div class="bar" style="width: 60%"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="progress progress-danger progress-striped"&gt;
  &lt;div class="bar" style="width: 80%"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>

2051

2052
        <hr class="bs-docs-separator">
2053

2054

2055
2056
2057
        <h2>Browser support</h2>
        <p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.</p>
        <p>Opera and IE do not support animations at this time.</p>
2058

2059
      </section>
2060
2061
2062
2063
2064





2065
2066
2067
2068
2069
2070
      <!-- Miscellaneous
      ================================================== -->
      <section id="misc">
        <div class="page-header">
          <h1>Miscellaneous <small>Lightweight utility components</small></h1>
        </div>
2071

2072
2073
2074
2075
2076
2077
        <h2>Wells</h2>
        <p>Use the well as a simple effect on an element to give it an inset effect.</p>
        <div class="bs-docs-example">
          <div class="well">
            Look, I'm in a well!
          </div>
2078
        </div>
2079
2080
2081
2082
<pre class="prettyprint linenums">
&lt;div class="well"&gt;
  ...
&lt;/div&gt;
2083
</pre>
2084
2085
2086
2087
2088
2089
        <h3>Optional classes</h3>
        <p>Control padding and rounded corners with two optional modifier classes.</p>
        <div class="bs-docs-example">
          <div class="well well-large">
            Look, I'm in a well!
          </div>
2090
        </div>
2091
2092
2093
2094
2095
<pre class="prettyprint linenums">
&lt;div class="well well-large"&gt;
  ...
&lt;/div&gt;
</pre>
2096
2097
2098
2099
        <div class="bs-docs-example">
          <div class="well well-small">
            Look, I'm in a well!
          </div>
2100
        </div>
2101
2102
2103
2104
<pre class="prettyprint linenums">
&lt;div class="well well-small"&gt;
  ...
&lt;/div&gt;
2105
</pre>
2106
2107
2108
2109
2110
        <h2>Close icon</h2>
        <p>Use the generic close icon for dismissing content like modals and alerts.</p>
        <div class="bs-docs-example">
          <p><button class="close" style="float: none;">&times;</button></p>
        </div>
2111
<pre class="prettyprint linenums">&lt;button class="close"&gt;&amp;times;&lt;/button&gt;</pre>
2112
        <p>iOS devices require an href="#" for click events if you rather use an anchor.</p>
2113
<pre class="prettyprint linenums">&lt;a class="close" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
2114

2115
2116
        <h2>Helper classes</h2>
        <p>Simple, focused classes for small display or behavior tweaks.</p>
2117

2118
2119
        <h4>.pull-left</h4>
        <p>Float an element left</p>
2120
2121
2122
2123
2124
2125
2126
2127
2128
<pre class="prettyprint linenums">
class="pull-left"
</pre>
<pre class="prettyprint linenums">
.pull-left {
  float: left;
}
</pre>

2129
2130
        <h4>.pull-right</h4>
        <p>Float an element right</p>
2131
2132
2133
2134
2135
2136
2137
2138
2139
<pre class="prettyprint linenums">
class="pull-right"
</pre>
<pre class="prettyprint linenums">
.pull-right {
  float: right;
}
</pre>

2140
2141
        <h4>.muted</h4>
        <p>Change an element's color to <code>#999</code></p>
2142
2143
2144
2145
2146
2147
2148
2149
2150
<pre class="prettyprint linenums">
class="muted"
</pre>
<pre class="prettyprint linenums">
.muted {
  color: #999;
}
</pre>

2151
2152
        <h4>.clearfix</h4>
        <p>Clear the <code>float</code> on any element</p>
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
<pre class="prettyprint linenums">
class="clearfix"
</pre>
<pre class="prettyprint linenums">
.clearfix {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
  }
  &:after {
    clear: both;
  }
}
</pre>

2170
      </section>
2171
2172


2173

2174
    </div>
2175
2176
  </div>

2177
</div>
Mark Otto's avatar
Mark Otto committed
2178

2179

Mark Otto's avatar
Mark Otto committed
2180
2181
2182
2183
2184

   <!-- Footer
    ================================================== -->
    <footer class="footer">
      <div class="container">
Mark Otto's avatar
Mark Otto committed
2185
        <p class="pull-right"><a href="#">Back to top</a></p>
Mark Otto's avatar
Mark Otto committed
2186
2187
2188
        <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>.</p>
        <p>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>
        <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>
2189
2190
2191
2192
2193
        <ul class="footer-links">
          <li><a href="http://blog.getbootstrap.com">Read the blog</a></li>
          <li><a href="https://github.com/twitter/bootstrap/issues?state=open">Submit issues</a></li>
          <li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</a></li>
        </ul>
Mark Otto's avatar
Mark Otto committed
2194
2195
      </div>
    </footer>
2196

2197

2198
2199
2200

    <!-- Le javascript
    ================================================== -->
2201
    <!-- Placed at the end of the document so the pages load faster -->
2202
    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Jacob Thornton's avatar
Jacob Thornton committed
2203
    <script src="assets/js/jquery.js"></script>
2204
    <script src="assets/js/google-code-prettify/prettify.js"></script>
Jacob Thornton's avatar
Jacob Thornton committed
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
    <script src="assets/js/bootstrap-transition.js"></script>
    <script src="assets/js/bootstrap-alert.js"></script>
    <script src="assets/js/bootstrap-modal.js"></script>
    <script src="assets/js/bootstrap-dropdown.js"></script>
    <script src="assets/js/bootstrap-scrollspy.js"></script>
    <script src="assets/js/bootstrap-tab.js"></script>
    <script src="assets/js/bootstrap-tooltip.js"></script>
    <script src="assets/js/bootstrap-popover.js"></script>
    <script src="assets/js/bootstrap-button.js"></script>
    <script src="assets/js/bootstrap-collapse.js"></script>
    <script src="assets/js/bootstrap-carousel.js"></script>
    <script src="assets/js/bootstrap-typeahead.js"></script>
2217
    <script src="assets/js/application.js"></script>
2218
2219


2220
2221
  </body>
</html>
For faster browsing, not all history is shown. View entire blame