Locked lesson.
About this lesson
Customizing styles in bootstrap is easy.
Exercise files
Download this lesson’s related exercise files.
Changing Style With Bootstrap.docx58.8 KB Changing Style with Bootstrap - Solution.docx
59.4 KB
Quick reference
Changing Style with Bootstrap
In this video we'll customize Bootstrap to make it look exactly the way we want.
When to use
Normally, Bootstrap offers you several default styles. When you want to do something that's not a default, you have to customize Bootstrap yourself.
Instructions
Customizing bootstrap is pretty easy.
First, head over to GetBootstrap.com and click the "Customize" link at the top of the screen.
Click on the "Less Variables" link on the right hand side of the screen.
Scroll down through the Less Variables to find the element you'd like to customize.
Copy the element variable name.
Paste the variable name of the element at the top of our custom CSS.Scss file, located at app/assets/stylesheets/bootstraply.css.scss.
Change the @ symbol of the variable into a $.
Add your customization, for example, to change the navbar background color to red, type in this code:
$navbar-default-bg: red;
That's it!
Hints & tips
- Customization variables are found at GetBootstrap.com in the "Customize" page
- You can change just about anything in Bootstrap this way
- Sometimes you have to guess which variables to use through trial and error
- Use a color picker website to get Hex Color Codes
Lesson notes are only available for subscribers.