Make merge CSS less specific and better integrated
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 25 Nov 2015 10:23:07 +0000 (10:23 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 25 Nov 2015 10:23:07 +0000 (10:23 +0000)
css/civicrm.css
templates/CRM/Contact/Form/Merge.tpl

index 100951216f9e2db33d735233f01262d5589c172f..3d4bf9dc7728515da7e4323e311f685ecf2d6db2 100644 (file)
@@ -3163,6 +3163,14 @@ div.m ul#civicrm-menu,
 }
 
 /* table row highlightng */
+.crm-container .crm-row-ok {
+  background-color: #EFFFE7;
+  border-bottom: 1px solid #ccc;
+}
+.crm-container .crm-row-error {
+  background-color: #FFECEC;
+  border-bottom: 1px solid #ccc;
+}
 .crm-container table.row-highlight tr:hover,
 .crm-container .crm-row-selected {
   background-color: #FFFFCC;
@@ -3173,18 +3181,6 @@ div.m ul#civicrm-menu,
 .crm-container .even.crm-row-selected {
   background-color: #fffdb2;
 }
-.crm-container table tr.merge-row-equal {
-  background-color: #EFFFE7;
-  border-bottom: 1px solid #ccc;
-}
-.crm-container table tr.merge-row-diff {
-  background-color: #FFECEC;
-  border-bottom: 1px solid #ccc;
-}
-.crm-container table tr.merge-row-equal.crm-row-selected,
-.crm-container table tr.merge-row-diff.crm-row-selected {
-  background-color: #fffdb2;
-}
 
 #crm-container .crm-socialnetwork {
   margin-top: 1em;
index dd1041ef323e0103d210814a697e9b2c6ed04b16..015c20a3ffa958fcb647407a2337976bbea08480 100644 (file)
@@ -85,9 +85,9 @@
         </td>
     {else}
       {if $row.main eq $row.other}
-         <tr class="merge-row-equal {cycle values="odd-row,even-row"}">
+         <tr class="merge-row-equal crm-row-ok {cycle values="odd-row,even-row"}">
       {else}
-         <tr class="merge-row-diff {cycle values="odd-row,even-row"}">
+         <tr class="crm-row-error {cycle values="odd-row,even-row"}">
       {/if}
         <td>
           {$row.title}