Fix CSS for public select2 elements regardless of parent theme box-sizing
authorRich Lott / Artful Robot <forums@artfulrobot.uk>
Tue, 8 Oct 2019 08:49:58 +0000 (10:49 +0200)
committerRich Lott / Artful Robot <forums@artfulrobot.uk>
Tue, 8 Oct 2019 08:49:58 +0000 (10:49 +0200)
css/civicrm.css

index 932661cfc60dc849bb38853382c266858c3c4342..ab287d8f7ab41389f99b723963a310dc9e9f3e81 100644 (file)
@@ -3659,9 +3659,11 @@ span.crm-status-icon {
 .crm-container.crm-public .select2-results {
   font-size: 14px;
 }
+.crm-container.crm-public .select2-container * {
+  box-sizing: content-box;
+}
 .crm-container.crm-public .select2-container .select2-choice {
-  padding: 5px 5px 5px 8px;
-  height: 35px;
+  padding: 0 5px 0 8px;
 }
 .crm-container.crm-public .select2-container-multi .select2-choices {
   padding: 4px;