I have set the padding for the class .py-md-6 as follows:
.py-md-6 {
padding-top: 6rem !important;
padding-bottom: 6rem !important;
}
Despite this, there seems to be a conflict with the .p-3 class in my HAML element:
#id.p-3.py-md-6
It appears that the .p-3 class is taking precedence over the .py-md-6 class. I have tried rearranging the order of the classes, but it did not solve the issue. I also attempted using .p-sm-3 instead, but this class is defined with @media (min-width: 576px) and still overrides .py-md-6.
My goal is to have smaller padding on mobile due to limited screen space, and larger padding on desktop.
I tested a solution that worked in CodePly, but it is not functioning correctly when run locally.