aaranxu / adidoks

AdiDoks is a mordern documentation theme, which is a port of the Hugo theme Doks for Zola.
https://adidoks.org
MIT License
220 stars 80 forks source link

image out of box #14

Open fanux opened 2 years ago

fanux commented 2 years ago

image

How to fix this issue

hypnoseal commented 2 years ago

Add a width in the theme's sass.

Here's a simple fix:

This will all be done within the themes folder in your project root.

In the _variables.scss add the following somewhere:

// Images

$img-width: 100%;

In the _global.scss add the following somewhere:

img {
  width: $img-width;
}

Hope this helps. Though, keep in mind, it will apply to all img across the entire site. So you might wish to be more specific on what this width is being applied to.