Remove line-break before "required" in label on small screens (#5074)

This commit is contained in:
Richard Schreiber
2025-05-07 12:04:27 +02:00
committed by GitHub
parent c487373340
commit f676a77536

View File

@@ -143,13 +143,15 @@ output {
.label-required { .label-required {
color: $text-muted; color: $text-muted;
display: block; display: inline;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-size: 85%; font-size: 85%;
} }
.checkbox .label-required { .has-error .label-required {
display: inline; color: inherit;
}
.label-required {
&:before { &:before {
content: " ("; content: " (";
} }
@@ -157,6 +159,17 @@ output {
content: ")"; content: ")";
} }
} }
@media (min-width: $screen-md-min) {
.form-group:not(:has(.checkbox)) {
.label-required {
display: block;
}
.label-required:before,
.label-required:after {
content: "";
}
}
}
.form-control-text { .form-control-text {
padding-top: 7px; padding-top: 7px;