tomusborne / generatepress

453 stars 89 forks source link

GP CSS overrides query loop block's bottom padding when using one container #524

Open ScarlettYing opened 1 year ago

ScarlettYing commented 1 year ago

Description

GP adds this CSS added to blog and archive when using one container option:

.one-container.archive .post:not(:last-child), .one-container.blog .post:not(:last-child) {
padding-bottom: some px;
}

This CSS affects query loop block posts as well, it overrides the GB padding-bottom.

Steps to reproduce

  1. set it to one container in GP customizer.
  2. create a query loop template using GB query loop block for archive and blog.
  3. check the archive posts' padding bottom.

Actual behavior

GP adds padding-bottom to the posts.

Expected behavior

The posts' paddings should be controlled by GB's container settings.


References