Skip to content

Instantly share code, notes, and snippets.

@fueko
Created February 2, 2021 16:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fueko/87d177b0e80a77ff3d702d7c0d6e3f8d to your computer and use it in GitHub Desktop.
Save fueko/87d177b0e80a77ff3d702d7c0d6e3f8d to your computer and use it in GitHub Desktop.
Nurui 2.4.4 / HTML element MAPOTIC
<style>
@media (min-width:768px) and (max-width:1023px) {
.kg-image-card.kg-width-wide.embed div {
width: 110%;
margin-left: -5%;
}
}
@media (min-width:1024px) and (max-width:1299px) {
.kg-image-card.kg-width-wide.embed div {
width: calc(1000px - 85px - 85px);
margin-left: calc((700px - 1000px) / 2 + 85px);
}
}
@media (min-width:1300px) {
.kg-image-card.kg-width-wide.embed div {
width: calc(1200px - 85px - 85px);
margin-left: calc((700px - 1200px) / 2 + 85px);
}
.kg-image-card.kg-width-wide.embed iframe {
height: 600px !important;
}
}
</style>
<figure class="kg-card kg-image-card kg-width-wide embed">
Your MAPOTIC embed code
</figure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment