aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-23 08:32:03 -0700
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-23 08:32:03 -0700
commite93c7c9c460ce71fb10ea1e807eabed9c490fe15 (patch)
tree38bb5d32099dd28a43cdfd5278a17baf80ddcfce
parent64fa45e262d24f75740b0df267bb2fc4cdf83fa2 (diff)
parent00e4700abb8888344a8765ddb2067c4ed7a5c6b9 (diff)
downloadwallabag-e93c7c9c460ce71fb10ea1e807eabed9c490fe15.tar.gz
wallabag-e93c7c9c460ce71fb10ea1e807eabed9c490fe15.tar.zst
wallabag-e93c7c9c460ce71fb10ea1e807eabed9c490fe15.zip
Merge pull request #160 from nicofrand/dev
Add a print stylesheet
-rw-r--r--tpl/_head.twig1
-rw-r--r--tpl/css/print.css19
2 files changed, 20 insertions, 0 deletions
diff --git a/tpl/_head.twig b/tpl/_head.twig
index 60ef8883..6a8258a2 100644
--- a/tpl/_head.twig
+++ b/tpl/_head.twig
@@ -6,6 +6,7 @@
6 <link rel="stylesheet" href="./tpl/css/style.css" media="all"> 6 <link rel="stylesheet" href="./tpl/css/style.css" media="all">
7 <link rel="stylesheet" href="./tpl/css/style-{{ constant('THEME') }}.css" media="all" title="{{ constant('THEME') }} theme"> 7 <link rel="stylesheet" href="./tpl/css/style-{{ constant('THEME') }}.css" media="all" title="{{ constant('THEME') }} theme">
8 <link rel="stylesheet" href="./tpl/css/messages.css" media="all"> 8 <link rel="stylesheet" href="./tpl/css/messages.css" media="all">
9 <link rel="stylesheet" href="./tpl/css/print.css" media="print">
9 <link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> 10 <link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
10 <script src="./tpl/js/jquery-2.0.3.min.js"></script> 11 <script src="./tpl/js/jquery-2.0.3.min.js"></script>
11 <script type="text/javascript">$(document).ready(function(){$("body").prepend('<a href="#top" class="top_link" title="{% trans "back to top" %}"><img src="./tpl/img/{{ constant("THEME") }}/backtotop.png" alt={% trans "back to top" %}"/></a>');$(".top_link").css({position:"fixed",right:"15px",bottom:"15px",display:"none",padding:"20px",background:"#ccc","-moz-border-radius":"40px","-webkit-border-radius":"40px","border-radius":"40px",opacity:"0.9","z-index":"2000"});$(window).scroll(function(){posScroll=$(document).scrollTop();if(posScroll>=400)$(".top_link").fadeIn(600);else $(".top_link").fadeOut(600)})})</script> \ No newline at end of file 12 <script type="text/javascript">$(document).ready(function(){$("body").prepend('<a href="#top" class="top_link" title="{% trans "back to top" %}"><img src="./tpl/img/{{ constant("THEME") }}/backtotop.png" alt={% trans "back to top" %}"/></a>');$(".top_link").css({position:"fixed",right:"15px",bottom:"15px",display:"none",padding:"20px",background:"#ccc","-moz-border-radius":"40px","-webkit-border-radius":"40px","border-radius":"40px",opacity:"0.9","z-index":"2000"});$(window).scroll(function(){posScroll=$(document).scrollTop();if(posScroll>=400)$(".top_link").fadeIn(600);else $(".top_link").fadeOut(600)})})</script> \ No newline at end of file
diff --git a/tpl/css/print.css b/tpl/css/print.css
new file mode 100644
index 00000000..a3b0a599
--- /dev/null
+++ b/tpl/css/print.css
@@ -0,0 +1,19 @@
1body > header,
2body > footer,
3a.top_link,
4div.tools,
5header div
6{
7 display: none !important;
8}
9
10article
11{
12 border: none !important;
13}
14
15div.vieworiginal a::after
16{
17 margin-left: 5px;
18 content: "("attr(href)")";
19}