From 15b5c69fdaebc16ff12f60ea1eee2e176622fd6f Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 16 Aug 2012 16:09:51 +0200 Subject: User icons made circles, shadow in river messages. --- views/default/css/elements/components.php | 4 +- views/default/css/elements/forms.php | 2 - views/default/css/elements/icons.php | 16 +++++--- views/default/css/n1_theme/landing.php | 4 ++ views/default/river/elements/body.php | 67 +++++++++++++++++++++++++++++++ 5 files changed, 83 insertions(+), 10 deletions(-) create mode 100644 views/default/river/elements/body.php diff --git a/views/default/css/elements/components.php b/views/default/css/elements/components.php index e62e65d..8f2c392 100644 --- a/views/default/css/elements/components.php +++ b/views/default/css/elements/components.php @@ -175,8 +175,8 @@ .elgg-river-content { color: #444; background-color: #DDD; - border-right: solid px #888; - border-bottom: solid px #888; + border-right: solid 1px #888; + border-bottom: solid 1px #888; font-size: 85%; line-height: 1.5em; margin: 8px 0 5px 0; diff --git a/views/default/css/elements/forms.php b/views/default/css/elements/forms.php index a577876..746fd82 100644 --- a/views/default/css/elements/forms.php +++ b/views/default/css/elements/forms.php @@ -22,9 +22,7 @@ fieldset > div:last-child { } label { - font-weight: bold; color: #333; - font-size: 110%; } input, textarea { diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php index f7c789e..f99a41a 100644 --- a/views/default/css/elements/icons.php +++ b/views/default/css/elements/icons.php @@ -275,6 +275,10 @@ .elgg-icon-video { background-position: 0 -1512px; } +.elgg-icon-logout { + background: transparent url(mod/_graphics/usernavicons.png) no-repeat left; + background-position: 0 0; +} .elgg-avatar > .elgg-icon-hover-menu { @@ -307,9 +311,9 @@ height: 25px; /* remove the border-radius if you don't want rounded avatars in supported browsers */ - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; + -webkit-border-radius: 13px; + -moz-border-radius: 13px; + border-radius: 13px; -moz-background-clip: border; background-clip: border; @@ -325,9 +329,9 @@ height: 40px; /* remove the border-radius if you don't want rounded avatars in supported browsers */ - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; + -webkit-border-radius: 20px; + -moz-border-radius: 20px; + border-radius: 20px; -moz-background-clip: border; background-clip: border; diff --git a/views/default/css/n1_theme/landing.php b/views/default/css/n1_theme/landing.php index 1e8c9d1..1343d51 100644 --- a/views/default/css/n1_theme/landing.php +++ b/views/default/css/n1_theme/landing.php @@ -23,6 +23,10 @@ color: #666; } +.elgg-sidebar h3 { + font-size: 1.6em; +} + #login-dropdown { display:none; } diff --git a/views/default/river/elements/body.php b/views/default/river/elements/body.php new file mode 100644 index 0000000..b8e6c11 --- /dev/null +++ b/views/default/river/elements/body.php @@ -0,0 +1,67 @@ + $item, + 'sort_by' => 'priority', + 'class' => 'elgg-menu-hz', +)); + +// river item header +$timestamp = elgg_view_friendly_time($item->getPostedTime()); + +$summary = elgg_extract('summary', $vars, elgg_view('river/elements/summary', array('item' => $vars['item']))); +if ($summary === false) { + $subject = $item->getSubjectEntity(); + $summary = elgg_view('output/url', array( + 'href' => $subject->getURL(), + 'text' => $subject->name, + 'class' => 'elgg-river-subject', + 'is_trusted' => true, + )); +} + +$message = elgg_extract('message', $vars, false); +if ($message) { + $message = "
$message
"; +} + +$attachments = elgg_extract('attachments', $vars, false); +if ($attachments) { + $attachments = "
$attachments
"; +} + +$responses = elgg_view('river/elements/responses', $vars); +if ($responses) { + $responses = "
$responses
"; +} + +$group_string = ''; +$object = $item->getObjectEntity(); +$container = $object->getContainerEntity(); +if ($container instanceof ElggGroup && $container->guid != elgg_get_page_owner_guid()) { + $group_link = elgg_view('output/url', array( + 'href' => $container->getURL(), + 'text' => $container->name, + 'is_trusted' => true, + )); + $group_string = elgg_echo('river:ingroup', array($group_link)); +} + +echo <<$summary $group_string $timestamp +$message +$attachments +$responses +RIVER; -- cgit v1.2.3