Files
openfoodnetwork/app/components/modal_component/modal_component.scss
David Cook 6479990f6d Show image update form in modal
It submits to the existing controller. I wanted to submit it with StimulusReflex, but it [doesn't support file uploads](https://docs.stimulusreflex.com/guide/working-with-forms.html#a-note-about-file-uploads). Perhaps we'll enhance this with javascript later.
2024-01-16 13:44:28 +11:00

25 lines
399 B
SCSS

// class name 'modal' is already taken by 'custom-alert' and 'custom-confirm'.
.modal-component {
visibility: visible;
position: fixed;
top: 3em;
&.in {
padding: 1.2rem;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin-bottom: 0.5em;
}
}
/* prevent arrow on selected admin menu item appearing above modal */
body.modal-open #admin-menu li.selected a::after {
z-index: 0;
}