-
Notifications
You must be signed in to change notification settings - Fork 97
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
[#609]fix: adds border to last-child colspanned cells for better merged-cell styling #706
base: master
Are you sure you want to change the base?
Conversation
…er to pass the krokiServerUrl to asciidoctorWebViewConverter
…better merged-cell styling
@ggrossetie looks like refactoring like in asciidoctor-vscode/media/asciidoctor-default.css Lines 1402 to 1440 in fba9fb7
actually might take care of everything we need, was there any reason the editor style targets the last child here when we could just have the border cover all the cells the same as shown in the default stylesheet?
I think the issue with my commit rn is that it may introduce a double border on the bottom most right cell of a colspanned row if it ends in the furthest right column. |
Still wanting to make progress on this, will try refactor later this week |
@haydencbarnes I believe it's an impossible problem to solve using only CSS:
If we aren't using the latest version of asciidoctor.css you can try to upgrade to see if it improves things. Otherwise, and as mentioned by Dan, the only way to solve this problem is to add hints (i.e., CSS classes) to the cells. |
@ggrossetie do you mean something like this - fomantic/Fomantic-UI#1334 ? |
/* git issue - #609
If the last child cell was merged in the middle of three columns, then the middle cell of the three columns (but really last child cell) would not contain a right side border due to css "thinking" the cell was the most right cell and therefor be bordered by the frame element below this all. table.grid-cols>>tr>.tableblock[colspan]:last-child sets a 1-pixel wide right border for the last cell in each row with a colspan attribute. This is needed because table.grid-all>>tr>.tableblock:last-child removes the border from the last cell, but in the case of merged cells, the border is actually needed. Note: This may cause a small double border on the bottom most right cell of a colspanned row if it ends in the furthest right column.
*/