Skip to content

Commit 5284fac

Browse files
authored
Fix jump when banner disapear (#992)
1 parent 18c496a commit 5284fac

File tree

1 file changed

+12
-47
lines changed

1 file changed

+12
-47
lines changed

src/.vuepress/theme/styles/vuemastery-banner.styl

+12-47
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
background-size 100% auto
44
overflow hidden
55
position relative
6-
transition all .3s ease-out .1s
76

87
&:before
98
content ''
@@ -149,39 +148,6 @@
149148
transform: rotate(35deg);
150149
width: 100px;
151150

152-
.vuemastery-weekend-promo
153-
#mobile-bar,
154-
#mobile-bar.top
155-
position relative
156-
background-color #fff
157-
158-
&.docs:not(.vuemastery-menu-fixed)
159-
padding-top 0
160-
#header
161-
position relative
162-
width auto
163-
#nav
164-
position absolute
165-
166-
&.vuemastery-menu-fixed
167-
#mobile-bar
168-
position fixed
169-
170-
@media screen and (min-width: 901px)
171-
.vuemastery-weekend-promo
172-
&.docs:not(.vuemastery-menu-fixed)
173-
#main.fix-sidebar .sidebar
174-
position absolute
175-
top 141px
176-
177-
#sidebar-sponsors-platinum-right
178-
position absolute
179-
top: 170px;
180-
181-
&.vuemastery-menu-fixed.docs
182-
.vuemastery-banner
183-
margin-bottom 0
184-
185151
@media screen and (max-width: 1200px)
186152
.vuemastery-banner
187153
&,
@@ -198,13 +164,6 @@
198164
.vuemastery-button
199165
display none
200166

201-
@media screen and (max-width: 900px)
202-
.vuemastery-weekend-promo
203-
&.vuemastery-menu-fixed
204-
.vuemastery-banner
205-
margin-bottom 40px
206-
207-
208167
@media screen and (max-width: 700px)
209168
.vuemastery-banner
210169
&:after
@@ -260,16 +219,22 @@
260219

261220
.sidebar
262221
position absolute
263-
top 7.60625rem
222+
top 8.6rem
223+
bottom -5rem
224+
225+
@media screen and (max-width: 700px)
226+
top: 98px;
227+
bottom: -20px;
264228

265229
&.vuemastery-menu-fixed
230+
.vuemastery-banner
231+
margin-bottom 56px
232+
266233
.sidebar,
267234
.navbar
268235
position fixed
236+
top -1px
269237

270238
.sidebar
271-
top 3.6rem
272-
273-
+mqMax(tablet)
274-
.vuemastery-banner
275-
margin-bottom 40px
239+
top 3.5rem
240+
bottom 0

0 commit comments

Comments
 (0)