소스 검색

Use text decoration on the editor side.

Jeff Ong 4 년 전
부모
커밋
c399f0b234
3개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 2
      seedlet/assets/css/style-editor.css
  2. 0 0
      seedlet/assets/css/style-editor.css.map
  3. 4 2
      seedlet/assets/sass/blocks/file/_editor.scss

+ 4 - 2
seedlet/assets/css/style-editor.css

@@ -585,9 +585,11 @@ div[data-type="core/button"] {
 }
 
 .wp-block-file .wp-block-file__textlink {
-	border-bottom: 1px solid var(--global--color-secondary);
 	color: var(--global--color-primary);
-	text-decoration: none;
+	text-decoration: underline;
+	text-decoration-thickness: 1px;
+	text-underline-offset: 3px;
+	text-decoration-color: var(--global--color-secondary);
 }
 
 .wp-block-file .wp-block-file__button-richtext-wrapper {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
seedlet/assets/css/style-editor.css.map


+ 4 - 2
seedlet/assets/sass/blocks/file/_editor.scss

@@ -1,8 +1,10 @@
 .wp-block-file {
 	.wp-block-file__textlink {
-		border-bottom: 1px solid var(--global--color-secondary);
 		color: var(--global--color-primary);
-		text-decoration: none;
+		text-decoration: underline; 
+		text-decoration-thickness: 1px; // Not yet supported in Chrome
+		text-underline-offset: 3px;  // Not yet supported in Chrome
+		text-decoration-color: var(--global--color-secondary);
 	}
 
 	.wp-block-file__button-richtext-wrapper {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.