-
Notifications
You must be signed in to change notification settings - Fork 459
How to Reskin Shepherd
Mark Denihan edited this page Oct 9, 2018
·
3 revisions
Shepherd's skin can be customized by updating the relevant CSS files. There are two important ones you need to update;
The first CSS file is where the Security Shepherd Platform looks to for its styling. This includes pages such as Login, Index, Scoreboard and Register.
The second CSS file is where the Security Shepherd modules look to for their styling. This is every default jsp lesson page that comes with Shepherd.
These two files are very similar, with the lessonCss lacking header/footer settings.
- Fork the Security Shepherd Repository
- Pull your Shepherd fork
- Update the images in /SecurityShepherd/src/main/webapp/css/images to your new skin's images (Same Dimensions for best effect)
- Update the color entries in src/main/webapp/css/theCss.css and src/main/webapp/css/lessonCss/theCss.css to match your new images
- You may wish to remove/re-position the <h1>Security Shepherd</h1> from the <div id="header"> in the index.jsp, register.jsp, login.jsp and scoreboard.jsp as it may spoil your custom banner.
- Run the pom.xml with
mvn clean install
- Drop the WAR file that is created on your Tomcat Server
- Complete the Setup Wizard
- You now have a Shepherd built with your custom skin