Closed dgalarza closed 8 years ago
I'm glad you got this working. I think the structure of the markup changed since I originally tried and couldn't get it to smoothly transition.
That being said, the strategy for carnival is that we're Trying not to provide the styles for what happens when commenting in carnival itself, rather it just puts a commenting
class on the article when it's being commented on and the consuming blog can do that however it wants. There should already be styles in the blog for this.
Is it possible to put this change in those styles?
@cpytel looks like someone added a transition for this on robots.thoughtbot.com itself, so it's no longer a jarring experience there. Do you think this is something we would want to be provided by default by Carnival though?
I don't have a strong opinion. It probably makes sense for this to be the blog's choice.
It probably makes sense for this to be the blog's choice.
After taking some time to pair with @tysongach this seems like the best solution at this time.
When going to comment the way an article's content is moved to the left is a bit jarring and almost feels unintentional. This PR adds a CSS transition to smooth things out providing a bitter experience.
My original thought was to remove the move all together, however this has larger implications as we would have to deal with different screen sizes. I think this provides a good middle ground with a smoother transition. The gif below doesn't really do it a lot of justice as the transition seems a big jagged there.