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

Add new component: show/hide truncated text #66

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

srekoble
Copy link

@srekoble srekoble commented Oct 28, 2016

A pure css component with :target, row truncation via line-clamp and flex
in order to create together a fully functional show/hide toggle for
truncated text(in specific rows that we assign with the help of a mixin).

Demo: http://codepen.io/srekoble/pen/WGBzZa

Cheers!

A pure css component with :target, row truncation via line-clamp and flex
in order to create together a fully functional show/hide toggle for
truncated text(in specific rows that we assign with the help of a mixin)
@PMK
Copy link

PMK commented Nov 1, 2016

Can you maybe add also Mozilla prefixes to support Firefox (if possible)?

@srekoble
Copy link
Author

srekoble commented Nov 1, 2016

Sure @PMK will add in the next hours

* Add prefixes for flex properties
* Update truncate mixin to provide fallback for firefox with
a usage of a gradient instead of line-clamp
@srekoble
Copy link
Author

srekoble commented Nov 2, 2016

@PMK updated solution with a firefox fallback.
demo: https://codepen.io/srekoble/pen/WGBzZa?editors=1100

@una
Copy link
Owner

una commented Nov 17, 2016

Super cool demo! I'm going to take a look and see if we could simplify it in any way for the website code

@srekoble
Copy link
Author

srekoble commented Nov 17, 2016

Thanks @una 😄 . Feel free to request/apply any changes.

@Myzel394
Copy link

When will this be added?

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.

4 participants