标签云效果优化

This commit is contained in:
结发受长生 2018-05-29 23:19:04 +08:00
parent 0b28edc40c
commit ee7e3fe114
4 changed files with 7 additions and 5 deletions

View File

@ -51,13 +51,13 @@
<!--
<%- image_tag(post.thumbnail, { class: "thumbnail" }) %>
-->
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%= post.thumbnail %>" alt="<%= post.title %>" >
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%= post.thumbnail %>" alt="<%= post.title %>" >
<% } else if (post.photos.length) { %>
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%= url_for(post.photos[0]) %>" alt="<%= post.title %>" >
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%= url_for(post.photos[0]) %>" alt="<%= post.title %>" >
<% } else if (theme.CDN) { %>
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%- url_for(theme.CDN + 'thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%- url_for(theme.CDN + 'thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
<% } else { %>
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%- url_for('img/thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%- url_for('img/thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
<% } %>
</a>
</div>

View File

@ -76,6 +76,7 @@
.tags-cloud > a
margin 0 3px
position relative
word-break: keep-all
&::after
content ''
display block
@ -85,7 +86,8 @@
position absolute
bottom -3px
left: 0
background #aaa
background-color #ccc
background-color currentColor
transition all 0.3s ease-in-out
// transformscalex0
transform scale3d(0,1,1)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB