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

adding entity level variable css? should we do this? does entity local css need rewrite? #612

Open
hanbollar opened this issue May 3, 2024 · 0 comments

Comments

@hanbollar
Copy link
Contributor

hanbollar commented May 3, 2024

@lobau 's notes:

element.computedStyleMap().get('padding-left');
.card {
    --color: var(--border);
    border: 1px solid var(--color);
    color: currentColor;
    text-decoration: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform var(--bounce) 0.5s;
}

.card:hover {
    --color: var(--faded);
    transform: scale(0.98);
}

@michaelthatsit notes:

customEntity extends Entity {
    constructor() {
       this.css.getVar('--color')
       mrjs.app.css.getVar('--color')
    }
....
}
mrjs.css.getVar('selector', '--variable')

related to #605

@github-project-automation github-project-automation bot moved this to To-Triage in MRjs && Docs May 3, 2024
@hanbollar hanbollar moved this from To-Triage to For-Later in MRjs && Docs May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: For-Later
Development

No branches or pull requests

1 participant