Selaa lähdekoodia

Change post content links to be underlined by default.

Jeff Ong 4 vuotta sitten
vanhempi
commit
29bf7d32f5
4 muutettua tiedostoa jossa 20 lisäystä ja 0 poistoa
  1. 6 0
      spearhead/assets/sass/_text.scss
  2. 7 0
      spearhead/style-rtl.css
  3. 7 0
      spearhead/style.css
  4. 0 0
      spearhead/style.css.map

+ 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 {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
spearhead/style.css.map


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä