mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Initial work on size/updated columns; switched title truncation from ruby to css text-overflow
This commit is contained in:
parent
5878692c81
commit
b0667a73a7
2 changed files with 17 additions and 5 deletions
|
@ -360,6 +360,7 @@
|
|||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.html-thumbnail {
|
||||
font-size: 11px;
|
||||
|
@ -465,6 +466,9 @@
|
|||
margin-top: 2px;
|
||||
float: left;
|
||||
font-size: 13px;
|
||||
text-align: left;
|
||||
width: 30%;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
.html-thumbnail, .misc-icon {
|
||||
|
@ -494,6 +498,7 @@
|
|||
border-radius: 3px;
|
||||
padding-top: 3px;
|
||||
text-align: right;
|
||||
background-color: rgba(0, 0, 0, 0.06);
|
||||
|
||||
a {
|
||||
color: #e93250;
|
||||
|
@ -504,6 +509,10 @@
|
|||
.html-thumbnail > .overlay {
|
||||
background-color: transparent;
|
||||
}
|
||||
.column {
|
||||
float: left;
|
||||
width: 15%;
|
||||
}
|
||||
}
|
||||
.site-actions {
|
||||
float: left;
|
||||
|
|
|
@ -137,12 +137,15 @@
|
|||
<% end %>
|
||||
|
||||
<a class="title">
|
||||
<% if file[:name].length > 19 %>
|
||||
<%= file[:name].slice(0..18) %>…
|
||||
<% else %>
|
||||
<%= file[:name] %>
|
||||
<% end %>
|
||||
</a>
|
||||
<div class="column size">
|
||||
5KB
|
||||
</div>
|
||||
<div class="column updated">
|
||||
5/13/15
|
||||
</div>
|
||||
|
||||
<div class="overlay">
|
||||
<% if file[:is_editable] %>
|
||||
<a href="/site_files/text_editor<%= file[:path] %>"><i class="fa fa-edit" title="Edit"></i> Edit</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue