Specifying a Different CSS File for Each User Role
It is possible to specify a different custom CSS file for each type of user role. There are several ways to achieve this:
- Create different a framework for each different user role. You can use framework extensions or framework extension scripts to avoid duplication between frameworks.
- In the same framework, you can create multiple stylesheets that can be switched from the
Web Author UI using the action. You can also use the
stylesheet-titles
URL parameter to specify a comma-separated list of the stylesheet titles to use. - You can use the AuthorPreloadProcessor API to set a pseudo-class on the root of the document depending on the user role and then use it in CSS selectors to adjust the appearance based on the specific user role.