Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove announcement banner. #2213

Merged
merged 1 commit into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ const siteConfig = {
baseUrl + 'js/codeblocks.js',
baseUrl + 'js/tabs.js',
baseUrl + 'js/docs-rating.js',
baseUrl + 'js/announcement.js',
],
cleanUrl: true,
scrollToTop: true,
Expand Down
117 changes: 0 additions & 117 deletions website/static/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,120 +197,3 @@ input#search_input_react:focus {
background-color: $tintColor;
color: $deepdark;
}

/* Overrides for the announcement banner */
.fixedHeaderContainer {
height: auto;
}

.headerWrapper.wrapper {
padding-top: 60px;
}

.navigationSlider .slidingNav {
height: 60px;
}

.anchor {
top: -160px;
}

@media only screen and (min-width: 735px) {
.anchor {
top: -180px;
}
}

.announcement {
color: #fff;
font-weight: bold;
font-size: 24px;
padding: 8px 30px;
text-align: center;
height: 60px;
position: absolute;
width: 100%;
}

.announcement-inner {
margin: 0 auto;
max-width: 768px;
line-height: 44px;
}

.announcement-inner a {
text-decoration: underline;
display: inline-block;
color: $brand;
}

.announcement-inner a:hover {
color: #fff;
}

.fixedHeaderContainer,
.onPageNav,
.docsNavContainer {
transition: top 0.35s;
}

.navPusher {
transition: top 0.35s, margin 0.35s;
}

/*
Fix small mobile device overflow with sliding up banner
(code is present on desktop and for larger devices)
*/
body {
display: flex;
flex-direction: column;
}

@media only screen and (max-width: 700px) {
ul.nav-site.nav-site-internal {
margin-top: 160px;
}
.navPusher {
padding-top: 210px;
}
.announcement {
padding: 10px;
font-size: 18px;
}
}

@media only screen and (min-width: 1024px) {
.navPusher {
padding-top: 120px;
}
.docsNavContainer {
top: 96px;
}
.onPageNav {
top: 136px;
max-height: calc(100vh - 136px);
}
}

@media only screen and (max-width: 1023px) {
ul.nav-site.nav-site-internal {
margin-top: 120px;
}
.navPusher {
padding-top: 170px;
}
.navSearchWrapper {
top: 74px;
}
}

@media (max-width: 500px) {
.announcement {
font-size: 15px;
}
.announcement-inner {
line-height: 22px;
}
}
/* End announcement banner override */
35 changes: 0 additions & 35 deletions website/static/js/announcement.js

This file was deleted.