diff options
Diffstat (limited to 'bower_components/bootstrap/less/panels.less')
-rwxr-xr-x | bower_components/bootstrap/less/panels.less | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/bower_components/bootstrap/less/panels.less b/bower_components/bootstrap/less/panels.less index 6d22dd96..2343b250 100755 --- a/bower_components/bootstrap/less/panels.less +++ b/bower_components/bootstrap/less/panels.less @@ -7,7 +7,7 @@ .panel { margin-bottom: @line-height-computed; background-color: @panel-bg; - border: 1px solid @panel-border; + border: 1px solid transparent; border-radius: @panel-border-radius; .box-shadow(0 1px 1px rgba(0,0,0,.05)); } @@ -15,8 +15,10 @@ // Panel contents .panel-body { padding: 15px; + .clearfix(); } + // List groups in panels // // By default, space out list group content from panel headings to account for @@ -47,11 +49,26 @@ } } + +// Tables in panels +// +// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and +// watch it go full width. + +.panel { + > .table { + margin-bottom: 0; + } + > .panel-body + .table { + border-top: 1px solid @table-border-color; + } +} + + // Optional heading .panel-heading { padding: 10px 15px; - background-color: @panel-heading-bg; - border-bottom: 1px solid @panel-border; + border-bottom: 1px solid transparent; .border-top-radius(@panel-border-radius - 1); } @@ -59,7 +76,7 @@ .panel-title { margin-top: 0; margin-bottom: 0; - font-size: (@font-size-base * 1.25); + font-size: ceil((@font-size-base * 1.125)); > a { color: inherit; } @@ -69,7 +86,7 @@ .panel-footer { padding: 10px 15px; background-color: @panel-footer-bg; - border-top: 1px solid @panel-border; + border-top: 1px solid @panel-inner-border; .border-bottom-radius(@panel-border-radius - 1); } @@ -93,13 +110,13 @@ .panel-heading { border-bottom: 0; + .panel-collapse .panel-body { - border-top: 1px solid @panel-border; + border-top: 1px solid @panel-inner-border; } } .panel-footer { border-top: 0; + .panel-collapse .panel-body { - border-bottom: 1px solid @panel-border; + border-bottom: 1px solid @panel-inner-border; } } @@ -111,6 +128,9 @@ // Contextual variations +.panel-default { + .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border); +} .panel-primary { .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border); } |