| New file |
| | |
| | | /*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*/ |
| New file |
| | |
| | | <!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 å¼¹çªç±»åï¼Emun 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> |
| New file |
| | |
| | | .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; |
| | | } |
| New file |
| | |
| | | |
| | | |
| | | .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; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| New file |
| | |
| | | .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; |
| | | } |
| | | } |
| | | |