]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
.elgg-menu is no longer trivial
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 26 Feb 2011 01:26:56 +0000 (01:26 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 26 Feb 2011 01:26:56 +0000 (01:26 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8485 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/elements/layout.php
views/default/css/elements/navigation.php
views/default/navigation/breadcrumbs.php

index 6ae0a7a2105d569b6fa8eac2e134e56a18cd7631..96f5dbebe02c35b83c5ed63e0138c73d5e9bcc49 100644 (file)
        padding: 0 10px;
 }
 
-<?php // elgg logo and user avatar need to be adjusted slightly ?>
-.elgg-page-topbar img {
-       margin-top: -1px;
-}
-
 /***** PAGE MESSAGES ******/
 .elgg-system-messages {
        position: fixed;
@@ -76,7 +71,7 @@
        position: relative;
 }
 
-/***** PAGE BODY ******/
+/***** PAGE BODY LAYOUT ******/
 .elgg-layout {
        min-height: 360px;
 }
 .elgg-page-footer {
        position: relative;
 }
-.elgg-page-footer {
+.elgg-page-footer {
        color: #999999;
 }
 .elgg-page-footer a:hover {
index 19998365d694e97c486e746307f1f6514dfefe25..a755d41088d267d6b67090f97afa13b106fcd643 100644 (file)
        background: white;
 }
 
+/* ***************************************
+ * MENUS
+ *
+ * .elgg-menu does two things:
+ *   1) Vertically centers inline images and icons
+ *   2) Abstracts commonly-duplicated code used when adding "separators" to horizontal menus
+ *
+ * To make a menu horizontal:
+ * .elgg-menu-$menu > li {display:inline-block}
+ *
+ * To add separators to a horizontal menu:
+ * .elgg-menu-$menu > li:after {content: 'separator'}
+ *************************************** */
+.elgg-menu > li:after {display: inline-block}
+.elgg-menu > li:last-child:after {display:none}
+.elgg-menu > li > a {display:inline-block}
+.elgg-menu img, .elgg-menu .elgg-icon {vertical-align: middle; margin-top: -2px}
+
 /* ***************************************
        BREADCRUMBS
 *************************************** */
        color: #bababa;
 }
 .elgg-breadcrumbs li {
-       display: inline;
+       display: inline-block;
 }
 .elgg-breadcrumbs li:after{
        content: "\003E";
-       display: inline-block;
-       padding: 0 4px 0 4px;
+       padding: 0 4px;
        font-weight: normal;
 }
-.elgg-breadcrumbs li:last-child:after {
-       content: "";
-}
 .elgg-breadcrumbs a {
        color: #999999;
 }
        left: 0;
 }
 
-
-
 /* ***************************************
        TOPBAR MENU
 *************************************** */
        color: #eeeeee;
        margin-top: 2px;
        line-height: 1.1em;
-       display: block;
 }
 
 .elgg-menu-topbar > li > a:hover {
        font-weight: bold;
        padding: 3px 13px 0px 13px;
        height: 20px;
-       display: block;
 }
 .elgg-menu-site a:hover {
        text-decoration: none;
        float: none;
 }
 .elgg-menu-site .elgg-more:hover ul li a {
+       display: block;
        background: white;
        color: #555555;
        -webkit-border-radius: 0;
        display: block;
 }
 .elgg-menu-hover a {
-       display: block;
        padding: 2px 8px;
        font-size: 92%;
 }
 /* ***************************************
        FOOTER
 *************************************** */
-.elgg-menu-footer li {
-       float: left;
+.elgg-menu-footer li {
+       display: inline-block;
 }
-.elgg-menu-footer li:after {
+
+.elgg-menu-footer > li:after {
        content: "\007C";
-       display: inline-block;
-       padding: 0 4px 0 4px;
-       font-weight: normal;
+       padding: 0 4px;
 }
-.elgg-menu-footer li:last-child:after {
-       content: "";
+
+.elgg-menu-footer > li > a {
+       color:#999;
 }
+
 .elgg-menu-footer.elgg-section-alt {
        float: right;
 }
\ No newline at end of file
index 53d1ffaaf9a34702d8ab24efd8feb4507be09773..bad73c4b3431fd21a887fff3cf32a5602aa178ce 100644 (file)
@@ -17,7 +17,7 @@ if (isset($vars['breadcrumbs'])) {
        $breadcrumbs = elgg_get_breadcrumbs();
 }
 
-$class = 'elgg-breadcrumbs';
+$class = 'elgg-menu elgg-breadcrumbs';
 $additional_class = elgg_extract('class', $vars, '');
 if ($additional_class) {
        $class = "$class $additional_class";