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

This commit is contained in:
Andrew Dolgov 2013-05-20 16:16:34 +04:00
parent 6791af0cfd
commit 6938c03658
4 changed files with 9 additions and 9 deletions

7
css/layout.css Normal file
View File

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

View File

@ -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;
}

View File

@ -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);

View File

@ -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);