-
Notifications
You must be signed in to change notification settings - Fork 326
User Content CSS Adjustment for tables #221
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
Comments
Linkify the announcements header, and remove the "older" link. Refine "th > a { display:block; }" rule to only work inside a .table as it breaks tables in .user-content
Going to prefix .table th > a {
color: initial;
display: block;
} as it's better to use a more refined rule than overriding specific cases. Also, Markdown doesn't add the bootstrap Edit: Though if we did add Bleh. We probably need to go over all the md tags for css. |
@Zren Also if we allow |
…*bootstrap* `class` for tables * Allows alignment of tables to be specified with GFM. * Briefly mentioned at OpenUserJS#221 (comment)
* Apply these specific rules to all affected areas * Move script page rule out to `common.css` **NOTE**: Still affected is OpenUserJS#221 since available rules aren't consistent however OpenUserJS#363 may be acceptable work-around
@Zren
The sanitizer now supports transformations on tags with classes as I used in #363... so that can always be a possibility however the table doesn't look pretty imo with that class... but there is always tomorrow. :) |
I think I'm going to revoke my request on this with a mightfix and close... with centering things look much nicer and I can revert back to my original icons as I did in https://openuserjs.org/scripts/Marti/oujs_-_Meta_View#-compatibility-matrix It would be useful to create a class that doesn't expand to the container and we can whitelist that but probably needs some more pondering time. If anyone really needs this feature enhancement reopened please do with a comment as to why. |
Does anyone see an issue with adding the following CSS rule to common.css?
Currently in the Compatibility Matrix of this script anchored th tags are block level due to a general rule of:
... and messes up multiple anchored images inside the tag. This changed when the UI was updated. Since we support markup now it's easy to do a
<br />
if we want one in a user defined th tag.EDIT: Another personal preference option is to add some faint lines and an offset background color for th tags like the right side panel defaults. Is this preferred?
Btw @sizzlemctwizzle
center
,left
andright
are being sanitized from #190 and 23f47bc when used with gfm table support alignment and the classes may not be defined too. I haven't had a chance to find a way to filter through just those three yet but only in.user-content
with th tags and exclude anything else... unless we need something else down the line.The text was updated successfully, but these errors were encountered: