fix(responsivo): elimina overflow horizontal de 3px em mobile
As regras `.container>.row` e `.contact-form .row` usavam margem negativa de -15px (herança do Bootstrap 4), mas o container do Bootstrap 5 tem padding de 12px — sobrava 3px de overflow horizontal a 375px (scrollWidth 378 vs 375). Passaram a -0.75rem (o gutter real do BS5), anulando exatamente o padding. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5c4a818f2
commit
6d7b6456a9
1 file changed
+7
-7
@@ -78,8 +78,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container>.row {
|
.container>.row {
|
||||||
margin-left: -15px;
|
margin-left: -0.75rem;
|
||||||
margin-right: -15px;
|
margin-right: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove default outlines, use our focus ring */
|
/* Remove default outlines, use our focus ring */
|
||||||
@@ -1312,12 +1312,12 @@ h3.contact-title {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The Nome/Telemóvel row sits in Bootstrap columns (15px padding); cancel that
|
/* The Nome/Telemóvel row sits in Bootstrap columns (12px gutter, BS5); cancel
|
||||||
with negative margins so those inputs line up flush with the full-width Razão
|
that with negative margins so those inputs line up flush with the full-width
|
||||||
and Mensagem fields below them. */
|
Razão and Mensagem fields below them. */
|
||||||
.contact-form .row {
|
.contact-form .row {
|
||||||
margin-left: -15px;
|
margin-left: -0.75rem;
|
||||||
margin-right: -15px;
|
margin-right: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|||||||
Reference in new issue
Block a user