A free, self-hostable news aggregator…
Fix issue #110 : ajout CSS pour imprimante
Marien Fressinaudece62aca3e83
diff --git a/app/App_FrontController.php b/app/App_FrontController.phpindex 50313522f..2a2684412 100644--- a/app/App_FrontController.php+++ b/app/App_FrontController.php@@ -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');}diff --git a/public/themes/printer/style.css b/public/themes/printer/style.cssnew file mode 100644index 000000000..87d019c58--- /dev/null+++ b/public/themes/printer/style.css@@ -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;+}\ No newline at end of file