Possible problems:
1 - Width of the widget
width: 100%;
This measure is relative to the next (highest hierarchy) element that has declared width. If the next element has 50px
wide your child who is 100% wide will also have it.
.pai{
width:50px;
}
.pai .filho{
width:100%; /* 50px */
}
2 - Viewport
Include a viewport on your page (if you don’t have one) so you can more easily control the size of the elements and treat them with media-query accurately.
<meta name=viewport content="width=device-width, initial-scale=1, user-scalable=no">
3 - Position
@include mobile {
position: inherit;
}
This section includes the position of the element with the highest hierarchy that has declared position. Avoid putting this way because there is more chance of some change in the layout change the position of this element unexpectedly. Perhaps the best use in this case was position Static which is the default position property:
@include mobile {
position: static;
}
Take a look at the responsive behavior of the screen. I don’t think that’s the problem with the embroidery, maybe there’s some other element that’s breaking the layout.
– Lucas Romano
@Lucasromano that’s the problem, I got lost in this one...
– sistematico
Are you wearing any meta tag to adjust the viewport?
– VitorLuizC