Commits

keakon committed d0d81e8

修正博客名称较长时,footer会换行的bug

  • Participants
  • Parent commits f32ef79

Comments (0)

Files changed (4)

File en/static/theme/null/css/style.css

 #footer {
 	font-size: .9em;
 	line-height: 1.4em;
-	height: 45px;
 	min-width: 400px;
 	display: inline-block;
 }
 #footer .credits {
 	font-size: .9em;
 	line-height: 1em;
-	position: absolute;
-	top: 40px;
-	margin: 0;
-	padding: 0;
+	margin-top: 10px;
 }
 #footer .credits span {
 	margin: 0 6px;

File en/template/null/footer.html

 <footer id="footer">
 <?py if page not in ('404', '500', 'profile'): ?>
 	<p class="backtotop"><a href="#">▲Top</a></p>
-<?py #endif ?>
-	<p class="credits">©<a href="#{{BLOG_HOME_RELATIVE_PATH}}">${{BLOG_TITLE}}</a><span>•</span>Powered by <a href="https://bitbucket.org/keakon/doodle" rel="nofollow">Doodle</a><span>•</span>Designed by <a href="http://www.keakon.net/" rel="nofollow">keakon</a></p>
 <?py
+#endif
 from hook import local
 
 if request.is_admin or DISPLAY_PERFORMANCE_TO_EVERYONE:
 <?py else: ?>
 	<p>Page generated time: ${formatted_time(get_local_now(), False)}</p>
 <?py #endif ?>
+	<p class="credits">©<a href="#{{BLOG_HOME_RELATIVE_PATH}}">${{BLOG_TITLE}}</a><span>•</span>Powered by <a href="https://bitbucket.org/keakon/doodle" rel="nofollow">Doodle</a><span>•</span>Designed by <a href="http://www.keakon.net/" rel="nofollow">keakon</a></p>
 </footer>
 </div>
 </div>

File zh-CN/static/theme/null/css/style.css

 #footer {
 	font-size: .9em;
 	line-height: 1.4em;
-	height: 45px;
 	min-width: 400px;
 	display: inline-block;
 }
 #footer .credits {
 	font-size: .9em;
 	line-height: 1em;
-	position: absolute;
-	top: 40px;
-	margin: 0;
-	padding: 0;
+	margin-top: 10px;
 }
 #footer .credits span {
 	margin: 0 6px;

File zh-CN/template/null/footer.html

 <footer id="footer">
 <?py if page not in ('404', '500', 'profile'): ?>
 	<p class="backtotop"><a href="#">▲Top</a></p>
-<?py #endif ?>
-	<p class="credits">©<a href="#{{BLOG_HOME_RELATIVE_PATH}}">${{BLOG_TITLE}}</a><span>•</span>Powered by <a href="https://bitbucket.org/keakon/doodle" rel="nofollow">Doodle</a><span>•</span>Designed by <a href="http://www.keakon.net/" rel="nofollow">keakon</a></p>
 <?py
+#endif
 from hook import local
 
 if request.is_admin or DISPLAY_PERFORMANCE_TO_EVERYONE:
 <?py else: ?>
 	<p>页面生成时间:${formatted_time(get_local_now(), False)}</p>
 <?py #endif ?>
+	<p class="credits">©<a href="#{{BLOG_HOME_RELATIVE_PATH}}">${{BLOG_TITLE}}</a><span>•</span>Powered by <a href="https://bitbucket.org/keakon/doodle" rel="nofollow">Doodle</a><span>•</span>Designed by <a href="http://www.keakon.net/" rel="nofollow">keakon</a></p>
 </footer>
 </div>
 </div>