fixes
This commit is contained in:
@@ -5,8 +5,8 @@ div.post-previews {
|
|||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview {
|
article.post-preview {
|
||||||
height: 150px;
|
height: 154px;
|
||||||
width: 150px;
|
width: 154px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
float: left;
|
float: left;
|
||||||
@@ -23,23 +23,23 @@ article.post-preview.blacklisted-active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview img {
|
article.post-preview img {
|
||||||
border: 3px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-has-parent img {
|
article.post-preview.post-status-has-parent img {
|
||||||
border: 3px solid #CC0;
|
border: 2px solid #CC0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-has-children img {
|
article.post-preview.post-status-has-children img {
|
||||||
border: 3px solid #0F0;
|
border: 2px solid #0F0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-pending img {
|
article.post-preview.post-status-pending img {
|
||||||
border: 3px solid #00F;
|
border: 2px solid #00F;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.post-status-flagged img {
|
article.post-preview.post-status-flagged img {
|
||||||
border: 3px solid #F00;
|
border: 2px solid #F00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-1 a {
|
.category-1 a {
|
||||||
|
|||||||
@@ -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
|
if post.image_width > post.image_height && post.image_width > 150
|
||||||
klass = "wide"
|
klass = "wide"
|
||||||
else
|
else
|
||||||
klass = "tall"
|
klass = "tall"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Danbooru::Application.configure do
|
|||||||
config.assets.compress = true
|
config.assets.compress = true
|
||||||
|
|
||||||
# Don't fallback to assets pipeline if a precompiled asset is missed
|
# Don't fallback to assets pipeline if a precompiled asset is missed
|
||||||
config.assets.compile = false
|
config.assets.compile = true
|
||||||
|
|
||||||
# Generate digests for assets URLs
|
# Generate digests for assets URLs
|
||||||
config.assets.digest = true
|
config.assets.digest = true
|
||||||
|
|||||||
Reference in New Issue
Block a user