_modal.scss 1.35 KB
Newer Older
Ooh-Ao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
@layer components {
    
    /* Start Modal Styles */
    .ti-modal {
        @apply w-full h-full fixed top-0 ltr:left-0 rtl:right-0 z-[60] overflow-x-hidden overflow-y-auto;
        .ti-modal-header {
            @apply flex justify-between items-center py-3 px-4 border-b dark:border-white/10;
        }
        .ti-modal-box {
            @apply hs-overlay-open:opacity-100 hs-overlay-open:duration-500 opacity-0 transition-all sm:max-w-lg sm:w-full m-3 sm:mx-auto;
        }
        .ti-modal-content {
            @apply flex flex-col bg-white border shadow-sm rounded-sm dark:bg-bgdark dark:border-white/10 dark:shadow-black/[0.05];
        }
        .ti-modal-title {
            @apply font-bold text-gray-800 dark:text-white;
        }
        .ti-modal-close-btn {
            @apply inline-flex flex-shrink-0 justify-center items-center h-8 w-8 rounded-md text-gray-500 dark:text-white dark:hover:text-white/70 hover:text-gray-400 focus:outline-none focus:ring-0 focus:ring-gray-400 focus:ring-offset-0 focus:ring-offset-white transition-all text-sm dark:focus:ring-white/10 dark:focus:ring-offset-white/10;
        }
        .ti-modal-body {
            @apply p-4 overflow-y-auto;
        }
        .ti-modal-footer {
            @apply flex justify-end items-center gap-x-2 py-3 px-4 border-t dark:border-white/10;
        }
    }
    
    /* End Modal Styles */
}