Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed Dec 22, 2020
1 parent 1cdb58e commit 816349f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/content-header-ad.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if site.google.adsense.content_header and site.url contains 'mazhuang.org' %}
<!-- 博客-文章头部 -->
<ins class="adsbygoogle"
<ins class="adsbygoogle content-header-ad"
style="display:block"
data-ad-client="ca-pub-7093222719567591"
data-ad-slot="1650902835"
Expand Down
5 changes: 5 additions & 0 deletions assets/css/globals/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -738,3 +738,8 @@ div.footnotes::before {
img + em {
color: grey;
}

.content-header-ad { display:inline-block; width: 320px; height: 50px; }
@media (max-width: 400px) { .content-header-ad { display: none; } }
@media (min-width:500px) { .content-header-ad { width: 468px; height: 60px; } }
@media (min-width:800px) { .content-header-ad { width: 728px; height: 90px; } }

0 comments on commit 816349f

Please sign in to comment.