Removes accordion body border when there shouldn't be one
authorNicol <vingle@users.noreply.github.com>
Wed, 6 Dec 2023 18:17:27 +0000 (18:17 +0000)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 18:17:27 +0000 (18:17 +0000)
Civi has two styles of accordions: with a border around it and without. This commit removes a third style – a border around half which isn't intentional and is a byproduct of the new html.

css/civicrm.css

index d4d5dbbeec8366d294c9d6c80bacfed0763b18ef..326a91959d08af3683703e5b01b9590d138577a0 100644 (file)
@@ -2312,7 +2312,8 @@ div.crm-master-accordion-header a.helpicon {
 
 /* Accordion bodies */
 
-.crm-container .crm-accordion-body {
+.crm-container .crm-accordion-wrapper .crm-accordion-body,
+.crm-container details.crm-accordion-bold .crm-accordion-body {
   border-radius: 0 0 4px 4px;
   border: 1px solid #70716b;
   border-top: 0;
@@ -2323,13 +2324,15 @@ div.crm-master-accordion-header a.helpicon {
   border-color: #e8e8de;
 }
 
-.crm-container .crm-master-accordion-header+.crm-accordion-body {
+.crm-container .crm-master-accordion-header+.crm-accordion-body,
+.crm-accordion-wrapper.crm-accordion-light {
   border: none;
   padding: 0;
 }
 
 #crm-container .widget-content .crm-accordion-body,
-.crm-container .crm-accordion-body.padded {
+.crm-container .crm-accordion-body.padded,
+.crm-container details.padded {
   padding-left: .5em;
   padding-right: .5em;
 }