Jelajahi Sumber

Lettre: Navigation styling fixes (#7670)

* do not clear underline on hover

* do not clear underline for current item
Przemek Kuliga 1 tahun lalu
induk
melakukan
f939aa9b59
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      lettre/style.css

+ 2 - 3
lettre/style.css

@@ -153,8 +153,8 @@ input:not([type="submit"]):not([type="button"]):focus {
 /*
  * Refine mobile navigation styling.
  */
-.wp-block-navigation a:where(:not(.wp-element-button)):focus,
-.wp-block-pages-list__item:focus.wp-block-navigation a:where(:not(.wp-element-button)):focus {
+.wp-block-navigation li:not(.current-menu-item) a:where(:not(.wp-element-button)):focus:not(:hover),
+.wp-block-pages-list__item:focus.wp-block-navigation:not(.current-menu-item) a:where(:not(.wp-element-button)):focus:not(:hover) {
 	text-decoration: none !important;
 }
 
@@ -163,7 +163,6 @@ input:not([type="submit"]):not([type="button"]):focus {
 }
 
 @media screen and (max-width: 37.5em) {
-
 	.wp-block-pages-list__item {
 		text-align: right;
 	}