@@ -1057,7 +1057,7 @@ <h3 id=visibility-collapse><span class=secno>4.3. </span> Collapsed Items</h3>
10571057
10581058 < div id =visibility-collapse-example >
10591059 <!-- No, don't look at this source code, look at the other source code. -->
1060- < article > Interesting Stuff to Read </ article > < nav >
1060+ < nav >
10611061 < ul >
10621062 < li id =nav-about > < a href ="#nav-about "> About</ a >
10631063 < ul >
@@ -1086,7 +1086,7 @@ <h3 id=visibility-collapse><span class=secno>4.3. </span> Collapsed Items</h3>
10861086 < li > < a href ="# "> Events</ a >
10871087 </ ul >
10881088 </ ul >
1089- </ nav > </ div >
1089+ </ nav > < article > Interesting Stuff to Read </ article > </ div >
10901090 </ figure >
10911091
10921092 < pre >
@@ -1098,20 +1098,20 @@ <h3 id=visibility-collapse><span class=secno>4.3. </span> Collapsed Items</h3>
10981098<!-- --> #main {
10991099<!-- --> flex: 1; /* < a
11001100 href ="#flexibility "> Main takes up all remaining space</ a > */
1101+ <!-- --> order: 1 /* < a
1102+ href ="#order-property "> Place it after (to the right of) the navigation</ a > */
11011103<!-- --> min-width: 12em; /* < a
11021104 href ="#min-size-opt "> Optimize main content area sizing</ a > */
11031105<!-- --> }
1104- <!-- --> /* set up the menus as flexboxes so that visibility:collapse
1105- <!-- --> will work properly */
1106- <!-- --> nav > ul,
1107- <!-- --> nav > ul > li {
1108- <!-- --> display: flex;
1109- <!-- --> flex-flow: column;
1110- <!-- --> }
1111- <!-- --> /* dynamically collapse submenus when not targetted */
1112- <!-- --> nav > ul > li:not(:target):not(:hover) > ul {
1113- <!-- --> visibility: collapse;
1114- <!-- --> }
1106+ <!-- --> }
1107+ <!-- --> /* menu items use flex layout so that visibility:collapse will work */
1108+ <!-- --> nav > ul > li {
1109+ <!-- --> display: flex;
1110+ <!-- --> flex-flow: column;
1111+ <!-- --> }
1112+ <!-- --> /* dynamically collapse submenus when not targetted */
1113+ <!-- --> nav > ul > li:not(:target):not(:hover) > ul {
1114+ <!-- --> visibility: collapse;
11151115<!-- --> }
11161116<!-- --> </style>
11171117<!-- --> …
0 commit comments