From b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Tue, 22 Mar 2016 23:36:38 +0100 Subject: Add theme for MRP site. --- .../themes/mrp/sass/_print.scss | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss') diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss new file mode 100644 index 000000000..be64c57e0 --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss @@ -0,0 +1,81 @@ +/** + * @file + * Print styling + * + * We provide some sane print styling for Drupal using Zen's layout method. + */ + +/** + * By importing this CSS file as media "all", we allow this print file to be + * aggregated with other stylesheets, for improved front-end performance. + */ +@media print { + + /* Underline all links. */ + a:link, + a:visited { + text-decoration: underline !important; + + /* Don't underline header. */ + &.header__site-link { + text-decoration: none !important; + } + } + + #content { + /* Add visible URL after links. */ + a[href]:after { + content: " (" attr(href) ")"; + font-weight: normal; + font-size: $base-font-size; + } + + /* Only display useful links. */ + a[href^="javascript:"]:after, + a[href^="#"]:after { + content: ""; + } + + /* Add visible title after abbreviations. */ + abbr[title]:after { + content: " (" attr(title) ")"; + } + } + + /* Un-float the content. */ + #content { + float: none !important; + width: 100% !important; + margin: 0 !important; + padding: 0 !important; + } + + /* Turn off any background colors or images. */ + body, + #page, + #main, + #content { + color: #000; + background-color: transparent !important; + background-image: none !important; + } + + /* Hide sidebars and nav elements. */ + #skip-link, + #toolbar, + #navigation, + .region-sidebar-first, + .region-sidebar-second, + #footer, + .breadcrumb, + .tabs, + .action-links, + .links, + .book-navigation, + .forum-topic-navigation, + .pager, + .feed-icons { + visibility: hidden; + display: none; + } +} -- cgit v1.2.3