diff options
author | Andrew Dolgov <[email protected]> | 2013-05-20 16:16:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-20 16:16:34 +0400 |
commit | 6938c03658b69a214d9df95c0c4a3c9d4f6e236f (patch) | |
tree | e75ad1caa9e5556389c41d42dc84c6a3e5469950 | |
parent | 6791af0cfdf481e90368b92c358559dcc6944272 (diff) |
always include basic layout CSS file to prevent unworkable UI in case of a broken/incompatible theme
-rw-r--r-- | css/layout.css | 7 | ||||
-rw-r--r-- | css/tt-rss.css | 9 | ||||
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | prefs.php | 1 |
4 files changed, 9 insertions, 9 deletions
diff --git a/css/layout.css b/css/layout.css new file mode 100644 index 000000000..3351331c0 --- /dev/null +++ b/css/layout.css @@ -0,0 +1,7 @@ +html, body#ttrssMain, body#ttrssPrefs, #main { + width: 100%; + height: 100%; + border: 0; + padding: 0; + margin: 0; +} diff --git a/css/tt-rss.css b/css/tt-rss.css index 72bdc1d24..ad80ae9f8 100644 --- a/css/tt-rss.css +++ b/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; } @@ -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); @@ -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); |