Skip to content

Commit d45c87a

Browse files
committed
Add background
1 parent bd5ecdc commit d45c87a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

stylus/website/index.styl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ body {
127127
&.top-banner-open {
128128
margin-top: 5px;
129129
transition: all 0.2s linear;
130+
130131
+breakpoint('tablet') {
131132
margin-top: 48px;
132133
}
@@ -1840,6 +1841,15 @@ footer {
18401841
color: rgb(0, 0, 0) !important;
18411842
}
18421843

1844+
.top-banner-bg {
1845+
position: fixed;
1846+
top: 0;
1847+
background: black;
1848+
width: 100%;
1849+
height: 48px;
1850+
z-index: 100;
1851+
}
1852+
18431853
.top-banner {
18441854
background: linear-gradient(90deg, #ff4f40 0%, #ff44dd 99.99%);
18451855
border-radius: 8px;
@@ -1850,7 +1860,7 @@ footer {
18501860
opacity: 1;
18511861
box-sizing: border-box;
18521862
margin: 0 auto;
1853-
position: absolute;
1863+
position: fixed;
18541864
top: 12px;
18551865
z-index: 1000;
18561866
width: 100%;

views/website/navigation.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.top-banner-bg
12
.top-banner
23
.top-banner-container
34
div

0 commit comments

Comments
 (0)