From 328ebe85135912678bdacd3381126ffd66ef2761 Mon Sep 17 00:00:00 2001 From: polwex Date: Fri, 27 Jun 2025 22:53:52 +0700 Subject: init --- desk/lib/kaji.css | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 desk/lib/kaji.css (limited to 'desk/lib/kaji.css') diff --git a/desk/lib/kaji.css b/desk/lib/kaji.css new file mode 100644 index 0000000..c41d0d7 --- /dev/null +++ b/desk/lib/kaji.css @@ -0,0 +1,79 @@ +@keyframes fadeIn { + from { + opacity: 0; + } + + to { + opacity: 1; + } +} + +@keyframes fadeOut { + from { + opacity: 1; + } + + to { + opacity: 0; + } +} + +/* The Modal (background) */ +#kaji-modal-bg { + position: fixed; + z-index: 1; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgba(0, 0, 0, 0.4); + z-index: 998; +} + +/* Modal Content */ +#kaji-modal-fg { + background-color: var(--background-color); + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding: 20px; + width: 80%; + z-index: 999; + max-height: 90vh; + max-width: 90vw; + overflow: auto; +} + +[kaji="modal"] { + cursor: pointer; +} + +#kaji-alert { + background-color: var(--background-color); + border: 2px solid var(--hong); + z-index: 999; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding: 0.5rem; +} + +button { + cursor: pointer; +} + +.hide { + display: none; +} + +.not-hide { + display: block; +} + +.iscroll-spinner { + display: block; + margin: 1rem auto; +} \ No newline at end of file -- cgit v1.2.3