feat(theme): don't print navbar when disabled

pull/3123/head
userquin 2 years ago
parent 56b3ce5032
commit cf105336a1

@ -44,7 +44,8 @@ const classes = computed(() => {
return { return {
VPLocalNav: true, VPLocalNav: true,
fixed: empty.value, fixed: empty.value,
'reached-top': y.value >= navHeight.value 'reached-top': y.value >= navHeight.value,
'screen-only': frontmatter.value.navbar === false,
} }
}) })
</script> </script>

@ -250,3 +250,9 @@ mjx-container {
mjx-container > svg { mjx-container > svg {
margin: auto; margin: auto;
} }
@media print {
.screen-only {
display: none !important;
}
}

Loading…
Cancel
Save