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

Use SVG to implement ribbon tails #275

Closed
MrOrz opened this issue Jul 11, 2020 · 0 comments · Fixed by #334
Closed

Use SVG to implement ribbon tails #275

MrOrz opened this issue Jul 11, 2020 · 0 comments · Fixed by #334

Comments

@MrOrz
Copy link
Member

MrOrz commented Jul 11, 2020

The ribbon tails are not aligned in narrower screen:
image
(Actually the ribbon in the profile menu is not aligned either.)

Since it's difficult calculating border-size to place these triangles, I would suggest using svg instead.
It's shape is so simple that we can write the svg by hand:

<svg viewBox="0 0 1 2">
  <path d="M0 0 H1 L0 1 L1 2 H0 Z" />
</svg>

And we get a ribbon tail that we can resize and recolor using CSS.

Originally posted by @MrOrz in #264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant