Skip to content

Commit 0343a0f

Browse files
committed
make header and promobar non-sticky
1 parent df63854 commit 0343a0f

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

src/crate/theme/rtd/crate/static/css/custom.css

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ header.header-nav {
291291
right: 0;
292292
left: 0;
293293
background: #fff;
294-
position: absolute;
294+
position: relative;
295295
}
296296

297297
.notif-bar-enabled #sidebar.is-affixed aside {
@@ -344,10 +344,6 @@ header .navbar {
344344
padding: 8px 16px !important;
345345
}
346346

347-
header.header-nav {
348-
background-color: white;
349-
}
350-
351347
.main-nav ul.menu {
352348
padding-left: 0;
353349
margin-bottom: 0;
@@ -1048,18 +1044,13 @@ strong {
10481044
}
10491045

10501046
#hs_cos_wrapper_Header_Notif_Bar {
1051-
position: -webkit-sticky;
1052-
position: -moz-sticky;
1053-
position: -ms-sticky;
1054-
position: -o-sticky;
1055-
position: sticky;
1056-
top: 0;
1057-
z-index: 1001;
1047+
position: relative;
10581048
display: none;
10591049
}
10601050

10611051
.notif-bar-enabled #hs_cos_wrapper_Header_Notif_Bar {
10621052
display: block;
1053+
width: 100%;
10631054
}
10641055

10651056
.notification-banner {
@@ -1069,11 +1060,9 @@ strong {
10691060
color: #ffffff;
10701061
}
10711062

1072-
.notification-banner.new {
1063+
.sb-announcement .notification-banner.new {
10731064
position: relative;
1074-
top: 0;
10751065
padding: 8px 0;
1076-
z-index: 9;
10771066
}
10781067

10791068
.notification-banner.new .page-center {
@@ -1145,10 +1134,6 @@ strong {
11451134
margin-top: 0 !important;
11461135
}
11471136

1148-
.notif-bar-enabled .w-canvas {
1149-
padding-top: 61px !important;
1150-
}
1151-
11521137
#hs_cos_wrapper_Header_Notif_Bar .notification-banner {
11531138
width: 100%;
11541139
position: fixed;
@@ -1637,3 +1622,8 @@ dl > dd:last-child > :last-child {
16371622
dt:target, span.highlighted {
16381623
background-color: #fbe54e;
16391624
}
1625+
1626+
/* fix ul in header nav */
1627+
header#top #menu-main-navigation {
1628+
margin: 0;
1629+
}

src/crate/theme/rtd/crate/static/css/ng/layout.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
}
105105

106106
.sb-container {
107-
top: 4em;
108107
position: relative;
109108
}
110109

0 commit comments

Comments
 (0)