ソースを参照

Merge pull request #2546 from Automattic/fix/2533

Spearhead: Fix link color and hover states
Ben Dwyer 4 年 前
コミット
5bafd6ba3a

+ 8 - 2
spearhead/assets/sass/_text.scss

@@ -1,7 +1,13 @@
-a {
+.has-link-color a, a {
     border-bottom: none;
+    transition: all 0.1s ease;
+
+    &:hover {
+        color: var( --global--color-primary-hover );
+        border-bottom: 1px solid var( --global--color-primary-hover );
+    }
 }
 
 .entry-content a {
     font-weight: 500;
-}
+}

+ 7 - 1
spearhead/style-rtl.css

@@ -109,8 +109,14 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	width: fit-content;
 }
 
-a {
+.has-link-color a, a {
 	border-bottom: none;
+	transition: all 0.1s ease;
+}
+
+.has-link-color a:hover, a:hover {
+	color: var(--global--color-primary-hover);
+	border-bottom: 1px solid var(--global--color-primary-hover);
 }
 
 .entry-content a {

+ 7 - 1
spearhead/style.css

@@ -109,8 +109,14 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	width: fit-content;
 }
 
-a {
+.has-link-color a, a {
 	border-bottom: none;
+	transition: all 0.1s ease;
+}
+
+.has-link-color a:hover, a:hover {
+	color: var(--global--color-primary-hover);
+	border-bottom: 1px solid var(--global--color-primary-hover);
 }
 
 .entry-content a {

ファイルの差分が大きいため隠しています
+ 0 - 0
spearhead/style.css.map


+ 1 - 1
spearhead/variables.css

@@ -76,7 +76,7 @@
 @media ( prefers-color-scheme: dark ) {
 	:root {
 		--global--color-primary: #DB0042;
-		--global--color-primary-hover: #DB0042;
+		--global--color-primary-hover: #ffffff;
 		--global--color-secondary: #c0c0c0;
 		--global--color-secondary-hover: #cccccc;
 		--global--color-foreground: #f0f0f0;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません