Giter VIP home page Giter VIP logo

Comments (7)

aarjithn avatar aarjithn commented on July 22, 2024

It is pretty easy to do in less. Just add below to #header in style.less

background: url('your logo path.png') no-repeat, @color-primary;
background-size: auto 64px, cover; 

also need to hide the default image, as jenkins use img tags than background-image. But make sure href that wraps around still works.

#jenkins-home-link img {
   opacity: 0;
}

from jenkins-material-theme.

afonsof avatar afonsof commented on July 22, 2024

I'll thinking about creating a javascript script builder where you select the image and it's inserted inside the css file. All in front end. Anyone would like to help me?

from jenkins-material-theme.

aarjithn avatar aarjithn commented on July 22, 2024

How would we persist the image, if done in javascript?
You can't modify the actual css file from front-end, and any injected style would be lost on refresh.

from jenkins-material-theme.

deimosfr avatar deimosfr commented on July 22, 2024

Thanks for the answre @aarjithn. However I've no logo anymore due to opacity and do not have my wished logo. Any idea ?

from jenkins-material-theme.

aarjithn avatar aarjithn commented on July 22, 2024

Could you check if the path to logo is correct, and it background is not overwritten by any other styles? I do use this setup for my organisation with custom logo and it works fine.

from jenkins-material-theme.

afonsof avatar afonsof commented on July 22, 2024

This is my idea: http://jsfiddle.net/afonsof/s4uuza6u/3/
In that case I'd like to offer the theme only for download. The github hosted installation option would not be available.

from jenkins-material-theme.

afonsof avatar afonsof commented on July 22, 2024

@deimosfr I created a tool in the website that allows to set your own logo: http://jenkins-contrib-themes.github.io/jenkins-material-theme/

from jenkins-material-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.