app/assets/build/coco/coco.css in coveragebook_components-0.19.4 vs app/assets/build/coco/coco.css in coveragebook_components-0.19.5

- old
+ new

@@ -4778,23 +4778,77 @@ /* Limit the size of modal content when rendered in the host page rather than displayed as a modal. */ -[data-role="inline-modal-content"]{ +[data-role="inline-modal-content"] [data-component="modal-dialog"]{ margin-left: auto; margin-right: auto; - max-width: 42rem -} - -[data-role="inline-modal-content"] [data-component="modal-dialog"]{ + max-width: 42rem; border-radius: 0.75rem; border-width: 1px; --tw-border-opacity: 1; border-color: rgb(209 213 219 / var(--tw-border-opacity)); --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) +} + +[data-coco][data-component="modal-canvas"]{ + position: relative; + width: -moz-fit-content; + width: fit-content +} + +[data-coco][data-component="modal-canvas"] .modal-canvas-close{ + position: absolute; + right: -0.375rem; + top: -0.375rem; + z-index: 20; + flex: none; + border-radius: 9999px; + padding: 0.5rem; + transition-property: all; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms +} + +@media (min-width: 576px){ + + [data-coco][data-component="modal-canvas"] .modal-canvas-close{ + right: -1rem; + top: -1rem + } +} + +[data-coco][data-component="modal-canvas"] .modal-canvas-close{ + --tw-bg-opacity: 1; + background-color: rgb(17 24 39 / var(--tw-bg-opacity)); + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) +} + +[data-coco][data-component="modal-canvas"] .modal-canvas-close:focus{ + outline: 2px solid transparent; + outline-offset: 2px; + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) +} + +[data-coco][data-component="modal-canvas"] .modal-canvas-content{ + position: relative; + min-height: 100px; + min-width: 100px; + overflow: hidden; + border-radius: 0.75rem; + --tw-bg-opacity: 1; + background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + width: -moz-fit-content; + width: fit-content } [data-coco][data-component="modal-dialog"]{ width: 100%; border-radius: 2rem;