Skip to content

Instantly share code, notes, and snippets.

@tmedwards
Last active January 24, 2018 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmedwards/32ae6c023e12256133ba86c43dd1d700 to your computer and use it in GitHub Desktop.
Save tmedwards/32ae6c023e12256133ba86c43dd1d700 to your computer and use it in GitHub Desktop.
Move the SugarCube v2 UI bar to the right side.
/*
Move the UI bar to the right side.
*/
#story {
margin-left: 2.5em;
margin-right: 20em;
transition: none;
transition: margin-right 200ms ease-in;
}
#ui-bar.stowed ~ #story {
margin-left: 2.5em;
margin-right: 4.5em;
}
@media screen and (max-width: 1136px) {
#story {
margin-left: 1.5em;
margin-right: 19em;
}
#ui-bar.stowed ~ #story {
margin-left: 1.5em;
margin-right: 3.5em;
}
}
@media screen and (max-width: 768px) {
#story {
margin-right: 3.5em;
}
}
#ui-bar {
left: auto;
right: 0;
transition: none;
transition: right 200ms ease-in;
}
#ui-bar.stowed {
left: auto;
right: -15.5em;
}
#ui-bar-toggle {
top: 0;
left: 0;
right: auto;
border-left: none;
border-right: 1px solid #444;
}
#ui-bar-toggle:before {
content: "\e81e";
}
#ui-bar.stowed #ui-bar-toggle:before {
content: "\e81d";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment