Fixed a bunch of alignment issues with files on the dashboard

This commit is contained in:
Victoria Wang 2014-04-22 11:55:50 -07:00
parent fa3eba3a22
commit 5b1b1003a6
4 changed files with 12 additions and 8 deletions

View file

@ -60,5 +60,5 @@ a{
@import 'project-Footer'; // Project Specific Footer Styling @import 'project-Footer'; // Project Specific Footer Styling
.alert{ .alert{
background-color:#F39C12; color:#fff; background-color:#F5BA00; color:#fff;
} }

View file

@ -184,7 +184,7 @@
} }
.file { .file {
float: left; float: left;
padding: 5px; padding: 5px 0px;
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
width: 125px; width: 125px;
@ -196,7 +196,11 @@
font-weight: bold; font-weight: bold;
font-size: 12px; font-size: 12px;
color: #666; color: #666;
margin-top: 4px;
text-decoration: none; text-decoration: none;
white-space: nowrap;
overflow: hidden;
display: block;
} }
.html-thumbnail { .html-thumbnail {
font-size: 11px; font-size: 11px;

File diff suppressed because one or more lines are too long

View file

@ -113,18 +113,18 @@
<% end %> <% end %>
<a class="title"> <a class="title">
<% if file.filename.length > 15 %> <% if file.filename.length > 14 %>
<%= file.filename.slice(0..15) %>&hellip; <%= file.filename.slice(0..14) %>&hellip;
<% else %> <% else %>
<%= file.filename %> <%= file.filename %>
<% end %> <% end %>
</a> </a>
<div class="overlay"> <div class="overlay">
<% if file.ext.match(/html|htm|txt|js|css|md/) %> <% if file.ext.match(/html|htm|txt|js|css|md/) %>
<a href="/site_files/text_editor/<%= file.filename %>"><i class="icon-edit" style="margin-right: 10px" title="Edit"> Edit</i></a> <a href="/site_files/text_editor/<%= file.filename %>"><i class="icon-edit" title="Edit"> Edit</i></a>
<% end %> <% end %>
<% if file.filename != 'index.html' %> <% if file.filename != 'index.html' %>
<a href="#" onclick="confirmFileDelete('<%= file.filename %>')"><i class="icon-trash" style="margin-right: 10px" title="Delete"> Delete</i></a> <a href="#" onclick="confirmFileDelete('<%= file.filename %>')"><i class="icon-trash" title="Delete"> Delete</i></a>
<% end %> <% end %>
<a class="link-overlay" href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="View <%= file.filename %>" target="_blank"></a> <a class="link-overlay" href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="View <%= file.filename %>" target="_blank"></a>
</div> </div>