style
This commit is contained in:
@@ -5,10 +5,10 @@ div.post-previews {
|
|||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview {
|
article.post-preview {
|
||||||
height: 154px;
|
height: 150px;
|
||||||
width: 154px;
|
width: 150px;
|
||||||
margin-right: 20px;
|
margin-right: 15px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 15px;
|
||||||
float: left;
|
float: left;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@include inline-block;
|
@include inline-block;
|
||||||
@@ -26,19 +26,19 @@ article.post-preview img {
|
|||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-has-parent img {
|
article.post-preview.post-status-has-parent {
|
||||||
border: 2px solid #CC0;
|
border: 2px solid #CC0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-has-children img {
|
article.post-preview.post-status-has-children {
|
||||||
border: 2px solid #0F0;
|
border: 2px solid #0F0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-pending img {
|
article.post-preview.post-status-pending {
|
||||||
border: 2px solid #00F;
|
border: 2px solid #00F;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-flagged img {
|
article.post-preview.post-status-flagged {
|
||||||
border: 2px solid #F00;
|
border: 2px solid #F00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class PostPresenter < Presenter
|
|||||||
html = %{<article class="post-preview" id="post_#{post.id}" data-id="#{post.id}" data-tags="#{h(post.tag_string)}" data-uploader="#{h(post.uploader_name)}" data-rating="#{post.rating}" data-width="#{post.image_width}" data-height="#{post.image_height}" data-flags="#{flags.join(' ')}" data-parent-id="#{post.parent_id}" data-has-children="#{post.has_children?}">}
|
html = %{<article class="post-preview" id="post_#{post.id}" data-id="#{post.id}" data-tags="#{h(post.tag_string)}" data-uploader="#{h(post.uploader_name)}" data-rating="#{post.rating}" data-width="#{post.image_width}" data-height="#{post.image_height}" data-flags="#{flags.join(' ')}" data-parent-id="#{post.parent_id}" data-has-children="#{post.has_children?}">}
|
||||||
html << %{<a href="#{path}/#{post.id}">}
|
html << %{<a href="#{path}/#{post.id}">}
|
||||||
|
|
||||||
if post.image_width > post.image_height && post.image_width > 150
|
if post.image_width > post.image_height && post.image_width > Danbooru.config.small_image_width
|
||||||
klass = "wide"
|
klass = "wide"
|
||||||
else
|
else
|
||||||
klass = "tall"
|
klass = "tall"
|
||||||
|
|||||||
Reference in New Issue
Block a user