Created
May 7, 2024 00:01
-
-
Save whamtet/a8799c03edf56c1c8045687e907dac2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn modal-scroll [width & contents] | |
[:div#modal {:class "fixed left-0 top-0 w-full h-full | |
z-10" | |
:style {:background-color "rgba(0,0,0,0.4)"} | |
:_ "on click if target.id === 'modal' add .hidden"} | |
[:div {:class (str "mx-auto border rounded-lg bg-white overflow-y-auto overflow-x-clip " width) | |
:style {:max-height "94vh" | |
:margin-top "3vh" | |
:margin-bottom "3vh"}} | |
contents]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment