Skip to content

Commit

Permalink
hamburger seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Sep 21, 2020
1 parent ef20cfe commit a4fafd8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/robot/htmldata/libdoc/libdoc.css
Expand Up @@ -45,6 +45,12 @@ body {
background: white;
}

.hamburger-menu {
display: none;
position: fixed;
z-index: 100;
}

@media only screen and (max-width: 640px) {
.libdoc-overview {
display: none;
Expand All @@ -60,6 +66,17 @@ body {
margin-top: 82px;
padding-left: 0.5rem;
}

.hamburger-menu {
display: block;
}

.hamburger-menu:checked ~ .libdoc-overview {
display: block;
position: fixed;
height: 100vh;
width: 100vw;
}
}

.libdoc-title:hover {
Expand Down
1 change: 1 addition & 0 deletions src/robot/htmldata/libdoc/libdoc.html
Expand Up @@ -263,6 +263,7 @@ <h1>Opening library documentation failed</h1>

<script type="text/x-jquery-tmpl" id="base-template">
<div class="base-container">
<input class="hamburger-menu" type="checkbox" />
<div class="libdoc-overview"><div id="shortcuts-container"></div></div>
<div class="libdoc-details">
<table class="metadata" id="library-documentation-top">
Expand Down

0 comments on commit a4fafd8

Please sign in to comment.