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

fix: Removed mentions specific spoiler code #14

Merged
merged 4 commits into from
Apr 24, 2020

Conversation

tankerkiller125
Copy link
Contributor

@tankerkiller125 tankerkiller125 commented Mar 7, 2020

Fixes: flarum/framework#2053

Removed mentions specific less code, also fixed links and code in spoiler.

Before Clicking:
image

After Clicking:
image

Removed mentions specific less code, also fixed links and code in spoiler.
@tankerkiller125
Copy link
Contributor Author

Updated the LESS to be far more universal, fixing all images, links, text, mentions, etc. Also makes it easier to add more as we find issues.

The block spoiler works fine without fixes, global spoiler class causes issues.
padding: 0;
color: transparent;
cursor: default;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we turn the styling for links into this?

* {
  color: transparent;
  background: transparent;
  pointer-events: none;
}

Would that still work? That would be super generic. 😁

Copy link
Contributor

Choose a reason for hiding this comment

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

It's also curious that the old code had an explicit background for the link (line 10), but your new proposal does not.

@franzliedke
Copy link
Contributor

Can you expand on why it works without changes for the block spoiler?

@tankerkiller125
Copy link
Contributor Author

tankerkiller125 commented Apr 22, 2020

The block spoiler is rendered as a details tag, what this means is that at no time is the content actually "shown" until the user clicks on it. Essentially it's like a drop down menu, the contents of said menu aren't visible at all (not even under something) until you click on it. Thus you can put anything you want inside the block spoiler and it won't be shown until you click the "details" drop down button.

We could do a little work on the details header/button if we wanted for styling purposes but it does not affect the actual functionality.

@franzliedke franzliedke merged commit 7aecbc9 into master Apr 24, 2020
@franzliedke franzliedke deleted the mk/2053-fix--inline-spoiler branch April 24, 2020 15:58
franzliedke added a commit that referenced this pull request Apr 24, 2020
askvortsov1 pushed a commit that referenced this pull request Mar 11, 2022
Also fixed links, code and images in spoiler, and hopefully all other children.

The block spoiler works fine without fixes, global spoiler class causes issues.
askvortsov1 pushed a commit that referenced this pull request Mar 11, 2022
askvortsov1 pushed a commit that referenced this pull request May 10, 2022
Also fixed links, code and images in spoiler, and hopefully all other children.

The block spoiler works fine without fixes, global spoiler class causes issues.
askvortsov1 pushed a commit that referenced this pull request May 10, 2022
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.

2 participants