My Configuration
I made modifications to the .col-lg-4
class in Bootstrap for Rails and added them to my custom.css.scss
file after the import statements to remove padding completely.
The Issue at Hand
I am trying to override the styling of .embed-responsive video in the bootstrap CSS by removing the width property and setting padding to zero. While I found a temporary solution by manually importing a bootstrap file, I prefer to utilize the capabilities of the bootstrap sass gem to achieve this.
Unfortunately, the properties are not being overridden in the Custom.css.scss file despite my efforts.
Inconsistent Behavior (Custom.css.scss
)
The challenge lies in the fact that when I import Bootstrap-sprockets & Bootstrap, it appears to disregard my custom CSS, preventing me from implementing the desired changes mentioned above.
@import "bootstrap-sprockets";
@import "bootstrap";
.thumb{
}
.col-lg-4 {
padding: 50px !important;
}
.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;height:100%;border:0}
Application.css
*= require_tree .
*= require_self
*/
I have attempted to use rake assets:clean
as well.
UPDATE: Through experimentation, I discovered that providing a custom bootstrap CSS file and not importing bootstrap in Custom.css.scss resolves the issue.
Nevertheless, I would like to find a solution using the bootstrap sass gem if feasible. Is there a way to rectify the current setup?