Hi my friend!
I thought for a long time how to do this thing, as you say, move the menu from left to right, and today I do it!
Thanks to the Firefox browser, the site with an explanation of HTML and CSS, the FireBug plugin for Firefox and people from this nice place.
Then use this code in your style sheet and change the values if you want.
#passages {
margin: 1px;
max-width: 54em;
}
#ui-bar {
background-color: #111;
border-right: none;
text-align: center;
height: auto;
left: 0;
margin: 0;
padding: 0;
position: fixed;
top: 0;
transition: left 0.2s ease-in 0s;
width: 100%;
z-index: 50;
}
#ui-bar-body {
height: calc(100% - 2.5em);
margin: 0 0;
padding: 0 0.5em;
}
#ui-bar-body > *:not(:first-child) {
margin-top: -2em;
}
#ui-bar-toggle::before {
content: "";
}
#ui-bar.stowed #ui-bar-toggle::before {
content: "";
}
#ui-bar-toggle {
border: none;
display: block;
padding: 0.3em 0.45em 0.25em;
position: absolute;
right: 0;
top: 0;
}
#ui-bar.stowed {
top: -4.5em;
left: 0
}
#ui-bar.stowed ~ #story {
margin-left: 20em;
margin-top: 0em;
}
#story {
margin-left: 20em;
margin-top: 5em;
}
#ui-bar.stowed {
left: 0;
top: -4.5em;
}
#ui-bar.stowed #ui-bar-toggle {
padding: 3.3em 0.35em 0.25em 0.55em;
}
#ui-bar-history {
margin-left: 0 auto;
margin-left: 90%;
}
#menu ul {
border: medium none;
list-style: outside none none;
margin: -2em 0 0;
padding: 0;
display: inline-flex;
}
#menu li:not(:first-child) {
border-top: none;
}
I hope this is what you wanted and I helped)