• Resolved dannywhitehead

    (@dannywhitehead)


    I’ve managed to style the text in the Order Item table reasonably well using custom CSS (see below), but I can’t work out how to reduce the padding in all the cells to make the table more compact. Is this possible?

    Here’s my custom CSS so far:

    h2.yaymail_builder_link, div h2{
        font-size: 16px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
    }
    table.yaymail_builder_table_items_content{
        text-transform: uppercase;
        line-height: 18px !important;
    }
    .wc-item-meta{
        font-size: 12px !important;
        line-height: 15px !important;
    }
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support alina98

    (@alina98)

    Hi there,

    Thanks for reaching out!

    Please let me check this with the dev and I will feed you back as soon as possible.

    Kind regards,
    Alina

    Plugin Support mialewp

    (@mialewp)

    Hi @dannywhitehead,

    Thanks for your patience!
    Could you please screenshot where you would like to customize?

    Best regards,
    Mia

    Thread Starter dannywhitehead

    (@dannywhitehead)

    I’d like to decrease the padding highlighted in pink.

    Plugin Support mialewp

    (@mialewp)

    Hi @dannywhitehead,

    Please use this CSS to fix it as below:
    .yaymail_order_items_content th{ padding: 5px !important; }

    If you need further helps, please let us know.

    Many thanks!
    Mia

    Thread Starter dannywhitehead

    (@dannywhitehead)

    Thank you. That seems to work fine in YayMail design and preview mode:

    but not in the WooCommerce Email Test or the actual email that gets sent:

    Plugin Support alina98

    (@alina98)

    Hi @dannywhitehead ,

    Please let me check with the dev and I will feed you back as soon as possible.

    Thank you!
    Alina

    Plugin Support mialewp

    (@mialewp)

    Hi @dannywhitehead,
    I am sorry that we have not seen the issue from our end. Could you please reach out to our developers? https://ninjateam.org/support/
    We are waiting for you.

    Many thanks!
    Mia

    Thread Starter dannywhitehead

    (@dannywhitehead)

    I’ve fixed it by using this code:

    table.yaymail_builder_table_items_content th{
        padding-left: 7px !important;
        padding-right: 7px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    Thread Starter dannywhitehead

    (@dannywhitehead)

    The only remaining problem is the space under the variation text, highlighted in pink in the screenshot below. How can I reduce that?

    Plugin Support alina98

    (@alina98)

    Hi @dannywhitehead ,

    Please reach out to us for dev support here:
    https://yaycommerce.com/support/

    Kind regards,

    Alina

    Thread Starter dannywhitehead

    (@dannywhitehead)

    I’ve worked it all out now. This is the code I used:

    h2.yaymail_builder_link, div h2{
        font-size: 16px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }
    table.yaymail_builder_table_items_content{
        margin-top: 0px !important;
        text-transform: uppercase;
        line-height: 18px !important;
    }
    .yaymail-product-name{
        font-size: 15px !important;
        float: left !important;
        margin-right: 0.3em !important;
    }
    .yaymail-product-sku{
        font-size: 12px !important;
        padding-bottom: 2px !important;
        float: left !important;
        clear: both !important;
        white-space: nowrap !important;
    }
    .wc-item-meta-label{
        display: none !important;
        font-size: 12px !important;
        line-height: 14px !important;
        list-style: none !important;
        padding-right: 3px !important;
        float: left !important;
    }
    ul.wc-item-meta{
        margin-top: 4px !important;
    }
    .wc-item-meta p{
        font-size: 12px !important;
        line-height: 14px !important;
        font-weight: 700 !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
        float: left !important;
        display: inline-block !important;
        border-left: 1px solid !important;
    }
    .wc-item-meta li:first-child p{
        border-left: none !important;
        padding-left: 0 !important;
    }
    .wc-item-meta{
        padding-left: 0px !important;
        padding-right: 0px !important;
        padding-top: 0px !important;
        padding-bottom: 1px !important;
        list-style: none !important;
        clear: both !important;
    }
    table.yaymail_builder_table_items_content th{
        padding-left: 7px !important;
        padding-right: 7px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    table.yaymail_builder_table_items_content{
        border: 1px solid !important;
        border-collapse: collapse !important;
    }
    Plugin Support mialewp

    (@mialewp)

    Hi @dannywhitehead,

    Glad to hear that. If you need further help, feel free contact to us.

    Many thanks!
    Mia

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Reduce cell padding in Order Item table’ is closed to new replies.