New Feature Addition · Articles & templates · Created by
KahunaTheElder
accepted
CSS Modular -Styling
Currently, those with the permissions to use advanced CSS in their pages need to either put all CSS into the Global CSS or copy and paste lesser-used CSS snippets into individual pages. For on-off CSS styling, this is not a real problem, but for worlds where sections of the world use similar styling, this can result in much copy and pasting, or bloated CSS.
The same can be said for font definitions, which either need to be loaded on the individual page, or in the Global CSS.
The idea for modular CSS is to create something like we currently use for statblocks, where CSS is put into a snippet, which is then called on the individual page. For example, if you want to use a "chalkboard" background and font, those could all be called with one modular CSS definition on any page that needs it, without loading it on pages that do not. It also eliminates the need of repeating the CSS code on each page that requires it. And lastly, keeping all the code within the WA system provides for the ability to have checks for security.
The end result should be quicker load times on a large number of pages, and less server load when not loading tons of CSS that is unused on a page. It also will allow easier use of CSS code as needed. In addition, it can make testing of new code much easier, and safer, as the reference to the code snippet can be removed easily.
The Team's Response
Hasn't reached target 300 votes in 20 days
This was already something I have suggested myself support is rather low so it will get lower priority but I believe it can really help [MEDIUM PRIORITY]
Current score
42/300 Votes · +4840 points