-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.138.1
Simple Theme Plugin 0.5.1
Multiline CSS comments or // comments do not work. They break the CSS I used to adjust the image:
Invalid:
body { background-color: #feffd8; } /* Uncomment he below to change the logo image */ /* .logo img { content:url("https://host:8444/userContent/title.png"); } */ */ login page - See: https://jenkins.io/blog/2018/06/27/new-login-page See section for Login Theme plugin at Jenkins > Manage Jenkins */ .logo #jenkins-name-icon { content:url("https://host:8444/userContent/title.png"); position: absolute; bottom: 3px; left: 40px; width: 220px; } .logo:after { // Use regular text instead of an image content: ''; font-weight: bold; font-size: 20px; margin-left: 50px; margin-right: 12px; color: white; line-height: 40px; }
Works:
body { background-color: #feffd8; } .logo #jenkins-name-icon { content:url("https://host:8444/userContent/title.png"); position: absolute; bottom: 3px; left: 40px; width: 220px; } .logo:after { // Use regular text instead of an image content: ''; font-weight: bold; font-size: 20px; margin-left: 50px; margin-right: 12px; color: white; line-height: 40px; }
1. CSS has no single-line (//) comments. Using them in CSS lets browsers ignore part of your CSS
2. The comments in your example are not paired up, they seems to work fine if used correctly...
Closing, since I don't see any issue here...