Jelajahi Sumber

Dyad 2: Fix file button hover styles.

Laurel Fulford 6 tahun lalu
induk
melakukan
adcbac38c3
2 mengubah file dengan 6 tambahan dan 6 penghapusan
  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;
 }