mirror of
https://github.com/primer/css.git
synced 2024-12-22 21:51:39 +03:00
Remove trailing margin from HTML elements within markdown tables (#2365)
* Remove trailing margin from last-child within a markdown table cell * Add changeset * Move new styles to table-specific file * Disable `selector-max-compound-selectors` stylelint Co-authored-by: simurai <simurai@github.com>
This commit is contained in:
parent
872a578e0d
commit
4b94fbb759
5
.changeset/hot-parrots-shave.md
Normal file
5
.changeset/hot-parrots-shave.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@primer/css': patch
|
||||
---
|
||||
|
||||
Remove trailing margin from last-child within a markdown table cell
|
@ -1,5 +1,5 @@
|
||||
// Needs refactoring
|
||||
// stylelint-disable selector-max-type
|
||||
// stylelint-disable selector-max-type, selector-max-compound-selectors
|
||||
.markdown-body {
|
||||
// Tables
|
||||
table {
|
||||
@ -20,6 +20,12 @@
|
||||
border: $border-width $border-style var(--color-border-default);
|
||||
}
|
||||
|
||||
td {
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
tr {
|
||||
background-color: var(--color-canvas-default);
|
||||
border-top: $border-width $border-style var(--color-border-muted);
|
||||
|
Loading…
Reference in New Issue
Block a user