summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-08 22:37:27 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-08 22:38:42 +0200
commitd1d47eb5eb28d9a62f3a16cc3b1be4e0136bed8b (patch)
tree62ccf4976d114c4ce997018c199493243d28b2db
parent6aaa49d38620d2092f546cbb27f23da6f5e5e138 (diff)
downloadnextcloud-server-d1d47eb5eb28d9a62f3a16cc3b1be4e0136bed8b.tar.gz
nextcloud-server-d1d47eb5eb28d9a62f3a16cc3b1be4e0136bed8b.zip
do proper styling for settings pages
-rw-r--r--core/css/styles.css2
-rw-r--r--core/templates/layout.user.php2
-rw-r--r--lib/template.php5
3 files changed, 7 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index e1999a61a52..b17224b269a 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -3,7 +3,7 @@ body { background:#fefefe; font:normal 80%/1.6em "Lucida Grande", Arial, Verdana
/* HEADERS */
-#body-user #header { position:fixed; top:0; z-index:100; width:100%; height:2.5em; padding:.5em; background:#1d2d44; -moz-box-shadow:0 0 10px #000, inset 0 -2px 10px #222; -webkit-box-shadow:0 0 10px #000, inset 0 -2px 10px #222; box-shadow:0 0 10px #000, inset 0 -2px 10px #222; }
+#body-user #header, #body-settings #header { position:fixed; top:0; z-index:100; width:100%; height:2.5em; padding:.5em; background:#1d2d44; -moz-box-shadow:0 0 10px #000, inset 0 -2px 10px #222; -webkit-box-shadow:0 0 10px #000, inset 0 -2px 10px #222; box-shadow:0 0 10px #000, inset 0 -2px 10px #222; }
#body-login #header { margin:-2em auto 0; text-align:center; height:10em;
-moz-box-shadow:0 0 1em #000; -webkit-box-shadow:0 0 1em #000; box-shadow:0 0 1em #000;
background: #1d2d44; /* Old browsers */
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index db142241d64..4cbf6261cbe 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -27,7 +27,7 @@
<?php endforeach; ?>
</head>
- <body id="body-user">
+ <body id="<?php echo $_['bodyid'];?>">
<div id="header">
<a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img src="<?php echo image_path('', 'owncloud-logo-small-white.png'); ?>" alt="ownCloud" /></a>
<?php echo $_['searchbox']?>
diff --git a/lib/template.php b/lib/template.php
index 12047a38a13..9d13b142dba 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -239,6 +239,11 @@ class OC_Template{
$search=new OC_Template( 'core', 'part.searchbox');
$search->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' ));
$page->assign('searchbox', $search->fetchPage());
+ if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false){
+ $page->assign('bodyid','body-settings');
+ }else{
+ $page->assign('bodyid','body-user');
+ }
// Add navigation entry
$page->assign( "navigation", OC_App::getNavigation());