From 44ac8e05c00b65bbe25121588cb9e7ed78cffdf7 Mon Sep 17 00:00:00 2001
From: moli <linmolilin@gmail.com>
Date: 星期日, 01 五月 2022 19:15:18 +0800
Subject: [PATCH] 前端弹窗

---
 前端/弹出提示窗口/tt.css     |  126 +++++
 前端/弹出提示窗口/style.css  |  661 +++++++++++++++++++++++++++
 前端/弹出提示窗口/btn.css    |  122 +++++
 前端/弹出提示窗口/modal.css  |  118 ++++
 前端/弹出提示窗口/index.html |  359 ++++++++++++++
 5 files changed, 1,386 insertions(+), 0 deletions(-)

diff --git "a/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/btn.css" "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/btn.css"
new file mode 100644
index 0000000..1abe9ba
--- /dev/null
+++ "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/btn.css"
@@ -0,0 +1,122 @@
+/*GRADIENTS*/
+.b-confirm{
+  transition: all .5s;
+  background: linear-gradient(45deg, rgba(0, 190, 57, 0.671) 0%, rgba(0, 192, 144, 0.692) 100%);
+}
+.b-confirm:hover{
+  background: linear-gradient(45deg, rgb(0, 190, 57) 0%, rgb(0, 192, 144) 100%);
+}
+
+/*RED*/
+.b-cancel{
+  background: linear-gradient(45deg, rgba(255, 69, 69, 0.678) 0%, rgba(255, 39, 39, 0.521) 100%);
+}
+.b-cancel:hover {
+  background: linear-gradient(45deg, rgb(255, 0, 0) 0%, rgb(255, 51, 0) 100%);
+}
+
+/*Orange*/
+.b-warning{
+  background: linear-gradient(45deg, rgba(255, 208, 0, 0.658) 0%,rgba(255, 94, 0, 0.767) 0%, rgba(255, 208, 0, 0.781) 100%);
+}
+.b-warning:hover {
+  background: linear-gradient(45deg, rgb(255, 208, 0) 0%,rgb(255, 94, 0) 0%, rgb(255, 208, 0) 100%);
+}
+
+/*BLUE*/
+.b-info{
+  background: linear-gradient(45deg, rgba(0, 204, 255, 0.658) 0%,rgba(0, 4, 255, 0.767) 0%, rgba(0, 183, 255, 0.781) 100%);
+}
+.b-info:hover {
+  background: linear-gradient(45deg, rgb(0, 204, 255) 0%,rgb(0, 4, 255) 0%, rgb(0, 183, 255) 100%);
+}
+
+
+.b-disabel:hover {
+  background: linear-gradient(45deg, rgba(90, 90, 90, 0.568) 0%, rgba(59, 59, 59, 0.699) 100%);
+}
+
+
+
+/*END GRADIENTS*/
+/*BASE BUTTON*/
+.button {
+  display: inline-block;
+  position: relative;
+  border-radius: 3px;
+  text-decoration: none;
+  padding: .2rem 1.3rem;
+  margin: .2rem;
+  font-size: .8rem;
+  font-weight: bold;
+  transition: all .5s;
+  -webkit-text-fill-color: transparent;
+  text-shadow: 0px 0px 0px #ffffffaa;
+  cursor: pointer;
+}
+
+.button:hover {
+  text-shadow: 0px 0px 0px rgba(255, 255, 255, 1);
+}
+
+.button:hover:after {
+  left: 100%;
+  top: 100%;
+  bottom: 100%;
+  right: 100%;
+}
+
+.button:before {
+  content: '';
+  display: block;
+  position: absolute;
+  left: 0;
+  top: 0;
+  bottom: 0;
+  right: 0;
+  z-index: -1;
+  border-radius: 5px;
+  transition: all .5s;
+}
+
+.button:after {
+  content: '';
+  display: block;
+  position: absolute;
+  left: 2px;
+  top: 2px;
+  bottom: 2px;
+  right: 2px;
+  z-index: -1;
+  border-radius: 5px;
+  transition: all .5s;
+}
+
+.button2 {
+  display: inline-block;
+  font-size: 2em;
+  margin: .5em;
+  padding: .5em;
+  border-radius: 5px;
+  transition: all .5s;
+  filter: hue-rotate(0deg);
+  color: #FFF;
+  text-decoration: none;
+}
+
+/*END BASE BUTTON*/
+/*ROTATE*/
+.rot-360-noscoop:hover {
+  filter: hue-rotate(360deg);
+  transform: rotate(360deg);
+}
+
+.rot-135:hover {
+  filter: hue-rotate(135deg);
+}
+
+.rot-90:hover {
+  filter: hue-rotate(90deg);
+}
+
+/*END ROTATE*/
\ No newline at end of file
diff --git "a/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/index.html" "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/index.html"
new file mode 100644
index 0000000..4e800d2
--- /dev/null
+++ "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/index.html"
@@ -0,0 +1,359 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <link rel="stylesheet" href="./btn.css">
+    <link rel="stylesheet" href="./modal.css">
+    <link rel="stylesheet" href="./style.css">
+</head>
+
+<body>
+    <button class="button b-confirm" onclick="createMessage()">
+        寮圭獥
+    </button>
+    <script>
+        function createMessage() {
+            show({
+                type: 'success',
+                content: '纭鎻愪氦锛�',
+                btns: [{
+                        type: 'success',
+                        text: '鎻愪氦',
+                        callback: function () {
+                            console.log("鎻愪氦鎴愬姛");
+                        }
+                    },
+                    {
+                        type: 'cancel',
+                        text: '鍙栨秷',
+                        callback: function () {
+                            console.log("鍙栨秷鎻愪氦");
+                        }
+                    },
+                ],
+                callback: function () {
+                    console.log("鍏抽棴绐楀彛");
+                }
+            });
+        }
+        /**
+         * 寮圭獥
+         * @param {寮圭獥鍙傛暟} options 
+         */
+        let show = function (options) {
+            //options = {type(Emun,寮圭獥绫诲瀷),content(String,鏄剧ず鐨勫唴瀹�),btns(鎸夐挳{type|Emun,text|String,callback|Function})),callback(Function 鎸夐挳鍥炶皟鎵ц浜嬩欢锛屽彲绌�)}
+                //type 寮圭獥绫诲瀷锛孍mun success|info|warning|error|disabel
+                //content 鏄剧ず鐨勫唴瀹�
+                //btns:{type|String,btns|Array,callback|Function}
+                    //btns.type:Emun 鎸夐挳绫诲瀷 success|confirm|info|warning|cancel|error|fail|disabel
+                    //btns.text:String 鎸夐挳鏄剧ず鐨勬枃鏈�
+                    //btns.callback:Function 鎸夐挳鍥炶皟鎵ц浜嬩欢锛屽彲绌�
+                //callback 鍏抽棴绐楀彛鍚庢墽琛岀殑浜嬩欢
+
+            //鍒濆鍖栧弬鏁�->鍒涘缓DOM->娓叉煋DOM->缁戝畾鎸夐挳浜嬩欢->璋冪敤鎸夐挳鍥炶皟浜嬩欢->鍏抽棴绐楀彛->璋冪敤鍏抽棴绐楀彛鍚庣殑浜嬩欢
+
+            let body = document.body;
+
+            let windowId = new Date().getTime() + '' + Math.round(Math.random() * 1000);
+
+            let headClass = "my_modal__header";
+
+            if (options.type == "success" ||
+                options.type == "info" ||
+                options.type == "warning" ||
+                options.type == "error" ||
+                options.type == "disabel") {
+                headClass = "my_modal__header_" + options.type;
+            }
+
+            if (!!!options.title) {
+                options.title = "鎻愮ず";
+            }
+
+
+            let btnFun = function (userFun, e) {
+                if (!!userFun) {
+                    userFun();
+                }
+
+                e.target.parentNode.parentNode.className = 'my_modal slide-out-bck-top';
+                setTimeout(() => {
+                    e.target.parentNode.parentNode.parentNode.remove();
+                }, 330);
+
+                if (!!options.callback) {
+                    options.callback(e.target.innerText);
+                }
+            }
+
+            let closeFun = function (e) {
+                e.target.parentNode.parentNode.parentNode.parentNode.className = 'my_modal slide-out-bck-top';
+                setTimeout(() => {
+                    e.target.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
+                }, 330);
+                if (!!options.callback) {
+                    options.callback("my_modal_close_btn_" + windowId);
+                }
+            }
+
+            let btnStr = '';
+            //鎸夐挳澶勭悊
+            if (options.btns != undefined && options.btns != null && options.btns.length > 0) {
+                for (let key in options.btns) {
+                    options.btns[key].bindId = new Date().getTime() + '' + Math.round(Math.random() * 1000);
+                    if (options.btns[key].type == "confirm" ||
+                        options.btns[key].type == "info" ||
+                        options.btns[key].type == "warning" ||
+                        options.btns[key].type == "cancel" ||
+                        options.btns[key].type == "disabel") {
+                        btnStr += '<div id="box_btn_id_' + options.btns[key].bindId + '"  class="button b-' +
+                            options.btns[key].type + '">' + options.btns[key].text + '</div>';
+                    } else {
+                        if (options.btns[key].type == "success") {
+                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId + '"  id="box_btn_id_' +
+                                options.btns[key].bindId + '" class="button b-confirm">' + options.btns[key].text +
+                                '</div>';
+                        } else if (options.btns[key].type == "fail") {
+                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
+                                '"  class="button b-cancel">' + options.btns[key].text + '</div>';
+                        } else if (options.btns[key].type == "error") {
+                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
+                                '"  class="button b-cancel">' + options.btns[key].text + '</div>';
+                        } else {
+                            btnStr += '<div id="box_btn_id_' + options.btns[key].bindId +
+                                '"  class="button b-info">' + options.btns[key].text + '</div>';
+                        }
+                    }
+                }
+            }
+            //鎸夐挳澶勭悊 end
+
+            //鏋勫缓鍏冪礌
+            let modal_back = document.createElement('div');
+            modal_back.className = 'my_modal_back';
+
+            let modal = document.createElement('div');
+            modal.className = 'my_modal slide-in-elliptic-top-fwd';
+
+            let modal__header = document.createElement('div');
+            modal__header.className = headClass;
+
+            let modal__header_title = document.createElement('div');
+            modal__header_title.className = 'my_modal__header_title';
+            modal__header_title.innerText = options.title;
+
+            modal__header.appendChild(modal__header_title);
+
+            let modal__header_close = document.createElement('div');
+            modal__header_close.className = 'my_modal__header_close';
+
+            let item_item3 = document.createElement('div');
+            item_item3.className = 'item item3';
+            item_item3.id = 'my_modal_close_btn_' + windowId;
+
+            let close_icon = document.createElement('div');
+            close_icon.className = 'close icon';
+
+            let close_icon_i = document.createElement('i');
+
+            close_icon.appendChild(close_icon_i);
+
+            item_item3.appendChild(close_icon);
+
+            modal__header_close.appendChild(item_item3);
+
+            modal__header.appendChild(modal__header_close);
+
+
+            let modal__Content = document.createElement('div');
+            modal__Content.className = 'my_modal__Content';
+            modal__Content.innerText = options.content;
+
+            let modal__footer = document.createElement('div');
+            modal__footer.className = 'my_modal__footer';
+
+            modal__footer.innerHTML = btnStr;
+
+            modal.appendChild(modal__header);
+            modal.appendChild(modal__Content);
+            modal.appendChild(modal__footer);
+
+            modal_back.appendChild(modal);
+
+            body.appendChild(modal_back);
+            //鏋勫缓鍏冪礌 end
+
+            //缁戝畾鍥炶皟浜嬩欢
+            if (options.btns != undefined && options.btns != null && options.btns.length > 0) {
+                document.getElementById('my_modal_close_btn_' + windowId)
+                    .addEventListener('click', function (e) {
+                        closeFun(e);
+                    });
+
+                for (let key in options.btns) {
+                    let dom = document.getElementById('box_btn_id_' + options.btns[key].bindId);
+                    dom.addEventListener('click', function (e) {
+                        btnFun(options.btns[key].callback, e)
+                    });
+                }
+            }
+            //缁戝畾鍥炶皟浜嬩欢end
+        }
+
+        /**
+         * 鍐呴儴鏂规硶锛屽弬鏁板鐞�
+         * @param {Json Object} param 榛樿鍙傛暟
+         * @param {*} title 鏍囬
+         * @param {*} btns 鎸夐挳鍒楄〃
+         * @param {*} callback 鍥炶皟鍑芥暟
+         * @returns 澶勭悊鍚庣殑鍙傛暟
+         */
+        let setParam = function (param, title, btns, callback) {
+
+            if (!!title) {
+                param.title = title;
+            } else {}
+
+            if (btns !== undefined && btns !== null) {
+                param.btns = btns;
+            } else if (btns === null) {
+                param.btns = [];
+            } else {}
+
+            if (!!callback) {
+                param.callback = callback;
+            }
+
+            return param;
+        }
+
+        /**
+         * 寮瑰嚭涓�涓彁绀烘垚鍔熺殑鎻愮ず绐楀彛
+         * @param {String} content *鎻愮ず鍐呭
+         * @param {String} title 鏍囬锛岄粯璁ゆ爣棰樹负鎻愮ず
+         * @param {Array} btns 鎸夐挳鍒楄〃锛岄渶瑕佺疆绌轰紶null鎴栫┖鏁扮粍锛屼笉浼犻�掓椂浼氶粯璁ゆ彁渚涗竴涓‘瀹氭寜閽�
+         * @param {Function} callback 鍏抽棴鍥炶皟锛屾棤鍙敤鍙傛暟
+         */
+        let success = function (content, title, btns, callback) {
+            let param = {
+                type: 'success',
+                title: '鎻愮ず',
+                content: content,
+                btns: [{
+                    type: 'success',
+                    text: '纭�  瀹�',
+                    callback: function () {
+                        console.log('callback success');
+                    }
+                }],
+                callback: function () {
+
+                }
+            };
+            param = setParam(param, title, btns, callback);
+
+            show(param);
+        }
+
+        /**
+         * 寮瑰嚭涓�涓彁绀哄け璐ョ殑鎻愮ず绐楀彛
+         * @param {String} content *鎻愮ず鍐呭
+         * @param {String} title 鏍囬锛岄粯璁ゆ爣棰樹负鎻愮ず
+         * @param {Array} btns 鎸夐挳鍒楄〃锛岄渶瑕佺疆绌轰紶null鎴栫┖鏁扮粍锛屼笉浼犻�掓椂浼氶粯璁ゆ彁渚涗竴涓‘瀹氭寜閽�
+         * @param {Function} callback 鍏抽棴鍥炶皟锛屾棤鍙敤鍙傛暟
+         */
+        let error = function (content, title, btns, callback) {
+            let param = {
+                type: 'error',
+                title: '閿欒',
+                content: content,
+                btns: [{
+                    type: 'success',
+                    text: '纭�  瀹�',
+                    callback: function () {
+                        console.log('callback success');
+                    }
+                }],
+                callback: function () {
+
+                }
+            };
+            param = setParam(param, title, btns, callback);
+
+            show(param);
+        }
+
+        /**
+         * 寮瑰嚭涓�涓鍛婄殑鎻愮ず绐楀彛
+         * @param {String} content *鎻愮ず鍐呭
+         * @param {String} title 鏍囬锛岄粯璁ゆ爣棰樹负鎻愮ず
+         * @param {Array} btns 鎸夐挳鍒楄〃锛岄渶瑕佺疆绌轰紶null鎴栫┖鏁扮粍锛屼笉浼犻�掓椂浼氶粯璁ゆ彁渚涗竴涓‘瀹氭寜閽�
+         * @param {Function} callback 鍏抽棴鍥炶皟锛屾棤鍙敤鍙傛暟
+         */
+        let warning = function (content, title, btns, callback) {
+            let param = {
+                type: 'warning',
+                title: '璀﹀憡',
+                content: content,
+                btns: [{
+                    type: 'success',
+                    text: '纭�  瀹�',
+                    callback: function () {
+                        console.log('callback success');
+                    }
+                }],
+                callback: function () {
+
+                }
+            };
+            param = setParam(param, title, btns, callback);
+
+            show(param);
+        }
+        /**
+         * 寮瑰嚭涓�涓闂獥鍙�
+         * @param {String} content *鎻愮ず鍐呭
+         * @param {String} title 鏍囬锛岄粯璁ゆ爣棰樹负鎻愮ず
+         * @param {Array} btns 鎸夐挳鍒楄〃锛岄渶瑕佺疆绌轰紶null鎴栫┖鏁扮粍锛屼笉浼犻�掓椂浼氶粯璁ゆ彁渚涗竴涓‘瀹氭寜閽�佷竴涓彇娑堟寜閽�
+         * @param {Function} callback 鍏抽棴鍥炶皟锛屾棤鍙敤鍙傛暟
+         */
+        let confirm = function (content, title, btns, callback) {
+            let param = {
+                type: 'warning',
+                title: '璀﹀憡',
+                content: content,
+                btns: [{
+                        type: 'success',
+                        text: '纭�  瀹�',
+                        callback: function () {
+                            console.log('callback success');
+                        }
+                    },
+                    {
+                        type: 'cancel',
+                        text: '鍙�  娑�',
+                        callback: function () {
+                            console.log('callback success');
+                        }
+                    }
+                ],
+                callback: function () {
+
+                }
+            };
+            param = setParam(param, title, btns, callback);
+
+            show(param);
+        }
+
+        let out = {
+            show,
+            success,
+            error,
+            warning,
+            confirm
+        }
+    </script>
+</body>
+
+</html>
\ No newline at end of file
diff --git "a/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/modal.css" "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/modal.css"
new file mode 100644
index 0000000..0680c32
--- /dev/null
+++ "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/modal.css"
@@ -0,0 +1,118 @@
+.my_modal_back {
+    background-color: #00000033;
+    width: 100vw;
+    height: 100vh;
+    position: absolute;
+    top: 0;
+    left: 0;
+    z-index: 99999990;
+}
+
+.my_modal {
+    /* Border */
+    border: 1px solid rgba(104, 104, 104, 0.397);
+    border-radius: 10px;
+    width: 600px;
+    max-height: 400px;
+    position: absolute;
+    top: calc(100vh - 50% - 300px);
+    left: calc(100vw - 50% - 300px);
+    background: #efefef;
+    z-index: 99999991;
+}
+
+.my_modal__header {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgb(0, 162, 255) 0%, rgba(0, 195, 255, 0.377) 100%);
+}
+
+.my_modal__header_success {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgba(98, 202, 0, 0.836) 0%, rgba(0, 255, 149, 0.377) 100%);
+}
+
+.my_modal__header_info {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgb(0, 162, 255) 0%, rgba(0, 195, 255, 0.377) 100%);
+}
+
+.my_modal__header_warning {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgba(230, 149, 0, 0.836) 0%, rgba(208, 255, 0, 0.377) 100%);
+}
+
+.my_modal__header_error {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgba(230, 0, 0, 0.836) 0%, rgba(255, 0, 0, 0.377) 100%);
+}
+
+.my_modal__header_disabel {
+    display: flex;
+    justify-content: space-between;
+    border-radius: 10px 10px 0px 0px;
+    height: 28px;
+    line-height: 28px;
+    box-shadow: 0px 1px #a1a1a1;
+    z-index: 99999992;
+    background: linear-gradient(90deg, rgba(80, 80, 80, 0.836) 0%, rgba(163, 163, 163, 0.377) 100%);
+}
+
+
+.my_modal__header_title {
+    font-weight: bold;
+    font-size: .8rem;
+    font-family: '寰蒋闆呴粦';
+    justify-content: space-between;
+    padding-left: 5px;
+    color: #ffffff;
+    z-index: 99999993;
+}
+
+.my_modal__Content {
+    display: flex;
+    min-height: 50px;
+    padding-top: 20px;
+    padding-left: 30px;
+    font-family: '妤蜂綋';
+    z-index: 99999993;
+}
+
+.my_modal__footer {
+    display: flex;
+    /* Push the buttons to the right */
+    justify-content: flex-end;
+    /* Border */
+    /* border-top: 1px solid rgba(185, 185, 185); */
+    padding: 10px 20px;
+    z-index: 99999993;
+}
\ No newline at end of file
diff --git "a/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/style.css" "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/style.css"
new file mode 100644
index 0000000..817d1ad
--- /dev/null
+++ "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/style.css"
@@ -0,0 +1,661 @@
+
+  
+  .container {
+    display: grid;
+    grid-gap: 20px;
+    grid-template-columns: repeat(6, 1fr);
+    position: relative;
+  }
+  
+  .item {
+    /* border: 1px solid var(--gray); */
+    box-sizing: border-box;
+    display: inline-block;
+    height: 15px;
+    padding: 5px;
+    width: 15px;
+    padding-right: 28px;
+    padding-top:1px;
+  }
+  
+  .icon {
+    color: var(--white);
+    position: absolute;
+  }
+  
+  .icon:before, .icon:after {
+    content: '';
+    position: absolute;
+  }
+  
+  i {
+    position: absolute;
+  }
+  
+  i:before, i:after {
+    background-color: currentcolor;
+    content: '';
+    position: absolute;
+  }
+  
+  /* Search Icon ... Start */
+  .search.icon {
+    border: 2px solid currentcolor;
+    border-radius: 50%;
+  /*   color: var(--purple); */
+    height: 12px;
+    margin-top: 1px;
+    margin-left: 2px;
+    transform: rotate(-45deg);
+    width: 12px;
+  }
+  
+  .search.icon:before {
+    background-color: currentcolor;
+    height: 10px;
+    left: 5px;
+    top: 12px;
+    width: 2px;
+  }
+  /* Search Icon ... End */
+  
+  /* Menu Icon ... Start */
+  .menu.icon {
+    border-bottom: none;
+    border-left: none;
+    border-right: none;
+    border-top: 1px solid currentcolor;
+  /*   color: var(--green); */
+    margin-top: 10px;
+    transition: transform .5s ease-out 0s;
+    width: 24px;
+    will-change: transform;
+  }
+  
+  .item:hover .menu.icon {
+    transform: rotate(90deg);
+  }
+  
+  .menu.icon:before {
+    border-bottom: none;
+    border-left: none;
+    border-right: none;
+    border-top: 1px solid currentcolor;
+    top: -8px;
+    width: 24px;
+  }
+  
+  .menu.icon:after {
+    border-bottom: none;
+    border-left: none;
+    border-right: none;
+    border-top: 1px solid currentcolor;
+    top: 6px;
+    width: 24px;
+  }
+  /* Menu Icon ... End */
+  
+  /* Close Icon ... Start */
+  .close.icon, .close.icon:before {
+    border-left: 1px solid currentcolor;
+    height: 20px;
+  }
+  
+  .close.icon {
+  /*   color: var(--blue); */
+    margin-left: 12px;
+    margin-top: -2px;
+    transform: rotate(45deg);
+    transition: transform .2s ease-in-out 0s;
+    will-change: transform, opacity;
+  }
+  
+  .close.icon:before {
+    left: -1px;
+    transform: rotate(90deg);
+  }
+  
+  .close.icon:after {
+    background-color: transparent;
+    /* border: 1.5px solid currentcolor; */
+    border-radius: 50%;
+    height: 26px;
+    left: -15px;
+    opacity: 0;
+    top: -4px;
+    transition: opacity .5s ease-in 0s;
+    width: 26px;
+  }
+  
+  .item:hover .close.icon {
+    transform: rotate(135deg);
+  }
+  
+  .item:hover .close.icon:after {
+    opacity: 1;
+  }
+  /* Close Icon ... End */
+  
+  /* Messanger Icon ... Start */
+  .message.icon {
+    border: 1px solid currentcolor;
+  /*   color: var(--orange); */
+    height: 16px;
+    margin-top: -2px;
+    margin-left: -2px;
+    transition: transform .3s ease-out 0s;
+    width: 24px;
+    will-change: transform;
+  }
+  
+  .item:hover .message.icon {
+    transform: rotate(10deg);
+  }
+  
+  .message.icon:before {
+    background-color: var(--black);
+    border-bottom: 1px solid currentcolor;
+    border-right: 1px solid currentcolor;
+    height: 7px;
+    left: 5px;
+    transform: rotate(45deg);
+    top: 13px;
+    width: 7px;
+  }
+  
+  .message.icon i, .message.icon i:before, .message.icon i:after {
+    background-color: currentcolor;
+    border-radius: 50%;
+    height: 3px;
+    width: 3px;
+  }
+  
+  .item:hover .message.icon i {
+    animation: shrink 1.6s ease 0s infinite;
+  }
+  
+  .message.icon i {
+    margin-left: 4px;
+    margin-top: 6px;
+  }
+  
+  .message.icon i:before {
+    left: 6px;
+  }
+  
+  .message.icon i:after {
+    left: 12px;
+  }
+  
+  @keyframes shrink {
+    0%, 100% { transform: scale(1) }
+    50% { transform: scale(.7) }
+  }
+  /* Message Icon ... End */
+  
+  /* User Icon ... Start */
+  .user.icon {
+    border: 1px solid currentcolor;
+    border-radius: 50px 50px 10px 10px;
+  /*   color: var(--yellow); */
+    height: 12px;
+    margin-left: -1px;
+    margin-top: 10px;
+    width: 24px;
+  }
+  
+  .user.icon:before {
+    background-color: var(--black);
+    border: 1px solid currentcolor;
+    border-radius: 50%;
+    height: 16px;
+    left: 3px;
+    top: -15px;
+    width: 16px;
+  }
+  /* User Icon ... End */
+  
+  /* Back Arrow ... Start */
+  .back.icon {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+  /*   color: var(--pink); */
+    height: 1px;
+    margin-left: 1px;
+    margin-top: 7px;
+    width: 24px;
+  }
+  
+  .back.icon:before {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+    height: 1px;
+    left: -2px;
+    top: -5px;
+    transform: rotate(-45deg);
+    width: 14px;
+  }
+  
+  .back.icon:after {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+    height: 1px;
+    left: -2px;
+    top: 5px;
+    transform: rotate(45deg);
+    width: 14px;
+  }
+  /* Back Arrow ... End */
+  
+  /* Forward Arrow ... Start */
+  .forward.icon {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+  /*   color: var(--pink); */
+    height: 1px;
+    margin-right: 2px;
+    margin-top: 7px;
+    width: 24px;
+  }
+  
+  .forward.icon:before {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+    height: 1px;
+    right: -2px;
+    top: -5px;
+    transform: rotate(45deg);
+    width: 14px;
+  }
+  
+  .forward.icon:after {
+    border-bottom: 1px solid currentcolor;
+    border-left: none;
+    border-right: none;
+    border-top: none;
+    height: 1px;
+    right: -2px;
+    top: 5px;
+    transform: rotate(-45deg);
+    width: 14px;
+  }
+  /* Forward Arrow ... End */
+  
+  /* House Icon ... Start */
+  .house.icon {
+    border-bottom: none;
+    border-left: 1px solid currentcolor;
+    border-right: none;
+    border-top: 1px solid currentcolor;
+  /*   color: var(--blue); */
+    height: 21px;
+    margin-left: 2px;
+    margin-top: -3px;
+    transform: rotate(45deg);
+    width: 21px;
+  }
+  
+  .house.icon:before {
+    border-bottom: 1px solid currentcolor;
+    border-left: 1px solid currentcolor;
+    border-right: 1px solid currentcolor;
+    border-top: none;
+    height: 14px;
+    left: 1.5px;
+    top: 5px;
+    transform: rotate(-45deg);
+    width: 20px;
+  }
+  /* House Icon ... End */
+  
+  /* Play Icon */
+  .play.icon {
+    border: 1px solid currentcolor;
+    border-radius: 50%;
+  /*   color: var(--red); */
+    height: 30px;
+    margin-left: -5px;
+    margin-top: -7px;
+    width: 30px;
+    will-change: opacity, transform;
+  }
+  
+  .item:hover .play.icon:before {
+    animation: ringDissolve 1s ease-in-out 0s infinite;
+  }
+  
+  .play.icon:before {
+    border: 1px solid currentcolor;
+    border-radius: 50%;
+    height: 36px;
+    left: -4px;
+    opacity: 0;
+    top: -4px;
+    width: 36px;
+  }
+  
+  @keyframes ringDissolve {
+    0%, 100% {
+      height: 36px;
+      opacity: 0;
+      transform: translate( 0px, 0px);
+      width: 36px
+    }
+    49% {
+      height: 37px;
+      opacity: 1;
+      transform: translate( -.5px, -.5px);
+      width: 37px
+    }
+    50% {
+      height: 36px;
+      opacity: 1;
+      transform: translate( 0px, 0px);
+      width: 36px
+    }
+  }
+  
+  /* .item:hover .play.icon:after {
+    animation: outerRingDissolve 1s ease-in-out 0s infinite;
+  } */
+  
+  .play.icon:after {
+    border: 1px solid currentcolor;
+    border-radius: 50%;
+    height: 40px;
+    left: -6px;
+    opacity: 0;
+    top: -6px;
+    width: 40px;
+  }
+  
+  @keyframes outerRingDissolve {
+    0%, 100% {
+      height: 40px;
+      opacity: 0;
+      transform: translate( 0px, 0px);
+      width: 40px
+    }
+    49% {
+      height: 41px;
+      opacity: 1;
+      transform: translate( -.5px, -.5px);
+      width: 41px
+    }
+    50% {
+      height: 40px;
+      opacity: 1;
+      transform: translate( 0px, 0px);
+      width: 40px
+    }
+  }
+  
+  .play.icon i {
+    background-color: currentcolor;
+    border-left: 1px solid currentcolor;
+    height: 13px;
+    margin-left: 10px;
+    margin-top: 8px;
+    width: 1px;
+  }
+  
+  .play.icon i:before, .play.icon i:after {
+    height: 1px;
+    width: 15px;
+  }
+  
+  .play.icon i:before {
+    border-bottom: 1px solid currentcolor;
+    bottom: 2px;
+    left: -2px;
+    transform: rotate(-30deg);
+  }
+  
+  .play.icon i:after {
+    border-top: 1px solid currentcolor;
+    left: -2px;
+    top: 2px;
+    transform: rotate(30deg);
+  }
+  /* Play Icon ... End */
+  
+  @media (max-width: 600px) {
+    .container {
+      grid-template-columns: repeat(3, 1fr);
+    }
+  }
+  
+  @media (max-width: 320px) {
+    .container {
+      grid-template-columns: repeat(2, 1fr);
+    }
+  }
+
+
+  .close.icon{
+      color:#555;
+  }
+
+
+
+
+
+
+
+
+
+
+  .slide-in-elliptic-top-fwd {
+	-webkit-animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+	        animation: slide-in-elliptic-top-fwd 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+}
+
+/* ----------------------------------------------
+ * Generated by Animista on 2022-5-1 17:12:11
+ * Licensed under FreeBSD License.
+ * See http://animista.net/license for more info. 
+ * w: http://animista.net, t: @cssanimista
+ * ---------------------------------------------- */
+
+/**
+ * ----------------------------------------
+ * animation slide-in-elliptic-top-fwd
+ * ----------------------------------------
+ */
+ @-webkit-keyframes slide-in-elliptic-top-fwd {
+    0% {
+      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+              transform: translateY(-600px) rotateX(-30deg) scale(0);
+      -webkit-transform-origin: 50% 100%;
+              transform-origin: 50% 100%;
+      opacity: 0;
+    }
+    100% {
+      -webkit-transform: translateY(0) rotateX(0) scale(1);
+              transform: translateY(0) rotateX(0) scale(1);
+      -webkit-transform-origin: 50% 1400px;
+              transform-origin: 50% 1400px;
+      opacity: 1;
+    }
+  }
+  @keyframes slide-in-elliptic-top-fwd {
+    0% {
+      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+              transform: translateY(-600px) rotateX(-30deg) scale(0);
+      -webkit-transform-origin: 50% 100%;
+              transform-origin: 50% 100%;
+      opacity: 0;
+    }
+    100% {
+      -webkit-transform: translateY(0) rotateX(0) scale(1);
+              transform: translateY(0) rotateX(0) scale(1);
+      -webkit-transform-origin: 50% 1400px;
+              transform-origin: 50% 1400px;
+      opacity: 1;
+    }
+  }
+  
+
+
+
+  .slide-out-elliptic-top-bck {
+    -webkit-animation: slide-out-elliptic-top-bck 0.4s ease-in both;
+            animation: slide-out-elliptic-top-bck 0.4s ease-in both;
+  }
+@-webkit-keyframes slide-out-elliptic-top-bck {
+  0% {
+    -webkit-transform: translateY(0) rotateX(0) scale(1);
+            transform: translateY(0) rotateX(0) scale(1);
+    -webkit-transform-origin: 50% 1400px;
+            transform-origin: 50% 1400px;
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+            transform: translateY(-600px) rotateX(-30deg) scale(0);
+    -webkit-transform-origin: 50% 100%;
+            transform-origin: 50% 100%;
+    opacity: 1;
+  }
+}
+@keyframes slide-out-elliptic-top-bck {
+  0% {
+    -webkit-transform: translateY(0) rotateX(0) scale(1);
+            transform: translateY(0) rotateX(0) scale(1);
+    -webkit-transform-origin: 50% 1400px;
+            transform-origin: 50% 1400px;
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+            transform: translateY(-600px) rotateX(-30deg) scale(0);
+    -webkit-transform-origin: 50% 100%;
+            transform-origin: 50% 100%;
+    opacity: 1;
+  }
+}
+
+
+
+.roll-out-left {
+	-webkit-animation: roll-out-left 0.4s ease-in both;
+	        animation: roll-out-left 0.4s ease-in both;
+}
+@-webkit-keyframes roll-out-left {
+  0% {
+    -webkit-transform: translateX(0) rotate(0deg);
+            transform: translateX(0) rotate(0deg);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateX(-1000px) rotate(-540deg);
+            transform: translateX(-1000px) rotate(-540deg);
+    opacity: 0;
+  }
+}
+@keyframes roll-out-left {
+  0% {
+    -webkit-transform: translateX(0) rotate(0deg);
+            transform: translateX(0) rotate(0deg);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateX(-1000px) rotate(-540deg);
+            transform: translateX(-1000px) rotate(-540deg);
+    opacity: 0;
+  }
+}
+
+.fade-out {
+	-webkit-animation: fade-out 1s ease-out both;
+	        animation: fade-out 1s ease-out both;
+}
+ @-webkit-keyframes fade-out {
+  0% {
+    opacity: 1;
+  }
+  100% {
+    opacity: 0;
+  }
+}
+@keyframes fade-out {
+  0% {
+    opacity: 1;
+  }
+  100% {
+    opacity: 0;
+  }
+}
+.slide-out-bck-center {
+	-webkit-animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
+	        animation: slide-out-bck-center 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
+}
+
+ @-webkit-keyframes slide-out-bck-center {
+  0% {
+    -webkit-transform: translateZ(0);
+            transform: translateZ(0);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateZ(-1100px);
+            transform: translateZ(-1100px);
+    opacity: 0;
+  }
+}
+@keyframes slide-out-bck-center {
+  0% {
+    -webkit-transform: translateZ(0);
+            transform: translateZ(0);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateZ(-1100px);
+            transform: translateZ(-1100px);
+    opacity: 0;
+  }
+}
+
+.slide-out-bck-top {
+	-webkit-animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
+	        animation: slide-out-bck-top 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
+}
+ @-webkit-keyframes slide-out-bck-top {
+  0% {
+    -webkit-transform: translateZ(1) translateY(0);
+            transform: translateZ(1) translateY(0);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateZ(-1100px) translateY(-1000px);
+            transform: translateZ(-1100px) translateY(-1000px);
+    opacity: 0;
+  }
+}
+@keyframes slide-out-bck-top {
+  0% {
+    -webkit-transform: translateZ(1) translateY(0);
+            transform: translateZ(1) translateY(0);
+    opacity: 1;
+  }
+  100% {
+    -webkit-transform: translateZ(-1100px) translateY(-1000px);
+            transform: translateZ(-1100px) translateY(-1000px);
+    opacity: 0;
+  }
+}
+
+
+
+
+  
\ No newline at end of file
diff --git "a/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/tt.css" "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/tt.css"
new file mode 100644
index 0000000..8c225fb
--- /dev/null
+++ "b/\345\211\215\347\253\257/\345\274\271\345\207\272\346\217\220\347\244\272\347\252\227\345\217\243/tt.css"
@@ -0,0 +1,126 @@
+.item {
+    /* border: 1px solid var(--gray); */
+    box-sizing: border-box;
+    display: inline-block;
+    height: 15px;
+    padding: 5px;
+    width: 15px;
+    padding-right: 28px;
+    padding-top: 1px;
+}
+
+.item:hover .menu.icon {
+    transform: rotate(90deg);
+}
+
+.item:hover .close.icon {
+    transform: rotate(135deg);
+}
+
+.item:hover .close.icon:after {
+    opacity: 1;
+}
+
+.item:hover .message.icon {
+    transform: rotate(10deg);
+}
+
+
+.item:hover .message.icon i {
+    animation: shrink 1.6s ease 0s infinite;
+}
+
+.item:hover .play.icon:before {
+    animation: ringDissolve 1s ease-in-out 0s infinite;
+}
+
+.close.icon,
+.close.icon:before {
+    border-left: 1px solid currentcolor;
+    height: 20px;
+}
+
+.close.icon {
+    /*   color: var(--blue); */
+    margin-left: 12px;
+    margin-top: -2px;
+    transform: rotate(45deg);
+    transition: transform .2s ease-in-out 0s;
+    will-change: transform, opacity;
+}
+
+.close.icon:after {
+    background-color: transparent;
+    /* border: 1.5px solid currentcolor; */
+    border-radius: 50%;
+    height: 26px;
+    left: -15px;
+    opacity: 0;
+    top: -4px;
+    transition: opacity .5s ease-in 0s;
+    width: 26px;
+}
+
+.close.icon {
+    color: #555;
+}
+
+
+
+
+
+
+
+
+
+
+.slide-in-elliptic-top-fwd {
+	-webkit-animation: slide-in-elliptic-top-fwd 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+	        animation: slide-in-elliptic-top-fwd 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+}
+
+/* ----------------------------------------------
+ * Generated by Animista on 2022-5-1 17:12:11
+ * Licensed under FreeBSD License.
+ * See http://animista.net/license for more info. 
+ * w: http://animista.net, t: @cssanimista
+ * ---------------------------------------------- */
+
+/**
+ * ----------------------------------------
+ * animation slide-in-elliptic-top-fwd
+ * ----------------------------------------
+ */
+ @-webkit-keyframes slide-in-elliptic-top-fwd {
+    0% {
+      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+              transform: translateY(-600px) rotateX(-30deg) scale(0);
+      -webkit-transform-origin: 50% 100%;
+              transform-origin: 50% 100%;
+      opacity: 0;
+    }
+    100% {
+      -webkit-transform: translateY(0) rotateX(0) scale(1);
+              transform: translateY(0) rotateX(0) scale(1);
+      -webkit-transform-origin: 50% 1400px;
+              transform-origin: 50% 1400px;
+      opacity: 1;
+    }
+  }
+  @keyframes slide-in-elliptic-top-fwd {
+    0% {
+      -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
+              transform: translateY(-600px) rotateX(-30deg) scale(0);
+      -webkit-transform-origin: 50% 100%;
+              transform-origin: 50% 100%;
+      opacity: 0;
+    }
+    100% {
+      -webkit-transform: translateY(0) rotateX(0) scale(1);
+              transform: translateY(0) rotateX(0) scale(1);
+      -webkit-transform-origin: 50% 1400px;
+              transform-origin: 50% 1400px;
+      opacity: 1;
+    }
+  }
+  
\ No newline at end of file

--
Gitblit v1.9.1