Pārlūkot izejas kodu

always include basic layout CSS file to prevent unworkable UI in case of a broken/incompatible theme

Andrew Dolgov 11 gadi atpakaļ
vecāks
revīzija
6938c03658
4 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 7 0
      css/layout.css
  2. 0 9
      css/tt-rss.css
  3. 1 0
      index.php
  4. 1 0
      prefs.php

+ 7 - 0
css/layout.css

@@ -0,0 +1,7 @@
+html, body#ttrssMain, body#ttrssPrefs, #main {
+	width: 100%; 
+	height: 100%;
+	border: 0; 
+	padding: 0; 
+	margin: 0;
+} 

+ 0 - 9
css/tt-rss.css

@@ -7,15 +7,6 @@ body#ttrssMain, body#ttrssPrefs, body#ttrssLogin, body {
 	font-size: 14px;
 }
 
-html, body#ttrssMain, body#ttrssPrefs, #main {
-	width: 100%; 
-	height: 100%;
-	border: 0; 
-	padding: 0; 
-	margin: 0;
-} 
-
-
 body#ttrssPrefs {
 	background-color : #ecf4ff;
 }

+ 1 - 0
index.php

@@ -57,6 +57,7 @@
 	<title>Tiny Tiny RSS</title>
 
 	<?php stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
+	<?php stylesheet_tag("css/layout.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
 		$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);

+ 1 - 0
prefs.php

@@ -33,6 +33,7 @@
 	<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>
 
 	<?php stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
+	<?php stylesheet_tag("css/layout.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
 		$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);