Преглед на файлове

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
Marien Fressinaud преди 12 години
родител
ревизия
ece62aca3e
променени са 2 файла, в които са добавени 35 реда и са изтрити 0 реда
  1. 1 0
      app/App_FrontController.php
  2. 34 0
      public/themes/printer/style.css

+ 1 - 0
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');
 		}

+ 34 - 0
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;
+}