twitter-bootstrap-rails 2.2.3 → 3.2.2

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.

Files changed (204) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +460 -185
  3. data/Rakefile +7 -1
  4. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  5. data/app/assets/fonts/fontawesome-webfont.svg +640 -0
  6. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  7. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  8. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  9. data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
  10. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  11. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  12. data/app/assets/javascripts/twitter/bootstrap.js +12 -0
  13. data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
  14. data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
  15. data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
  16. data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
  17. data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
  18. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
  19. data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
  20. data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
  21. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
  22. data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
  23. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
  24. data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
  25. data/{vendor → app}/assets/javascripts/twitter/bootstrap_ujs.js +0 -0
  26. data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -0
  27. data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +2026 -0
  28. data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -0
  29. data/app/helpers/badge_label_helper.rb +16 -0
  30. data/app/helpers/bootstrap_flash_helper.rb +20 -6
  31. data/app/helpers/form_errors_helper.rb +22 -0
  32. data/app/helpers/glyph_helper.rb +13 -5
  33. data/app/helpers/modal_helper.rb +37 -20
  34. data/app/helpers/navbar_helper.rb +209 -0
  35. data/app/helpers/twitter_breadcrumbs_helper.rb +11 -2
  36. data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +9 -9
  37. data/lib/generators/bootstrap/install/install_generator.rb +13 -8
  38. data/lib/generators/bootstrap/install/templates/bootstrap.coffee +2 -3
  39. data/lib/generators/bootstrap/install/templates/bootstrap.js +2 -3
  40. data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +14 -13
  41. data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +11 -5
  42. data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
  43. data/lib/generators/bootstrap/layout/templates/layout.html.erb +34 -58
  44. data/lib/generators/bootstrap/layout/templates/layout.html.haml +25 -44
  45. data/lib/generators/bootstrap/layout/templates/layout.html.slim +20 -39
  46. data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
  47. data/lib/generators/bootstrap/themed/templates/_form.html.erb +30 -10
  48. data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -8
  49. data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -9
  50. data/lib/generators/bootstrap/themed/templates/edit.html.erb +1 -2
  51. data/lib/generators/bootstrap/themed/templates/edit.html.haml +1 -1
  52. data/lib/generators/bootstrap/themed/templates/edit.html.slim +2 -2
  53. data/lib/generators/bootstrap/themed/templates/index.html.erb +3 -3
  54. data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -3
  55. data/lib/generators/bootstrap/themed/templates/index.html.slim +5 -6
  56. data/lib/generators/bootstrap/themed/templates/new.html.erb +1 -2
  57. data/lib/generators/bootstrap/themed/templates/new.html.haml +1 -1
  58. data/lib/generators/bootstrap/themed/templates/new.html.slim +2 -2
  59. data/lib/generators/bootstrap/themed/templates/show.html.erb +6 -8
  60. data/lib/generators/bootstrap/themed/templates/show.html.haml +5 -5
  61. data/lib/generators/bootstrap/themed/templates/show.html.slim +7 -8
  62. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
  63. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
  64. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
  65. data/lib/generators/bootstrap/themed/themed_generator.rb +4 -4
  66. data/lib/twitter-bootstrap-rails.rb +4 -4
  67. data/lib/twitter/bootstrap/rails/breadcrumbs.rb +69 -0
  68. data/lib/twitter/bootstrap/rails/engine.rb +17 -7
  69. data/lib/twitter/bootstrap/rails/version.rb +1 -1
  70. data/spec/lib/breadcrumbs_spec.rb +99 -0
  71. data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +30 -0
  72. data/spec/lib/twitter_bootstrap_rails/bootstrap_flash_helper_spec.rb +128 -0
  73. data/spec/lib/twitter_bootstrap_rails/form_errors_helper_spec.rb +148 -0
  74. data/spec/lib/twitter_bootstrap_rails/glyph_helper_spec.rb +24 -0
  75. data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +62 -0
  76. data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +396 -0
  77. data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +49 -0
  78. data/spec/spec_helper.rb +21 -0
  79. data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5990 -195
  80. data/vendor/static-source/bootstrap.less +0 -1
  81. data/vendor/static-source/fontawesome.less +7 -6
  82. data/vendor/static-source/sprites.less +3 -3
  83. data/vendor/toolkit/fontawesome/bordered-pulled.less +16 -0
  84. data/vendor/toolkit/fontawesome/core.less +11 -0
  85. data/vendor/toolkit/fontawesome/fixed-width.less +6 -0
  86. data/vendor/toolkit/fontawesome/font-awesome.less +17 -0
  87. data/vendor/toolkit/fontawesome/icons.less +552 -0
  88. data/vendor/toolkit/fontawesome/larger.less +13 -0
  89. data/vendor/toolkit/fontawesome/list.less +19 -0
  90. data/vendor/toolkit/fontawesome/mixins.less +25 -0
  91. data/vendor/toolkit/fontawesome/path.less +14 -0
  92. data/vendor/toolkit/fontawesome/rotated-flipped.less +20 -0
  93. data/vendor/toolkit/fontawesome/spinning.less +29 -0
  94. data/vendor/toolkit/fontawesome/stacked.less +20 -0
  95. data/vendor/toolkit/fontawesome/variables.less +561 -0
  96. data/vendor/toolkit/twitter/bootstrap/alerts.less +47 -58
  97. data/vendor/toolkit/twitter/bootstrap/badges.less +55 -0
  98. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +26 -39
  99. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
  100. data/vendor/toolkit/twitter/bootstrap/button-groups.less +168 -152
  101. data/vendor/toolkit/twitter/bootstrap/buttons.less +101 -170
  102. data/vendor/toolkit/twitter/bootstrap/carousel.less +150 -65
  103. data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
  104. data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
  105. data/vendor/toolkit/twitter/bootstrap/component-animations.less +12 -3
  106. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +124 -146
  107. data/vendor/toolkit/twitter/bootstrap/forms.less +401 -547
  108. data/vendor/toolkit/twitter/bootstrap/glyphicons.less +234 -0
  109. data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
  110. data/vendor/toolkit/twitter/bootstrap/input-groups.less +166 -0
  111. data/vendor/toolkit/twitter/bootstrap/jumbotron.less +48 -0
  112. data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
  113. data/vendor/toolkit/twitter/bootstrap/list-group.less +132 -0
  114. data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
  115. data/vendor/toolkit/twitter/bootstrap/mixins.less +36 -699
  116. data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
  117. data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +8 -0
  118. data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
  119. data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +52 -0
  120. data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
  121. data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
  122. data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
  123. data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
  124. data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
  125. data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
  126. data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
  127. data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
  128. data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
  129. data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +29 -0
  130. data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
  131. data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
  132. data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
  133. data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +23 -0
  134. data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
  135. data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
  136. data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
  137. data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
  138. data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
  139. data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
  140. data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
  141. data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
  142. data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +8 -0
  143. data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
  144. data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
  145. data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
  146. data/vendor/toolkit/twitter/bootstrap/navbar.less +542 -384
  147. data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
  148. data/vendor/toolkit/twitter/bootstrap/normalize.less +425 -0
  149. data/vendor/toolkit/twitter/bootstrap/pager.less +46 -34
  150. data/vendor/toolkit/twitter/bootstrap/pagination.less +70 -105
  151. data/vendor/toolkit/twitter/bootstrap/panels.less +248 -0
  152. data/vendor/toolkit/twitter/bootstrap/popovers.less +61 -61
  153. data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
  154. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +51 -73
  155. data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +34 -0
  156. data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
  157. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +120 -23
  158. data/vendor/toolkit/twitter/bootstrap/tables.less +171 -182
  159. data/vendor/toolkit/twitter/bootstrap/theme.less +260 -0
  160. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +26 -43
  161. data/vendor/toolkit/twitter/bootstrap/tooltip.less +49 -24
  162. data/vendor/toolkit/twitter/bootstrap/type.less +208 -147
  163. data/vendor/toolkit/twitter/bootstrap/utilities.less +33 -7
  164. data/vendor/toolkit/twitter/bootstrap/variables.less +761 -215
  165. data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
  166. metadata +199 -92
  167. data/lib/generators/bootstrap/partial/templates/_navbar.html.erb +0 -13
  168. data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +0 -42
  169. data/test/lib/breadcrumbs_test.rb +0 -75
  170. data/test/test_helper.rb +0 -8
  171. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  172. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  173. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  174. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  175. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  176. data/vendor/assets/javascripts/twitter/bootstrap.js +0 -13
  177. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
  178. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
  179. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
  180. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
  181. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
  182. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -165
  183. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
  184. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
  185. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
  186. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
  187. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -353
  188. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
  189. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
  190. data/vendor/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -531
  191. data/vendor/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +0 -146
  192. data/vendor/toolkit/fontawesome-ie7.less +0 -350
  193. data/vendor/toolkit/fontawesome.less +0 -532
  194. data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
  195. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
  196. data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
  197. data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
  198. data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
  199. data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
  200. data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
  201. data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
  202. data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
  203. data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
  204. 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
