Fix issue #110 : ajout CSS pour imprimante

Elle reste basique est dépend fortement de la feuille de style
principale, mais ça permet déjà d'imprimer les articles à peu près
correctement
pull/141/head
Marien Fressinaud 11 years ago
parent 2f82dbabb1
commit ece62aca3e
  1. 1
      app/App_FrontController.php
  2. 34
      public/themes/printer/style.css

@ -53,6 +53,7 @@ class App_FrontController extends FrontController {
private function loadStylesAndScripts () {
$theme = $this->conf->theme();
View::appendStyle (Url::display ('/themes/' . $theme . '/style.css'));
View::appendStyle (Url::display ('/themes/printer/style.css'), 'print');
if (login_is_conf ($this->conf)) {
View::appendScript ('https://login.persona.org/include.js');
}

@ -0,0 +1,34 @@
.header,
.aside,
.nav_menu,
.day,
.flux_header,
.flux_content .bottom,
.pagination {
display: none;
}
html, body {
background: #fff;
color: #000;
font-family: Serif;
font-size: 12pt;
}
#global,
.flux_content {
display: block !important;
}
.flux_content .content {
width: 100% !important;
text-align: justify;
}
.flux_content .content a {
color: #000;
}
.flux_content .content a:after {
content: " (" attr(href) ") ";
text-decoration: underline;
}
Loading…
Cancel
Save