Bug 1188070 - Fix the closebutton -moz-image-region for Win8 and Win10. r=philipp
authorRichard Marti <richard.marti@gmail.com>
Mon, 27 Jul 2015 21:03:59 +0200
changeset 23044 e2e12c62ea7e44868e79a732dac2b07c85f12842
parent 23043 5a7b45efb096c40146f1750337123901acc4a2c1
child 23045 b152d30ce818ad0a1333533e1faeff1492e92a66
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs1188070
Bug 1188070 - Fix the closebutton -moz-image-region for Win8 and Win10. r=philipp
calendar/base/themes/windows/calendar-unifinder.css
calendar/base/themes/windows/today-pane.css
--- a/calendar/base/themes/windows/calendar-unifinder.css
+++ b/calendar/base/themes/windows/calendar-unifinder.css
@@ -75,8 +75,23 @@
   }
 
   #unifinder-search-field:not(:-moz-lwtheme)[focused],
   #unifinder-task-edit-field:not(:-moz-lwtheme)[focused] {
     background-color: hsla(0, 0%, 100%, 1);
     border-color: #4595e5;
   }
 }
+
+@media (-moz-os-version: windows-win8),
+       (-moz-os-version: windows-win10) {
+  .unifinder-closebutton {
+    -moz-image-region: rect(0 20px 20px 0);
+  }
+
+  .unifinder-closebutton:hover {
+    -moz-image-region: rect(0 40px 20px 20px);
+  }
+
+  .unifinder-closebutton:hover:active {
+    -moz-image-region: rect(0 60px 20px 40px);
+  }
+}
--- a/calendar/base/themes/windows/today-pane.css
+++ b/calendar/base/themes/windows/today-pane.css
@@ -88,8 +88,25 @@
       background-clip: padding-box;
     }
   }
 
   #today-pane-panel .folderview-cycler {
     margin-top: -1px;
   }
 }
+
+@media (-moz-os-version: windows-win8),
+       (-moz-os-version: windows-win10) {
+  .today-closebutton {
+    padding-top: 0;
+    padding-bottom: 0;
+    -moz-image-region: rect(0 20px 20px 0);
+  }
+
+  .today-closebutton:hover {
+    -moz-image-region: rect(0 40px 20px 20px);
+  }
+
+  .today-closebutton:hover:active {
+    -moz-image-region: rect(0 60px 20px 40px);
+  }
+}