Body classes

From TITAN Wiki
Jump to: navigation, search

From TITAN 6006 onward, you can use "bodyclass-*" CSS classes. This could be used to provide custom classes for applying different styles to specific sites in TITAN application that all use the same theme.

Class name is auto-generated using particular page URL, replacing "/" with "-". E. g. ".bodyclass-user-advert-cpaoffers".

For example:

.bodyclass-login .form-control { background: #ff0000; }
.bodyclass-register .form-control { background: #00ff00; }

Applying above CSS snippet will set input background on login.aspx page to red, and on register.aspx to green.