Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a1951ed7
Commit
a1951ed7
authored
12 years ago
by
Jonas Pommerening
Browse files
Options
Download
Email Patches
Plain Diff
stack mutliple progress bars
parent
e5103061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/components.html
+20
-0
docs/components.html
less/progress-bars.less
+9
-8
less/progress-bars.less
with
29 additions
and
8 deletions
+29
-8
docs/components.html
+
20
-
0
View file @
a1951ed7
...
...
@@ -2067,6 +2067,26 @@
<
/div
>
</pre>
<h3>
Stacked
</h3>
<p>
Place multiple bars into the same
<code>
.progress
</code>
to stack them.
</p>
<div
class=
"bs-docs-example"
>
<div
class=
"progress"
>
<div
class=
"bar-success"
style=
"width: 35%"
></div>
<div
class=
"bar-warning"
style=
"width: 20%"
></div>
<div
class=
"bar-danger"
style=
"width: 10%"
></div>
</div>
</div>
<pre
class=
"prettyprint linenums"
>
<
div class="progress"
>
<
div class="bar-success"
style="width: 35%;"
><
/div
>
<
div class="bar-warning"
style="width: 20%;"
><
/div
>
<
div class="bar-danger"
style="width: 10%;"
><
/div
>
<
/div
>
</pre>
<hr
class=
"bs-docs-separator"
>
...
...
This diff is collapsed.
Click to expand it.
less/progress-bars.less
+
9
-
8
View file @
a1951ed7
...
...
@@ -56,6 +56,7 @@
width: 0%;
height: 100%;
color: @white;
float: left;
font-size: 12px;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
...
...
@@ -86,33 +87,33 @@
// ------
// Danger (red)
.progress-danger .bar {
.progress-danger .bar
, .progress .bar-danger
{
#gradient > .vertical(#ee5f5b, #c43c35);
}
.progress-danger.progress-striped .bar {
.progress-danger.progress-striped .bar
, .progress-striped .bar-danger
{
#gradient > .striped(#ee5f5b);
}
// Success (green)
.progress-success .bar {
.progress-success .bar
, .progress .bar-success
{
#gradient > .vertical(#62c462, #57a957);
}
.progress-success.progress-striped .bar {
.progress-success.progress-striped .bar
, .progress-striped .bar-success
{
#gradient > .striped(#62c462);
}
// Info (teal)
.progress-info .bar {
.progress-info .bar
, .progress .bar-info
{
#gradient > .vertical(#5bc0de, #339bb9);
}
.progress-info.progress-striped .bar {
.progress-info.progress-striped .bar
, .progress-striped .bar-info
{
#gradient > .striped(#5bc0de);
}
// Warning (orange)
.progress-warning .bar {
.progress-warning .bar
, .progress .bar-warning
{
#gradient > .vertical(lighten(@orange, 15%), @orange);
}
.progress-warning.progress-striped .bar {
.progress-warning.progress-striped .bar
, .progress-striped .bar-warning
{
#gradient > .striped(lighten(@orange, 15%));
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets