diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-01-04 02:49:57 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-05 04:14:53 +0300 |
commit | 84cfedffbe47c45ea9a4f9acb3c1ea38a180786f (patch) | |
tree | 264c4538a3735afd98fd74aeb3dc651d7c4ab9b3 /ncp-web | |
parent | 9099aa8828562ce76fb2a8e96f5acb5fa3bef329 (diff) |
div margin top adjustment
Diffstat (limited to 'ncp-web')
-rw-r--r-- | ncp-web/css/ncp.css | 6 | ||||
-rw-r--r-- | ncp-web/elements.php | 3 | ||||
-rw-r--r-- | ncp-web/index.php | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/ncp-web/css/ncp.css b/ncp-web/css/ncp.css index 5f8c524b..17231bcd 100644 --- a/ncp-web/css/ncp.css +++ b/ncp-web/css/ncp.css @@ -1087,6 +1087,10 @@ select { text-align: center; } +.content-box { + margin-top: 1em; +} + .config-box-info-txt { white-space: pre-wrap; text-align: center; @@ -1173,7 +1177,7 @@ select { .icon-info { background-image: url('../img/info.svg'); position: absolute; - top: 5px; + top: 1em; right: 1em; } diff --git a/ncp-web/elements.php b/ncp-web/elements.php index 5800dedb..b1098c30 100644 --- a/ncp-web/elements.php +++ b/ncp-web/elements.php @@ -127,8 +127,7 @@ function print_config_forms( $l /* translations l10n object */ ) if (array_key_exists('app',$_GET) && $_GET['app'] == $ncp_app) $hidden = ''; $ret .= <<<HTML - <div id="$cfg[id]-config-box" class="$hidden"> - <br/> + <div id="$cfg[id]-config-box" class="content-box $hidden"> <h2 class="text-title">$cfg[description]</h2> <div class="config-box-info-txt">$cfg[info]</div> <a href="https://github.com/nextcloud/nextcloudpi/wiki/Configuration-Reference#$ncp_app" target="_blank"> diff --git a/ncp-web/index.php b/ncp-web/index.php index 451a161b..50926480 100644 --- a/ncp-web/index.php +++ b/ncp-web/index.php @@ -204,14 +204,14 @@ HTML; <?php echo print_config_forms($l); ?> </div> - <div id="dashboard-wrapper" <?php if(array_key_exists('app',$_GET) && ($_GET['app'] != 'dashboard')) echo 'class="hidden"'; ?>> + <div id="dashboard-wrapper" class="content-box <?php if(array_key_exists('app',$_GET) && ($_GET['app'] != 'dashboard')) echo 'hidden';?>"> <h2 class="text-title"><?php echo $l->__("System Info"); ?></h2> <div id="dashboard-suggestions" class="table-wrapper"></div> <div id="dashboard-table" class="outputbox table-wrapper"></div> <div id="loading-info-gif"> <img src="img/loading-small.gif"> </div> </div> - <div id="nc-config-wrapper" <?php if($_GET['app'] != 'config') echo 'class="hidden"';?>> + <div id="nc-config-wrapper" class="content-box <?php if($_GET['app'] != 'config') echo 'hidden';?>"> <h2 class="text-title"><?php echo $l->__("Nextcloud configuration"); ?></h2> <div id="nc-config-box" class="table-wrapper"> <?php |