Eliminate 'padding' (top and bottom) in 'onetopic' format

Eliminate 'padding' (top and bottom) in 'onetopic' format

by MMT Moodler -
Number of replies: 2

Hello all...

I'm trying to eliminate both 'paddings' (top and bottom) only in the main section (course content) in courses confugured in 'onetopic' format. I need to show the content of each section without separation up and down, stuck to the edge of the section... I need to eliminate the space showed in red in next images:

padding-top


padding-bottom

I've tried several options (adding some code to custom css of theme moove) but but none of them works:

#page-course-view-onetopic.format-onetopic card.card-block {
padding-bottom: 0px;
}

or

.format-onetopic .section {
padding-bottom: 0px;
}

...

I need to do it for 'padding-top' too, but I'm not able.

I've modified this padding-bottom for card-block class and it works, but all pages (not only courses with that format) are affected and that is not what I need.

Any suggestions?

Thanks in advance for your time... Your help is much appreciated.

Best regards.

Average of ratings: -
In reply to MMT Moodler

Re: Eliminate 'padding' (top and bottom) in 'onetopic' format

by David Herney -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi @MMT

try with the next CSS:

#page-course-view-onetopic #page-content #region-main .card.card-block {
padding-top: 0;
padding-bottom: 0;
}

#page-course-view-onetopic #page-content .course-content .single-section {
margin-top: 0;
}

Saludos

Average of ratings: Useful (1)
In reply to David Herney

Re: Eliminate 'padding' (top and bottom) in 'onetopic' format

by MMT Moodler -

Thanks a lot for you time, David... Looks it works well.

Best regards.