EmpowerID provides an overrides directory within the EmpowerID Web CDN that can be used to customize the theme of the Web site. This allows you to change the default look and feel of the site to match your corporate brand or that of a partner who uses the site. To do so, you place the appropriate CSS files, images and scripts within the specified folders of the overrides directory. EmpowerID then "picks up" your files from the overrides directory, replacing the application's default files with them. This topic demonstrates this by showing you how to change the color of the header used by the Web application.
Changing the color of the header involves overriding the CSS class that defines it. In EmpowerID, this class is the eid-main-header class. When changing the header, you override the properties of the class, replacing the default values with yours. For eid-main-header, these properties are as follows:
To override the header, you create an overrides.css file with a custom definition for the eid-main-header class and place that file within the overrides directory mentioned above. The path to the file is critical as EmpowerID will not incorporate your changes if the path is incorrect. In a default installation of EmpowerID, the path looks as follows:
\Program Files\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.Cdn\Overrides\Themes\EmpowerID
This topic demonstrates how to change the color of the header used in the EmpowerID Web application and is divided into the following activities:
\Program Files\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.Cdn\Overrides\Themes\EmpowerID\overrides.css
/*custom header color*/
.eid-main-header{
background: #466368;
background: -webkit-radial-gradient(#648880, 293f50);
background: -moz-radial-gradient(#648880, 293f50);
background: radial-gradient(#648880, 293f50);
}
You should see that the default header has been updated to reflect the changes you made.