/* stylelint-disable-next-line property-no-unknown */ .toc-menu { color: var(--toc-font-color); margin-top: 2.5rem; } .toc.sidebar .toc-menu { margin-right: 0.75rem; position: sticky; top: var(--toc-top); } .toc .toc-menu h3 { color: var(--toc-heading-font-color); font-size: calc(16 / var(--rem-base) * 1rem); font-weight: var(--body-font-weight-bold); line-height: 1.3; margin: 0 -0.5px; padding-bottom: 0.25rem; } .toc.sidebar .toc-menu h3 { display: flex; flex-direction: column; /* height: 2.5rem; */ justify-content: flex-end; } .toc .toc-menu ul { font-size: calc(15 / var(--rem-base) * 1rem); line-height: var(--toc-line-height); list-style: none; margin: 0; padding: 0; } .toc.sidebar .toc-menu ul { max-height: var(--toc-height); overflow-y: auto; overscroll-behavior: none; } @supports (scrollbar-width: none) { .toc.sidebar .toc-menu ul { scrollbar-width: none; } } .toc .toc-menu ul::-webkit-scrollbar { width: 0; height: 0; } @media screen and (min-width: 1024px) { .toc .toc-menu h3 { font-size: calc(15 / var(--rem-base) * 1rem); } .toc .toc-menu ul { font-size: calc(13.5 / var(--rem-base) * 1rem); } } .toc .toc-menu li { position: relative; margin: 0; } .toc .toc-menu li[data-level="2"] a { padding-left: 1.25rem; } .toc .toc-menu li[data-level="3"] a { padding-left: 2rem; } .toc .toc-menu a { color: inherit; border-left: 2px solid var(--toc-border-color); display: inline-block; padding: 0.5rem 0 0.5rem 0.5rem; text-decoration: none; } .sidebar.toc .toc-menu a { display: block; outline: none; } /* .toc .toc-menu a:hover { color: var(--color-bwg-main); } */ .toc .toc-menu a.is-active { border-left: 3px solid var(--color-bwg-main); color: var(--color-bwg-main); font-weight: 600; } .sidebar.toc .toc-menu a:hover { background: var(--color-blue-10); } .sidebar .chat-btn { cursor: pointer; display: flex; justify-content: center; align-items: center; position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background-color: var(--color-bwg-main); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); } .sidebar .chat-btn:hover { transition: transform 0.2s ease-in-out; background-color: rgba(0, 114, 206, 0.8); transform: scale(1.1); } .chat { display: none; position: fixed; z-index: 1000; right: 10px; bottom: 85px; width: 415px; height: 600px; /* overflow: hidden; */ background-color: #fff; box-shadow: 0 1px 2px 1px rgba(47, 56, 61, 0.15), 0 1px 2px rgba(47, 56, 61, 0.2); border-radius: 30px; } .chat.show { display: flex; flex-direction: column; } .chat .chat-head { display: flex; align-items: center; padding: 0 1.5rem; background-color: var(--color-bwg-main); height: 80px; border-top-left-radius: 30px; border-top-right-radius: 30px; color: var(--color-white); } .chat-logo { display: inline-block; width: 40px; height: 40px; background-image: url('../img/logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center; margin-right: 5px; } .chat-logo-title-contents { display: flex; flex-direction: column; justify-content: center; } .chat-logo-title-contents .chat-logo-title { font-size: 29px; font-weight: 600; } .chat-logo-title-contents .chat-logo-title.sub { font-size: 12px; font-weight: 300; } .chat .chat-body { padding: 1rem; height: 420px; border-bottom: 1px solid var(--color-bwg-main); overflow-y: auto; display: flex; flex-direction: column; gap: 15px; } .chat .chat-body .message { font-size: 13px; max-width: 70%; padding: 0.8rem; border-radius: 6px; word-break: break-word; white-space: pre-wrap; line-height: 1.5; margin: 0; } .chat .chat-body .message.user { align-self: flex-end; background-color: var(--color-bwg-main); color: #fff; } .chat .chat-body .message.ai { align-self: flex-start; background-color: var(--color-blue-50); text-align: left; } .chat .chat-body .chat-loader { display: flex; background-color: var(--color-blue-50); align-items: center; padding-left: 1.5rem; width: 65px; min-height: 50px; border-radius: 6px; } .chat .chat-area { display: flex; justify-content: center; height: 80px; padding: 5px; padding-right: 1rem; } .chat .chat-area textarea { border: none; outline: none; width: 100%; height: 55px; padding: 10px; resize: none; /* 사용자가 크기를 변경하지 못하게 설정 */ font-size: 16px; line-height: 1.5; } .chat .chat-area textarea:focus { outline: none; } .chat .chat-area .chat-btn-area { display: flex; align-items: center; width: 40px; height: 70px; } #send-btn { cursor: pointer; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background-color: var(--color-bwg-main); } #send-btn:active { opacity: 0.7; transition: 0.3ms ease; } .chat .chat-area .chat-btn-area .send-btn svg { margin-left: 2px; } .loader { width: 10px; aspect-ratio: 1; border-radius: 50%; animation: l5 1s infinite linear alternate; } @keyframes l5 { 0% { box-shadow: 15px 0 var(--color-bwg-main), -15px 0 var(--color-bwg-20); background: var(--color-bwg-main); } 33% { box-shadow: 15px 0 var(--color-bwg-main), -15px 0 var(--color-bwg-20); background: var(--color-bwg-20); } 66% { box-shadow: 15px 0 var(--color-bwg-20), -15px 0 var(--color-bwg-main); background: var(--color-bwg-20); } 100% { box-shadow: 15px 0 var(--color-bwg-20), -15px 0 var(--color-bwg-main); background: var(--color-bwg-main); } }