Skip to content

Commit a4ff8ff

Browse files
committed
WIP: remove navbar sticky state
1 parent 65ba72b commit a4ff8ff

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,9 @@ p.header-baseline span {
674674
675675
@media screen and (max-width: 500px) {
676676
.layout-navbar {
677-
position: fixed;
677+
/*position: fixed;
678678
left:0;
679-
top:0;
679+
top:0;*/
680680
width: 100vw;
681681
z-index: 10;
682682
}

src/components/AppNavbar.vue

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ nav span.level-item:not(:last-child)::after {
496496
font-size: 16px;
497497
z-index: 10; /* cf documentation menu */
498498
499-
position: fixed;
500-
top:0;
499+
/*position: fixed;
500+
top:0;*/
501501
width: 100vw;
502502
padding-right: 20px;
503503
}
@@ -533,15 +533,15 @@ nav span.level-item:not(:last-child)::after {
533533
}
534534
@media screen and (max-width: 500px) {
535535
536-
nav::before {
536+
/*nav::before {
537537
content: '';
538538
display: block;
539539
position: absolute;
540540
top:0;
541541
left:0;
542542
width: 100vw;
543543
height: 71px;
544-
}
544+
}*/
545545
nav {
546546
padding: 0;
547547
}
@@ -553,13 +553,14 @@ nav span.level-item:not(:last-child)::after {
553553
z-index: 1;
554554
}
555555
.level {
556-
display: block;
556+
display: flex;
557+
/*display: block;
557558
position: absolute;
558559
z-index: 1;
559560
top: 0;
560561
left: 0;
561562
height: 70px;
562-
overflow: hidden;
563+
overflow: hidden;*/
563564
}
564565
.level .level-item {
565566
flex-direction: column;
@@ -573,11 +574,11 @@ nav span.level-item:not(:last-child)::after {
573574
&:not(:first-child) {
574575
display: none !important;
575576
}
576-
&:first-child {
577+
/*&:first-child {
577578
top: 22px;
578579
position: fixed;
579580
left: 63px;
580-
}
581+
}*/
581582
&::after {
582583
display: none;
583584
}
@@ -615,11 +616,11 @@ nav span.level-item:not(:last-child)::after {
615616
top:10px;
616617
z-index: 2;
617618
}
618-
.level-left {
619+
/*.level-left {
619620
display: block;
620621
margin-top: 71px;
621622
border-top:#fcaca9 1px solid;
622-
}
623+
}*/
623624
.level-right {
624625
display: block;
625626
}

0 commit comments

Comments
 (0)