From 05dafefe7accb7225e071c303e7ac5e778151f51 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sun, 10 Apr 2011 01:19:08 +0000 Subject: Refs #3281: css/elements/core.php for the cross-browser/hacky/non-trivial things that themes should rarely, if ever, override. git-svn-id: http://code.elgg.org/elgg/trunk@8975 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/elements/core.php | 101 ++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 views/default/css/elements/core.php (limited to 'views/default/css/elements/core.php') diff --git a/views/default/css/elements/core.php b/views/default/css/elements/core.php new file mode 100644 index 000000000..e99a11e13 --- /dev/null +++ b/views/default/css/elements/core.php @@ -0,0 +1,101 @@ + + +/* Clearfix */ +.clearfix:after, +.elgg-grid:after, +.elgg-layout:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} + +/* Fluid width container that does not wrap floats */ +.elgg-body, +.elgg-col-last { + display: block; + width: auto; + word-wrap: break-word; + overflow: hidden; + + /* IE 6, 7 */ + zoom:1; + *overflow:visible; +} + + +.elgg-body:after, +.elgg-col-last:after { + display: block; + visibility: hidden; + height: 0 !important; + line-height: 0; + + /* Stretch to fill up available space */ + font-size: xx-large; + content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x "; +} + +/* *************************************** + * MENUS + * + * To add separators to a menu: + * .elgg-menu-$menu > li:after {content: '|'; background: ...;} + *************************************** */ +/* Enabled nesting of dropdown/flyout menus */ +.elgg-menu > li { position: relative; } + +/* Separators should only come between list items */ +.elgg-menu > li:last-child:after { display: none } + +/* Maximize click target */ +.elgg-menu > li > a { display: block } + +/* Horizontal menus w/ separator support */ +.elgg-menu-hz > li, +.elgg-menu-hz > li:after, +.elgg-menu-hz > li > a, +.elgg-menu-hz > li > span { + vertical-align: middle; +} + +/* Allow inline image blocks in horizontal menus */ +.elgg-menu-hz .elgg-body:after { content: '.'; } + + +/* Inline block */ +.elgg-gallery > li, +.elgg-button, +.elgg-icon, +.elgg-menu-hz > li, +.elgg-menu-hz > li:after, +.elgg-menu-hz > li > a, +.elgg-menu-hz > li > span { + /* Google says do this, but why? */ + position: relative; + + /* FF2 */ + display: -moz-inline-box; + + display: inline-block; + + /* Inline-block: IE 6, 7 */ + zoom: 1; + *display: inline; +} \ No newline at end of file -- cgit v1.2.3 From 8cf8c5486e22b0d1c5ffb5caa60268016e42f27e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 14 Apr 2011 07:26:01 +0000 Subject: Fixes #2972: Following elements have default clearfix: elgg-inner elgg-page-header elgg-page-footer elgg-foot elgg-head elgg-col elgg-image-block git-svn-id: http://code.elgg.org/elgg/trunk@8997 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/elements/core.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'views/default/css/elements/core.php') diff --git a/views/default/css/elements/core.php b/views/default/css/elements/core.php index e99a11e13..c5d99512f 100644 --- a/views/default/css/elements/core.php +++ b/views/default/css/elements/core.php @@ -18,7 +18,14 @@ /* Clearfix */ .clearfix:after, .elgg-grid:after, -.elgg-layout:after { +.elgg-layout:after, +.elgg-inner:after, +.elgg-page-header:after, +.elgg-page-footer:after, +.elgg-head:after, +.elgg-foot:after, +.elgg-col:after, +.elgg-image-block:after { content: "."; display: block; height: 0; -- cgit v1.2.3