Skip to content

Style tables in text boxes using CSS #690

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

quinarygio
Copy link
Contributor

@quinarygio quinarygio commented Apr 2, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?
Fixes #685

@quinarygio quinarygio linked an issue Apr 2, 2025 that may be closed by this pull request
@quinarygio quinarygio force-pushed the 685-nad-css-tables-in-text-boxes branch from 11f79fa to d6c7ce7 Compare April 2, 2025 17:37
Comment on lines 2594 to 2603
<div class="nad-table">
<div class="nad-row">
<div class="nad-vl0to30-1 nad-cell nad-legend-square"/>
<div class="nad-cell">1.1 kV / -12.5°</div>
</div>
<div class="nad-row">
<div class="nad-vl0to30-0 nad-cell nad-legend-square"/>
<div class="nad-cell">1.0 kV / -11.4°</div>
</div>
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See issue comment

Suggested change
<div class="nad-table">
<div class="nad-row">
<div class="nad-vl0to30-1 nad-cell nad-legend-square"/>
<div class="nad-cell">1.1 kV / -12.5°</div>
</div>
<div class="nad-row">
<div class="nad-vl0to30-0 nad-cell nad-legend-square"/>
<div class="nad-cell">1.0 kV / -11.4°</div>
</div>
</div>
<div>
<div><span class="nad-vl0to30-1 nad-legend-square"/>1.1 kV / -12.5°</div>
<div><span class="nad-vl0to30-0 nad-legend-square"/>1.0 kV / -11.4°</div>
</div>

with simpler CSS

.nad-legend-square {display: inline-block; width: 20px; height: 20px; background: var(--nad-vl-color, black); margin-right: 10px;}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can get rid of nad-table, nad-row and nad-cell CSS classes

Signed-off-by: Giovanni Ferrari <[email protected]>
<td> kV / °</td>
</tr>
</table>
<div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this div? it's to separate from header / footer?

Comment on lines 209 to 210
<div>
<span class="nad-legend-square"/> kV / °</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be clearer to have this on one line only

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

Successfully merging this pull request may close these issues.

[nad] css tables in text boxes
2 participants