_table.scss 599 B

1234567891011121314151617181920212223242526272829303132333435
  1. .wp-block-table.is-style-stripes,
  2. .wp-block-table {
  3. th {
  4. font-weight: 400;
  5. }
  6. tbody td { // tbody adds the specificity needed to override the default Gutenberg styles
  7. border-bottom-width: 0;
  8. border-top-width: 0;
  9. vertical-align: top;
  10. border-color: var(--wp--preset--color--primary);
  11. }
  12. tr:first-child td {
  13. border-top-width: 1px;
  14. }
  15. tr:last-child td {
  16. border-bottom-width: 1px;
  17. }
  18. figcaption {
  19. color: var(--wp--preset--color--primary);
  20. }
  21. }
  22. .wp-block-table.is-style-stripes {
  23. tbody {
  24. tr:nth-child(odd) {
  25. background-color: var(--wp--preset--color--secondary);
  26. }
  27. }
  28. }