Last active
January 24, 2018 21:08
-
-
Save tmedwards/32ae6c023e12256133ba86c43dd1d700 to your computer and use it in GitHub Desktop.
Move the SugarCube v2 UI bar to the right side.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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