mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Added checkboxes to file list, fixed links
This commit is contained in:
parent
097f17358e
commit
239c1e2eb7
2 changed files with 18 additions and 2 deletions
|
@ -237,6 +237,10 @@
|
|||
width: 100%;
|
||||
position: relative;
|
||||
margin-top: 7px;
|
||||
|
||||
.column, input[type='checkbox'] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.files .header {
|
||||
background: #5E95A1;
|
||||
|
@ -470,6 +474,12 @@
|
|||
width: 30%;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
input[type='checkbox'] {
|
||||
display: block;
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
.html-thumbnail, .misc-icon {
|
||||
margin: 0;
|
||||
|
@ -495,8 +505,9 @@
|
|||
height: 23px;
|
||||
}
|
||||
.file > .overlay {
|
||||
border-radius: 3px;
|
||||
padding-top: 3px;
|
||||
margin-left: 20px;
|
||||
padding-right: 20px;
|
||||
text-align: right;
|
||||
background-color: transparent;
|
||||
display: block;
|
||||
|
@ -506,13 +517,17 @@
|
|||
display: inline;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.link-overlay {
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
.html-thumbnail > .overlay {
|
||||
background-color: transparent;
|
||||
display: none;
|
||||
}
|
||||
.column {
|
||||
float: left;
|
||||
width: 15%;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.site-actions {
|
||||
|
|
|
@ -114,6 +114,7 @@
|
|||
<div class="upload-Boundary <%= @file_list.length <= 5 ? 'with-instruction' : '' %>">
|
||||
<% @file_list.each do |file| %>
|
||||
<div class="file filehover">
|
||||
<input type="checkbox" name="" value="" />
|
||||
<% if file[:is_html] && current_site.screenshot_exists?(file[:path], '210x158') %>
|
||||
<div class="html-thumbnail html fileimagehover">
|
||||
<img src="<%= current_site.screenshot_url(file[:path], '210x158') %>" alt="">
|
||||
|
|
Loading…
Add table
Reference in a new issue