Override Section padding

How can I change Section padding in the sections I want?
No description
3 Replies
mar5hall
mar5hallOP14mo ago
In some cases I just need to remove the padding. If i add to section
->extraAttributes([
'class' => 'p-0'
])
->extraAttributes([
'class' => 'p-0'
])
it`s not worked because p-0 is set to parent, not a child components. For me, the only solution that works so far is the hardcode positioning of Entries in Section.
->extraAttributes([
'class' => '-mx-2'
])
->extraAttributes([
'class' => '-mx-2'
])
If you have a better solution, then I will leave the topic open for now.
awcodes
awcodes14mo ago
Setup a custom theme if you don't already have one and are using panels. then add a class to your sections
->extraAttributes(['class' => 'flush'])
->extraAttributes(['class' => 'flush'])
then in your theme.css
.fi-section.flush .fi-secton-content {
padding: 0;
}
.fi-section.flush .fi-secton-content {
padding: 0;
}
mar5hall
mar5hallOP14mo ago
Want results from more Discord servers?
Add your server