fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-06-20 01:10 am

[dw-free] New Style: Five AM by winterfish

[commit: http://hg.dwscoalition.org/dw-free/rev/4b5284bd85f1]

http://bugs.dwscoalition.org/show_bug.cgi?id=3668

Misc fixes:
-- Calendar module: the hover link color wasn't being applied.

-- Archive: apply calendar hover color to the whole cell because there's
also a hover background color so text could become unreadable.

-- Modules: use standard visited/hover/active link colors on links with
accent color.

-- Search module: make the search button have the same height as the search
box.

-- Archive page -> days w/ entries: create props to make sure text is always
visible on background color and distinguishable from links.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/fiveam/layout.s2
  • bin/upgrading/s2layers/fiveam/themes.s2
--------------------------------------------------------------------------------
diff -r c71c12db4298 -r 4b5284bd85f1 bin/upgrading/s2layers/fiveam/layout.s2
--- a/bin/upgrading/s2layers/fiveam/layout.s2	Mon Jun 20 09:01:25 2011 +0800
+++ b/bin/upgrading/s2layers/fiveam/layout.s2	Mon Jun 20 09:07:48 2011 +0800
@@ -40,13 +40,15 @@
     property Color color_comment_interaction_links { des = "Comment interaction links color"; }
     property Color color_comment_interaction_links_border { des = "Comment interaction links border color"; }
     property Color color_module_accent { des = "Module accent color"; }
-    property Color color_calendar_background { des = "Calendar background color"; }
-    property Color color_calendar_background_hover { des = "Calendar hover background color"; }
+    property Color color_calendar_background { des = "Calendar background color on days with entries"; }
+    property Color color_calendar_background_hover { des = "Calendar hover background color on days with entries"; }
     property Color color_calendar_border { des = "Calendar border color"; }
-    property Color color_calendar_link { des = "Calendar link color"; }
-    property Color color_calendar_link_active { des = "Calendar active link color"; }
-    property Color color_calendar_link_hover { des = "Calendar hover link color"; }
-    property Color color_calendar_link_visited { des = "Calendar visited link color"; }
+    property Color color_calendar_link { des = "Calendar link color on days with entries"; }
+    property Color color_calendar_link_active { des = "Calendar active link color on days with entries"; }
+    property Color color_calendar_link_hover { des = "Calendar hover link color on days with entries"; }
+    property Color color_calendar_link_visited { des = "Calendar visited link color on days with entries"; }
+    property Color color_calendar_text { des = "Calendar text color on days with entries"; }
+    property Color color_calendar_text_hover { des = "Calendar hover text color on days with entries"; }
 }
 
 ##===============================
@@ -762,6 +764,7 @@
 
 .month-wrapper .day-has-entries {
     background: $*color_calendar_background;
+    color: $*color_calendar_text;
     }
 
 .month-wrapper .day-has-entries a {
@@ -770,13 +773,14 @@
 
 .month-wrapper .day-has-entries:hover {
     background: $*color_calendar_background_hover;
+    color: $*color_calendar_text_hover;
     }
 
 .month-wrapper .day-has-entries a:visited {
     color: $*color_calendar_link_visited;
     }
 
-.month-wrapper .day-has-entries a:hover {
+.month-wrapper .day-has-entries:hover p a {
     color: $*color_calendar_link_hover;
     }
 
@@ -1019,12 +1023,6 @@
     color: $*color_calendar_link_active;
     }
 
-.module-calendar td a:hover,
-.module-powered a:hover,
-.manage-tags-link a:hover {
-    color: $*color_module_link_hover;
-    }
-
 .module-tags_multilevel li {
     list-style-type: none;
     margin-left: 0;
@@ -1056,12 +1054,32 @@
     }
 
 .module-powered a,
-.manage-tags-link a, .manage-link a {
+.manage-tags-link a,
+.manage-link a {
     color: $*color_module_accent;
     }
 
+.module-powered a:visited,
+.manage-tags-link a:visited,
+.manage-link a:visited {
+    color: $*color_module_link_visited;
+    }
+
+.module-powered a:hover,
+.manage-tags-link a:hover,
+.manage-link a:hover {
+    color: $*color_module_link_hover;
+    }
+
+.module-powered a:active,
+.manage-tags-link a:active,
+.manage-link a:active {
+    color: $*color_module_link_active;
+    }
+
 .module-search .search-button {
     margin-left: .2em;
+    padding: .05em;
     }
 
 .module-search .search-box {
diff -r c71c12db4298 -r 4b5284bd85f1 bin/upgrading/s2layers/fiveam/themes.s2
--- a/bin/upgrading/s2layers/fiveam/themes.s2	Mon Jun 20 09:01:25 2011 +0800
+++ b/bin/upgrading/s2layers/fiveam/themes.s2	Mon Jun 20 09:07:48 2011 +0800
@@ -50,6 +50,8 @@
 set color_calendar_border = "#ccc";
 set color_calendar_link = "#c33";
 set color_calendar_link_hover = "#93c9d2";
+set color_calendar_text = "#444";
+set color_calendar_text_hover = "#444";
 
 ##===============================
 ## Images
--------------------------------------------------------------------------------