marp-team / marpit

The skinny framework for creating slide deck from Markdown
https://marpit.marp.app/
MIT License
962 stars 46 forks source link

[suggestion] paginate : no way to style section::after #403

Open Welsh44 opened 5 days ago

Welsh44 commented 5 days ago

Hi !

I discovered Marp few weeks ago and it's very useful and easy. I began to build a company theme and want to style the part of the section div between the headerand footer divs. In the fact I want to surrond this part with some rounded partial borders.

In order to achieve that I use :root::before and :root::after.

The doc (https://marpit.marp.app/theme-css?id=customize-content) says about :root::after :

Theme CSS must contain attr(data-marpit-pagination) in content declaration because user expects to show the page number by paginate: true directive. Marpit will ignore the whole of content declaration if the reference to that attribute is not contained.

These two things (my aim and this constraint) are incompatible as using border needs a content: "".

Is it possible to change the behaviour by :

Thanks in advance

Welsh44 commented 2 days ago

A workaround (not a solution) is to put :