diff options
| author | 2013-08-18 02:13:59 +0200 | |
|---|---|---|
| committer | 2013-08-18 02:13:59 +0200 | |
| commit | ece62aca3e838cdc7e7d3a8c94d7e5f4265c5285 (patch) | |
| tree | ff977476e3ebac5bed96333e03f5a172a1bda230 | |
| parent | 2f82dbabb19be4557312709881786f1b7c296565 (diff) | |
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
| -rw-r--r-- | app/App_FrontController.php | 1 | ||||
| -rw-r--r-- | public/themes/printer/style.css | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/app/App_FrontController.php b/app/App_FrontController.php index 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.css new file mode 100644 index 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 |
