1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-12 21:29:59 +02:00
comprehensive-rust/speaker-notes.css
Martin Geisler 019e464ba8 Hide speaker note popup link on mobile
This uses the same media query as the rest of the mdbook theme:
devices with a width less than 1080px (mobiles) will not see the link
to open speaker notes in a new window.
2023-01-05 08:27:19 +01:00

31 lines
544 B
CSS

.content details {
background: var(--sidebar-bg);
color: var(--sidebar-fg) !important;
border-radius: 0.25em;
padding: 0.25em;
}
.content details summary h4 {
display: inline-block;
list-style: none;
font-weight: normal;
font-style: italic;
margin: 0.5em 0.25em;
cursor: pointer;
}
.content details summary h4:target::before {
margin-left: -40px;
width: 40px;
}
.content details summary a {
margin-left: 0.5em;
}
@media only screen and (max-width: 1080px) {
.content details summary a {
display: none;
}
}