瀏覽代碼

Dyad 2: Fix file button hover styles.

Laurel Fulford 6 年之前
父節點
當前提交
adcbac38c3
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 5 5
      dyad-2/css/blocks.css
  2. 1 1
      dyad-2/css/editor-blocks.css

+ 5 - 5
dyad-2/css/blocks.css

@@ -159,7 +159,7 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 /* File */
 
-.wp-block-file .wp-block-file__button {
+.wp-block-file a.wp-block-file__button {
 	background-color: #678db8;
 	border-color: #678db8;
 	border-radius: 0;
@@ -170,13 +170,13 @@ p.has-drop-cap:not(:focus)::first-letter {
 	text-transform: uppercase;
 }
 
-.wp-block-file .wp-block-file__button:hover,
-.wp-block-file .wp-block-file__button:focus {
-	background-color: inherit;
+.wp-block-file a.wp-block-file__button:hover,
+.wp-block-file a.wp-block-file__button:focus {
+	background-color: #678db8;
 	opacity: 0.75;
 }
 
-.wp-block-file .wp-block-file__button:active {
+.wp-block-file a.wp-block-file__button:active {
 	opacity: 0.9;
 }
 

+ 1 - 1
dyad-2/css/editor-blocks.css

@@ -321,7 +321,7 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 .wp-block-file .wp-block-file__button:hover,
 .wp-block-file .wp-block-file__button:focus {
-	background-color: inherit;
+	background-color: #678db8;
 	opacity: 0.75;
 }