make comment edit icons look more like base theme

This commit is contained in:
friendica 2012-04-26 19:55:20 -07:00
parent 2d94d216a3
commit 3c6cf1f19c
5 changed files with 37 additions and 29 deletions

View file

@ -69,7 +69,7 @@ $a->config['system']['rino_encrypt'] = true;
// allowed themes (change this from admin panel after installation) // allowed themes (change this from admin panel after installation)
$a->config['system']['allowed_themes'] = 'dispy,quattro,testbubble,vier,darkbubble,darkzero,duepuntozero,greenzero,purplezero,quattro-green,slackr,diabook,diabook-blue'; $a->config['system']['allowed_themes'] = 'dispy,quattro,vier,darkzero,duepuntozero,greenzero,purplezero,slackr,diabook';
// default system theme // default system theme

View file

@ -553,6 +553,14 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
'$myphoto' => $a->contact['thumb'], '$myphoto' => $a->contact['thumb'],
'$comment' => t('Comment'), '$comment' => t('Comment'),
'$submit' => t('Submit'), '$submit' => t('Submit'),
'$edbold' => t('Bold'),
'$editalic' => t('Italic'),
'$eduline' => t('Underline'),
'$edquote' => t('Quote'),
'$edcode' => t('Code'),
'$edimg' => t('Image'),
'$edurl' => t('Link'),
'$edvideo' => t('Video'),
'$preview' => t('Preview'), '$preview' => t('Preview'),
'$ww' => (($mode === 'network') ? $commentww : '') '$ww' => (($mode === 'network') ? $commentww : '')
)); ));

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -13,28 +13,28 @@
<div class="comment-edit-photo-end"></div> <div class="comment-edit-photo-end"></div>
<ul class="comment-edit-bb-$id"> <ul class="comment-edit-bb-$id">
<li><a class="editicon boldbb shadow" <li><a class="editicon boldbb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edbold"
onclick="insertFormatting('$comment','b', $id);"></a></li> onclick="insertFormatting('$comment','b', $id);"></a></li>
<li><a class="editicon italicbb shadow" <li><a class="editicon italicbb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$editalic"
onclick="insertFormatting('$comment','i', $id);"></a></li> onclick="insertFormatting('$comment','i', $id);"></a></li>
<li><a class="editicon underlinebb shadow" <li><a class="editicon underlinebb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$eduline"
onclick="insertFormatting('$comment','u', $id);"></a></li> onclick="insertFormatting('$comment','u', $id);"></a></li>
<li><a class="editicon quotebb shadow" <li><a class="editicon quotebb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edquote"
onclick="insertFormatting('$comment','quote', $id);"></a></li> onclick="insertFormatting('$comment','quote', $id);"></a></li>
<li><a class="editicon codebb shadow" <li><a class="editicon codebb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edcode"
onclick="insertFormatting('$comment','code', $id);"></a></li> onclick="insertFormatting('$comment','code', $id);"></a></li>
<li><a class="editicon imagebb shadow" <li><a class="editicon imagebb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edimg"
onclick="insertFormatting('$comment','img', $id);"></a></li> onclick="insertFormatting('$comment','img', $id);"></a></li>
<li><a class="editicon urlbb shadow" <li><a class="editicon urlbb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edurl"
onclick="insertFormatting('$comment','url', $id);"></a></li> onclick="insertFormatting('$comment','url', $id);"></a></li>
<li><a class="editicon videobb shadow" <li><a class="editicon videobb shadow"
style="cursor: pointer;" style="cursor: pointer;" title="$edvideo"
onclick="insertFormatting('$comment','video', $id);"></a></li> onclick="insertFormatting('$comment','video', $id);"></a></li>
</ul> </ul>
<div class="comment-edit-bb-end"></div> <div class="comment-edit-bb-end"></div>

View file

@ -2956,62 +2956,62 @@ aside input[type='text'] {
} }
.editicon { .editicon {
display: inline-block; display: inline-block;
width: 21px; width: 16px;
height: 21px; height: 16px;
background: url(editicons.png) no-repeat; background-image: url(bbedit.png);
border: 0; background-color: #fff;
text-decoration: none; text-decoration: none;
} }
.editicon:hover { .editicon:hover {
border: 0; background-color: #ccc;
} }
.boldbb { .boldbb {
background-position: 0px 0px; background-position: 0px 0px;
} }
.boldbb:hover { .boldbb:hover {
background-position: -22px 0px; background-position: 0px -16px;
} }
.italicbb { .italicbb {
background-position: 0px -22px; background-position: -16px 0px;
} }
.italicbb:hover { .italicbb:hover {
background-position: -22px -22px; background-position: -16px -16px;
} }
.underlinebb { .underlinebb {
background-position: 0px -44px; background-position: -32px 0px;
} }
.underlinebb:hover { .underlinebb:hover {
background-position: -22px -44px; background-position: -32px -16px;
} }
.quotebb { .quotebb {
background-position: 0px -66px; background-position: -48px 0px;
} }
.quotebb:hover { .quotebb:hover {
background-position: -22px -66px; background-position: -48px -16px;
} }
.codebb { .codebb {
background-position: 0px -88px; background-position: -64px 0px;
} }
.codebb:hover { .codebb:hover {
background-position: -22px -88px; background-position: -64px -16px;
} }
.imagebb { .imagebb {
background-position: -44px 0px; background-position: -80px 0px;
} }
.imagebb:hover { .imagebb:hover {
background-position: -66px 0px; background-position: -80px -16px;
} }
.urlbb { .urlbb {
background-position: -44px -22px; background-position: -96px 0px;
} }
.urlbb:hover { .urlbb:hover {
background-position: -66px -22px; background-position: -96px -16px;
} }
.videobb { .videobb {
background-position: -44px -44px; background-position: -112px 0px;
} }
.videobb:hover { .videobb:hover {
background-position: -66px -44px; background-position: -112px -16px;
} }
.attachtype { .attachtype {