Sfoglia il codice sorgente

fixed nesting ul files issue

Heydon Pickering 8 anni fa
parent
commit
db59e0a845

+ 2 - 0
content/patterns/coding/file-trees.md

@@ -40,6 +40,8 @@ This is drawn in the following fashion, but preserves the underlying nested list
         * Level 3 file
         * Level 3 file
         * Level 3 file
+    * Level 2 file
+* Level 1 file
 {{% /fileTree %}}
 
 {{% warning %}}

+ 1 - 1
docs/css/styles.css

@@ -638,7 +638,7 @@ pre[class*=language-] code * {
   overflow: hidden;
 }
 
-.file-tree li:not(:last-child) ul::before {
+.file-tree li:not(:last-child) > ul::before {
   content: '\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020';
   position: absolute;
   left: 0;

+ 2 - 0
docs/patterns/coding/file-trees/index.html

@@ -333,7 +333,9 @@
 <li>Level 3 file</li>
 <li>Level 3 file</li>
 </ul></li>
+<li>Level 2 file</li>
 </ul></li>
+<li>Level 1 file</li>
 </ul>
 
 </div>

File diff suppressed because it is too large
+ 0 - 0
docs/service-worker.js


+ 1 - 1
themes/infusion/static/css/styles.css

@@ -638,7 +638,7 @@ pre[class*=language-] code * {
   overflow: hidden;
 }
 
-.file-tree li:not(:last-child) ul::before {
+.file-tree li:not(:last-child) > ul::before {
   content: '\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020\2502\0020';
   position: absolute;
   left: 0;

Some files were not shown because too many files changed in this diff