Przeglądaj źródła

fix: ToC tap target size (Lighthouse)

George Cushen 3 lat temu
rodzic
commit
9ccb06531f
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      wowchemy/assets/scss/wowchemy/layouts/_book.scss

+ 3 - 2
wowchemy/assets/scss/wowchemy/layouts/_book.scss

@@ -238,15 +238,16 @@ ul.toc-top {
 
 #TableOfContents li {
   display: block;
+  margin-bottom: 8px;  // Lighthouse: tap targets must be at least 8px apart
 }
 
 #TableOfContents li a,
 .toc-top li a {
   display: block;
   padding: 0 1.5rem;  // Override default padding
-  margin-bottom: 8px;  // Lighthouse: tap targets must be at least 8px apart
   color: rgba(0, 0, 0, 0.65);
-  font-size: 0.7rem;
+  line-height: 1.75;  // Lighthouse: min tap target size
+  font-size: 16px;  // Lighthouse: min tap target size
 }
 
 .dark #TableOfContents li a,