Skip to content

Commit adf9be4

Browse files
authored
Update Vue School Summer Sale banner (#1108)
* Update Vue School Summer Sale banner * Fix header padding and margin when Vue School banner is open
1 parent 5f15d39 commit adf9be4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<img src="/images/vueschool/vs-backpack.png" alt="Backpack">
1212
</div>
1313
<div class="vs-slogan">
14-
Less than <span class="vs-slogan-light">48 hours</span> left for the Vue School offer
14+
Extended! <span class="vs-slogan-light">Last few hours</span> for the Vue School offer
1515
</div>
1616
<div class="vs-button">
1717
GET ACCESS
@@ -72,7 +72,7 @@ $topBannerHeightMobile ?= 3.125rem
7272
.vs-logo
7373
position: absolute
7474
display: none
75-
left: 40px
75+
left: 20px
7676
@media (min-width: 900px)
7777
display: block
7878
@@ -85,10 +85,12 @@ $topBannerHeightMobile ?= 3.125rem
8585
position: absolute
8686
@media (min-width: 680px)
8787
position: static
88-
margin-right: 14px
88+
margin-right: 4px
8989
img
9090
height: 50px
9191
@media (min-width: 680px)
92+
height: 56px
93+
@media (min-width: 900px)
9294
height: 74px
9395
9496
.vs-slogan
@@ -154,14 +156,12 @@ $topBannerHeightMobile ?= 3.125rem
154156
155157
// Adjust titles margin and padding for anchor links
156158
.theme-container.has-top-banner
157-
{$contentClass}:not(.custom)
158-
h1, h2, h3, h4, h5, h6
159-
margin-top (0.5rem - $topBannerHeight - $navbarHeight)
160-
padding-top ($navbarHeight + $topBannerHeight + 1rem)
161-
@media (min-width: 680px)
162-
.theme-container.has-top-banner
163-
{$contentClass}:not(.custom)
164-
h1, h2, h3, h4, h5, h6
165-
margin-top (0.5rem - $topBannerHeightMobile - $navbarHeight)
166-
padding-top ($navbarHeight + $topBannerHeightMobile + 1rem)
159+
{$contentClass}:not(.custom) > h1,
160+
{$contentClass}:not(.custom) > h2,
161+
{$contentClass}:not(.custom) > h3
162+
margin-top (0.5rem - $navbarHeight - $topBannerHeightMobile)
163+
padding-top ($navbarHeight + 1rem + $topBannerHeightMobile)
164+
@media (min-width: 680px)
165+
margin-top (0.5rem - $navbarHeight - $topBannerHeight)
166+
padding-top ($navbarHeight + 1rem + $topBannerHeight)
167167
</style>

0 commit comments

Comments
 (0)