Travis build: 10 [cron]
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -2008,7 +2008,8 @@ li:not(:last-child) {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
.reference:hover > .popout-menu,
|
.reference:hover > .popout-menu,
|
||||||
.reference:focus > .popout-menu {
|
.reference:focus > .popout-menu,
|
||||||
|
.reference:focus-within > .popout-menu {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@ -2036,7 +2037,8 @@ li:not(:last-child) {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
[data-scope="popout-menu.md"] .reference:hover>.popout-menu,
|
[data-scope="popout-menu.md"] .reference:hover>.popout-menu,
|
||||||
[data-scope="popout-menu.md"] .reference:focus>.popout-menu {
|
[data-scope="popout-menu.md"] .reference:focus>.popout-menu,
|
||||||
|
[data-scope="popout-menu.md"] .reference:focus-within>.popout-menu {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -2048,6 +2050,8 @@ li:not(:last-child) {
|
|||||||
<li><code>visibility: hidden</code> hides the popout menu initially and allows for transitions (unlike <code>display: none</code>).</li>
|
<li><code>visibility: hidden</code> hides the popout menu initially and allows for transitions (unlike <code>display: none</code>).</li>
|
||||||
<li><code>.reference:hover > .popout-menu</code> means that when <code>.reference</code> is hovered over, select immediate children with a class of <code>.popout-menu</code> and change their <code>visibility</code> to <code>visible</code>,
|
<li><code>.reference:hover > .popout-menu</code> means that when <code>.reference</code> is hovered over, select immediate children with a class of <code>.popout-menu</code> and change their <code>visibility</code> to <code>visible</code>,
|
||||||
which shows the popout.</li>
|
which shows the popout.</li>
|
||||||
|
<li><code>.reference:focus > .popout-menu</code> means that when <code>.reference</code> is focused, the popout would be shown.</li>
|
||||||
|
<li><code>.reference:focus-within > .popout-menu</code> ensures that the popout is shown when the focus is <em>within</em> the reference.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<h4>Browser support</h4>
|
<h4>Browser support</h4>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@ -46,7 +46,7 @@ Reveals an interactive popout menu on hover and focus.
|
|||||||
4. `visibility: hidden` hides the popout menu initially and allows for transitions (unlike `display: none`).
|
4. `visibility: hidden` hides the popout menu initially and allows for transitions (unlike `display: none`).
|
||||||
5. `.reference:hover > .popout-menu` means that when `.reference` is hovered over, select immediate children with a class of `.popout-menu` and change their `visibility` to `visible`, which shows the popout.
|
5. `.reference:hover > .popout-menu` means that when `.reference` is hovered over, select immediate children with a class of `.popout-menu` and change their `visibility` to `visible`, which shows the popout.
|
||||||
6. `.reference:focus > .popout-menu` means that when `.reference` is focused, the popout would be shown.
|
6. `.reference:focus > .popout-menu` means that when `.reference` is focused, the popout would be shown.
|
||||||
7. `.reference:focus-within > .popout-menu` ensures that the popout is shown when the focus is *within* the reference.
|
7. `.reference:focus-within > .popout-menu` ensures that the popout is shown when the focus is _within_ the reference.
|
||||||
|
|
||||||
#### Browser support
|
#### Browser support
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user