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

Ajouter un alignement vertical aux .adapt-img-wrapper #13

Open
jmoupah opened this issue Aug 20, 2021 · 0 comments
Open

Ajouter un alignement vertical aux .adapt-img-wrapper #13

jmoupah opened this issue Aug 20, 2021 · 0 comments

Comments

@jmoupah
Copy link

jmoupah commented Aug 20, 2021

Depuis 80ac562 les <picture> qui ont la classe .adapt-img-wrapper sont passés en inline-block au lieu de block. Du coup, il y a un espace dessous qui peut-être gênant (si le parent un couleur de fond pour un effet de survol par exemple, elle devient visible dans cet espace).

En ajoutant vertical-align: top; à .adapt-img-wrapper ça résout le problème :

.".adapt-img-wrapper {display:inline-block;max-width:100%;position:relative;background-position:center;-webkit-background-size:100% auto;-webkit-background-size:cover;background-size:cover;background-repeat:no-repeat;line-height:1px;overflow:hidden}"

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

1 participant