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

Card styles #22950

Merged
merged 8 commits into from
Jun 30, 2017
Merged

Card styles #22950

merged 8 commits into from
Jun 30, 2017

Conversation

mdo
Copy link
Member

@mdo mdo commented Jun 30, 2017

This PR changes how we do card variants. Rather than generate custom classes for just the .card component for changing the color, background-color, and border-color, we're now using our utility classes. This provides more flexibility in how you ultimately style cards, while at the same time reducing our compiled CSS.

  • Drops all card mixins. No more need for a .card-dark—which also coincidentally conflicted with .card-dark from the $theme-colors Sass map—and no more card-variant or card-outline-variant.

  • Replaces all .card-{color} instances with a mix of .bg-{color} and .text-white as needed. For the outline ones, we're now using .border-{color}.

  • Drops the .card-blockquote ahead of Redesign blockquote #22949 shipping, which removes most of the styling that we were overriding with that class. Might need some margin utilities still, though.

Docs have been updated, but might need to update the migration guide, too.

@mdo mdo added this to the v4.0.0-beta milestone Jun 30, 2017
@mdo mdo merged commit 221f41a into v4-dev Jun 30, 2017
@mdo mdo deleted the more-card-less-card branch June 30, 2017 22:23
@mdo mdo mentioned this pull request Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant