Skip to content

Commit

Permalink
Remove announcement banner. (#2213)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer authored Sep 16, 2020
1 parent 48fa21d commit aa6bca5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 153 deletions.
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.

0 comments on commit aa6bca5

Please sign in to comment.