Some CSS related to the New UI

canvas_admin
Community Champion
4
4528

Several people have asked for my code that I've used to mess around with the new UI.

Here's a screenshot of what some of the code affects based on the code below:

login page with CSS code.png

Here’s a copy and paste of most of my important CSS tweaks related to the new UI.  Anything in “/* */"  is a description of what the code does.   Please note that I have not played around with formatting the login page for mobile yet.  This code is for browsers.

/*format background (image, color, etc.)*/

body.ic-Login-Body{

background-size: auto;

background-attachment: fixed;

}

/*position the main login box area; This code sets it 75 pixels from the top*/

.ic-Login__container{

    margin-top: 75px;

}

/*login box*  We changed the size to 465x665 to accommodate the size of our background image/

.ic-Login__content{

    background: url(“INSERT HTTPS LINK TO IMAGE HERE") no-repeat !important;

    height: 465px; 

    width: 665px; 

    box-shadow: 0 4px 20px -2px #000000;

    padding: 0px;

}

/*Hide Canvas header logo*/

.ic-Login__header{

    display: none;

}

/*username login box*/

#pseudonym_session_unique_id{

    height: 38px;

    width: 235px;

}

/*password login box*/

#pseudonym_session_password{

    height: 38px;

    width: 235px;

}

/*position entire login form (username, password, stay signed in, forgot password, log in button)*/

#login_form{

    margin: 183px 0px 0px;

}

/*Forgot Password? link*/

.ic-Login__link{

    color: #FFFFFF !important;

}

/*Stay Signed In link*/

label[for=pseudonym_session_remember_me]{

    color: #FFFFFF !important;

}

/*add Canvas image at bottom container*/

.ic-Login__actions-timeout{

    background: url("INSERT HTTPS LINK TO IMAGE HERE") no-repeat 65%;

}

4 Comments
joseph_allen
Community Champion

Very cool Mark.  Have you every tried to put a graphic on the Left Global Nav bar?  The out of the box functionality is to select a solid color, but I thought it might be cool to over lay a light graphic which could even change with Holidays or special events kind of like the way Google does with their logo on Google.com

kmeeusen
Community Champion

Very nice Mark!

Can we share that in the CanvaskHacks Demo course?

Agent K

canvas_admin
Community Champion
Author

 @kmeeusen ​, I would be honored!   I never thought I would make a contribution to those hallowed halls. Smiley Happy

canvas_admin
Community Champion
Author

 @joseph_allen ​, I have not tried that but I love the idea and will definitely look into that. Smiley Happy