Browse Source

Redhill: Reverse color on entry title link, Normal: Black, Hover: Red

Thomas Guillot 6 years ago
parent
commit
7c1a283e48
3 changed files with 116 additions and 60 deletions
  1. 24 16
      redhill/sass/_extra-child-theme.scss
  2. 46 22
      redhill/style-rtl.css
  3. 46 22
      redhill/style.css

+ 24 - 16
redhill/sass/_extra-child-theme.scss

@@ -164,19 +164,6 @@ a {
 	}
 	}
 }
 }
 
 
-// Set entry title vertical margins
-article .entry-header .entry-title,
-.page-title {
-	font-family: #{map-deep-get($config-global, "font", "family", "primary")};
-	margin-top: map-deep-get($config-global, "spacing", "vertical");
-	margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
-}
-
-// Set content font-family
-.entry-content {
-	font-family: #{map-deep-get($config-global, "font", "family", "primary")};
-}
-
 // Center common elements
 // Center common elements
 .site-branding,
 .site-branding,
 .site-info,
 .site-info,
@@ -247,10 +234,31 @@ table,
 }
 }
 
 
 .entry-footer {
 .entry-footer {
-	border-top: 1px solid map-deep-get($config-global, "color", "border", "default");
+	border-top: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
   font-family: #{map-deep-get($config-global, "font", "family", "secondary")};
   font-family: #{map-deep-get($config-global, "font", "family", "secondary")};
-	font-size: map-deep-get($config-global, "font", "size", "xs");
-	padding-top: map-deep-get($config-global, "spacing", "unit");
+	font-size: #{map-deep-get($config-global, "font", "size", "xs")};
+	padding-top: #{map-deep-get($config-global, "spacing", "unit")};
+}
+
+article .entry-header .entry-title,
+.page-title {
+	font-family: #{map-deep-get($config-global, "font", "family", "primary")};
+	margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
+	margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
+
+  a {
+    color: inherit;
+
+    &:active,
+    &:focus,
+    &:hover {
+      color: #{map-deep-get($config-global, "color", "primary", "default")};
+    }
+  }
+}
+
+.entry-content {
+	font-family: #{map-deep-get($config-global, "font", "family", "primary")};
 }
 }
 
 
 // Post Navigation
 // Post Navigation

+ 46 - 22
redhill/style-rtl.css

@@ -346,17 +346,6 @@ a {
 	}
 	}
 }
 }
 
 
-article .entry-header .entry-title,
-.page-title {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-	margin-top: 32px;
-	margin-bottom: 64px;
-}
-
-.entry-content {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-}
-
 .site-branding,
 .site-branding,
 .site-info,
 .site-info,
 .main-navigation,
 .main-navigation,
@@ -429,6 +418,29 @@ table th,
 	padding-top: 16px;
 	padding-top: 16px;
 }
 }
 
 
+article .entry-header .entry-title,
+.page-title {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	margin-top: 32px;
+	margin-bottom: 64px;
+}
+
+article .entry-header .entry-title a,
+.page-title a {
+	color: inherit;
+}
+
+article .entry-header .entry-title a:active, article .entry-header .entry-title a:focus, article .entry-header .entry-title a:hover,
+.page-title a:active,
+.page-title a:focus,
+.page-title a:hover {
+	color: #CA2017;
+}
+
+.entry-content {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+}
+
 .post-navigation a {
 .post-navigation a {
 	color: #222222;
 	color: #222222;
 }
 }
@@ -3546,17 +3558,6 @@ a {
 	}
 	}
 }
 }
 
 
-article .entry-header .entry-title,
-.page-title {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-	margin-top: 32px;
-	margin-bottom: 64px;
-}
-
-.entry-content {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-}
-
 .site-branding,
 .site-branding,
 .site-info,
 .site-info,
 .main-navigation,
 .main-navigation,
@@ -3629,6 +3630,29 @@ table th,
 	padding-top: 16px;
 	padding-top: 16px;
 }
 }
 
 
+article .entry-header .entry-title,
+.page-title {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	margin-top: 32px;
+	margin-bottom: 64px;
+}
+
+article .entry-header .entry-title a,
+.page-title a {
+	color: inherit;
+}
+
+article .entry-header .entry-title a:active, article .entry-header .entry-title a:focus, article .entry-header .entry-title a:hover,
+.page-title a:active,
+.page-title a:focus,
+.page-title a:hover {
+	color: #CA2017;
+}
+
+.entry-content {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+}
+
 .post-navigation a {
 .post-navigation a {
 	color: #222222;
 	color: #222222;
 }
 }

+ 46 - 22
redhill/style.css

@@ -346,17 +346,6 @@ a {
 	}
 	}
 }
 }
 
 
-article .entry-header .entry-title,
-.page-title {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-	margin-top: 32px;
-	margin-bottom: 64px;
-}
-
-.entry-content {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-}
-
 .site-branding,
 .site-branding,
 .site-info,
 .site-info,
 .main-navigation,
 .main-navigation,
@@ -429,6 +418,29 @@ table th,
 	padding-top: 16px;
 	padding-top: 16px;
 }
 }
 
 
+article .entry-header .entry-title,
+.page-title {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	margin-top: 32px;
+	margin-bottom: 64px;
+}
+
+article .entry-header .entry-title a,
+.page-title a {
+	color: inherit;
+}
+
+article .entry-header .entry-title a:active, article .entry-header .entry-title a:focus, article .entry-header .entry-title a:hover,
+.page-title a:active,
+.page-title a:focus,
+.page-title a:hover {
+	color: #CA2017;
+}
+
+.entry-content {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+}
+
 .post-navigation a {
 .post-navigation a {
 	color: #222222;
 	color: #222222;
 }
 }
@@ -3551,17 +3563,6 @@ a {
 	}
 	}
 }
 }
 
 
-article .entry-header .entry-title,
-.page-title {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-	margin-top: 32px;
-	margin-bottom: 64px;
-}
-
-.entry-content {
-	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
-}
-
 .site-branding,
 .site-branding,
 .site-info,
 .site-info,
 .main-navigation,
 .main-navigation,
@@ -3634,6 +3635,29 @@ table th,
 	padding-top: 16px;
 	padding-top: 16px;
 }
 }
 
 
+article .entry-header .entry-title,
+.page-title {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	margin-top: 32px;
+	margin-bottom: 64px;
+}
+
+article .entry-header .entry-title a,
+.page-title a {
+	color: inherit;
+}
+
+article .entry-header .entry-title a:active, article .entry-header .entry-title a:focus, article .entry-header .entry-title a:hover,
+.page-title a:active,
+.page-title a:focus,
+.page-title a:hover {
+	color: #CA2017;
+}
+
+.entry-content {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+}
+
 .post-navigation a {
 .post-navigation a {
 	color: #222222;
 	color: #222222;
 }
 }