diff --git a/core/themes/bartik/css/components/main-content.css b/core/themes/bartik/css/components/main-content.css index 2d17822..f1b0fe7 100644 --- a/core/themes/bartik/css/components/main-content.css +++ b/core/themes/bartik/css/components/main-content.css @@ -12,7 +12,7 @@ line-height: 1.4; } -@media all and (min-width: 851px) { +@media screen and (min-width: 851px) { .main-content { float: left; /* LTR */ position: relative; diff --git a/core/themes/bartik/css/print.css b/core/themes/bartik/css/print.css index 36a58b4..13ad6c3 100644 --- a/core/themes/bartik/css/print.css +++ b/core/themes/bartik/css/print.css @@ -4,44 +4,58 @@ */ @media print { - body, - input, - textarea, - select { - color: #000; - background: none; + + /** + * Colors and backgrounds. + */ + body { + color: #000; /* Black prints faster: h5bp.com/s */ + background-color: transparent; } - .sidebar-first, - .sidebar-second, - .navigation, - .site-footer, - .tabs, - .shortcut-action { - display: none; + + /** + * Toolbar + * + * Reset Toolbar module's inline styles. + */ + .toolbar-vertical, + .toolbar-horizontal { + padding-top: 0 !important; } /** - * Featured bottom region + * Regions + * + * Hide regions which are unlikely to have relevant content for printing. */ - .featured-bottom .region { - float: left; /* LTR */ - position: relative; - box-sizing: border-box; - padding: 20px 15px 30px; - width: 33.33%; + .highlighted, + .featured-top, + .sidebar, + .featured-bottom, + .site-footer { + display: none; } - [dir="rtl"] .featured-bottom .region { - float: right; + + /** + * Navigation elements. + */ + nav:not(.breadcrumb) { + display: none; } /** - * Comments + * Comment form. */ .comment-form, .comment-form__title { display: none; } + + /** + * Node links. + */ /* This is required to win over specifity of ul.inline li */ + ul li.comment-add, ul li.comment-forbidden { display: none; }