Skip to content

fix: Removed mentions specific spoiler code#14

Merged
franzliedke merged 4 commits intomasterfrom
mk/2053-fix--inline-spoiler
Apr 24, 2020
Merged

fix: Removed mentions specific spoiler code#14
franzliedke merged 4 commits intomasterfrom
mk/2053-fix--inline-spoiler

Conversation

@tankerkiller125
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@tankerkiller125
Copy link
Copy Markdown
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