1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-03-02 02:29:25 +01:00

Merge pull request from owncloud/bookmark-style-fixes

Edit Button Loads besides the title than a fixed distance.
This commit is contained in:
Raghu Nayyar 2013-02-19 02:46:02 -08:00
commit 9c483bb58d
2 changed files with 21 additions and 22 deletions

@ -104,28 +104,30 @@ input.disabled, input.disabled:hover, input.disabled:focus {
} }
.bookmark_single:hover { .bookmark_single:hover {
background-color:#f8f8f8 background-color:#f8f8f8;
} }
.bookmark_single:hover .bookmark_actions { .bookmark_single:hover .bookmark_actions {
display: block; display: block;
} }
.bookmark_edit_btn { .bookmark_title {
position: absolute; font-weight: bold;
top: 0.6em; display: inline-block;
left: 21%; margin-right: 0.8em;
margin-top:0.7em;
} }
.bookmark_title { .bookmark_title a {
font-weight: bold; white-space: nowrap;
display: inline-block; text-overflow: ellipsis;
margin-right: 0.8em; overflow: hidden;
margin-top:0.7em; display: inline-block;
width: 20%; max-width: 15em;
text-overflow: ellipsis; }
overflow: hidden;
white-space: nowrap; .bookmark_single:hover .bookmark_title .bookmark_edit_btn {
display:inline-block;
} }
.bm_view_list .bookmark_tags { .bm_view_list .bookmark_tags {

@ -10,15 +10,12 @@
<a href="<%= encodeURI(url) %>" target="_blank" class="bookmark_link"> <a href="<%= encodeURI(url) %>" target="_blank" class="bookmark_link">
<%= escapeHTML(title == '' ? encodeURI(url) : title ) %> <%= escapeHTML(title == '' ? encodeURI(url) : title ) %>
</a> </a>
<span class="bookmark_desc"><%= escapeHTML(description)%> </span> <span class="bookmark_edit bookmark_edit_btn">
<span class="bookmark_date"><%= formatDate(added_date) %></span> <img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>" title="<?php echo $l->t('Edit');?>">
</p>
<div class="bookmark_edit_btn">
<span class="bookmark_edit">
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>"
title="<?php echo $l->t('Edit');?>">
</span> </span>
</div> </p>
<span class="bookmark_desc"><%= escapeHTML(description)%> </span>
<span class="bookmark_date"><%= formatDate(added_date) %></span>
</div> </div>
</script> </script>