summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-20 16:16:34 +0400
committerAndrew Dolgov <[email protected]>2013-05-20 16:16:34 +0400
commit6938c03658b69a214d9df95c0c4a3c9d4f6e236f (patch)
treee75ad1caa9e5556389c41d42dc84c6a3e5469950
parent6791af0cfdf481e90368b92c358559dcc6944272 (diff)
always include basic layout CSS file to prevent unworkable UI in case of a broken/incompatible theme
-rw-r--r--css/layout.css7
-rw-r--r--css/tt-rss.css9
-rw-r--r--index.php1
-rw-r--r--prefs.php1
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;
}
diff --git a/index.php b/index.php
index c3fe770f5..8dae2831f 100644
--- a/index.php
+++ b/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);
diff --git a/prefs.php b/prefs.php
index 2cee534b1..fcf21cf2e 100644
--- a/prefs.php
+++ b/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);