From 237640c70697ffa0605770dee625d9e3c6abf479 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 23:36:25 -0700 Subject: Drop the accordion for the panel * Deletes the accordion.less file * Extends the panel to be collapsible with our JS plugin * Supports panel color variations --- dist/css/bootstrap.css | 79 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 71 insertions(+), 8 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 5ab29f216..136bd9f5b 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -2589,7 +2589,6 @@ a.list-group-item:focus { } .panel { - padding: 15px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #dddddd; @@ -2598,8 +2597,12 @@ a.list-group-item:focus { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } +.panel-body { + padding: 15px; +} + .panel .list-group { - margin: 15px -15px -15px; + margin-bottom: 0; } .panel .list-group .list-group-item { @@ -2615,17 +2618,12 @@ a.list-group-item:focus { border-bottom: 0; } -.panel-heading + .list-group { - margin-top: -15px; -} - .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel-heading { padding: 10px 15px; - margin: -15px -15px 15px; background-color: #f5f5f5; border-bottom: 1px solid #dddddd; border-top-right-radius: 3px; @@ -2644,13 +2642,38 @@ a.list-group-item:focus { .panel-footer { padding: 10px 15px; - margin: 15px -15px -15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } +.panel-group .panel { + margin-bottom: 0; + overflow: hidden; + border-radius: 4px; +} + +.panel-group .panel + .panel { + margin-top: 5px; +} + +.panel-group .panel-heading { + border-bottom: 0; +} + +.panel-group .panel-heading + .panel-collapse .panel-body { + border-top: 1px solid #dddddd; +} + +.panel-group .panel-footer { + border-top: 0; +} + +.panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #dddddd; +} + .panel-primary { border-color: #428bca; } @@ -2661,6 +2684,14 @@ a.list-group-item:focus { border-color: #428bca; } +.panel-primary .panel-heading + .panel-collapse .panel-body { + border-top-color: #428bca; +} + +.panel-primary .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #428bca; +} + .panel-success { border-color: #d6e9c6; } @@ -2671,6 +2702,14 @@ a.list-group-item:focus { border-color: #d6e9c6; } +.panel-success .panel-heading + .panel-collapse .panel-body { + border-top-color: #d6e9c6; +} + +.panel-success .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #d6e9c6; +} + .panel-warning { border-color: #fbeed5; } @@ -2681,6 +2720,14 @@ a.list-group-item:focus { border-color: #fbeed5; } +.panel-warning .panel-heading + .panel-collapse .panel-body { + border-top-color: #fbeed5; +} + +.panel-warning .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #fbeed5; +} + .panel-danger { border-color: #eed3d7; } @@ -2691,6 +2738,14 @@ a.list-group-item:focus { border-color: #eed3d7; } +.panel-danger .panel-heading + .panel-collapse .panel-body { + border-top-color: #eed3d7; +} + +.panel-danger .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #eed3d7; +} + .panel-info { border-color: #bce8f1; } @@ -2701,6 +2756,14 @@ a.list-group-item:focus { border-color: #bce8f1; } +.panel-info .panel-heading + .panel-collapse .panel-body { + border-top-color: #bce8f1; +} + +.panel-info .panel-footer + .panel-collapse .panel-body { + border-bottom-color: #bce8f1; +} + .well { min-height: 20px; padding: 19px; -- cgit v1.2.3 From b0ab806dcc3c5d64a80f34acefeb3ac75e860b33 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 23:44:50 -0700 Subject: fix negative indenting in button group for nested button groups --- dist/css/bootstrap.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 5ab29f216..66a62ae04 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -3421,7 +3421,10 @@ button.close { outline: none; } -.btn-group .btn + .btn { +.btn-group .btn + .btn, +.btn-group .btn + .btn-group, +.btn-group .btn-group + .btn, +.btn-group .btn-group + .btn-group { margin-left: -1px; } -- cgit v1.2.3 From f15f259876d77004fadf5b5937af5ab6b5eabb8e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 13 Aug 2013 09:59:38 -0700 Subject: derp --- dist/css/bootstrap.css | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 66a62ae04..91b66ec7a 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -3551,28 +3551,52 @@ button.close { border-bottom-width: 5px; } -.btn-group-vertical > .btn { +.btn-group-vertical > .btn, +.btn-group-vertical > .btn-group { display: block; float: none; width: 100%; max-width: 100%; } -.btn-group-vertical > .btn + .btn { +.btn-group-vertical .btn + .btn, +.btn-group-vertical .btn + .btn-group, +.btn-group-vertical .btn-group + .btn, +.btn-group-vertical .btn-group + .btn-group { margin-top: -1px; + margin-left: 0; } -.btn-group-vertical .btn:not(:first-child):not(:last-child) { +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } -.btn-group-vertical .btn:first-child:not(:last-child) { +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } -.btn-group-vertical .btn:last-child:not(:first-child) { +.btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; + border-bottom-left-radius: 4px; + border-top-left-radius: 0; +} + +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0; +} + +.btn-group-vertical > .btn-group:first-child > .btn:last-child, +.btn-group-vertical > .btn-group:first-child > .dropdown-toggle { + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; +} + +.btn-group-vertical > .btn-group:last-child > .btn:first-child { + border-top-right-radius: 0; + border-bottom-left-radius: 4px; border-top-left-radius: 0; } -- cgit v1.2.3 From 69a3e9b4d07cdaa281525c067f11ea83e1863f1b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 13 Aug 2013 10:24:18 -0700 Subject: enable button groups in vertical button groups --- dist/css/bootstrap.css | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 91b66ec7a..324fdd754 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -3559,10 +3559,34 @@ button.close { max-width: 100%; } -.btn-group-vertical .btn + .btn, -.btn-group-vertical .btn + .btn-group, -.btn-group-vertical .btn-group + .btn, -.btn-group-vertical .btn-group + .btn-group { +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after { + display: table; + content: " "; +} + +.btn-group-vertical > .btn-group:after { + clear: both; +} + +.btn-group-vertical > .btn-group:before, +.btn-group-vertical > .btn-group:after { + display: table; + content: " "; +} + +.btn-group-vertical > .btn-group:after { + clear: both; +} + +.btn-group-vertical > .btn-group > .btn { + float: none; +} + +.btn-group-vertical > .btn + .btn, +.btn-group-vertical > .btn + .btn-group, +.btn-group-vertical > .btn-group + .btn, +.btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } @@ -3589,14 +3613,12 @@ button.close { .btn-group-vertical > .btn-group:first-child > .btn:last-child, .btn-group-vertical > .btn-group:first-child > .dropdown-toggle { - border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child > .btn:first-child { border-top-right-radius: 0; - border-bottom-left-radius: 4px; border-top-left-radius: 0; } -- cgit v1.2.3 From 270af4dda31692eb22d48d56db5c98a0c89f4c28 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 13 Aug 2013 13:16:56 -0700 Subject: fixes #9431: specify font-size in dropdown menus to avoid inheritance issues --- dist/css/bootstrap.css | 1 + 1 file changed, 1 insertion(+) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index cccd9f1a6..682b6d530 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -2420,6 +2420,7 @@ textarea.input-group-lg > .input-group-btn > .btn { min-width: 160px; padding: 5px 0; margin: 2px 0 0; + font-size: 14px; list-style: none; background-color: #ffffff; border: 1px solid #cccccc; -- cgit v1.2.3