Browse documentation
Reference / Variants & accessibility
Print, orientation, and pointer
Change presentation for printed output, the shape of the viewport, or the precision of the primary pointer.
Working example
Preview controls
Choose your paper stock before printing.
In a print preview the interactive controls disappear. A coarse pointer receives more padding around the disclosure.
<details class="rounded border p-2 pointer-coarse:p-4 print:hidden">
<summary class="cursor-pointer">Preview controls</summary>
<p class="mt-2">Choose your paper stock before printing.</p>
</details>Class reference
| Class | CSS declarations |
|---|---|
print:hidden | display: none; |
print:text-black | color: #000; |
portrait:flex-col | flex-direction: column; |
landscape:flex-row | flex-direction: row; |
pointer-coarse:p-3 | padding: 0.75rem; |
pointer-fine:p-2 | padding: 0.5rem; |
View full generated CSS
@media (orientation: portrait) {
.portrait\:flex-col {
flex-direction: column;
}
}
@media (orientation: landscape) {
.landscape\:flex-row {
flex-direction: row;
}
}
@media print {
.print\:text-black {
color: #000;
}
.print\:hidden {
display: none;
}
}
@media (pointer: coarse) {
.pointer-coarse\:p-3 {
padding: 0.75rem;
}
}
@media (pointer: fine) {
.pointer-fine\:p-2 {
padding: 0.5rem;
}
}