Skip to content

Commit 954b57d

Browse files
author
Evan You
committed
fix ad placement in certain situations
1 parent b496e40 commit 954b57d

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

themes/vue/source/css/page.styl

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,27 @@ $header-height = 40px
149149
.sidebar
150150
position fixed
151151

152+
@media screen and (max-width: 1200px)
153+
#ad
154+
z-index 9
155+
position relative
156+
width auto
157+
height 100px
158+
padding 0
159+
bottom 0
160+
right 0
161+
margin 30px 0 35px
162+
.carbon-wrap, .carbon-img, .carbon-text, .carbon-poweredby
163+
display inline-block
164+
vertical-align top
165+
.carbon-text
166+
width 130px
167+
margin-left 15px
168+
.carbon-poweredby
169+
position absolute
170+
bottom 0
171+
left 145px
172+
152173
@media screen and (max-width: 720px)
153174
body
154175
-webkit-text-size-adjust none
@@ -209,22 +230,4 @@ $header-height = 40px
209230
margin-left 0
210231
.footer
211232
margin-left 0
212-
text-align center
213-
#ad
214-
position relative
215-
width auto
216-
height 100px
217-
padding 0
218-
bottom 0
219-
right 0
220-
margin 30px 0 35px
221-
.carbon-wrap, .carbon-img, .carbon-text, .carbon-poweredby
222-
display inline-block
223-
vertical-align top
224-
.carbon-text
225-
width 130px
226-
margin-left 15px
227-
.carbon-poweredby
228-
position absolute
229-
bottom 0
230-
left 145px
233+
text-align center

0 commit comments

Comments
 (0)