kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-09-18 12:16 pm

[dw-free] a:hover doesn't apply to already visited links

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

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

Fix visited/hover/active precedence for Tabula Rasa, Drifting, Funky
Circles, and Negatives.

Patch by [personal profile] yvi.

Files modified:
  • bin/upgrading/s2layers/core2base/layout.s2
  • bin/upgrading/s2layers/drifting/layout.s2
  • bin/upgrading/s2layers/funkycircles/layout.s2
  • bin/upgrading/s2layers/negatives/layout.s2
--------------------------------------------------------------------------------
diff -r aae36b18c269 -r dfaf2ec070fe bin/upgrading/s2layers/core2base/layout.s2
--- a/bin/upgrading/s2layers/core2base/layout.s2	Fri Sep 18 06:20:05 2009 +0000
+++ b/bin/upgrading/s2layers/core2base/layout.s2	Fri Sep 18 07:16:06 2009 -0500
@@ -331,9 +331,9 @@ body {
 }
 
 a { $page_link_colors }
+a:visited { $page_link_visited_colors }
+a:hover { $page_link_hover_colors }
 a:active { $page_link_active_colors }
-a:hover { $page_link_hover_colors }
-a:visited { $page_link_visited_colors }
 
 .one-column #content { float: none; }
 .two-columns-left #content,
@@ -474,9 +474,9 @@ h2#subtitle {
 }
 
 .entry a { $entry_link_colors }
+.entry a:visited { $entry_link_visited_colors }
+.entry a:hover { $entry_link_hover_colors }
 .entry a:active { $entry_link_active_colors }
-.entry a:hover { $entry_link_hover_colors }
-.entry a:visited { $entry_link_visited_colors }
 
 
 .metadata ul { 
@@ -602,9 +602,9 @@ table.month td p {
 }
 
 .module a { $module_link_colors }
+.module a:visited { $module_link_visited_colors }
+.module a:hover { $module_link_hover_colors }
 .module a:active { $module_link_active_colors }
-.module a:hover { $module_link_hover_colors }
-.module a:visited { $module_link_visited_colors }
 
 .module h2 {
     $module_title_colors
diff -r aae36b18c269 -r dfaf2ec070fe bin/upgrading/s2layers/drifting/layout.s2
--- a/bin/upgrading/s2layers/drifting/layout.s2	Fri Sep 18 06:20:05 2009 +0000
+++ b/bin/upgrading/s2layers/drifting/layout.s2	Fri Sep 18 07:16:06 2009 -0500
@@ -318,9 +318,9 @@ function Page::print_default_stylesheet(
     ***************************************************************************/
 
     a { $page_link_colors }
+    a:visited { $page_link_visited_colors }
+    a:hover { text-decoration: none; }
     a:active { $page_link_active_colors }
-    a:hover { text-decoration: none; }
-    a:visited { $page_link_visited_colors }
 
     h2 {
         font-size: 0.9em;
diff -r aae36b18c269 -r dfaf2ec070fe bin/upgrading/s2layers/funkycircles/layout.s2
--- a/bin/upgrading/s2layers/funkycircles/layout.s2	Fri Sep 18 06:20:05 2009 +0000
+++ b/bin/upgrading/s2layers/funkycircles/layout.s2	Fri Sep 18 07:16:06 2009 -0500
@@ -337,8 +337,8 @@ h2#pagetitle {
     }
 
     .header a { $page_link_colors }
+    .header a:visited { $page_link_visited_colors }
     .header a:hover { $page_link_hover_colors }
-    .header a:visited { $page_link_visited_colors }
 
     .entry-title,
     .comment-title,
diff -r aae36b18c269 -r dfaf2ec070fe bin/upgrading/s2layers/negatives/layout.s2
--- a/bin/upgrading/s2layers/negatives/layout.s2	Fri Sep 18 06:20:05 2009 +0000
+++ b/bin/upgrading/s2layers/negatives/layout.s2	Fri Sep 18 07:16:06 2009 -0500
@@ -269,15 +269,15 @@ function Page::print_default_stylesheet(
         color:  $*color_page_link;
         outline: none;
         }
+    a:visited {
+        color: $*color_page_link_visited;
+    }
+    a:hover {
+        color: $*color_page_link_hover;
+        }
     a:active {
         color: $*color_entry_link_active;
         }
-    a:hover {
-        color: $*color_page_link_hover;
-        }
-    a:visited {
-        color: $*color_page_link_visited;
-    }
     img, img a {
         border: 0!important;
         }
@@ -326,14 +326,14 @@ function Page::print_default_stylesheet(
         font-weight:normal;
         padding-bottom:1px;
     }
+    #secondary a:visited {
+        color:$*color_module_link_visited;
+    }
     #secondary a:hover {
         color:$*color_module_link_hover;
     }
     #secondary a:active {
         color:$*color_module_link_active;
-    }
-    #secondary a:visited {
-        color:$*color_module_link_visited;
     }
     #secondary .module-header {
         border-bottom:1px solid $*color_module_border;
@@ -370,14 +370,14 @@ function Page::print_default_stylesheet(
     .entry a, .comment a {
         color: $*color_entry_link;
     }
+    .entry a:visited, .comment a:visited {
+        color: $*color_entry_link_visited;
+    }
     .entry a:hover, .comment a:hover {
         color: $*color_entry_link_hover;
     }
     .entry a:active, .comment a:active {
         color: $*color_entry_link_active;
-    }
-    .entry a:visited, .comment a:visited {
-        color: $*color_entry_link_visited;
     }
     .tag { margin: 10px 0; }
     .tag ul { display: inline; margin: 0; padding: 0; }
@@ -420,6 +420,10 @@ function Page::print_default_stylesheet(
         font-weight: normal;
         text-align: center;
     }
+    .entry-management-links a:visited, .comment-management-links a:visited,
+    .entry-interaction-links a:visited, .comment-interaction-links a:visited{
+        color: $*color_entry_interaction_links_visited;
+     }
     .entry-management-links a:hover, .comment-management-links a:hover, 
     .entry-interaction-links a:hover, .comment-interaction-links a:hover{
          color: $*color_entry_interaction_links_hover;
@@ -428,10 +432,6 @@ function Page::print_default_stylesheet(
     .entry-interaction-links a:active, .comment-interaction-links a:active{
         color: $*color_entry_interaction_links_active;
     }
-    .entry-management-links a:visited, .comment-management-links a:visited,
-    .entry-interaction-links a:visited, .comment-interaction-links a:visited{
-        color: $*color_entry_interaction_links_visited;
-     }
  
     .userlite-interaction-links ul, .entry-management-links ul, .comment-management-links ul {
         list-style: none;
--------------------------------------------------------------------------------