1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 09:18:18 +03:00

Стили для печати

This commit is contained in:
Denis Shakhov 2012-06-29 15:56:21 +07:00
parent cc5747eb8e
commit 2c3fab8ca0
4 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,33 @@
/* --------------------------------------------
СТИЛИ ДЛЯ ПЕЧАТИ
-------------------------------------------- */
@media print {
@page { margin: 0.5cm; }
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
body, .text { font-size: 14pt; }
a, a:visited { text-decoration: underline; }
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; }
h1 { font-size: 30pt !important; }
h4 { font-size: 26pt !important; }
h5 { font-size: 23pt !important; }
h6 { font-size: 20pt !important; }
p, h3, h4, h5 { orphans: 3; widows: 3; }
h3, h4, h5 { page-break-after: avoid; }
#header, #userbar, #nav, #sidebar, #footer, #comments, .toolbar, .nav-filter-wrapper,
.topic-footer, .stat-performance, .actions, .reply-header { display: none !important; }
#wrapper { box-shadow: none; border: 0; padding: 0; }
#content { width: 100%; margin: 0; }
.topic { margin-bottom: 100px; }
}

View file

@ -33,6 +33,7 @@ $config['head']['default']['css'] = array(
"___path.static.skin___/css/jquery.notifier.css",
"___path.static.skin___/css/smoothness/jquery-ui.css",
"___path.static.skin___/themes/___view.theme___/style.css",
"___path.static.skin___/css/print.css",
);

View file

@ -0,0 +1,34 @@
/* --------------------------------------------
СТИЛИ ДЛЯ ПЕЧАТИ
-------------------------------------------- */
@media print {
@page { margin: 0.5cm; }
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; font-family: Arial, sans-serif !important; }
body, .text { font-size: 14pt; }
a, a:visited { text-decoration: underline; }
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; }
h1 { font-size: 30pt !important; font-weight: bold !important; }
h4 { font-size: 26pt !important; }
h5 { font-size: 23pt !important; }
h6 { font-size: 20pt !important; }
p, h3, h4, h5 { orphans: 3; widows: 3; }
h3, h4, h5 { page-break-after: avoid; }
h1 a { text-decoration: none !important; }
#header, #userbar, #nav, #sidebar, #footer, #comments, .toolbar, .nav-filter-wrapper,
.topic-footer, .stat-performance, .topic-actions, .reply-header, .nav { display: none !important; }
#wrapper { box-shadow: none; border: 0; padding: 0; }
#content { width: 100%; margin: 0; }
.topic { margin-bottom: 100px; }
}

View file

@ -37,6 +37,7 @@ $config['head']['default']['css'] = array(
"___path.static.skin___/css/jquery.notifier.css",
"___path.static.skin___/css/smoothness/jquery-ui.css",
"___path.static.skin___/themes/___view.theme___/style.css",
"___path.static.skin___/css/print.css",
);