Skip to content

Adding padding to a grid-card-item adds it to the sd-col div and not to sd-card div #26

Description

@jorisvandenbossche

Describe the problem

I am basically trying something like:

.. grid:: 1 2 2 2

    .. grid-item-card::  Title
        :padding: 2

with the idea to add padding to the cards itself (so inner padding inside the card). But it adds the sd-p-3 class to the outer sd-col div, and not to the sd-card div:

...
<div class="sd-col sd-d-flex-row sd-p-3 docutils">
<div class="sd-card sd-sphinx-override sd-w-100 sd-shadow-sm docutils">
....
</div>
</div>
...

I personally would have expected it to add it to the sd-card div. But if this was intentional behaviour, is there another way to add padding to the card?

Link to your repository or website

No response

Steps to reproduce

(see snippet above)

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions