Преглед на файлове

fix: remove banner url_for() & fix search input height under Internet Explorer

ppoffice преди 9 години
родител
ревизия
ad5f6ce2d3
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 3 3
      layout/common/post/banner.ejs
  2. 1 1
      source/css/_partial/header.styl

+ 3 - 3
layout/common/post/banner.ejs

@@ -1,14 +1,14 @@
 <% if (post.link) { %>
 	<a href="<%- url_for(post.link) %>" target="_blank" itemprop="url">
-        <img src="<%- url_for(post.banner) %>" class="article-banner" />
+        <img src="<%- post.banner %>" class="article-banner" />
     </a>
 <% } else if (post.title) { %>
 	<% if (index) { %>
 		<a href="<%- url_for(post.path) %>" itemprop="url">
-            <img src="<%- url_for(post.banner) %>" class="article-banner" />
+            <img src="<%- post.banner %>" class="article-banner" />
         </a>
 	<% } else { %>
-		<img src="<%- url_for(post.banner) %>" class="article-banner" />
+		<img src="<%- post.banner %>" class="article-banner" />
 	<% } %>
 <% } %>
 

+ 1 - 1
source/css/_partial/header.styl

@@ -129,9 +129,9 @@ $nav-link
         position: relative
         .search-form-input
             width: 100%
-            height: logo-height
             padding: 0 30px 0 15px
             line-height: logo-height
+            height: logo-height !important
             border-radius: ((logo-height + 2)/2)
             &::-webkit-search-results-decoration
             &::-webkit-search-cancel-button