Browse Source

Merge pull request #342 from troglodyne-bot/koan/mobile-responsive-and-print-styles

fix: hide sidebars on mobile, default print styles in finish_render
George S. Baugh 5 tháng trước cách đây
mục cha
commit
78479f66b9
2 tập tin đã thay đổi với 4 bổ sung và 0 xóa
  1. 1 0
      lib/Trog/Routes/HTML.pm
  2. 3 0
      www/styles/structure.css

+ 1 - 0
lib/Trog/Routes/HTML.pm

@@ -1683,6 +1683,7 @@ sub finish_render ( $template, $vars, %headers ) {
     $vars->{lang}        //= 'en-US';
     $vars->{title}       //= 'tCMS';
     $vars->{stylesheets} //= [];
+    $vars->{print_styles} //= [qw{structure.css print.css}];
     $vars->{scripts}     //= [];
 
     # Theme-ize the paths

+ 3 - 0
www/styles/structure.css

@@ -137,4 +137,7 @@ iframe.responsive {
     	width: 100%;
     	height: 10rem;
 	}
+	#leftbar, #rightbar {
+		display: none;
+	}
 }