board logo
WUICTeam
  • WUICTeam
  • 100% (Exalted)
  • Newbie Topic Starter
14 days ago
Question
I'm styling a dashboard from the designer's CSS editor. I type a new file name but nothing gets created, or the name I typed is changed. Where do the files end up, and what are the rules for the name?

Answer
The most common cause is that the dashboard has not been saved yet: the CSS files live in a folder named after the board route (dash_route), and until the dashboard has a route the editor has no folder to put them in. Save the dashboard first, then open the CSS editor.

Once the dashboard is saved, the editor builds the path as assets/<dash_route>/<name>. The rules applied to the name you type are:

  • Only a file name is accepted, never a path. If it contains / or \ it is rejected, so you cannot choose the folder.
  • Spaces are replaced with hyphens.
  • .css is appended if you left it out.


For example:


Typed:   my dashboard styles
Created: assets/<dash_route>/my-dashboard-styles.css

Typed:   shared/dash.css
Result:  rejected (contains a path separator)

The rules you write in the sheet apply only to this dashboard at runtime, so for a visual problem on a single board this is safer than changing the application's global CSS.

Two more things to check: the CSS editor is reserved to administrators (the superadmin role), and it only accepts .css sheets with a relative path inside the project folder. Absolute paths, .. segments and other extensions are refused.

Documentation: Dashboard