Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@battis
Last active August 22, 2016 03:58
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 battis/ff7627303138dc35c8b1e994e825c568 to your computer and use it in GitHub Desktop.
Save battis/ff7627303138dc35c8b1e994e825c568 to your computer and use it in GitHub Desktop.
Styling Canvas Mobile Login
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/* from https://github.com/smtech/canvashack-plugin-stmarks-branding */
/* set the background color of the page -- depends on javascript */
body > #f1_container, body.stmarks-branding-mobile-login {
background-color: #003359;
}
/* apply our logo to the login */
#f1_container{
background: url("login.svg") no-repeat center top;
background-size: 100% auto;
width: 302px; /* haven't tested if this is still necessary! */
}
/* make the "forgot your password" link the right color */
#f1_container a {
color: white;
text-decoration: none;
}
$('body:has(#f1_container)').addClass('stmarks-branding-mobile-login');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment