Skip to content

Commit

Permalink
#60
Browse files Browse the repository at this point in the history
  • Loading branch information
xwolfde committed Oct 6, 2017
1 parent ec6d3cf commit 95c5de9
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 109 deletions.
4 changes: 2 additions & 2 deletions css/base.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion css/print.css

This file was deleted.

220 changes: 220 additions & 0 deletions css/sass/_printer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
//-----------------------------------------------------------------------------------*/
// Anpassungen für Media Print
//-----------------------------------------------------------------------------------*/
@media print {
@page {
size:landscape;
margin: 1cm;
}



abbr[title]:after {
content: " (" attr(title) ")";
}

/* Defining all page breaks */
a {
page-break-inside:avoid
}
blockquote {
page-break-inside: avoid;
}
h1, h2, h3, h4, h5, h6 {
page-break-after:avoid;
page-break-inside:avoid;
}
img {
page-break-inside:avoid;
page-break-after:avoid;
}
table, pre {
page-break-inside:avoid;
border: none;
}
ul, ol, dl {
page-break-before:avoid;
}
.topevent-description,
.widget,
#content .startpage-sidebar .widget p,
ul, li, td, tr, th, p, span, div {
@include px2rem($font-size-print-base);
}

main {
position: relative;
display: block;



thead {
display: table-header-group;
}
}
th,
td,
li,
.social,
p {

a[href]::after {
content: " (" attr(href) ")";
color: $colorPrintMain;
background-color: inherit;
font-style: italic;
size: 80%;
}
a[href^="#"]:after {
display: none;
}

a {
text-transform: inherit;
word-wrap: break-word;
color: $colorPrintMainLinks;
}
.meta-footer,
.person-info,
.event-time,
article {
a[href^="#"]:after {
content: "";
}
}

}

/**
* Making intergated videos disappear, and removing the iframes' whitespace to zero.
*/
.rrze-video,
.entry iframe,
ins {
display: none;
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
line-height: 0pt !important;
white-space: nowrap;
}
.embed-youtube, .embed-responsive {
position: absolute;
height: 0;
overflow: hidden;
}



#social {

.col-xs-3,
.col-xs-9 {
width: 100%;
}

ul.social li {
max-width: none;

}

}

.sidebar-subnav {
display: none;
}
.entry-content {
width: 100%;
}

#hero {
display: none;

&.hero-small {
margin:0;
position: relative;
display: block;

.col-xs-12,
.col-sm-8 {
width: 100%;
}

}
.hero-meta-portal,
.breadcrumbs {
display: none;
}
}
.widget_archive,
.widget widget_nav_menu,
.widget_categories,
.widget_tag_cloud,
.contentmenu,
.link-all-videos,
.events-more-links,
.flex-direction-nav,
.widget_search,
.subpages-menu li a.image.ext-link:after,
.logos-menu-nav,
.logos-menu-settings,
.sorttable th::after,
#meta,
#footer-nav,
#header .row .header-menu,
.fau-werbung {
display: none;
}
.admin-bar #header,
#header {
position: relative;
top: 0;
}

hr {
height: 20px;
box-shadow: none;
}


.accordion {
.accordion-body,
.assistant-tab-pane {
display:block;
}
.accordion-toggle {
border: none;
background: none;
padding: 10px 0;
}
.accordion-inner {
background: none;
padding: 0;
}
}



footer {
margin-top: 70px;

.footer-logo {
margin-top: 10px;
}
}
footer:before {
content: 'Hinweis: Interaktive Teile der Webseite sind im Druck nicht sichbar. Bitte schonen Sie die Umwelt und vermeiden unnötige Ausdrücke.';
color: #777;
white-space: pre;
display: block;
margin-top: -40px;
text-align: right;
right: 0;
position: absolute;
font-style: italic;
@include px2rem($font-size-print-base-small);
}
:lang(en) footer:before {
content: 'Notice: Dynamic parts of the websites are hidden in print. Please consider the environment before printing.';
}
}
8 changes: 7 additions & 1 deletion css/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ $siegelurl: '../img/siegel-zuv-schnitt.png';
$errorimage: '../img/friedrich-alexander.gif';

$colorPrimaryHero: $colorPrimary;


$colorPrintMain: #000;
$colorPrintMainLinks: $colorText;

@if $farbfamilie == 'med' {
$colorPrimary: $colorMedFak;
$PalettonHellste: #eaf3fc; // #35C0DA;
Expand Down Expand Up @@ -209,6 +212,9 @@ $font-size-pagination-links: $font-size-content-meta;

$font-size-mobile-meta: 24;


$font-size-print-base: 11;
$font-size-print-base-small: 9;
// Define breakpoints

// iPhone 3G
Expand Down
3 changes: 2 additions & 1 deletion css/sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@
// Plugin-Support
@import "plugins/plugins";


// Printer Adjustments
@import "printer";
101 changes: 0 additions & 101 deletions css/sass/print.scss

This file was deleted.

5 changes: 3 additions & 2 deletions functions/posttype_ad.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,12 @@ function fau_get_ad($type, $withhr = true) {
$list[0] = $val;
}



$out .= '<aside class="fau-werbung'.$class.'" role="region">';
if ($withhr) {
$out .= "<hr>\n";
}

$out .= '<aside class="fau-werbung'.$class.'" role="region">';
foreach ($list as $id) {

$out .= '<h3>';
Expand Down
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ Text Domain: fau
*/

@import url(css/base.css);
@import url(css/print.css);

0 comments on commit 95c5de9

Please sign in to comment.