icarus 291 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. commit ad5f6ce2d3c87d388e1e5673424d48c25822fa85
  2. Author: ppoffice <ppoffice_2008@163.com>
  3. Date: Tue Apr 19 18:25:49 2016 +0800
  4. fix: remove banner url_for() & fix search input height under Internet Explorer
  5. diff --git a/layout/common/post/banner.ejs b/layout/common/post/banner.ejs
  6. index f64a1b2..5e9b552 100644
  7. --- a/layout/common/post/banner.ejs
  8. +++ b/layout/common/post/banner.ejs
  9. @@ -1,14 +1,14 @@
  10. <% if (post.link) { %>
  11. <a href="<%- url_for(post.link) %>" target="_blank" itemprop="url">
  12. - <img src="<%- url_for(post.banner) %>" class="article-banner" />
  13. + <img src="<%- post.banner %>" class="article-banner" />
  14. </a>
  15. <% } else if (post.title) { %>
  16. <% if (index) { %>
  17. <a href="<%- url_for(post.path) %>" itemprop="url">
  18. - <img src="<%- url_for(post.banner) %>" class="article-banner" />
  19. + <img src="<%- post.banner %>" class="article-banner" />
  20. </a>
  21. <% } else { %>
  22. - <img src="<%- url_for(post.banner) %>" class="article-banner" />
  23. + <img src="<%- post.banner %>" class="article-banner" />
  24. <% } %>
  25. <% } %>
  26. diff --git a/source/css/_partial/header.styl b/source/css/_partial/header.styl
  27. index e2a24e2..f61471f 100644
  28. --- a/source/css/_partial/header.styl
  29. +++ b/source/css/_partial/header.styl
  30. @@ -129,9 +129,9 @@ $nav-link
  31. position: relative
  32. .search-form-input
  33. width: 100%
  34. - height: logo-height
  35. padding: 0 30px 0 15px
  36. line-height: logo-height
  37. + height: logo-height !important
  38. border-radius: ((logo-height + 2)/2)
  39. &::-webkit-search-results-decoration
  40. &::-webkit-search-cancel-button