3 // --------------------------------------------------
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));
17 padding: @panel-body-padding;
18 &:extend(.clearfix all);
23 padding: @panel-heading-padding;
24 border-bottom: 1px solid transparent;
25 .border-top-radius((@panel-border-radius - 1));
27 > .dropdown .dropdown-toggle {
32 // Within heading, strip any `h*` tag of its default margins for spacing.
36 font-size: ceil((@font-size-base * 1.125));
48 // Optional footer (stays gray in every modifier class)
50 padding: @panel-footer-padding;
51 background-color: @panel-footer-bg;
52 border-top: 1px solid @panel-inner-border;
53 .border-bottom-radius((@panel-border-radius - 1));
57 // List groups in panels
59 // By default, space out list group content from panel headings to account for
60 // any kind of custom content between the two.
64 > .panel-collapse > .list-group {
72 // Add border top radius for first one
74 .list-group-item:first-child {
76 .border-top-radius((@panel-border-radius - 1));
79 // Add border bottom radius for last one
81 .list-group-item:last-child {
83 .border-bottom-radius((@panel-border-radius - 1));
88 // Collapse space between when there's no additional content.
89 .panel-heading + .list-group {
90 .list-group-item:first-child {
94 .list-group + .panel-footer {
100 // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
101 // watch it go full width.
105 > .table-responsive > .table,
106 > .panel-collapse > .table {
110 padding-left: @panel-body-padding;
111 padding-right: @panel-body-padding;
114 // Add border top radius for first one
115 > .table:first-child,
116 > .table-responsive:first-child > .table:first-child {
117 .border-top-radius((@panel-border-radius - 1));
120 > tbody:first-child {
122 border-top-left-radius: (@panel-border-radius - 1);
123 border-top-right-radius: (@panel-border-radius - 1);
127 border-top-left-radius: (@panel-border-radius - 1);
131 border-top-right-radius: (@panel-border-radius - 1);
136 // Add border bottom radius for last one
138 > .table-responsive:last-child > .table:last-child {
139 .border-bottom-radius((@panel-border-radius - 1));
144 border-bottom-left-radius: (@panel-border-radius - 1);
145 border-bottom-right-radius: (@panel-border-radius - 1);
149 border-bottom-left-radius: (@panel-border-radius - 1);
153 border-bottom-right-radius: (@panel-border-radius - 1);
158 > .panel-body + .table,
159 > .panel-body + .table-responsive,
160 > .table + .panel-body,
161 > .table-responsive + .panel-body {
162 border-top: 1px solid @table-border-color;
164 > .table > tbody:first-child > tr:first-child th,
165 > .table > tbody:first-child > tr:first-child td {
169 > .table-responsive > .table-bordered {
204 > .table-responsive {
211 // Collapsable panels (aka, accordion)
213 // Wrap a series of panels in `.panel-group` to turn them into an accordion with
214 // the help of our collapse JavaScript plugin.
217 margin-bottom: @line-height-computed;
219 // Tighten up margin so it's only between panels
222 border-radius: @panel-border-radius;
232 + .panel-collapse > .panel-body,
233 + .panel-collapse > .list-group {
234 border-top: 1px solid @panel-inner-border;
240 + .panel-collapse .panel-body {
241 border-bottom: 1px solid @panel-inner-border;
247 // Contextual variations
249 .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
252 .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
255 .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
258 .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
261 .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
264 .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);