Improved css for task manager.

This commit is contained in:
Martin Edenhofer 2013-04-18 14:41:58 +02:00
parent 0b26b5cdd5
commit 32b5bd3352
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<div class="well" style="position: fixed; top: 40px; width: 100%; padding: 5px;"> <div class="well taskbar">
<% for item in @item_list: %> <% for item in @item_list: %>
<span class="label label-success" data-id="<%- item.key %>"><span class="task"><a style="color: #ffffff;" href="#ticket/zoom/<%- item.data.id %>" title="<%= item.data.title %>"><%= item.data.title %></a></span> <a href="#" data-type="close" class="icon-remove-circle" title="<%- @T('close') %>"></a></span> <span class="label label-success" data-id="<%- item.key %>"><span class="task"><a href="#ticket/zoom/<%- item.data.id %>" title="<%= item.data.title %>"><%= item.data.title %></a></span> <a href="#" data-type="close" class="icon-remove-circle" title="<%- @T('close') %>"></a></span>
<% end %> <% end %>
</div> </div>

View file

@ -47,6 +47,14 @@ table th, table td {
white-space: nowrap; white-space: nowrap;
} }
.taskbar {
position: fixed;
top: 40px;
width: 100%;
padding: 5px;
z-index: 990;
}
.task { .task {
display: inline-block; display: inline-block;
max-width: 120px; max-width: 120px;
@ -54,7 +62,9 @@ table th, table td {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.task > a,
.task > a:hover { .task > a:hover {
color: #ffffff;
text-decoration: none; text-decoration: none;
} }