From 2fdc9c014a24bd12ca157b626da176b02eb33e9e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 23:27:04 +0000 Subject: Trying to simplify layout css: nixed elgg-aside .elgg-sidebar.elgg-alt => .elgg-sidebar-alt (similar to .elgg-image-alt) git-svn-id: http://code.elgg.org/elgg/trunk@8432 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/elements/page_layout.php | 19 +++++++++---------- views/default/page/elements/sidebar_alt.php | 4 ++++ views/default/page/layouts/one_column.php | 4 ++-- views/default/page/layouts/one_sidebar.php | 6 +++--- views/default/page/layouts/two_sidebar.php | 10 +++++----- 5 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 views/default/page/elements/sidebar_alt.php (limited to 'views') diff --git a/views/default/css/elements/page_layout.php b/views/default/css/elements/page_layout.php index 5dac2127b..553356738 100644 --- a/views/default/css/elements/page_layout.php +++ b/views/default/css/elements/page_layout.php @@ -91,33 +91,32 @@ } /***** PAGE BODY ******/ -.elgg-page-body > .elgg-inner { +.elgg-layout { min-height: 360px; } -#elgg-layout-one-column { +.elgg-layout-one-column { padding: 10px 0; } -#elgg-layout-sidebar { +.elgg-layout-one-sidebar { background-image: url(_graphics/sidebar_background.gif); background-repeat: repeat-y; background-position: right top; } -#elgg-layout-two-sidebar { +.elgg-layout-two-sidebar { background-image: url(_graphics/two_sidebar_background.gif); background-repeat: repeat-y; background-position: right top; } -.elgg-aside { - padding: 20px 10px; - position: relative; - min-height: 360px; -} .elgg-sidebar { + position: relative; + padding: 20px 10px; float: right; width: 210px; margin: 0 0 0 10px; } -.elgg-sidebar.elgg-alt { +.elgg-sidebar-alt { + position: relative; + padding: 20px 10px; float: left; width: 160px; margin: 0 10px 0 0; diff --git a/views/default/page/elements/sidebar_alt.php b/views/default/page/elements/sidebar_alt.php new file mode 100644 index 000000000..41982539e --- /dev/null +++ b/views/default/page/elements/sidebar_alt.php @@ -0,0 +1,4 @@ + -
+
-
-
+
+
diff --git a/views/default/page/layouts/two_sidebar.php b/views/default/page/layouts/two_sidebar.php index 1e6c2aae7..4e0bab21b 100644 --- a/views/default/page/layouts/two_sidebar.php +++ b/views/default/page/layouts/two_sidebar.php @@ -11,26 +11,26 @@ * @uses $vars['class'] Additional class to apply to layout */ -$class = 'elgg-inner clearfix'; +$class = 'elgg-layout elgg-layout-two-sidebar clearfix'; if (isset($vars['class'])) { $class = "$class {$vars['class']}"; } ?> -
-
+
+
-
+
elgg_view_module('test', 'Testing', 'Hello, world!'), ); - echo elgg_view('page/elements/sidebar', $params); + echo elgg_view('page/elements/sidebar_alt', $params); ?>
-- cgit v1.2.3