Dashboard
PHP:
7.4.33
OS:
Linux
User:
verseaa
/
/
home
/
verseaa
/
www
/
wp-content
/
plugins
📤 Upload
📝 New File
📁 New Folder
Close
Editing: pop-up-plugin.css
/* admin view */ #popup_admin form { display: flex; flex-direction: column; gap: 1em; max-width: 50%; } #popup_admin .switch { position: relative; width: 4em; height: 2em; background-color: white; border-radius: 20px; } #popup_admin .switch input { opacity: 0; height: 0; width: 0; } #popup_admin .slider { position: absolute; cursor: pointer; height: 100%; width: 100%; top: 0; left: 0; border-radius: 20px; background: lightgrey; } #popup_admin .slider::before { content: ""; width: 40%; aspect-ratio: 1; border-radius: 50%; background-color: #2271b1; background: #fff; position: absolute; top: 50%; left: 10%; transform: translate(0, -50%); transition: all ease .25s; } #popup_admin .switch input:checked+.slider::before { content: ""; width: 40%; aspect-ratio: 1; border-radius: 50%; position: absolute; top: 50%; left: 90%; transform: translate(-100%, -50%); transition: all ease .25s; } #popup_admin .switch input:checked+.slider { background-color: #2271b1; transition: all .25s ease; } #popup_admin form img { max-width: 150px; } #popup_admin label { margin-bottom: 1em; } #popup_admin input, #popup_admin textarea, #popup_admin select { width: 100%; margin-bottom: 1em; } #popup_admin input[type="checkbox"] { width: 10px; vertical-align: middle; margin: 0; } #popup_admin input[type="submit"] { width: max-content; } /* view medias */ #popup_admin #meta-box-video-preview, #popup_admin #meta-box-image-preview { max-width: 300px; } #meta-box-video-preview { max-width: 300px; } #popup_admin textarea { resize: none; height: 250px; } .boxes { display: flex; flex-direction: column; } .boxes * { margin: 0; margin-bottom: 5px; } /* -------------------------------------------------------------------------------------------- */ /* client view */ #popup { position: fixed; height: max-content; width: max-content; z-index: 400; border: 1px solid #fff; box-shadow: #fff 0 0 5px; background: fuchsia; border-radius: 5px; padding: 10px; text-align: center; scale: 1; opacity: 1; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; overflow: hidden; } #popup .pop-up-header { position: relative; } #popup h2 { max-width: 85%; } #popup .close { width: 30px; aspect-ratio: 1; position: absolute; top: 5px; right: 5px; cursor: pointer; } #popup .close svg { width: 100%; } #popup .pop-up-body { display: flex; flex-direction: column; align-items: center; } #popup .media { margin-top: 1em; margin-bottom: 1em; /* padding: 2em; */ /* padding-right: 3em; */ position: relative; } .media video { width: 100%; cursor: pointer; } .poster { object-fit: cover; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 100%; width: 100%; pointer-events: none; } #popup a { padding: .5em 2em; border: none; color: #FFF; background: lightpink; /* margin-top: 1em; */ display: inline-block; width: max-content; text-transform: uppercase; } /* #popup.anim-type-fade_in { opacity: 1; } #popup.anim-type-fade_in.hidden { opacity: 0; } #popup.anim-type-zoom_in { scale: 1; } #popup.anim-type-zoom_in.hidden { scale: 0.001; } */ /* slide */ /* #popup.anim-type-anim-type-slide_in.left, #popup.anim-type-anim-type-slide_in.right, #popup.anim-type-anim-type-slide_in.bottom, #popup.anim-type-anim-type-slide_in.top { margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; } */ /* test animation en JS */ /* #popup.hidden.anim-type-slide_in.top.center-x { margin-top: -100%; } #popup.hidden.anim-type-slide_in.bottom.center-x { margin-bottom: -100%; } #popup.hidden.anim-type-slide_in.center-y.center-x { margin-bottom: -100%; } #popup.hidden.anim-type-slide_in.left { margin-left: -100%; } #popup.hidden.anim-type-slide_in.right { margin-right: -100%; } #popup.anim-duration-1-2 { transition: all ease .5s; } #popup.anim-duration-1 { transition: all ease 1s; } #popup.anim-duration-2 { transition: all ease 2s; } */ /* popup-size */ #popup.full { width: 80vw; height: 80vh; max-width: 80vw; max-height: 80vh; } #popup.small { width: max-content; height: max-content; max-width: 500px; max-height: 500px; } #popup.band { width: 100vw; max-width: 100vw; height: max-content; } #popup.center-y { bottom: 50%; transform: translateY(50%); } #popup.center-x { left: 50%; transform: translateX(-50%); } #popup.center-x.center-y { transform: translate(-50%, 50%); } #popup.left { left: 1em; } #popup.right { right: 1em; } /* #popup.band.left { left: 0; } */ #popup.band.right { right: 0; } #popup.top { top: 1em; } #popup.bottom { bottom: 1em; }
Save
Cancel