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

Pseudo-Element Styling Not Working #83

Open
Soundvessel opened this issue Sep 12, 2018 · 2 comments
Open

Pseudo-Element Styling Not Working #83

Soundvessel opened this issue Sep 12, 2018 · 2 comments

Comments

@Soundvessel
Copy link

Using the documentation found here https://heml.io/docs/styling/pseudo-elements/ I was trying to use pseudo-element styling as shown in the example:

button::text {
  background: blue;
}

No effect. Tried it with the NPM develop option and also in your online editor.

The button documentation https://heml.io/docs/elements/button lists different pseudo-elements:

table::root
  table::table
    td::cell
      a::link

So I tried all manner of combinations (e.g. button::link button::a::link button::a button a::link etc) still not getting any change. How can I apply CSS to the generated button HTML these pseudo-elements reference?

@Soundvessel
Copy link
Author

The button is also centered automatically so the additional styling example in https://heml.io/docs/elements/button is unnecessary. However, this means there is no example in the documentation to align the button left. Applying inline-block to button in the CSS works but the code example in https://heml.io/docs/styling/using-css#changing-element-displays says that display property can do "weird things"...

@herrschuessler
Copy link

Aligning the button to the left is possible by setting margin: 0 on the button.

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

No branches or pull requests

2 participants