Skip to content

Card styles - #22950

Merged
mdo merged 8 commits into
v4-devfrom
more-card-less-card
Jun 30, 2017
Merged

mdo merged 8 commits into
v4-devfrom
more-card-less-card

Conversation

@mdo

@mdo mdo commented Jun 30, 2017

Copy link
Copy Markdown
Member

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 css Sass sources or compiled CSS v4 v4, the frozen docs on gh-pages labels Jun 30, 2017
@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

css Sass sources or compiled CSS v4 v4, the frozen docs on gh-pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant