fix: styles

This commit is contained in:
shenyu 2019-12-15 09:37:23 +08:00
parent d67628b2e8
commit 5c2ee359b8
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<section class="cover"> <section class="cover">
<% if (theme.github && theme.github.url){ %> <% if (theme.github && theme.github.url){ %>
<%# "GitHub Ribbons" %> <%# "GitHub Ribbons" %>
<a class="forkMe" style="position:absolute;z-index:999;top:0;right:0" href="<%=theme.github.url%>" <a class="forkMe" href="<%=theme.github.url%>"
target="_blank"><img width="149" height="149" src="<%- url_for('images/forkme.png') %>" target="_blank"><img width="149" height="149" src="<%- url_for('images/forkme.png') %>"
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a> class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
<% } %> <% } %>

View File

@ -10,6 +10,11 @@
padding 0 padding 0
margin-bottom 3rem margin-bottom 3rem
text-align center text-align center
.forkMe
position absolute
z-index 999
top 0
right 0
.content, .sidebar .content, .sidebar
transition(transition-base) transition(transition-base)
@ -88,6 +93,9 @@
transform: none transform: none
@media (max-width: 768px) @media (max-width: 768px)
.cover
.forkMe
display none
.content .content
&.on &.on
margin-left -1px !important margin-left -1px !important