aboutsummaryrefslogtreecommitdiff
path: root/views/default/css/elements/base.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-01 19:45:25 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-01 19:45:25 +0000
commit0fc7a5edbc518abd92c4fc8c34b31ca05836132f (patch)
tree29c0bfcc89e51a4c46eebebf5f4c8cb44465fc4c /views/default/css/elements/base.php
parent47e81498d87703035a9d3a78215e80d7f3e02448 (diff)
downloadelgg-0fc7a5edbc518abd92c4fc8c34b31ca05836132f.tar.gz
elgg-0fc7a5edbc518abd92c4fc8c34b31ca05836132f.tar.bz2
Refs #2317 dividing css element views into skin views and base views. The expectation is that the base views would not be overridden in a theme so the admin css can depend on them.
git-svn-id: http://code.elgg.org/elgg/trunk@7807 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/css/elements/base.php')
-rw-r--r--views/default/css/elements/base.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/views/default/css/elements/base.php b/views/default/css/elements/base.php
new file mode 100644
index 000000000..56a692c63
--- /dev/null
+++ b/views/default/css/elements/base.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ *
+ */
+
+
+?>
+
+.clearfloat { clear:both; }
+
+/* Clearfix! */
+.clearfix:after {
+ content:".";
+ display:block;
+ height:0;
+ clear:both;
+ visibility:hidden;
+}
+.hidden {
+ display:none;
+}
+.center {
+ margin:0 auto;
+}
+
+/**
+ * elgg-body fills the space available to it.
+ * It uses hidden text to expand itself. The combination of auto width, overflow
+ * hidden, and the hidden text creates this effect.
+ *
+ * This allows us to float fixed width divs to either side of an .elgg-body div
+ * without having to specify the body div's width.
+ *
+ * @todo check what happens with long <pre> tags or large images
+ */
+.elgg-body {
+ width: auto;
+ word-wrap: break-word;
+ overflow: hidden;
+}
+.elgg-body:after {
+ display: block;
+ visibility: hidden;
+ height: 0 !important;
+ line-height: 0;
+ 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 ";
+} \ No newline at end of file