Files
noodl-docs/nodes/utilities/css-definition/README.md
Eric Tuvesson 656e5fc8d2 chore: Upgrade Docusaurus from v2 to v3 (#52)
* chore: Upgrade Docusaurus from v2 to v3

* chore: Update "Test build" GH workflow

* fix: build

All markdown is processed as MDX

* fix: Broken links
2024-01-12 16:53:22 +01:00

38 lines
1.2 KiB
Markdown

---
hide_title: true
hide_table_of_contents: true
title: CSS Definition node
---
{/*##head##*/}
# CSS Definition
This node lets you write your own global custom CSS. It outputs your style definitions in a style tag at the top of your web app.
<div className="ndl-image-with-background l">
![](/nodes/utilities/css-definition/preview.png)
</div>
The Visual nodes all have built in Visual Properties. They feature all the styling options needed for the majority of apps. The CSS Definition node is used whenever those properties are not enough: if you want to use experimental or advanced CSS features, hacks or workarounds. It is written like plain CSS:
<div className="ndl-image-with-background l">
![](/nodes/utilities/css-definition/css-example.png)
</div>
Classes can be attached to the Visual nodes in the Property Panel:
<div className="ndl-image-with-background l">
![](/nodes/utilities/css-definition/class-example.png)
</div>
The CSS Definition is best used if a style class will be reused on multiple different Visual nodes. If you're only styling one Visual node you should do it in the CSS Style editor at the bottom of the Property Panel.
{/*##head##*/}