mirror of
https://github.com/danbulant/api_docs
synced 2026-05-24 12:27:29 +00:00
Add background to nav button
This commit is contained in:
parent
3a91faa8e6
commit
b5419b1e9c
2 changed files with 15 additions and 11 deletions
|
|
@ -42,8 +42,10 @@ under the License.
|
||||||
|
|
||||||
<body class="<%= page_classes %>">
|
<body class="<%= page_classes %>">
|
||||||
<a href="#" id="nav-button">
|
<a href="#" id="nav-button">
|
||||||
|
<span>
|
||||||
|
NAV
|
||||||
<%= image_tag('navbar.png') %>
|
<%= image_tag('navbar.png') %>
|
||||||
<span>NAV</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="tocify-wrapper">
|
<div class="tocify-wrapper">
|
||||||
<%= image_tag "logo.png" %>
|
<%= image_tag "logo.png" %>
|
||||||
|
|
|
||||||
|
|
@ -197,12 +197,20 @@ html, body {
|
||||||
|
|
||||||
// button to show navigation on mobile devices
|
// button to show navigation on mobile devices
|
||||||
#nav-button {
|
#nav-button {
|
||||||
|
span {
|
||||||
|
display: block;
|
||||||
|
$side-pad: $main-padding / 2 - 8px;
|
||||||
|
padding: $side-pad $side-pad $side-pad;
|
||||||
|
background-color: rgba($main-bg, 0.7);
|
||||||
|
@include transform-origin(0, 0);
|
||||||
|
@include transform(rotate(-90deg) translate(-100%, 0));
|
||||||
|
border-radius: 0 0 0 5px;
|
||||||
|
}
|
||||||
|
padding: 0 1.5em 5em 0; // increase touch size area
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
$side-pad: $main-padding / 2 - 8px;
|
|
||||||
padding: $side-pad 1.5em 5em $side-pad; // increase touch area size
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
color: #000;
|
color: #000;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
@ -211,13 +219,7 @@ html, body {
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
img {
|
img {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
vertical-align: bottom;
|
||||||
span {
|
|
||||||
position: absolute;
|
|
||||||
top: 35px;
|
|
||||||
left: 1px;
|
|
||||||
line-height: 1;
|
|
||||||
@include transform(rotate(-90deg));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include transition(left ease-in-out 0.3s);
|
@include transition(left ease-in-out 0.3s);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue