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

Cleanup cards #2870

Merged
merged 5 commits into from
Mar 7, 2019
Merged

Cleanup cards #2870

merged 5 commits into from
Mar 7, 2019

Conversation

iantrich
Copy link
Member

@iantrich iantrich commented Mar 1, 2019

No description provided.

@ghost ghost assigned iantrich Mar 1, 2019
@ghost ghost added the in progress label Mar 1, 2019
@thomasloven
Copy link
Contributor

I pulled this and every card seems to work, at least...

static get styles(): CSSResult {
return css`
:host {
@apply --paper-font-body1;
Copy link
Member

Choose a reason for hiding this comment

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

We can remove this. This has never worked.

Copy link
Member

Choose a reason for hiding this comment

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

@apply is a deprecated spec that Polymer supports, but will never become a standard.

}

.footer {
@apply --paper-font-common-nowrap;
Copy link
Member

Choose a reason for hiding this comment

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

This won't work.

}

.box {
@apply --paper-font-common-nowrap;
Copy link
Member

Choose a reason for hiding this comment

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

This won't work.

}

.header {
@apply --paper-font-headline;
Copy link
Member

Choose a reason for hiding this comment

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

Won't work.

}

.header .name {
@apply --paper-font-common-nowrap;
Copy link
Member

Choose a reason for hiding this comment

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

Won't work

@iantrich
Copy link
Member Author

iantrich commented Mar 1, 2019

Going to rename all Config interfaces to match card name before merging

@thomasloven
Copy link
Contributor

You can't just drop the @apply lines.

You have to manually add everything they did, e.g. font-size: 24px; for .header
skarmavbild 2019-03-01 kl 23 45 40

@iantrich
Copy link
Member Author

iantrich commented Mar 1, 2019

oh, derp

@iantrich
Copy link
Member Author

iantrich commented Mar 6, 2019

paper-styles should be copied over now

@balloob balloob merged commit 57be7ac into home-assistant:dev Mar 7, 2019
@ghost ghost removed the in progress label Mar 7, 2019
@balloob
Copy link
Member

balloob commented Mar 7, 2019

🎉 !!

@iantrich iantrich deleted the card-cleanup branch March 9, 2019 02:51
This was referenced Mar 12, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants