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 cards and badges #13

Merged
merged 10 commits into from
Nov 3, 2017
Merged

Add cards and badges #13

merged 10 commits into from
Nov 3, 2017

Conversation

TotomInc
Copy link
Contributor

@TotomInc TotomInc commented Nov 1, 2017

Closes #11 to put cards and badges together. WIP on modern web components as #3 says.

src/badges.less Outdated
text-align: center;
white-space: nowrap;
vertical-align: baseline;
background-color: #868e96;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldnt this be assigned a colour variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah totally forgot about that, I'll replace it asap!

src/cards.less Outdated
// since we want to avoid the little blank space between
// image and border-top-left/right-radius, so we force
// the default border class and customize it on the img
.border;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe for cards, we don't need to use the crooked borders like shown in the other elements. It could be shown as something similar to a "Note Card" which has straight lines. That way the button within it stands out more. And then we don't have to worry about adjusting the image style from the border effects.

image
image

But I like the direction so far!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll fix it asap. I have to admit that the crooked borders was not very good for the cards. I'll fix that and add a box shadow like on the pic, and also add header/footer customization on cards.

@rhyneav
Copy link
Member

rhyneav commented Nov 1, 2017

Couple comments above for the cards (and badge color variable). But I also wanted to say that the badges look sharp. Great stuff!

image

@TotomInc
Copy link
Contributor Author

TotomInc commented Nov 2, 2017

I really like how the badges are and follow properly the paper theme, but if you feel they are too sharp, should I just put another border radius? How do you see the badges?

@TotomInc TotomInc mentioned this pull request Nov 2, 2017
@TotomInc
Copy link
Contributor Author

TotomInc commented Nov 2, 2017

I've just fixed the hard-coded color on badges and added a new one, that I think will be used especially for text (.muted, a gray and its lighten version). I also removed edgy corners on the badges, don't know if that what @rhyneav wanted. I can still change it depending on what you want.

Here are the new badges.

@rhyneav
Copy link
Member

rhyneav commented Nov 2, 2017

@TotomInc sorry, I meant that they look sharp as in James Bond in a tuxedo type of sharp. I really liked how they matched the theme with the uneven borders rather than the rounded radius.

What I'm trying to say is that your original badges looked great as this:
image

@TotomInc
Copy link
Contributor Author

TotomInc commented Nov 2, 2017

Oops, sorry I misunderstand your comment on badges, I'm going to revert the changes! Also, did you check the new cards? I removed the paper-style borders and added a shadow.

@TotomInc
Copy link
Contributor Author

TotomInc commented Nov 2, 2017

The PR is ready to be merged @rhyneav .

@Fraham
Copy link
Contributor

Fraham commented Nov 2, 2017

Looks really good

@TotomInc
Copy link
Contributor Author

TotomInc commented Nov 2, 2017

Glad you like it! 😄

@rhyneav
Copy link
Member

rhyneav commented Nov 3, 2017

Wow, cards and badges both look stellar! Thank you for doing such an awesome job with those. I also really like the addition of the muted color; much needed!

@rhyneav rhyneav merged commit 71ab4ff into papercss:master Nov 3, 2017
This was referenced Nov 3, 2017
@TotomInc TotomInc deleted the badges branch November 3, 2017 12:55
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.

None yet

3 participants