As described in the new documentation for the new 3.x branch , you can do this by creating a new CSS file:
To remind, here is the basic workflow:
- For each element that you want to customize, find its code in the compiled Boot CSS. Copy and paste the selector for the component as is.
- Add all your custom CSS to a separate stylesheet using selectors that you just copied from the Bootstrap source. No need for extra classes or use! important here.
- Rinse and repeat until you are satisfied with the settings.
The best way is to create a new class name and use it together . For instance:
<button type="button" class="**btn btn-ttc**">Save changes</button>
It uses the btn source class from the bootstrap and adds a personalized btn-ttc . This way you can add a new CSS file, include it in your project and then create this class:
.btn-ttc, .btn-ttc:hover, .btn-ttc:active { color: white; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #007da7; }
Jazzo source share