Skip to content

Commit 40151aa

Browse files
authored
Update Vue School banner (#1094)
1 parent 6b50ac6 commit 40151aa

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

src/.vuepress/theme/components/BannerTop.vue

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
<img src="/images/vueschool/vs-backpack.png" alt="Backpack">
1212
</div>
1313
<div class="vs-slogan">
14-
3-months Vue School for only $49 <span style="text-decoration: line-through">$75</span>!
15-
<span class="vs-slogan-light">
16-
Limited Time Offer
17-
</span>
14+
Less than <span class="vs-slogan-light">48 hours</span> left for the Vue School offer
1815
</div>
1916
<div class="vs-button">
2017
GET ACCESS
@@ -58,19 +55,19 @@ $topBannerHeightMobile ?= 3.125rem
5855
background: #f22606
5956
6057
.vs-iso
61-
display: none
62-
position: absolute
63-
left: 20px
58+
display: none
59+
position: absolute
60+
left: 20px
61+
height: 26px
62+
img
6463
height: 26px
64+
@media (min-width: 680px)
65+
display: inline-block
66+
height: 40px
6567
img
66-
height: 26px
67-
@media (min-width: 680px)
68-
display: inline-block
6968
height: 40px
70-
img
71-
height: 40px
72-
@media (min-width: 900px)
73-
display: none
69+
@media (min-width: 900px)
70+
display: none
7471
7572
.vs-logo
7673
position: absolute
@@ -85,7 +82,9 @@ $topBannerHeightMobile ?= 3.125rem
8582
8683
.vs-backpack
8784
margin-right: 6px
85+
position: absolute
8886
@media (min-width: 680px)
87+
position: static
8988
margin-right: 14px
9089
img
9190
height: 50px
@@ -96,20 +95,23 @@ $topBannerHeightMobile ?= 3.125rem
9695
color: #FFF
9796
font-weight: bold
9897
font-size: 14px
99-
margin-right: 26px
98+
text-align: center
99+
padding: 0 90px
100100
@media (min-width: 680px)
101+
padding: 0
102+
text-align: left
103+
margin-right: 26px
101104
margin-right: 0
102105
font-size: 18px
103106
> .vs-slogan-light
104107
color: #ff5338
105-
display: block
106108
text-align: left
107109
@media (min-width: 900px)
108110
text-align: center
109111
display: inline
110112
111113
.vs-button
112-
margin-left: 43px
114+
margin-left: 13px
113115
color: #FFF
114116
padding: 13px 24px
115117
border-radius: 40px
@@ -120,13 +122,13 @@ $topBannerHeightMobile ?= 3.125rem
120122
display: inline-block
121123
122124
.vs-close
123-
right: 10px
124-
position: absolute
125-
padding: 10px
126-
@media (min-width: 680px)
127-
right: 20px
128-
&:hover
129-
color: #56D8FF
125+
right: 10px
126+
position: absolute
127+
padding: 10px
128+
@media (min-width: 680px)
129+
right: 20px
130+
&:hover
131+
color: #56D8FF
130132
131133
/************************************/
132134

0 commit comments

Comments
 (0)