2023-03-25 19:57:12 +00:00
|
|
|
@use 'sass:map';
|
|
|
|
|
2021-07-20 03:25:52 +00:00
|
|
|
// Baby Buddy form style customizations.
|
|
|
|
|
|
|
|
// BB form fields do not follow typical BS4 style that enables this display.
|
|
|
|
.invalid-feedback {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disable hover effect on buttons (used for checkbox buttons).
|
|
|
|
.btn-no-hover {
|
|
|
|
&:hover {
|
|
|
|
color: inherit;
|
|
|
|
background-color: inherit;
|
|
|
|
border-color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.boolean-label {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Use a full width, fixed button on smaller screens.
|
|
|
|
.submit-primary {
|
|
|
|
display: block;
|
|
|
|
border-radius: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding: 1rem;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1030;
|
|
|
|
}
|
|
|
|
|
2021-09-17 02:14:48 +00:00
|
|
|
// Tweak padding on form field help blocks.
|
|
|
|
.help-block {
|
|
|
|
ul {
|
|
|
|
padding-left: 1rem;
|
|
|
|
padding-bottom: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-20 03:25:52 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
// Restore regular inline button on larger screens.
|
|
|
|
.submit-primary {
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: $btn-border-radius;
|
|
|
|
width: auto;
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
position: relative;
|
|
|
|
}
|
2024-02-06 06:10:07 +00:00
|
|
|
}
|
|
|
|
|
2024-02-07 07:01:30 +00:00
|
|
|
@include media-breakpoint-down(md) {
|
|
|
|
.advanced-fields__summary {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.advanced-fields__summary > * {
|
|
|
|
display: inline
|
|
|
|
}
|
|
|
|
|
|
|
|
.advanced-fields {
|
2024-02-06 06:10:07 +00:00
|
|
|
// removing this causes slight mis-alignment between fields in the details and the rest of the fields
|
|
|
|
//on the form at the left hand side of the box
|
|
|
|
padding-right: 0;
|
2024-02-07 07:01:30 +00:00
|
|
|
}
|