facilmap/frontend/src/lib/styles.scss

45 wiersze
1.2 KiB
SCSS
Czysty Zwykły widok Historia

2023-11-07 01:19:20 +00:00
/**
* Renders a form feedback error that is shown when the form has been validated, regardless of whether
* it is a sibling of a form element.
*/
.fm-form-invalid-feedback {
display: none;
color: var(--bs-form-invalid-color);
}
2023-11-12 20:07:18 +00:00
.was-validated .fm-form-invalid-feedback, form.fm-was-validated .fm-form-invalid-feedback {
2023-11-07 01:19:20 +00:00
display: block;
}
/**
* Should be applied to form-check elements that have a horizontal form label, in order to be correctly
* aligned with that label.
*/
.fm-form-check-with-label {
// Same padding-top as .col-form-label
padding-top: calc(0.375rem + var(--bs-border-width));
}
/**
2023-11-12 20:07:18 +00:00
* Should be applied to custom-range elements that have a horizontal form label, in order to be correctly
2023-11-07 01:19:20 +00:00
* aligned with that label.
*/
2023-11-12 20:07:18 +00:00
.fm-custom-range-with-label {
2023-11-07 01:19:20 +00:00
// Same padding-top as .col-form-label plus half line-height (1.5) minus half range input height (16px)
padding-top: calc(0.375rem + var(--bs-border-width) + 0.75rem - 8px);
2023-11-11 07:01:40 +00:00
}
/**
* Make a carousel use flex containers rather than floating block containers.
*/
.fm-flex-carousel {
display: flex;
min-height: 0;
> .carousel-item.active, > .carousel-item-next, > .carousel-item-prev {
display: flex;
flex-direction: column;
min-height: 0;
}
2023-11-07 01:19:20 +00:00
}