Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53708

Cannot use standard CSS comments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • simple-theme-plugin
    • 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;
      }
      

            tgr Tobias Gruetzmacher
            mtdeguzis Michael DeGuzis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: