Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image out of box #14

Open
fanux opened this issue Sep 18, 2021 · 1 comment
Open

image out of box #14

fanux opened this issue Sep 18, 2021 · 1 comment

Comments

@fanux
Copy link

fanux commented Sep 18, 2021

image

How to fix this issue

@hypnoseal
Copy link

Add a width in the theme's sass.

Here's a simple fix:

  • Add a width variable
  • Use the width variable in global setting width to img

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants