aboutsummaryrefslogtreecommitdiff
path: root/views/default/css/elements
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 15:45:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 15:45:43 +0000
commit54b01954f02adbb17df1cf44e2b215ddfb54b587 (patch)
tree28589721a552551df1dcf1bd4efe4c0fd14af80e /views/default/css/elements
parentea3951a035e38e96435db20f820c9da566ed373b (diff)
downloadelgg-54b01954f02adbb17df1cf44e2b215ddfb54b587.tar.gz
elgg-54b01954f02adbb17df1cf44e2b215ddfb54b587.tar.bz2
cleaned up hover menu
git-svn-id: http://code.elgg.org/elgg/trunk@8027 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/css/elements')
-rw-r--r--views/default/css/elements/grid.php18
-rw-r--r--views/default/css/elements/icons.php16
-rw-r--r--views/default/css/elements/layout_objects.php10
-rw-r--r--views/default/css/elements/navigation.php35
4 files changed, 41 insertions, 38 deletions
diff --git a/views/default/css/elements/grid.php b/views/default/css/elements/grid.php
index f7d23a6f0..04c9a46b5 100644
--- a/views/default/css/elements/grid.php
+++ b/views/default/css/elements/grid.php
@@ -5,7 +5,8 @@
* @package Elgg.Core
* @subpackage UI
*
- * @todo last column needs to be elgg-body style to absorb subpixel rounding discrepancies
+ * To work around subpixel rounding discrepancies, apply .elgg-col-last to
+ * the last column (@todo we need broswer-specific test cases for this).
*/
?>
/* ***************************************
@@ -52,3 +53,18 @@
.elgg-col-5of6 {
width: 83.33%;
}
+.elgg-col-last {
+ width: auto;
+ float: none;
+ display: table-cell;
+}
+.elgg-col-last:after {
+ clear: both;
+ display: block;
+ visibility: hidden;
+ overflow: 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
diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php
index b8e6b20f0..d465d5efd 100644
--- a/views/default/css/elements/icons.php
+++ b/views/default/css/elements/icons.php
@@ -1,6 +1,6 @@
<?php
/**
- *
+ * Elgg icons
*/
?>
@@ -63,6 +63,20 @@
.elgg-icon-rss {
background-position: -249px 1px;
}
+.elgg-icon-hover-menu {
+ background-position: -150px 0;
+}
+.elgg-icon-hover-menu:hover {
+ background-position: -150px -32px;
+}
+.elgg-user-icon > .elgg-icon-hover-menu {
+ display: none;
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ margin: 0;
+ cursor: pointer;
+}
<?php //@todo prefix with elgg- ?>
.ajax-loader {
diff --git a/views/default/css/elements/layout_objects.php b/views/default/css/elements/layout_objects.php
index 87608e205..ebb45bbf3 100644
--- a/views/default/css/elements/layout_objects.php
+++ b/views/default/css/elements/layout_objects.php
@@ -162,11 +162,17 @@ table.styled tr:hover {
-webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}
-
-<?php //@todo core.php? ?>
+/* ***************************************
+ OWNER BLOCK
+*************************************** */
.elgg-owner-block {
margin-bottom: 20px;
}
+.elgg-owner-block-menu li {
+ float: left;
+ width: 50%;
+ font-size: 90%;
+}
/* ***************************************
WIDGETS
*************************************** */
diff --git a/views/default/css/elements/navigation.php b/views/default/css/elements/navigation.php
index 4ebe5a6f1..730278399 100644
--- a/views/default/css/elements/navigation.php
+++ b/views/default/css/elements/navigation.php
@@ -241,6 +241,7 @@
.elgg-hover-menu {
display: none;
position: absolute;
+ z-index: 10000;
width: 165px;
border-top: solid 1px #E5E5E5;
@@ -274,40 +275,6 @@
background-color: red;
}
-<?php //@todo needs revamp ?>
-.avatar_menu_button {
- width:15px;
- height:15px;
- position:absolute;
- cursor:pointer;
- display:none;
- right:0;
- bottom:0;
-}
-.avatar_menu_arrow {
- background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px top;
- width:15px;
- height:15px;
-}
-.avatar_menu_arrow_on {
- background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px -16px;
- width:15px;
- height:15px;
-}
-.avatar_menu_arrow_hover {
- background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat -150px -32px;
- width:15px;
- height:15px;
-}
-
-/* ***************************************
- OWNER BLOCK
-*************************************** */
-.elgg-owner-block-menu li {
- float: left;
- width: 50%;
- font-size: 90%;
-}
/* ***************************************
FOOTER
*************************************** */