浏览代码

Change post content links to be underlined by default.

Jeff Ong 4 年之前
父节点
当前提交
29bf7d32f5
共有 4 个文件被更改,包括 20 次插入0 次删除
  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 {

文件差异内容过多而无法显示
+ 0 - 0
spearhead/style.css.map


部分文件因为文件数量过多而无法显示