twitter-bootstrap-rails 2.2.8 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +229 -322
- data/Rakefile +4 -6
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +162 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +120 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +237 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +211 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +337 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +108 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +172 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +514 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +14 -7
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +12 -6
- data/app/helpers/modal_helper.rb +26 -22
- data/app/helpers/navbar_helper.rb +47 -32
- data/app/helpers/twitter_breadcrumbs_helper.rb +6 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +8 -8
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.css +3 -4
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +9 -18
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +5 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +27 -48
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +19 -34
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +13 -30
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +30 -10
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -9
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +4 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +6 -5
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +5 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +4 -4
- data/lib/generators/bootstrap/themed/templates/show.html.slim +6 -7
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
- data/lib/generators/bootstrap/themed/themed_generator.rb +2 -2
- data/lib/twitter/bootstrap/rails/breadcrumbs.rb +69 -0
- data/lib/twitter/bootstrap/rails/engine.rb +17 -10
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +99 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +12 -4
- data/spec/lib/twitter_bootstrap_rails/bootstrap_flash_helper_spec.rb +128 -0
- data/spec/lib/twitter_bootstrap_rails/form_errors_helper_spec.rb +148 -0
- data/spec/lib/twitter_bootstrap_rails/glyph_helper_spec.rb +24 -0
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +207 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +11 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5796 -1
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/alerts.less +51 -57
- data/vendor/toolkit/twitter/bootstrap/badges.less +66 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -36
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +167 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +107 -169
- data/vendor/toolkit/twitter/bootstrap/carousel.less +177 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +21 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +15 -4
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +120 -152
- data/vendor/toolkit/twitter/bootstrap/forms.less +470 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +305 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +171 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +54 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +130 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +40 -29
- data/vendor/toolkit/twitter/bootstrap/mixins.less +37 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +65 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +30 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-text.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +227 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +547 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +424 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +45 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +71 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +271 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +66 -68
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +40 -75
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +131 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +172 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +291 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +27 -44
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +58 -27
- data/vendor/toolkit/twitter/bootstrap/type.less +209 -154
- data/vendor/toolkit/twitter/bootstrap/utilities.less +32 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +784 -216
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +156 -141
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -787
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +0 -42
- data/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/static-source/fontawesome.less +0 -9
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/core.less +0 -129
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/fontawesome/font-awesome.less +0 -33
- data/vendor/toolkit/fontawesome/icons.less +0 -381
- data/vendor/toolkit/fontawesome/mixins.less +0 -48
- data/vendor/toolkit/fontawesome/path.less +0 -14
- data/vendor/toolkit/fontawesome/variables.less +0 -735
- data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
- data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
- data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
- data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
- data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -7,43 +7,36 @@
|
|
7
7
|
position: absolute;
|
8
8
|
top: 0;
|
9
9
|
left: 0;
|
10
|
-
z-index: @
|
10
|
+
z-index: @zindex-popover;
|
11
11
|
display: none;
|
12
|
-
max-width:
|
12
|
+
max-width: @popover-max-width;
|
13
13
|
padding: 1px;
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
background-clip: padding-box;
|
19
|
-
border: 1px solid #ccc;
|
20
|
-
border: 1px solid rgba(0,0,0,.2);
|
21
|
-
.border-radius(6px);
|
22
|
-
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
14
|
+
// Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
|
15
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
16
|
+
.reset-text();
|
17
|
+
font-size: @font-size-base;
|
23
18
|
|
24
|
-
|
25
|
-
|
19
|
+
background-color: @popover-bg;
|
20
|
+
background-clip: padding-box;
|
21
|
+
border: 1px solid @popover-fallback-border-color;
|
22
|
+
border: 1px solid @popover-border-color;
|
23
|
+
border-radius: @border-radius-large;
|
24
|
+
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
26
25
|
|
27
26
|
// Offset the popover to account for the popover arrow
|
28
|
-
&.top { margin-top: -
|
29
|
-
&.right { margin-left:
|
30
|
-
&.bottom { margin-top:
|
31
|
-
&.left { margin-left: -
|
27
|
+
&.top { margin-top: -@popover-arrow-width; }
|
28
|
+
&.right { margin-left: @popover-arrow-width; }
|
29
|
+
&.bottom { margin-top: @popover-arrow-width; }
|
30
|
+
&.left { margin-left: -@popover-arrow-width; }
|
32
31
|
}
|
33
32
|
|
34
33
|
.popover-title {
|
35
34
|
margin: 0; // reset heading margin
|
36
35
|
padding: 8px 14px;
|
37
|
-
font-size:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
42
|
-
.border-radius(5px 5px 0 0);
|
43
|
-
|
44
|
-
&:empty {
|
45
|
-
display: none;
|
46
|
-
}
|
36
|
+
font-size: @font-size-base;
|
37
|
+
background-color: @popover-title-bg;
|
38
|
+
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
39
|
+
border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
|
47
40
|
}
|
48
41
|
|
49
42
|
.popover-content {
|
@@ -54,80 +47,85 @@
|
|
54
47
|
//
|
55
48
|
// .arrow is outer, .arrow:after is inner
|
56
49
|
|
57
|
-
.popover .arrow
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
50
|
+
.popover > .arrow {
|
51
|
+
&,
|
52
|
+
&:after {
|
53
|
+
position: absolute;
|
54
|
+
display: block;
|
55
|
+
width: 0;
|
56
|
+
height: 0;
|
57
|
+
border-color: transparent;
|
58
|
+
border-style: solid;
|
59
|
+
}
|
65
60
|
}
|
66
|
-
.popover .arrow {
|
67
|
-
border-width: @
|
61
|
+
.popover > .arrow {
|
62
|
+
border-width: @popover-arrow-outer-width;
|
68
63
|
}
|
69
|
-
.popover .arrow:after {
|
70
|
-
border-width: @
|
64
|
+
.popover > .arrow:after {
|
65
|
+
border-width: @popover-arrow-width;
|
71
66
|
content: "";
|
72
67
|
}
|
73
68
|
|
74
69
|
.popover {
|
75
|
-
&.top .arrow {
|
70
|
+
&.top > .arrow {
|
76
71
|
left: 50%;
|
77
|
-
margin-left: -@
|
72
|
+
margin-left: -@popover-arrow-outer-width;
|
78
73
|
border-bottom-width: 0;
|
79
|
-
border-top-color:
|
80
|
-
border-top-color: @
|
81
|
-
bottom: -@
|
74
|
+
border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
75
|
+
border-top-color: @popover-arrow-outer-color;
|
76
|
+
bottom: -@popover-arrow-outer-width;
|
82
77
|
&:after {
|
78
|
+
content: " ";
|
83
79
|
bottom: 1px;
|
84
|
-
margin-left: -@
|
80
|
+
margin-left: -@popover-arrow-width;
|
85
81
|
border-bottom-width: 0;
|
86
|
-
border-top-color: @
|
82
|
+
border-top-color: @popover-arrow-color;
|
87
83
|
}
|
88
84
|
}
|
89
|
-
&.right .arrow {
|
85
|
+
&.right > .arrow {
|
90
86
|
top: 50%;
|
91
|
-
left: -@
|
92
|
-
margin-top: -@
|
87
|
+
left: -@popover-arrow-outer-width;
|
88
|
+
margin-top: -@popover-arrow-outer-width;
|
93
89
|
border-left-width: 0;
|
94
|
-
border-right-color:
|
95
|
-
border-right-color: @
|
90
|
+
border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
91
|
+
border-right-color: @popover-arrow-outer-color;
|
96
92
|
&:after {
|
93
|
+
content: " ";
|
97
94
|
left: 1px;
|
98
|
-
bottom: -@
|
95
|
+
bottom: -@popover-arrow-width;
|
99
96
|
border-left-width: 0;
|
100
|
-
border-right-color: @
|
97
|
+
border-right-color: @popover-arrow-color;
|
101
98
|
}
|
102
99
|
}
|
103
|
-
&.bottom .arrow {
|
100
|
+
&.bottom > .arrow {
|
104
101
|
left: 50%;
|
105
|
-
margin-left: -@
|
102
|
+
margin-left: -@popover-arrow-outer-width;
|
106
103
|
border-top-width: 0;
|
107
|
-
border-bottom-color:
|
108
|
-
border-bottom-color: @
|
109
|
-
top: -@
|
104
|
+
border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
105
|
+
border-bottom-color: @popover-arrow-outer-color;
|
106
|
+
top: -@popover-arrow-outer-width;
|
110
107
|
&:after {
|
108
|
+
content: " ";
|
111
109
|
top: 1px;
|
112
|
-
margin-left: -@
|
110
|
+
margin-left: -@popover-arrow-width;
|
113
111
|
border-top-width: 0;
|
114
|
-
border-bottom-color: @
|
112
|
+
border-bottom-color: @popover-arrow-color;
|
115
113
|
}
|
116
114
|
}
|
117
115
|
|
118
|
-
&.left .arrow {
|
116
|
+
&.left > .arrow {
|
119
117
|
top: 50%;
|
120
|
-
right: -@
|
121
|
-
margin-top: -@
|
118
|
+
right: -@popover-arrow-outer-width;
|
119
|
+
margin-top: -@popover-arrow-outer-width;
|
122
120
|
border-right-width: 0;
|
123
|
-
border-left-color:
|
124
|
-
border-left-color: @
|
121
|
+
border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
122
|
+
border-left-color: @popover-arrow-outer-color;
|
125
123
|
&:after {
|
124
|
+
content: " ";
|
126
125
|
right: 1px;
|
127
126
|
border-right-width: 0;
|
128
|
-
border-left-color: @
|
129
|
-
bottom: -@
|
127
|
+
border-left-color: @popover-arrow-color;
|
128
|
+
bottom: -@popover-arrow-width;
|
130
129
|
}
|
131
130
|
}
|
132
|
-
|
133
131
|
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Print styles.
|
5
|
+
// Inlined to avoid the additional HTTP request: h5bp.com/r
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
@media print {
|
9
|
+
*,
|
10
|
+
*:before,
|
11
|
+
*:after {
|
12
|
+
background: transparent !important;
|
13
|
+
color: #000 !important; // Black prints faster: h5bp.com/s
|
14
|
+
box-shadow: none !important;
|
15
|
+
text-shadow: none !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
a,
|
19
|
+
a:visited {
|
20
|
+
text-decoration: underline;
|
21
|
+
}
|
22
|
+
|
23
|
+
a[href]:after {
|
24
|
+
content: " (" attr(href) ")";
|
25
|
+
}
|
26
|
+
|
27
|
+
abbr[title]:after {
|
28
|
+
content: " (" attr(title) ")";
|
29
|
+
}
|
30
|
+
|
31
|
+
// Don't show links that are fragment identifiers,
|
32
|
+
// or use the `javascript:` pseudo protocol
|
33
|
+
a[href^="#"]:after,
|
34
|
+
a[href^="javascript:"]:after {
|
35
|
+
content: "";
|
36
|
+
}
|
37
|
+
|
38
|
+
pre,
|
39
|
+
blockquote {
|
40
|
+
border: 1px solid #999;
|
41
|
+
page-break-inside: avoid;
|
42
|
+
}
|
43
|
+
|
44
|
+
thead {
|
45
|
+
display: table-header-group; // h5bp.com/t
|
46
|
+
}
|
47
|
+
|
48
|
+
tr,
|
49
|
+
img {
|
50
|
+
page-break-inside: avoid;
|
51
|
+
}
|
52
|
+
|
53
|
+
img {
|
54
|
+
max-width: 100% !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
p,
|
58
|
+
h2,
|
59
|
+
h3 {
|
60
|
+
orphans: 3;
|
61
|
+
widows: 3;
|
62
|
+
}
|
63
|
+
|
64
|
+
h2,
|
65
|
+
h3 {
|
66
|
+
page-break-after: avoid;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Bootstrap specific changes start
|
70
|
+
|
71
|
+
// Bootstrap components
|
72
|
+
.navbar {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
.btn,
|
76
|
+
.dropup > .btn {
|
77
|
+
> .caret {
|
78
|
+
border-top-color: #000 !important;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
.label {
|
82
|
+
border: 1px solid #000;
|
83
|
+
}
|
84
|
+
|
85
|
+
.table {
|
86
|
+
border-collapse: collapse !important;
|
87
|
+
|
88
|
+
td,
|
89
|
+
th {
|
90
|
+
background-color: #fff !important;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
.table-bordered {
|
94
|
+
th,
|
95
|
+
td {
|
96
|
+
border: 1px solid #ddd !important;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// Bootstrap specific changes end
|
101
|
+
}
|
@@ -3,120 +3,85 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
//
|
7
|
-
//
|
6
|
+
// Bar animations
|
7
|
+
// -------------------------
|
8
8
|
|
9
|
-
//
|
9
|
+
// WebKit
|
10
10
|
@-webkit-keyframes progress-bar-stripes {
|
11
11
|
from { background-position: 40px 0; }
|
12
12
|
to { background-position: 0 0; }
|
13
13
|
}
|
14
14
|
|
15
|
-
//
|
16
|
-
@-moz-keyframes progress-bar-stripes {
|
17
|
-
from { background-position: 40px 0; }
|
18
|
-
to { background-position: 0 0; }
|
19
|
-
}
|
20
|
-
|
21
|
-
// IE9
|
22
|
-
@-ms-keyframes progress-bar-stripes {
|
23
|
-
from { background-position: 40px 0; }
|
24
|
-
to { background-position: 0 0; }
|
25
|
-
}
|
26
|
-
|
27
|
-
// Opera
|
28
|
-
@-o-keyframes progress-bar-stripes {
|
29
|
-
from { background-position: 0 0; }
|
30
|
-
to { background-position: 40px 0; }
|
31
|
-
}
|
32
|
-
|
33
|
-
// Spec
|
15
|
+
// Spec and IE10+
|
34
16
|
@keyframes progress-bar-stripes {
|
35
17
|
from { background-position: 40px 0; }
|
36
18
|
to { background-position: 0 0; }
|
37
19
|
}
|
38
20
|
|
39
21
|
|
40
|
-
|
41
|
-
//
|
42
|
-
// --------
|
22
|
+
// Bar itself
|
23
|
+
// -------------------------
|
43
24
|
|
44
25
|
// Outer container
|
45
26
|
.progress {
|
46
27
|
overflow: hidden;
|
47
|
-
height: @
|
48
|
-
margin-bottom: @
|
49
|
-
|
28
|
+
height: @line-height-computed;
|
29
|
+
margin-bottom: @line-height-computed;
|
30
|
+
background-color: @progress-bg;
|
31
|
+
border-radius: @progress-border-radius;
|
50
32
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
51
|
-
.border-radius(@baseBorderRadius);
|
52
33
|
}
|
53
34
|
|
54
35
|
// Bar of progress
|
55
|
-
.progress
|
36
|
+
.progress-bar {
|
37
|
+
float: left;
|
56
38
|
width: 0%;
|
57
39
|
height: 100%;
|
58
|
-
|
59
|
-
|
60
|
-
|
40
|
+
font-size: @font-size-small;
|
41
|
+
line-height: @line-height-computed;
|
42
|
+
color: @progress-bar-color;
|
61
43
|
text-align: center;
|
62
|
-
|
63
|
-
#gradient > .vertical(#149bdf, #0480be);
|
44
|
+
background-color: @progress-bar-bg;
|
64
45
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
65
|
-
.box-sizing(border-box);
|
66
46
|
.transition(width .6s ease);
|
67
47
|
}
|
68
|
-
.progress .bar + .bar {
|
69
|
-
.box-shadow(~"inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)");
|
70
|
-
}
|
71
48
|
|
72
49
|
// Striped bars
|
73
|
-
|
74
|
-
|
75
|
-
|
50
|
+
//
|
51
|
+
// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
|
52
|
+
// `.progress-bar-striped` class, which you just add to an existing
|
53
|
+
// `.progress-bar`.
|
54
|
+
.progress-striped .progress-bar,
|
55
|
+
.progress-bar-striped {
|
56
|
+
#gradient > .striped();
|
57
|
+
background-size: 40px 40px;
|
76
58
|
}
|
77
59
|
|
78
60
|
// Call animation for the active one
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
61
|
+
//
|
62
|
+
// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
|
63
|
+
// `.progress-bar.active` approach.
|
64
|
+
.progress.active .progress-bar,
|
65
|
+
.progress-bar.active {
|
66
|
+
.animation(progress-bar-stripes 2s linear infinite);
|
85
67
|
}
|
86
68
|
|
87
69
|
|
70
|
+
// Variations
|
71
|
+
// -------------------------
|
88
72
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
// Danger (red)
|
93
|
-
.progress-danger .bar, .progress .bar-danger {
|
94
|
-
#gradient > .vertical(#ee5f5b, #c43c35);
|
95
|
-
}
|
96
|
-
.progress-danger.progress-striped .bar, .progress-striped .bar-danger {
|
97
|
-
#gradient > .striped(#ee5f5b);
|
73
|
+
.progress-bar-success {
|
74
|
+
.progress-bar-variant(@progress-bar-success-bg);
|
98
75
|
}
|
99
76
|
|
100
|
-
|
101
|
-
.progress-
|
102
|
-
#gradient > .vertical(#62c462, #57a957);
|
103
|
-
}
|
104
|
-
.progress-success.progress-striped .bar, .progress-striped .bar-success {
|
105
|
-
#gradient > .striped(#62c462);
|
77
|
+
.progress-bar-info {
|
78
|
+
.progress-bar-variant(@progress-bar-info-bg);
|
106
79
|
}
|
107
80
|
|
108
|
-
|
109
|
-
.progress-
|
110
|
-
#gradient > .vertical(#5bc0de, #339bb9);
|
111
|
-
}
|
112
|
-
.progress-info.progress-striped .bar, .progress-striped .bar-info {
|
113
|
-
#gradient > .striped(#5bc0de);
|
81
|
+
.progress-bar-warning {
|
82
|
+
.progress-bar-variant(@progress-bar-warning-bg);
|
114
83
|
}
|
115
84
|
|
116
|
-
|
117
|
-
.progress-
|
118
|
-
#gradient > .vertical(lighten(@orange, 15%), @orange);
|
119
|
-
}
|
120
|
-
.progress-warning.progress-striped .bar, .progress-striped .bar-warning {
|
121
|
-
#gradient > .striped(lighten(@orange, 15%));
|
85
|
+
.progress-bar-danger {
|
86
|
+
.progress-bar-variant(@progress-bar-danger-bg);
|
122
87
|
}
|