Code Monkey home page Code Monkey logo

Comments (7)

choldgraf avatar choldgraf commented on August 22, 2024

Holy moly, that's way too big haha... I bet it's the css of the default template. Do you see where the size of the image is being applied in the css?

from jupyter-book.

choldgraf avatar choldgraf commented on August 22, 2024

(I'd look myself but not at a computer right now)

from jupyter-book.

darribas avatar darribas commented on August 22, 2024

Mmmm… I have no idea. It seems it uses something called inuit. The thing though is I wouldn't necessarily want to change the rendering of all images, just those relating to badges. Would that be a) doable b) not too hard for a CSS newbie like me? Thank you very much in advance :)

from jupyter-book.

choldgraf avatar choldgraf commented on August 22, 2024

Lemme give it a shot as a part of #66 :-)

from jupyter-book.

choldgraf avatar choldgraf commented on August 22, 2024

66 removes the width: 100% CSS rule for any image (only for notebook output images), which I think is going to solve this problem for you. You might need to use your own CSS class to make sure the badge snaps to the left instead of being centered (for an example, see the badge that's in the intro.md file of that PR)

from jupyter-book.

darribas avatar darribas commented on August 22, 2024

Bam! I just changed the two lines suggested in #66 for the width:100% and this now looks a lot better:

capture

The centering is something I can definitely live with. Thank you very much for the prompt and excellent response @choldgraf! I'm closing the ticket now as consider it addressed :-)

from jupyter-book.

choldgraf avatar choldgraf commented on August 22, 2024

woot! If you want those left-aligned, you can add a custom class to the images either by adding {:.myclass} and that'll be added to the p element above the image, which you can then style as you like. You could also manually embed the images w/ HTML, which works in markdown, e.g. <img src="mysrc.png" style="margin-left: 0px" />

from jupyter-book.

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.