Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table styles affect table cell contents #241

Open
mootari opened this issue Oct 18, 2022 · 1 comment
Open

Table styles affect table cell contents #241

mootari opened this issue Oct 18, 2022 · 1 comment

Comments

@mootari
Copy link
Member

mootari commented Oct 18, 2022

From tex in Table headers?:

This style rule is matching the contents of the TeX element:

inputs/src/style.css

Lines 231 to 235 in 238639f

.__ns__-table thead th span {
display: inline-block;
width: 0.5em;
margin-left: -0.5em;
}

The rule should be made more specific, like .__ns__-table > table > thead > th > span.

@galopin
Copy link

galopin commented Oct 21, 2022

If the problematic ruleset is:

inputs/src/style.css

Lines 231 to 235 in 86fa5c0

.__ns__-table thead th span {
display: inline-block;
width: 0.5em;
margin-left: -0.5em;
}

… then a possible fix would be to modify the above selector as follows:

.__ns__-table thead th > span:first-of-type:not([class]) {
  /* ... */
}

OR

.__ns__-table thead th > span:first-of-type {
  /* ... */
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants