basic media print rules
This commit is contained in:
328
sass/_print.scss
328
sass/_print.scss
@@ -3,19 +3,19 @@
|
||||
\*------------------------------------*/
|
||||
|
||||
::selection {
|
||||
background:#04A4CC;
|
||||
color:#FFF;
|
||||
text-shadow:none;
|
||||
background: #04a4cc;
|
||||
color: #fff;
|
||||
text-shadow: none;
|
||||
}
|
||||
::-webkit-selection {
|
||||
background:#04A4CC;
|
||||
color:#FFF;
|
||||
text-shadow:none;
|
||||
background: #04a4cc;
|
||||
color: #fff;
|
||||
text-shadow: none;
|
||||
}
|
||||
::-moz-selection {
|
||||
background:#04A4CC;
|
||||
color:#FFF;
|
||||
text-shadow:none;
|
||||
background: #04a4cc;
|
||||
color: #fff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/*------------------------------------*\
|
||||
@@ -23,73 +23,71 @@
|
||||
\*------------------------------------*/
|
||||
|
||||
.alignnone {
|
||||
margin:5px 20px 20px 0;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
.aligncenter,
|
||||
div.aligncenter {
|
||||
display:block;
|
||||
margin:5px auto 5px auto;
|
||||
display: block;
|
||||
margin: 5px auto 5px auto;
|
||||
}
|
||||
.alignright {
|
||||
float:right;
|
||||
margin:5px 0 20px 20px;
|
||||
float: right;
|
||||
margin: 5px 0 20px 20px;
|
||||
}
|
||||
.alignleft {
|
||||
float:left;
|
||||
margin:5px 20px 20px 0;
|
||||
float: left;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
a img.alignright {
|
||||
float:right;
|
||||
margin:5px 0 20px 20px;
|
||||
float: right;
|
||||
margin: 5px 0 20px 20px;
|
||||
}
|
||||
a img.alignnone {
|
||||
margin:5px 20px 20px 0;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
a img.alignleft {
|
||||
float:left;
|
||||
margin:5px 20px 20px 0;
|
||||
float: left;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
a img.aligncenter {
|
||||
display:block;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.wp-caption {
|
||||
background:#FFF;
|
||||
border:1px solid #F0F0F0;
|
||||
max-width:96%;
|
||||
padding:5px 3px 10px;
|
||||
text-align:center;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
max-width: 96%;
|
||||
padding: 5px 3px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
.wp-caption.alignnone {
|
||||
margin:5px 20px 20px 0;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
.wp-caption.alignleft {
|
||||
margin:5px 20px 20px 0;
|
||||
margin: 5px 20px 20px 0;
|
||||
}
|
||||
.wp-caption.alignright {
|
||||
margin:5px 0 20px 20px;
|
||||
margin: 5px 0 20px 20px;
|
||||
}
|
||||
.wp-caption img {
|
||||
border:0 none;
|
||||
height:auto;
|
||||
margin:0;
|
||||
max-width:98.5%;
|
||||
padding:0;
|
||||
width:auto;
|
||||
border: 0 none;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
max-width: 98.5%;
|
||||
padding: 0;
|
||||
width: auto;
|
||||
}
|
||||
.wp-caption .wp-caption-text,
|
||||
.gallery-caption {
|
||||
font-size:11px;
|
||||
line-height:17px;
|
||||
margin:0;
|
||||
padding:0 4px 5px;
|
||||
font-size: 11px;
|
||||
line-height: 17px;
|
||||
margin: 0;
|
||||
padding: 0 4px 5px;
|
||||
}
|
||||
.sticky {
|
||||
|
||||
}
|
||||
.bypostauthor {
|
||||
|
||||
}
|
||||
|
||||
/*------------------------------------*\
|
||||
@@ -97,51 +95,199 @@ a img.aligncenter {
|
||||
\*------------------------------------*/
|
||||
|
||||
@media print {
|
||||
* {
|
||||
background:transparent !important;
|
||||
color:#000 !important;
|
||||
box-shadow:none !important;
|
||||
text-shadow:none !important;
|
||||
}
|
||||
a,
|
||||
a:visited {
|
||||
text-decoration:underline;
|
||||
}
|
||||
a[href]:after {
|
||||
content:" (" attr(href) ")";
|
||||
}
|
||||
abbr[title]:after {
|
||||
content:" (" attr(title) ")";
|
||||
}
|
||||
.ir a:after,
|
||||
a[href^="javascript:"]:after,
|
||||
a[href^="#"]:after {
|
||||
content:"";
|
||||
}
|
||||
pre,blockquote {
|
||||
border:1px solid #999;
|
||||
page-break-inside:avoid;
|
||||
}
|
||||
thead {
|
||||
display:table-header-group;
|
||||
}
|
||||
tr,img {
|
||||
page-break-inside:avoid;
|
||||
}
|
||||
img {
|
||||
max-width:100% !important;
|
||||
}
|
||||
@page {
|
||||
margin:0.5cm;
|
||||
}
|
||||
p,
|
||||
h2,
|
||||
h3 {
|
||||
orphans:3;
|
||||
widows:3;
|
||||
}
|
||||
h2,
|
||||
h3 {
|
||||
page-break-after:avoid;
|
||||
}
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-y: unset !important;
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-print-color-adjust: exact;
|
||||
color-adjust: exact !important;
|
||||
}
|
||||
|
||||
*:not(header *) {
|
||||
background: transparent !important;
|
||||
color: #000 !important;
|
||||
box-shadow: none !important;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
a,
|
||||
a:visited {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a[href]:after {
|
||||
content: " (" attr(href) ")";
|
||||
}
|
||||
abbr[title]:after {
|
||||
content: " (" attr(title) ")";
|
||||
}
|
||||
.ir a:after,
|
||||
a[href^="javascript:"]:after,
|
||||
a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
pre,
|
||||
blockquote {
|
||||
border: 1px solid #999;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tr,
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
img {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
@page {
|
||||
margin: 0.5cm;
|
||||
}
|
||||
p,
|
||||
h2,
|
||||
h3 {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
h2,
|
||||
h3 {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
//structure
|
||||
.wrapper {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
//header
|
||||
|
||||
header {
|
||||
position: relative !important;
|
||||
flex-direction: column !important;
|
||||
align-items: flex-start !important;
|
||||
justify-content: flex-start !important;
|
||||
padding: 2rem !important;
|
||||
.header-inner {
|
||||
flex-direction: column !important;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start !important;
|
||||
padding: 0 2rem !important;
|
||||
.dis-logo {
|
||||
background-image: url(../img/dis-logo-black.png) !important;
|
||||
background-image: url(../img/dis-logo-black.svg) !important;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
a {
|
||||
display: flex !important;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
div {
|
||||
margin-right: 2rem;
|
||||
}
|
||||
}
|
||||
.menubutton {
|
||||
display: none;
|
||||
}
|
||||
.social-link {
|
||||
display: block !important;
|
||||
margin: 0.5rem 2rem !important;
|
||||
}
|
||||
.events-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//masonrypage
|
||||
.masonrypage {
|
||||
article {
|
||||
min-height: unset !important;
|
||||
|
||||
a.thumbnailwrapper {
|
||||
img {
|
||||
height: 50vw !important;
|
||||
width: 100vw !important;
|
||||
}
|
||||
&:after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: block !important;
|
||||
padding-bottom: 5rem !important;
|
||||
}
|
||||
|
||||
.metadata {
|
||||
top: calc(50vw - 5rem + 1px) !important;
|
||||
position: absolute;
|
||||
// border-top: 1px solid #000;
|
||||
@include fit-content(width);
|
||||
height: $h-unit-1;
|
||||
background-color: #fff;
|
||||
|
||||
@include triangle-corner-bordered(#{$h-unit-1}, #{$h-unit-1}, white, #000, left);
|
||||
&::after {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//single
|
||||
.singularpage {
|
||||
.titlewrapper {
|
||||
padding-top: 2rem !important;
|
||||
.metadata {
|
||||
a {
|
||||
text-decoration: none;
|
||||
&::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.single-content {
|
||||
hr.content-begin {
|
||||
margin-top: 2rem !important;
|
||||
}
|
||||
|
||||
a.cboxElement::after {
|
||||
content: "" !important;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.alignleft,
|
||||
.alignright,
|
||||
.wp-block-image {
|
||||
page-break-inside: avoid;
|
||||
width: 100% !important;
|
||||
height: auto;
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
&::after{
|
||||
content: "A fák érdekében feleslegesen ne nyomtasd ki ezt a cikket. A papírszemetet gyűjtsd szelektíven!";
|
||||
top: 3rem;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.fb-like,
|
||||
.fb-page,
|
||||
.toHome {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user