Skip to content

Add sticky header for desktop screens only on docs pages #135

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

Open
wants to merge 3 commits into
base: v2
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion layouts/_partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="block md:hidden bg-green p-2 text-center no-underline text-white">
Announcing 1.0
</a>
<div id="app" class="bg-blue-dark md:border-t-8 border-green">
<div id="app" class="bg-blue-dark md:border-t-8 border-green <%= typeof css_classes !== 'undefined' ? css_classes : '' %>">
<div class="container flex items-center flex-wrap px-4 md:px-0 mx-auto">
<div class="flex-1 flex items-center">
<a href="<%= meta.home(current) %>">
Expand Down
2 changes: 1 addition & 1 deletion layouts/default.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<div class="font-sans leading-normal" :class="{'max-h-screen': modalVisible, 'overflow-hidden': modalVisible}">
<!--<QuickStart />-->
<%- include('_partials/header') %>
<%- include('_partials/header', {css_classes: 'md:fixed md:w-full'}) %>

<div class="md:bg-docs-gradient min-h-screen">
<div class="container mx-auto flex">
Expand Down
1 change: 1 addition & 0 deletions static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8561,6 +8561,7 @@ button,

.md\:bg-docs-gradient {
background: linear-gradient(90deg, #f1f5f8 50%, #fff 50%);
padding-top: 72px;
}
}

Expand Down