Empty HTML template but CSS is from other pages #5414
Answered
by
artf
nguyenvoanhkhoa1
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
artf
Sep 22, 2023
Replies: 3 comments 3 replies
-
Here is the documentation about component-related styles https://grapesjs.com/docs/modules/Components.html#components-css |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nguyenvoanhkhoa1
-
Ok man, thanks got it we just can't style the tag selector directly in css
we have to give an id or className to them for styling... is that right?
…On Tue, Oct 3, 2023 at 7:56 AM Nguyễn Võ Anh Khoa ***@***.***> wrote:
@lifeofsa <https://github.com/lifeofsa> The docs say that we should write
styles that can connect by class. With class selector, for example .class-a
{...} you can connect them with class: "class-a" in the component
definition. With tag name selector, there is no way to connect with the
selector to clear them
https://grapesjs.com/docs/modules/Blocks.html#important-caveats
<http://url>
—
Reply to this email directly, view it on GitHub
<#5414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT3CHAZFF2GJDD4ZQNCRWL3X5N5ELAVCNFSM6AAAAAA5C5HWQOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TCNZRGEZDS>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Got it, thanks!
…On Thu, Oct 5, 2023 at 10:35 PM Nguyễn Võ Anh Khoa ***@***.***> wrote:
one more important thing is in this doc
https://grapesjs.com/docs/modules/Blocks.html#important-caveats
<http://url>
—
Reply to this email directly, view it on GitHub
<#5414 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT3CHA4PZDQF5OU4O472N7LX53VVLAVCNFSM6AAAAAA5C5HWQOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEMBRGQZDM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the documentation about component-related styles https://grapesjs.com/docs/modules/Components.html#components-css