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 {
color: $text-muted;
display: block;
display: inline;
font-weight: normal;
font-style: normal;
font-size: 85%;
}
.checkbox .label-required {
display: inline;
.has-error .label-required {
color: inherit;
}
.label-required {
&:before {
content: " (";
}
@@ -157,6 +159,17 @@ output {
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 {
padding-top: 7px;