Reputation: 11045
I installed the Simple Theme plugin on my Jenkins instance, and I managed to do some (very) basic theme changes.
Does anyone have a better reference to the Jenkins theme?
The plugin page is very low on info...
If I want to override a style attribute, I have to dig into the generated html and do a lot of experimenting.
Upvotes: 8
Views: 13363
Reputation: 1160
You can customize your known simple theme with .css file. Make sure that you have .png logo image, I have added 'Jenkins_home/usercontent/mytheme.css' file 'Jenkins_home/usercontent/logo.png' as my logo. and follow the css below:
@charset “utf-8”;
#header .logo {
height: 36px;
}
/* Custom style for my Jenkins Platform */
.logo {
background: url(/userContent/logo.png) no-repeat 10px center;
}
.logo img {
display: none;
}
.logo:after {
content: 'Jenkins my instance';
font-weight: bold;
white-space: nowrap;
} // Content after logo
Just check in Jenkins Configuration theme must be CSS URL and you must add path of above 'mytheme.css' file. & Refresh your Jenkins Page.
Upvotes: 2
Reputation: 1924
Found a simple tutorial here for start:
http://www.techgaun.com/2013/06/customizing-jenkins-layout.html
Upvotes: 0
Reputation: 21
Open Jenkins in Chrome or FireFox and press F12. Right click on the UI element you want to change and select Inspect Element. In the debug window the line in the html is highlighted. Record the id and/or class of the UI element. Open style.css and search for the id/class. Copy the css-code and paste it in .css which you save in the css directory. In the Theme section on the Configuration page enter css/.css as URL of theme CSS. Now start altering .css to get the looks you desire. Enable auto refesh to see the changes, Ctrl-F5 also helps
Upvotes: 1