From: Sem Date: Wed, 15 Aug 2012 02:15:00 +0000 (+0200) Subject: Worked on header. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1ec8a5504a0f9ecb67ed1b932d9e4f41226b6c94;p=lorea%2Fsaravea_theme.git Worked on header. --- diff --git a/_graphics/n1_small.png b/_graphics/n1_small.png new file mode 100644 index 0000000..0dc8be7 Binary files /dev/null and b/_graphics/n1_small.png differ diff --git a/index.php b/index.php index 2371b9a..0716540 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,8 @@ if (elgg_is_logged_in()) { forward('activity'); } +elgg_load_css('n1:landing_page'); + $content = elgg_view('n1_theme/landing'); $content .= elgg_view_title(elgg_echo('content:latest')); $content .= elgg_list_river(); diff --git a/start.php b/start.php index 1a49da4..c7dae0e 100644 --- a/start.php +++ b/start.php @@ -9,7 +9,9 @@ function n1_theme_init() { elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu'); elgg_register_plugin_hook_handler('index', 'system', 'n1_theme_front_page'); - elgg_extend_view('css', 'n1_theme/css'); + + elgg_register_simplecache_view('n1_theme/landing'); + elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'n1_theme/landing')); } function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){ diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php index c19666f..d332437 100644 --- a/views/default/css/elements/layout.php +++ b/views/default/css/elements/layout.php @@ -42,8 +42,7 @@ body { /***** TOPBAR ******/ .elgg-page-topbar { - background: #333333 url(_graphics/toptoolbar_background.gif) repeat-x top left; - border-bottom: 1px solid #000000; + background-color: #27282d; position: relative; height: 24px; z-index: 9000; @@ -74,6 +73,7 @@ body { } .elgg-page-header > .elgg-inner { position: relative; + background: transparent url(mod/n1_theme/_graphics/n1_small.png) no-repeat 650px bottom; } /***** PAGE BODY LAYOUT ******/ diff --git a/views/default/n1_theme/css.php b/views/default/css/n1_theme/landing.php similarity index 80% rename from views/default/n1_theme/css.php rename to views/default/css/n1_theme/landing.php index 3f27d96..1e8c9d1 100644 --- a/views/default/n1_theme/css.php +++ b/views/default/css/n1_theme/landing.php @@ -22,3 +22,11 @@ font-size: 1.4em; color: #666; } + +#login-dropdown { + display:none; +} + +.elgg-page-header > .elgg-inner { + background-image: none; +}