84 lines
6.0 KiB
CSS
84 lines
6.0 KiB
CSS
:root {
|
|
--body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
--msger-bg: #fff;
|
|
--border: 2px solid #ddd;
|
|
--left-msg-bg: #ececec;
|
|
--right-msg-bg: #579ffb;
|
|
}
|
|
|
|
html {box-sizing: border-box;}
|
|
body {font-family: "Noto Sans KR", sans-serif;}
|
|
|
|
*:before,*:after {margin: 0; padding: 0; box-sizing: inherit; }
|
|
|
|
.chatBotPop {display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); max-width: 360px; width: 100%; height: calc(100% - 250px); box-shadow: 5px 5px 15px rgba(0,0,0,0.5); z-index: 100; border-radius: 20px; overflow: hidden;}
|
|
|
|
.chat_01{background-color: #fff; text-align: center; margin: 0 auto;}
|
|
.chat_01 .top_close{position: relative; width: 100%; padding: 12px 16px; text-align: right; box-sizing: border-box;}
|
|
.chat_01 .btn_close{right: 0;}
|
|
|
|
.chat_01 .area_text{margin-top: 35px;}
|
|
.chat_01 .tit_text{font-size: 28px; font-weight: 400; letter-spacing: -0.5px;}
|
|
.chat_01 .tit_text span{font-weight: bold; color: #3d6fea;}
|
|
.chat_01 .info_text{font-size: 18px; width: 70%; margin: 0 auto; color: #666; margin-top: 20px; line-height: 1.4; margin-bottom: 40px;}
|
|
.chat_01 .icon{width: 165px; height: 165px; background-color: #3d6fea; border-radius: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;}
|
|
|
|
.chat_01 .btn_wrap{display: flex; margin: 0 auto 70px auto; text-align: center; width: 55%; justify-content: space-between;}
|
|
.chat_01 .btn_wrap li{position: relative;}
|
|
.chat_01 .btn_wrap button{width: 50px; height: 50px; background-repeat: no-repeat; background-color: #eceff4; background-position: center; border-radius: 100%;}
|
|
.chat_01 .btn_wrap button:hover{background-color: #ffe600;}
|
|
.chat_01 .btn_kakao{background-image: url(/publish/images/chatbot/btn_kakao.png);}
|
|
.chat_01 .btn_kakao:hover{background-image: url(/publish/images/chatbot/btn_kakao_hover.png);}
|
|
.chat_01 .btn_copy{background-image: url(/publish/images/chatbot/btn_clip.png);}
|
|
.chat_01 .btn_call{background-image: url(/publish/images/chatbot/btn_call.png);}
|
|
.chat_01 .btn_wrap .hover_cont{display: none; position: absolute; width: 160px; background-color: rgba(0,0,0,0.6); color: #fff; padding: 10px; border-radius: 10px; left: 50%; transform: translateX(-50%); top: calc(100% + 5px); transition: all 0.3s ease-in-out;}
|
|
.chat_01 .btn_wrap button:hover+.hover_cont{display: block; transition: all 0.3s ease-in-out;}
|
|
.chat_01 .btn_start{width: 210px; box-sizing: border-box; font-size: 18px; background-color: #3d6fea; color: #fff; padding: 13px 29px; border-radius: 30px; line-height: 1.2; text-align: left; background-image: url(/publish/images/chatbot/btn_start.png); background-repeat: no-repeat; background-position: 85% center;}
|
|
|
|
.msger {display: flex; flex-flow: column wrap; justify-content: space-between; /* margin: 25px 10px; height: calc(100% - 50px); */ height: 100%; border-radius: 5px; background: var(--msger-bg); box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);}
|
|
.msger-header {display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #3d6fea; color: #fff;}
|
|
.msger-header-title{padding: 4px 0 0 10px;text-align: left;position: relative;}
|
|
.msger-header-title p {font-size: 18px; color:#fff; font-weight: 600; margin-bottom: 8px; display: inline-block;}
|
|
.msger-header-title img{margin-left: 5px; margin-top: -3px;}
|
|
.msger-header-title span{display: block; font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.6);}
|
|
.msger-header .btn_close, .top_close .btn_close{width: 36px; height: 36px; background-color: #ffd823; border-radius: 100%; margin-top: 3px;}
|
|
|
|
/* .chatBotClose {position: absolute;right: 10px;top: 3px;} */
|
|
|
|
.msger-chat {flex: 1; overflow-y: auto; padding: 30px 15px;}
|
|
.msger-chat::-webkit-scrollbar {width: 6px;}
|
|
.msger-chat::-webkit-scrollbar-track {background: #ddd;}
|
|
.msger-chat::-webkit-scrollbar-thumb {background: #bdbdbd;}
|
|
.msg {display: flex; align-items: top; margin-bottom: 10px;}
|
|
.msg-img {width: 40px; height: 40px; margin-right: 10px; background: #e7eaef; background-repeat: no-repeat; background-position: center; background-size: cover; border-radius: 50%; background-image: url(/publish/images/chatbot/character_munzaon02.png); background-size: 80% auto;}
|
|
.msg-bubble {max-width: 270px; border-radius: 15px; background-color: #fff;}
|
|
.msg-info {display: flex; justify-content: left; align-items: center; margin-bottom: 5px;}
|
|
.msg-info-name {margin-right: 10px; font-weight: 600; color: #222; font-size: 16px;}
|
|
.msg-info-time {font-size: 13px; font-weight: 300; color: #999; margin-top: 2px;}
|
|
.left-msg .msg-text{width: 85%; font-size: 14px; color: #666; font-weight: 400; line-height: 1.4; background-color: #f0f2f6; padding: 12px 14px; margin-top: 8px; border-radius: 0 10px 10px 10px;}
|
|
|
|
.left-msg .msg-bubble {border-bottom-left-radius: 0;}
|
|
.right-msg {flex-direction: row-reverse;}
|
|
.right-msg .msg-info-name{color: #fff;}
|
|
.right-msg .msg-text{font-size: 14px; color: #fff; font-weight: 400;line-height: 1.4; border: 1px solid #dee1e7; color: #666; border-radius: 10px 0 10px 10px; padding: 12px 14px;}
|
|
|
|
.right-msg .msg-bubble {background-color: #fff; border-bottom-right-radius: 0; /* background: var(--right-msg-bg); */ }
|
|
.right-msg .msg-info{display: block; text-align: right;}
|
|
.right-msg .msg-img {margin: 0 0 0 10px;}
|
|
|
|
.msger-inputarea {display: flex; padding: 13px 20px 16px 20px; background: #e5e7eb;}
|
|
.msger-inputarea * {padding: 10px; border: none; border-radius: 3px;}
|
|
.msger-input {flex: 1; background: #fff; border: 0; font-size: 14px; height: 38px;}
|
|
.msger-send-btn {margin-left: 10px; background: #3d6fea; color: #fff; font-weight: bold; cursor: pointer;transition: background 0.23s; height: 38px;}
|
|
.msger-send-btn img{padding: 0 10px;}
|
|
.msger-send-btn:hover {background: #285dde;}
|
|
|
|
.msger-chat {background-color: #fff;}
|
|
|
|
@media only screen and (max-height:880px){
|
|
.chatBotPop {height: calc(100% - 150px);}
|
|
.chat_01 .area_text {margin-top: 20px;}
|
|
.chat_01 .info_text {margin-top: 15px; margin-bottom: 25px; font-size: 15px;}
|
|
.chat_01 .icon {width: 120px; height: 120px;}
|
|
.chat_01 .icon img {width: 70%;}
|
|
} |