diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
commit | b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 (patch) | |
tree | 64b5e1367d0d01efb0687ef7c27f27de02f866bb /sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss | |
parent | eb273b377f00fabe7b90791333f8e915a201c69a (diff) | |
download | brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.gz brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.bz2 |
Add theme for MRP site.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss')
-rw-r--r-- | sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_print.scss | 81 |
1 files changed, 81 insertions, 0 deletions
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; + } +} |