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

[Front] [tmp] Add disclaimer beta banner #173

Merged
merged 2 commits into from
Dec 3, 2018
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
3 changes: 2 additions & 1 deletion src/assets/stylesheets/extensions/_permalinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
// Targeted anchor (48px from header, 12px from sidebar offset)
&:target::before {
margin-top: -(4.8rem + 1.2rem + $delta);
padding-top: (4.8rem + 1.2rem + $delta);
// padding-top: (4.8rem + 1.2rem + $delta); DISCLAIMER BANNER
padding-top: 12rem;
}

// Make permalink visible on hover
Expand Down
3 changes: 2 additions & 1 deletion src/assets/stylesheets/layout/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ hr {
display: table;
width: 100%;
height: 100%;
padding-top: 4.8rem;
// padding-top: 4.8rem; DISCLAIMER BANNER
padding-top: calc(4.8rem + 28px);
table-layout: fixed;
}

Expand Down
17 changes: 15 additions & 2 deletions src/assets/stylesheets/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
top: 0;
right: 0;
left: 0;
height: 10rem;
// height: 10rem; DISCLAIMER BANNER
height: calc(10rem + 28px);
transition: background-color 0.25s, color 0.25s;
background-color: $md-color-primary;
color: $md-color-white;
box-shadow: none;
z-index: 2;
// Hack: putting the header on the GPU avoids unnecessary repaints
backface-visibility: hidden;



// Always show shadow, in case JavaScript is not available
.no-js & {
transition: none;
Expand All @@ -38,6 +40,17 @@
@include break-to-device(tablet) {
height: 5rem;
}

.disclaimer {
position: relative;
top: 0;
width: 100%;
text-align: center;
color: #e94e77;
font-size: 1.3rem;
padding: 6px;
background-color: #ead8db;
}
}

// Navigation within header
Expand Down
6 changes: 6 additions & 0 deletions src/templates/partials/disclaimer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="disclaimer">
New Kuzzle SDKs and Documentation are almost here. Preview the beta docs and try them out now!
</div>
<style>

</style>
1 change: 1 addition & 0 deletions src/templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="search" autocomplete="off" />
<div class="overlay hidden"></div>
<header class="md-header" data-md-component="header">
{{> disclaimer }}
<!-- Top-level navigation -->
<nav class="md-header-nav md-grid">
<div class="md-flex">
Expand Down