3 // --------------------------------------------------
8 margin-bottom: $line-height-computed;
9 background-color: $panel-bg;
10 border: 1px solid transparent;
11 border-radius: $panel-border-radius;
12 @include box-shadow(0 1px 1px rgba(0,0,0,.05));
17 padding: $panel-body-padding;
23 padding: $panel-heading-padding;
24 border-bottom: 1px solid transparent;
25 @include 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 @include 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 @include border-top-radius(($panel-border-radius - 1));
80 // Add border bottom radius for last one
82 .list-group-item:last-child {
84 @include border-bottom-radius(($panel-border-radius - 1));
88 > .panel-heading + .panel-collapse > .list-group {
89 .list-group-item:first-child {
90 @include border-top-radius(0);
94 // Collapse space between when there's no additional content.
95 .panel-heading + .list-group {
96 .list-group-item:first-child {
100 .list-group + .panel-footer {
106 // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
107 // watch it go full width.
111 > .table-responsive > .table,
112 > .panel-collapse > .table {
116 padding-left: $panel-body-padding;
117 padding-right: $panel-body-padding;
120 // Add border top radius for first one
121 > .table:first-child,
122 > .table-responsive:first-child > .table:first-child {
123 @include border-top-radius(($panel-border-radius - 1));
126 > tbody:first-child {
128 border-top-left-radius: ($panel-border-radius - 1);
129 border-top-right-radius: ($panel-border-radius - 1);
133 border-top-left-radius: ($panel-border-radius - 1);
137 border-top-right-radius: ($panel-border-radius - 1);
142 // Add border bottom radius for last one
144 > .table-responsive:last-child > .table:last-child {
145 @include border-bottom-radius(($panel-border-radius - 1));
150 border-bottom-left-radius: ($panel-border-radius - 1);
151 border-bottom-right-radius: ($panel-border-radius - 1);
155 border-bottom-left-radius: ($panel-border-radius - 1);
159 border-bottom-right-radius: ($panel-border-radius - 1);
164 > .panel-body + .table,
165 > .panel-body + .table-responsive,
166 > .table + .panel-body,
167 > .table-responsive + .panel-body {
168 border-top: 1px solid $table-border-color;
170 > .table > tbody:first-child > tr:first-child th,
171 > .table > tbody:first-child > tr:first-child td {
175 > .table-responsive > .table-bordered {
210 > .table-responsive {
217 // Collapsible panels (aka, accordion)
219 // Wrap a series of panels in `.panel-group` to turn them into an accordion with
220 // the help of our collapse JavaScript plugin.
223 margin-bottom: $line-height-computed;
225 // Tighten up margin so it's only between panels
228 border-radius: $panel-border-radius;
238 + .panel-collapse > .panel-body,
239 + .panel-collapse > .list-group {
240 border-top: 1px solid $panel-inner-border;
246 + .panel-collapse .panel-body {
247 border-bottom: 1px solid $panel-inner-border;
253 // Contextual variations
255 @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
258 @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
261 @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
264 @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
267 @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
270 @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);