twitter-bootstrap-rails 2.2.8 → 3.2.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 +82 -119
- data/Rakefile +4 -6
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +471 -366
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +137 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +88 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +107 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +205 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +147 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +243 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +110 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +153 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +125 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +399 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +48 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +4 -787
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +7 -5
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +8 -6
- data/app/helpers/modal_helper.rb +29 -21
- data/app/helpers/navbar_helper.rb +42 -30
- data/app/helpers/twitter_breadcrumbs_helper.rb +3 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +4 -4
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +7 -8
- 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 +22 -43
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +16 -31
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +10 -25
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +25 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +7 -7
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +7 -7
- data/lib/generators/bootstrap/themed/templates/index.html.erb +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +2 -2
- 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 +5 -6
- 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/{twitter-bootstrap-breadcrumbs.rb → breadcrumbs.rb} +24 -8
- data/lib/twitter/bootstrap/rails/engine.rb +5 -2
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +74 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +4 -2
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +157 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +7 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5797 -0
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/fontawesome.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/fontawesome/bordered-pulled.less +16 -0
- data/vendor/toolkit/fontawesome/core.less +9 -126
- data/vendor/toolkit/fontawesome/fixed-width.less +6 -0
- data/vendor/toolkit/fontawesome/font-awesome.less +9 -25
- data/vendor/toolkit/fontawesome/icons.less +503 -378
- data/vendor/toolkit/fontawesome/larger.less +13 -0
- data/vendor/toolkit/fontawesome/list.less +19 -0
- data/vendor/toolkit/fontawesome/mixins.less +14 -42
- data/vendor/toolkit/fontawesome/path.less +1 -1
- data/vendor/toolkit/fontawesome/rotated-flipped.less +9 -0
- data/vendor/toolkit/fontawesome/spinning.less +32 -0
- data/vendor/toolkit/fontawesome/stacked.less +20 -0
- data/vendor/toolkit/fontawesome/variables.less +511 -731
- data/vendor/toolkit/twitter/bootstrap/alerts.less +47 -58
- data/vendor/toolkit/twitter/bootstrap/badges.less +55 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +27 -39
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +168 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +101 -170
- data/vendor/toolkit/twitter/bootstrap/carousel.less +150 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +12 -3
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +115 -148
- data/vendor/toolkit/twitter/bootstrap/forms.less +401 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +233 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +166 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +48 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +132 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
- data/vendor/toolkit/twitter/bootstrap/mixins.less +36 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +52 -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 +29 -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 +23 -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/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 +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +542 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +425 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +46 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +70 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +248 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +61 -61
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +51 -73
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +34 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +120 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +171 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +260 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +26 -43
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +49 -24
- data/vendor/toolkit/twitter/bootstrap/type.less +208 -147
- data/vendor/toolkit/twitter/bootstrap/utilities.less +33 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +761 -215
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +128 -138
- 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/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- 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
@@ -1,123 +1,88 @@
|
|
1
1
|
//
|
2
2
|
// Pagination (multiple pages)
|
3
3
|
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Space out pagination from surrounding content
|
6
4
|
.pagination {
|
7
|
-
margin: @baseLineHeight 0;
|
8
|
-
}
|
9
|
-
|
10
|
-
.pagination ul {
|
11
|
-
// Allow for text-based alignment
|
12
5
|
display: inline-block;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
margin-bottom: 0;
|
17
|
-
// Visuals
|
18
|
-
.border-radius(@baseBorderRadius);
|
19
|
-
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
20
|
-
}
|
21
|
-
.pagination ul > li {
|
22
|
-
display: inline; // Remove list-style and block-level defaults
|
23
|
-
}
|
24
|
-
.pagination ul > li > a,
|
25
|
-
.pagination ul > li > span {
|
26
|
-
float: left; // Collapse white-space
|
27
|
-
padding: 4px 12px;
|
28
|
-
line-height: @baseLineHeight;
|
29
|
-
text-decoration: none;
|
30
|
-
background-color: @paginationBackground;
|
31
|
-
border: 1px solid @paginationBorder;
|
32
|
-
border-left-width: 0;
|
33
|
-
}
|
34
|
-
.pagination ul > li > a:hover,
|
35
|
-
.pagination ul > li > a:focus,
|
36
|
-
.pagination ul > .active > a,
|
37
|
-
.pagination ul > .active > span {
|
38
|
-
background-color: @paginationActiveBackground;
|
39
|
-
}
|
40
|
-
.pagination ul > .active > a,
|
41
|
-
.pagination ul > .active > span {
|
42
|
-
color: @grayLight;
|
43
|
-
cursor: default;
|
44
|
-
}
|
45
|
-
.pagination ul > .disabled > span,
|
46
|
-
.pagination ul > .disabled > a,
|
47
|
-
.pagination ul > .disabled > a:hover,
|
48
|
-
.pagination ul > .disabled > a:focus {
|
49
|
-
color: @grayLight;
|
50
|
-
background-color: transparent;
|
51
|
-
cursor: default;
|
52
|
-
}
|
53
|
-
.pagination ul > li:first-child > a,
|
54
|
-
.pagination ul > li:first-child > span {
|
55
|
-
border-left-width: 1px;
|
56
|
-
.border-left-radius(@baseBorderRadius);
|
57
|
-
}
|
58
|
-
.pagination ul > li:last-child > a,
|
59
|
-
.pagination ul > li:last-child > span {
|
60
|
-
.border-right-radius(@baseBorderRadius);
|
61
|
-
}
|
6
|
+
padding-left: 0;
|
7
|
+
margin: @line-height-computed 0;
|
8
|
+
border-radius: @border-radius-base;
|
62
9
|
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
position: relative;
|
15
|
+
float: left; // Collapse white-space
|
16
|
+
padding: @padding-base-vertical @padding-base-horizontal;
|
17
|
+
line-height: @line-height-base;
|
18
|
+
text-decoration: none;
|
19
|
+
color: @pagination-color;
|
20
|
+
background-color: @pagination-bg;
|
21
|
+
border: 1px solid @pagination-border;
|
22
|
+
margin-left: -1px;
|
23
|
+
}
|
24
|
+
&:first-child {
|
25
|
+
> a,
|
26
|
+
> span {
|
27
|
+
margin-left: 0;
|
28
|
+
.border-left-radius(@border-radius-base);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
&:last-child {
|
32
|
+
> a,
|
33
|
+
> span {
|
34
|
+
.border-right-radius(@border-radius-base);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
63
38
|
|
64
|
-
|
65
|
-
|
39
|
+
> li > a,
|
40
|
+
> li > span {
|
41
|
+
&:hover,
|
42
|
+
&:focus {
|
43
|
+
color: @pagination-hover-color;
|
44
|
+
background-color: @pagination-hover-bg;
|
45
|
+
border-color: @pagination-hover-border;
|
46
|
+
}
|
47
|
+
}
|
66
48
|
|
67
|
-
.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
49
|
+
> .active > a,
|
50
|
+
> .active > span {
|
51
|
+
&,
|
52
|
+
&:hover,
|
53
|
+
&:focus {
|
54
|
+
z-index: 2;
|
55
|
+
color: @pagination-active-color;
|
56
|
+
background-color: @pagination-active-bg;
|
57
|
+
border-color: @pagination-active-border;
|
58
|
+
cursor: default;
|
59
|
+
}
|
60
|
+
}
|
73
61
|
|
62
|
+
> .disabled {
|
63
|
+
> span,
|
64
|
+
> span:hover,
|
65
|
+
> span:focus,
|
66
|
+
> a,
|
67
|
+
> a:hover,
|
68
|
+
> a:focus {
|
69
|
+
color: @pagination-disabled-color;
|
70
|
+
background-color: @pagination-disabled-bg;
|
71
|
+
border-color: @pagination-disabled-border;
|
72
|
+
cursor: not-allowed;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
74
76
|
|
75
77
|
// Sizing
|
76
78
|
// --------------------------------------------------
|
77
79
|
|
78
80
|
// Large
|
79
|
-
.pagination-
|
80
|
-
|
81
|
-
ul > li > span {
|
82
|
-
padding: @paddingLarge;
|
83
|
-
font-size: @fontSizeLarge;
|
84
|
-
}
|
85
|
-
ul > li:first-child > a,
|
86
|
-
ul > li:first-child > span {
|
87
|
-
.border-left-radius(@borderRadiusLarge);
|
88
|
-
}
|
89
|
-
ul > li:last-child > a,
|
90
|
-
ul > li:last-child > span {
|
91
|
-
.border-right-radius(@borderRadiusLarge);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
// Small and mini
|
96
|
-
.pagination-mini,
|
97
|
-
.pagination-small {
|
98
|
-
ul > li:first-child > a,
|
99
|
-
ul > li:first-child > span {
|
100
|
-
.border-left-radius(@borderRadiusSmall);
|
101
|
-
}
|
102
|
-
ul > li:last-child > a,
|
103
|
-
ul > li:last-child > span {
|
104
|
-
.border-right-radius(@borderRadiusSmall);
|
105
|
-
}
|
81
|
+
.pagination-lg {
|
82
|
+
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
|
106
83
|
}
|
107
84
|
|
108
85
|
// Small
|
109
|
-
.pagination-
|
110
|
-
|
111
|
-
ul > li > span {
|
112
|
-
padding: @paddingSmall;
|
113
|
-
font-size: @fontSizeSmall;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
// Mini
|
117
|
-
.pagination-mini {
|
118
|
-
ul > li > a,
|
119
|
-
ul > li > span {
|
120
|
-
padding: @paddingMini;
|
121
|
-
font-size: @fontSizeMini;
|
122
|
-
}
|
86
|
+
.pagination-sm {
|
87
|
+
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
|
123
88
|
}
|
@@ -0,0 +1,248 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
background-color: @panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: @panel-border-radius;
|
12
|
+
.box-shadow(0 1px 1px rgba(0,0,0,.05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: @panel-body-padding;
|
18
|
+
&:extend(.clearfix all);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Optional heading
|
22
|
+
.panel-heading {
|
23
|
+
padding: @panel-heading-padding;
|
24
|
+
border-bottom: 1px solid transparent;
|
25
|
+
.border-top-radius((@panel-border-radius - 1));
|
26
|
+
|
27
|
+
> .dropdown .dropdown-toggle {
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Within heading, strip any `h*` tag of its default margins for spacing.
|
33
|
+
.panel-title {
|
34
|
+
margin-top: 0;
|
35
|
+
margin-bottom: 0;
|
36
|
+
font-size: ceil((@font-size-base * 1.125));
|
37
|
+
color: inherit;
|
38
|
+
|
39
|
+
> a {
|
40
|
+
color: inherit;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Optional footer (stays gray in every modifier class)
|
45
|
+
.panel-footer {
|
46
|
+
padding: @panel-footer-padding;
|
47
|
+
background-color: @panel-footer-bg;
|
48
|
+
border-top: 1px solid @panel-inner-border;
|
49
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// List groups in panels
|
54
|
+
//
|
55
|
+
// By default, space out list group content from panel headings to account for
|
56
|
+
// any kind of custom content between the two.
|
57
|
+
|
58
|
+
.panel {
|
59
|
+
> .list-group {
|
60
|
+
margin-bottom: 0;
|
61
|
+
|
62
|
+
.list-group-item {
|
63
|
+
border-width: 1px 0;
|
64
|
+
border-radius: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Add border top radius for first one
|
68
|
+
&:first-child {
|
69
|
+
.list-group-item:first-child {
|
70
|
+
border-top: 0;
|
71
|
+
.border-top-radius((@panel-border-radius - 1));
|
72
|
+
}
|
73
|
+
}
|
74
|
+
// Add border bottom radius for last one
|
75
|
+
&:last-child {
|
76
|
+
.list-group-item:last-child {
|
77
|
+
border-bottom: 0;
|
78
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
// Collapse space between when there's no additional content.
|
84
|
+
.panel-heading + .list-group {
|
85
|
+
.list-group-item:first-child {
|
86
|
+
border-top-width: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
.list-group + .panel-footer {
|
90
|
+
border-top-width: 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Tables in panels
|
94
|
+
//
|
95
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
96
|
+
// watch it go full width.
|
97
|
+
|
98
|
+
.panel {
|
99
|
+
> .table,
|
100
|
+
> .table-responsive > .table,
|
101
|
+
> .panel-collapse > .table {
|
102
|
+
margin-bottom: 0;
|
103
|
+
|
104
|
+
caption {
|
105
|
+
padding-left: @panel-body-padding;
|
106
|
+
padding-right: @panel-body-padding;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
// Add border top radius for first one
|
110
|
+
> .table:first-child,
|
111
|
+
> .table-responsive:first-child > .table:first-child {
|
112
|
+
.border-top-radius((@panel-border-radius - 1));
|
113
|
+
|
114
|
+
> thead:first-child,
|
115
|
+
> tbody:first-child {
|
116
|
+
> tr:first-child {
|
117
|
+
td:first-child,
|
118
|
+
th:first-child {
|
119
|
+
border-top-left-radius: (@panel-border-radius - 1);
|
120
|
+
}
|
121
|
+
td:last-child,
|
122
|
+
th:last-child {
|
123
|
+
border-top-right-radius: (@panel-border-radius - 1);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
// Add border bottom radius for last one
|
129
|
+
> .table:last-child,
|
130
|
+
> .table-responsive:last-child > .table:last-child {
|
131
|
+
.border-bottom-radius((@panel-border-radius - 1));
|
132
|
+
|
133
|
+
> tbody:last-child,
|
134
|
+
> tfoot:last-child {
|
135
|
+
> tr:last-child {
|
136
|
+
td:first-child,
|
137
|
+
th:first-child {
|
138
|
+
border-bottom-left-radius: (@panel-border-radius - 1);
|
139
|
+
}
|
140
|
+
td:last-child,
|
141
|
+
th:last-child {
|
142
|
+
border-bottom-right-radius: (@panel-border-radius - 1);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
> .panel-body + .table,
|
148
|
+
> .panel-body + .table-responsive {
|
149
|
+
border-top: 1px solid @table-border-color;
|
150
|
+
}
|
151
|
+
> .table > tbody:first-child > tr:first-child th,
|
152
|
+
> .table > tbody:first-child > tr:first-child td {
|
153
|
+
border-top: 0;
|
154
|
+
}
|
155
|
+
> .table-bordered,
|
156
|
+
> .table-responsive > .table-bordered {
|
157
|
+
border: 0;
|
158
|
+
> thead,
|
159
|
+
> tbody,
|
160
|
+
> tfoot {
|
161
|
+
> tr {
|
162
|
+
> th:first-child,
|
163
|
+
> td:first-child {
|
164
|
+
border-left: 0;
|
165
|
+
}
|
166
|
+
> th:last-child,
|
167
|
+
> td:last-child {
|
168
|
+
border-right: 0;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
> thead,
|
173
|
+
> tbody {
|
174
|
+
> tr:first-child {
|
175
|
+
> td,
|
176
|
+
> th {
|
177
|
+
border-bottom: 0;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
> tbody,
|
182
|
+
> tfoot {
|
183
|
+
> tr:last-child {
|
184
|
+
> td,
|
185
|
+
> th {
|
186
|
+
border-bottom: 0;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
> .table-responsive {
|
192
|
+
border: 0;
|
193
|
+
margin-bottom: 0;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
// Collapsable panels (aka, accordion)
|
199
|
+
//
|
200
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
201
|
+
// the help of our collapse JavaScript plugin.
|
202
|
+
|
203
|
+
.panel-group {
|
204
|
+
margin-bottom: @line-height-computed;
|
205
|
+
|
206
|
+
// Tighten up margin so it's only between panels
|
207
|
+
.panel {
|
208
|
+
margin-bottom: 0;
|
209
|
+
border-radius: @panel-border-radius;
|
210
|
+
+ .panel {
|
211
|
+
margin-top: 5px;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.panel-heading {
|
216
|
+
border-bottom: 0;
|
217
|
+
+ .panel-collapse > .panel-body {
|
218
|
+
border-top: 1px solid @panel-inner-border;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
.panel-footer {
|
222
|
+
border-top: 0;
|
223
|
+
+ .panel-collapse .panel-body {
|
224
|
+
border-bottom: 1px solid @panel-inner-border;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
// Contextual variations
|
231
|
+
.panel-default {
|
232
|
+
.panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
|
233
|
+
}
|
234
|
+
.panel-primary {
|
235
|
+
.panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
|
236
|
+
}
|
237
|
+
.panel-success {
|
238
|
+
.panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
|
239
|
+
}
|
240
|
+
.panel-info {
|
241
|
+
.panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
|
242
|
+
}
|
243
|
+
.panel-warning {
|
244
|
+
.panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
|
245
|
+
}
|
246
|
+
.panel-danger {
|
247
|
+
.panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
|
248
|
+
}
|
@@ -7,43 +7,37 @@
|
|
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
14
|
text-align: left; // Reset given new insertion method
|
15
|
-
background-color: @
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
border:
|
20
|
-
border: 1px solid rgba(0,0,0,.2);
|
21
|
-
.border-radius(6px);
|
15
|
+
background-color: @popover-bg;
|
16
|
+
background-clip: padding-box;
|
17
|
+
border: 1px solid @popover-fallback-border-color;
|
18
|
+
border: 1px solid @popover-border-color;
|
19
|
+
border-radius: @border-radius-large;
|
22
20
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
23
21
|
|
24
22
|
// Overrides for proper insertion
|
25
23
|
white-space: normal;
|
26
24
|
|
27
25
|
// 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: -
|
26
|
+
&.top { margin-top: -@popover-arrow-width; }
|
27
|
+
&.right { margin-left: @popover-arrow-width; }
|
28
|
+
&.bottom { margin-top: @popover-arrow-width; }
|
29
|
+
&.left { margin-left: -@popover-arrow-width; }
|
32
30
|
}
|
33
31
|
|
34
32
|
.popover-title {
|
35
33
|
margin: 0; // reset heading margin
|
36
34
|
padding: 8px 14px;
|
37
|
-
font-size:
|
35
|
+
font-size: @font-size-base;
|
38
36
|
font-weight: normal;
|
39
37
|
line-height: 18px;
|
40
|
-
background-color: @
|
41
|
-
border-bottom: 1px solid darken(@
|
42
|
-
|
43
|
-
|
44
|
-
&:empty {
|
45
|
-
display: none;
|
46
|
-
}
|
38
|
+
background-color: @popover-title-bg;
|
39
|
+
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
40
|
+
border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
|
47
41
|
}
|
48
42
|
|
49
43
|
.popover-content {
|
@@ -54,79 +48,85 @@
|
|
54
48
|
//
|
55
49
|
// .arrow is outer, .arrow:after is inner
|
56
50
|
|
57
|
-
.popover .arrow
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
51
|
+
.popover > .arrow {
|
52
|
+
&,
|
53
|
+
&:after {
|
54
|
+
position: absolute;
|
55
|
+
display: block;
|
56
|
+
width: 0;
|
57
|
+
height: 0;
|
58
|
+
border-color: transparent;
|
59
|
+
border-style: solid;
|
60
|
+
}
|
65
61
|
}
|
66
|
-
.popover .arrow {
|
67
|
-
border-width: @
|
62
|
+
.popover > .arrow {
|
63
|
+
border-width: @popover-arrow-outer-width;
|
68
64
|
}
|
69
|
-
.popover .arrow:after {
|
70
|
-
border-width: @
|
65
|
+
.popover > .arrow:after {
|
66
|
+
border-width: @popover-arrow-width;
|
71
67
|
content: "";
|
72
68
|
}
|
73
69
|
|
74
70
|
.popover {
|
75
|
-
&.top .arrow {
|
71
|
+
&.top > .arrow {
|
76
72
|
left: 50%;
|
77
|
-
margin-left: -@
|
73
|
+
margin-left: -@popover-arrow-outer-width;
|
78
74
|
border-bottom-width: 0;
|
79
|
-
border-top-color:
|
80
|
-
border-top-color: @
|
81
|
-
bottom: -@
|
75
|
+
border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
76
|
+
border-top-color: @popover-arrow-outer-color;
|
77
|
+
bottom: -@popover-arrow-outer-width;
|
82
78
|
&:after {
|
79
|
+
content: " ";
|
83
80
|
bottom: 1px;
|
84
|
-
margin-left: -@
|
81
|
+
margin-left: -@popover-arrow-width;
|
85
82
|
border-bottom-width: 0;
|
86
|
-
border-top-color: @
|
83
|
+
border-top-color: @popover-arrow-color;
|
87
84
|
}
|
88
85
|
}
|
89
|
-
&.right .arrow {
|
86
|
+
&.right > .arrow {
|
90
87
|
top: 50%;
|
91
|
-
left: -@
|
92
|
-
margin-top: -@
|
88
|
+
left: -@popover-arrow-outer-width;
|
89
|
+
margin-top: -@popover-arrow-outer-width;
|
93
90
|
border-left-width: 0;
|
94
|
-
border-right-color:
|
95
|
-
border-right-color: @
|
91
|
+
border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: @popover-arrow-outer-color;
|
96
93
|
&:after {
|
94
|
+
content: " ";
|
97
95
|
left: 1px;
|
98
|
-
bottom: -@
|
96
|
+
bottom: -@popover-arrow-width;
|
99
97
|
border-left-width: 0;
|
100
|
-
border-right-color: @
|
98
|
+
border-right-color: @popover-arrow-color;
|
101
99
|
}
|
102
100
|
}
|
103
|
-
&.bottom .arrow {
|
101
|
+
&.bottom > .arrow {
|
104
102
|
left: 50%;
|
105
|
-
margin-left: -@
|
103
|
+
margin-left: -@popover-arrow-outer-width;
|
106
104
|
border-top-width: 0;
|
107
|
-
border-bottom-color:
|
108
|
-
border-bottom-color: @
|
109
|
-
top: -@
|
105
|
+
border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
106
|
+
border-bottom-color: @popover-arrow-outer-color;
|
107
|
+
top: -@popover-arrow-outer-width;
|
110
108
|
&:after {
|
109
|
+
content: " ";
|
111
110
|
top: 1px;
|
112
|
-
margin-left: -@
|
111
|
+
margin-left: -@popover-arrow-width;
|
113
112
|
border-top-width: 0;
|
114
|
-
border-bottom-color: @
|
113
|
+
border-bottom-color: @popover-arrow-color;
|
115
114
|
}
|
116
115
|
}
|
117
116
|
|
118
|
-
&.left .arrow {
|
117
|
+
&.left > .arrow {
|
119
118
|
top: 50%;
|
120
|
-
right: -@
|
121
|
-
margin-top: -@
|
119
|
+
right: -@popover-arrow-outer-width;
|
120
|
+
margin-top: -@popover-arrow-outer-width;
|
122
121
|
border-right-width: 0;
|
123
|
-
border-left-color:
|
124
|
-
border-left-color: @
|
122
|
+
border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: @popover-arrow-outer-color;
|
125
124
|
&:after {
|
125
|
+
content: " ";
|
126
126
|
right: 1px;
|
127
127
|
border-right-width: 0;
|
128
|
-
border-left-color: @
|
129
|
-
bottom: -@
|
128
|
+
border-left-color: @popover-arrow-color;
|
129
|
+
bottom: -@popover-arrow-width;
|
130
130
|
}
|
131
131
|
}
|
132
132
|
|