- .ie7-inline-block();
14
- // Reset default ul styles
15
- margin-left: 0;
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
- // Alignment
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
- .pagination-centered {
68
- text-align: center;
69
- }
70
- .pagination-right {
71
- text-align: right;
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-large {
80
- ul > li > a,
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-small {
110
- ul > li > a,
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: @zindexPopover;
10
+ z-index: @zindex-popover;
11
11
  display: none;
12
- max-width: 276px;
12
+ max-width: @popover-max-width;
13
13
  padding: 1px;
14
14
  text-align: left; // Reset given new insertion method
15
- background-color: @popoverBackground;
16
- -webkit-background-clip: padding-box;
17
- -moz-background-clip: padding;
18
- background-clip: padding-box;
19
- border: 1px solid #ccc;
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: -10px; }
29
- &.right { margin-left: 10px; }
30
- &.bottom { margin-top: 10px; }
31
- &.left { margin-left: -10px; }
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: 14px;
35
+ font-size: @font-size-base;
38
36
  font-weight: normal;
39
37
  line-height: 18px;
40
- background-color: @popoverTitleBackground;
41
- border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
42
- .border-radius(5px 5px 0 0);
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
- .popover .arrow:after {
59
- position: absolute;
60
- display: block;
61
- width: 0;
62
- height: 0;
63
- border-color: transparent;
64
- border-style: solid;
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: @popoverArrowOuterWidth;
62
+ .popover > .arrow {
63
+ border-width: @popover-arrow-outer-width;
68
64
  }
69
- .popover .arrow:after {
70
- border-width: @popoverArrowWidth;
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: -@popoverArrowOuterWidth;
73
+ margin-left: -@popover-arrow-outer-width;
78
74
  border-bottom-width: 0;
79
- border-top-color: #999; // IE8 fallback
80
- border-top-color: @popoverArrowOuterColor;
81
- bottom: -@popoverArrowOuterWidth;
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: -@popoverArrowWidth;
81
+ margin-left: -@popover-arrow-width;
85
82
  border-bottom-width: 0;
86
- border-top-color: @popoverArrowColor;
83
+ border-top-color: @popover-arrow-color;
87
84
  }
88
85
  }
89
- &.right .arrow {
86
+ &.right > .arrow {
90
87
  top: 50%;
91
- left: -@popoverArrowOuterWidth;
92
- margin-top: -@popoverArrowOuterWidth;
88
+ left: -@popover-arrow-outer-width;
89
+ margin-top: -@popover-arrow-outer-width;
93
90
  border-left-width: 0;
94
- border-right-color: #999; // IE8 fallback
95
- border-right-color: @popoverArrowOuterColor;
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: -@popoverArrowWidth;
96
+ bottom: -@popover-arrow-width;
99
97
  border-left-width: 0;
100
- border-right-color: @popoverArrowColor;
98
+ border-right-color: @popover-arrow-color;
101
99
  }
102
100
  }
103
- &.bottom .arrow {
101
+ &.bottom > .arrow {
104
102
  left: 50%;
105
- margin-left: -@popoverArrowOuterWidth;
103
+ margin-left: -@popover-arrow-outer-width;
106
104
  border-top-width: 0;
107
- border-bottom-color: #999; // IE8 fallback
108
- border-bottom-color: @popoverArrowOuterColor;
109
- top: -@popoverArrowOuterWidth;
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: -@popoverArrowWidth;
111
+ margin-left: -@popover-arrow-width;
113
112
  border-top-width: 0;
114
- border-bottom-color: @popoverArrowColor;
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: -@popoverArrowOuterWidth;
121
- margin-top: -@popoverArrowOuterWidth;
119
+ right: -@popover-arrow-outer-width;
120
+ margin-top: -@popover-arrow-outer-width;
122
121
  border-right-width: 0;
123
- border-left-color: #999; // IE8 fallback
124
- border-left-color: @popoverArrowOuterColor;
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: @popoverArrowColor;
129
- bottom: -@popoverArrowWidth;
128
+ border-left-color: @popover-arrow-color;
129
+ bottom: -@popover-arrow-width;
130
130
  }
131
131
  }
132
132