Skip to content

Commit

Permalink
add: Update Reminder for IE6/7/8
Browse files Browse the repository at this point in the history
Yelee is incompatible with IE6/7/8
  • Loading branch information
MOxFIVE committed May 15, 2016
1 parent 06a8406 commit 6c91bed
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions layout/_partial/ie-updater.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!--[if lt IE 9]>
<style> body { background: orange !important;} div#container { display: none;} </style>
<p id="ie-updater">
<% if (page.lang === "zh-Hans") { %>
珍爱生命,远离 IE!<br>本站不支持 IE6/7/8,请升级浏览器!<br>
<% } else { %>
IE6/7/8 aren't Supported<br>Please UPDATE your Browser!<br>
<% } %>
<a href="//www.bing.com/search?q=Chrome" target="_blank">Chrome</a>, <a href="//www.bing.com/search?q=Firefox" target="_blank">Firefox</a><br>
Hexo Theme <a href="//github.com/MOxFIVE/hexo-theme-yelee" target="_blank">Yelee</a> by MOxFIVE
</p>
<![endif]-->
1 change: 1 addition & 0 deletions layout/layout.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%- partial('_partial/head') %>
<body>
<%- partial('_partial/ie-updater') %>
<div id="container">
<div class="left-col">
<%- partial('_partial/left-col', null, {cache: !config.relative_link}) %>
Expand Down
15 changes: 14 additions & 1 deletion source/css/_partial/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,17 @@ if hexo-config("progressBar.on") && hexo-config("progressBar.type") == "minimal"
.article-meta time:before
text-rendering auto
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
-moz-osx-font-smoothing grayscale

#ie-updater
width 100%
height 100%
padding-top 20%
text-align center
color white
font-size 1.5em
font-weight bold
line-height 1.8
a
color white
text-decoration underline

1 comment on commit 6c91bed

@MOxFIVE
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snip20160516_1

snip20160516_2

Please sign in to comment.