Explorar o código

Change post content links to be underlined by default.

Jeff Ong %!s(int64=4) %!d(string=hai) anos
pai
achega
29bf7d32f5

+ 6 - 0
spearhead/assets/sass/_text.scss

@@ -8,6 +8,12 @@
     }
 }
 
+.wp-block a, // Target the editor link styles also.
 .entry-content a {
     font-weight: var(--global--link-font-weight);
+	border-color: var( --global--color-primary ); // Links inside the post content must be underlined.
+
+    &:hover:not(.wp-block-button__link) {
+        border-bottom: 1px solid transparent;
+    }
 }

+ 7 - 0
spearhead/style-rtl.css

@@ -202,8 +202,15 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	border-bottom: 1px solid var(--global--color-primary-hover);
 }
 
+.wp-block a,
 .entry-content a {
 	font-weight: var(--global--link-font-weight);
+	border-color: var(--global--color-primary);
+}
+
+.wp-block a:hover:not(.wp-block-button__link),
+.entry-content a:hover:not(.wp-block-button__link) {
+	border-bottom: 1px solid transparent;
 }
 
 .has-main-navigation .site-header {

+ 7 - 0
spearhead/style.css

@@ -202,8 +202,15 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	border-bottom: 1px solid var(--global--color-primary-hover);
 }
 
+.wp-block a,
 .entry-content a {
 	font-weight: var(--global--link-font-weight);
+	border-color: var(--global--color-primary);
+}
+
+.wp-block a:hover:not(.wp-block-button__link),
+.entry-content a:hover:not(.wp-block-button__link) {
+	border-bottom: 1px solid transparent;
 }
 
 .has-main-navigation .site-header {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
spearhead/style.css.map


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio