/**
 * Hide the admin bar when printing.
 */
#admin-bar {
  display: none;
}
.admin-bar body {
  border-top: none !important;
}

File

core/modules/admin_bar/css/admin_bar-print.css