CRM-21095: Alternate 'more Civi-ish' approach
authorlaryn <laryn@cedc.org>
Wed, 23 Aug 2017 14:24:51 +0000 (09:24 -0500)
committerlaryn <laryn@cedc.org>
Wed, 23 Aug 2017 14:24:51 +0000 (09:24 -0500)
CRM/Utils/System/Backdrop.php
css/backdrop.css [new file with mode: 0644]

index ee79b0071f897094da8482be4f4ec536a746b468..6531610b53af11680df23827d44c5b62d7afb9b3 100644 (file)
@@ -1016,4 +1016,13 @@ AND    u.status = 1
     }
   }
 
+  /**
+   * Append Backdrop CSS to coreResourcesList.
+   *
+   * @param array $list
+   */
+  public function appendCoreResources(&$list) {
+    $list[] = 'css/backdrop.css';
+  }
+  
 }
diff --git a/css/backdrop.css b/css/backdrop.css
new file mode 100644 (file)
index 0000000..0b718bd
--- /dev/null
@@ -0,0 +1,15 @@
+/* Styles specific to Backdrop CMS */
+
+/* Make status messages work with Backdrop styles */
+.crm-container .messages.status {
+  background-color: #E9EEBC;
+  padding: 0.9em 0.625em 1em 3.438em;
+  border: none;
+}
+
+@media only screen and (min-width:34em) {
+  .crm-container .messages.status {
+    padding-left: 4.375em;
+  }
+}
+