switch bookmark CSS classes to use dash instead of underscore

This commit is contained in:
Evan Prodromou 2010-12-30 16:54:01 -08:00
parent 7793d3b7ad
commit 5d7f5212f0
2 changed files with 13 additions and 11 deletions

View File

@ -251,14 +251,15 @@ class BookmarkPlugin extends Plugin
} else { } else {
$out->elementStart('h3'); $out->elementStart('h3');
$out->element('a', $out->element('a',
array('href' => $att->url), array('href' => $att->url,
'class' => 'bookmark-title entry-title'),
$nb->title); $nb->title);
$out->elementEnd('h3'); $out->elementEnd('h3');
$countUrl = common_local_url('noticebyurl', $countUrl = common_local_url('noticebyurl',
array('id' => $att->id)); array('id' => $att->id));
$out->element('a', array('class' => 'bookmark_notice_count', $out->element('a', array('class' => 'bookmark-notice-count',
'href' => $countUrl), 'href' => $countUrl),
$att->noticeCount()); $att->noticeCount());
} }
@ -270,7 +271,7 @@ class BookmarkPlugin extends Plugin
if (!empty($replies) || !empty($tags)) { if (!empty($replies) || !empty($tags)) {
$out->elementStart('ul', array('class' => 'bookmark_tags')); $out->elementStart('ul', array('class' => 'bookmark-tags'));
foreach ($replies as $reply) { foreach ($replies as $reply) {
$other = Profile::staticGet('id', $reply); $other = Profile::staticGet('id', $reply);
@ -298,7 +299,7 @@ class BookmarkPlugin extends Plugin
if (!empty($nb->description)) { if (!empty($nb->description)) {
$out->element('p', $out->element('p',
array('class' => 'bookmark_description'), array('class' => 'bookmark-description'),
$nb->description); $nb->description);
} }
@ -317,7 +318,7 @@ class BookmarkPlugin extends Plugin
} }
} }
$out->elementStart('p', array('class' => 'bookmark_info')); $out->elementStart('p', array('class' => 'bookmark-info'));
$avatar = $profile->getAvatar(AVATAR_MINI_SIZE); $avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
@ -325,7 +326,7 @@ class BookmarkPlugin extends Plugin
array('src' => ($avatar) ? array('src' => ($avatar) ?
$avatar->displayUrl() : $avatar->displayUrl() :
Avatar::defaultImage(AVATAR_MINI_SIZE), Avatar::defaultImage(AVATAR_MINI_SIZE),
'class' => 'avatar photo bookmark_avatar', 'class' => 'avatar photo bookmark-avatar',
'width' => AVATAR_MINI_SIZE, 'width' => AVATAR_MINI_SIZE,
'height' => AVATAR_MINI_SIZE, 'height' => AVATAR_MINI_SIZE,
'alt' => $profile->getBestName())); 'alt' => $profile->getBestName()));

View File

@ -1,5 +1,6 @@
.bookmark_tags li { display: inline; } .bookmark-tags li { display: inline; }
.bookmark_mentions li { display: inline; } .bookmark-mentions li { display: inline; }
.bookmark_avatar { float: left } .bookmark-avatar { float: left; }
.bookmark_notice_count { float: right } .bookmark-notice-count { float: right; }
.bookmark_info { float: left } .bookmark-info { float: left; }
.bookmark-title { margin-left: 0px }