Customize Look & Feel
Last updated
Last updated
ONEWEB mainly controls the look and feel of the forms through CSS. Cascading Style Sheets (CSS) is a language for describing how content is presented. Its purpose is to help separate content (HTML) from the presentation.
ONEWEB provides a default custom CSS that the users can edit to create their individual styles. The name of the file is <CurrentTheme>_Custom_Style.css. To find the file, open Eclipse IDE, on the Project Explorer pane, go to on /MasterWeb/WebContent/theme/<CurrentTheme> folder, and open <CurrentTheme>_Custom_Style.css. For an example shown below, CurrentTheme is Responsive2016.
This file is blank when you start with ONEWEB. You can add any custom css that you want to apply to your project here. The styles that you define here are applicable across all Smart Forms. For e.g. to change the header color please add the below snippet to the custom CSS file.
Or to add the default background to all text fields add the following snippet.
Once the changes are saved, right-click the server and select Publish from the menu. The state changes to Synchronized once the project has been deployed to the server.
Note: Don't forget to clear the browser cache for the new CSS style to come into effect.