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

css compiling pseudoelements #121

Open
peminator opened this issue Nov 3, 2024 · 2 comments
Open

css compiling pseudoelements #121

peminator opened this issue Nov 3, 2024 · 2 comments

Comments

@peminator
Copy link

tried add pseudoelemnts
.ce_heade::before to show current label using css, compiled to :before (one colon) which seems to working (two colons always recompile to one

@neSpecc
Copy link
Contributor

neSpecc commented Nov 5, 2024

The problem is not clear, please describe it better

@peminator
Copy link
Author

peminator commented Nov 6, 2024

The problem is not clear, please describe it better

i downloaded the repo, did some custom modifications for my self, where i also wanted to display the current level of heading, by addinng a css rule:

h1.ce_header::before, h1.ce_header::before { display:block; position:absolute; top:0; /* and some more */}
h1.ce_header::before{ content:'H1'; }
h2.ce_header::before{ content:'H2'; }

after running the build command, the css is compiled in a way, where h1.ce_header::before{ content:'H1'; } becomes h1.ce_header:before{ content:'H1'; } - only one ':' in front of the before word, and maybe that is the reason i get it not applied and not displayed. I ended up making some own tool, becaus beeiing unable to recognize the level without clocking the icon is bau UI/UX. Somehow now text paragraph block does not let me convert to my heading, probably would have to add some code. And genereally speaking i would also be happier to use a premade tool, than making own and solving all edge cases that have been solved before by someone else feels like waste of time... ended up with own code, using bootstrap bc i know its used in my projects, looks like this (where i on first look can see which heading i use
image

btw. another suggestion, would be supernice feat to allow add class for any heading... altough that maybe could be a generall tune, maybe will do that also, lately i made a tune to allow duplicate block, bc some more comlicated datarich blocks are easier to copy and modify than make completely new

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