toc.css 8.75 KB
Newer Older
hyeryung's avatar
hyeryung committed
1 2
.toc-menu {
  color: var(--toc-font-color);
hyeryung's avatar
hyeryung committed
3
  margin-top: 2.5rem;
hyeryung's avatar
hyeryung committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
}

.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;
박민석's avatar
박민석 committed
24
  /* height: 2.5rem; */
hyeryung's avatar
hyeryung committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
  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 {
박민석's avatar
박민석 committed
64
  position: relative;
hyeryung's avatar
hyeryung committed
65 66 67 68 69 70 71 72 73 74 75 76 77
  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;
minseok.park's avatar
minseok.park committed
78
  border-left: 2px solid var(--toc-border-color);
hyeryung's avatar
hyeryung committed
79
  display: inline-block;
minseok.park's avatar
minseok.park committed
80
  padding: 0.5rem 0 0.5rem 0.5rem;
hyeryung's avatar
hyeryung committed
81 82 83 84 85 86 87 88
  text-decoration: none;
}

.sidebar.toc .toc-menu a {
  display: block;
  outline: none;
}

박민석's avatar
박민석 committed
89 90 91
/* .toc .toc-menu a:hover {
  color: var(--color-bwg-main);
} */
hyeryung's avatar
hyeryung committed
92 93

.toc .toc-menu a.is-active {
minseok.park's avatar
minseok.park committed
94
  border-left: 3px solid var(--color-bwg-main);
박민석's avatar
박민석 committed
95 96
  color: var(--color-bwg-main);
  font-weight: 600;
hyeryung's avatar
hyeryung committed
97 98
}

minseok.park's avatar
minseok.park committed
99 100
.sidebar.toc .toc-menu a:hover {
  background: var(--color-blue-10);
hyeryung's avatar
hyeryung committed
101
}
minseok.park's avatar
minseok.park committed
102

minseok.park's avatar
minseok.park committed
103
.sidebar .chat-btn {
minseok.park's avatar
minseok.park committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117
  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);
}

minseok.park's avatar
minseok.park committed
118
.sidebar .chat-btn:hover {
minseok.park's avatar
minseok.park committed
119
  transition: transform 0.2s ease-in-out;
minseok.park's avatar
minseok.park committed
120
  background-color: #005bb5;
minseok.park's avatar
minseok.park committed
121 122 123
  transform: scale(1.1);
}

minseok.park's avatar
minseok.park committed
124
.chat {
minseok.park's avatar
minseok.park committed
125 126
  display: none;
  position: fixed;
박민석's avatar
박민석 committed
127
  z-index: 1;
minseok.park's avatar
minseok.park committed
128
  right: 10px;
박민석's avatar
박민석 committed
129
  bottom: 85px;
minseok.park's avatar
minseok.park committed
130 131 132 133 134
  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);
135 136 137 138 139 140
  border-radius: 12px;
}

.chat.expand {
  width: 830px;
  height: 650px;
minseok.park's avatar
minseok.park committed
141 142 143
}

.chat.expand .chat-area {
minseok.park's avatar
minseok.park committed
144
  height: 150px;
minseok.park's avatar
minseok.park committed
145 146
}

minseok.park's avatar
minseok.park committed
147
.chat.show {
minseok.park's avatar
minseok.park committed
148
  display: flex;
minseok.park's avatar
minseok.park committed
149
  flex-direction: column;
minseok.park's avatar
minseok.park committed
150 151
}

minseok.park's avatar
minseok.park committed
152
.chat .chat-head {
박민석's avatar
박민석 committed
153
  position: relative;
minseok.park's avatar
minseok.park committed
154 155 156
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
minseok.park's avatar
minseok.park committed
157
  background-color: var(--color-bwg-main);
minseok.park's avatar
minseok.park committed
158
  height: 80px;
159 160
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
minseok.park's avatar
minseok.park committed
161
  color: var(--color-white);
박민석's avatar
박민석 committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
  margin-bottom: 40px;
}

.chat .chat-head .model {
  display: flex;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: #fff;
  top: 80px;
  left: 0;
  padding: 0 1rem;
}

#model-toggle {
  color: var(--color-bwg-main);
  font-weight: 600;
  background: url(../img/chevron.svg) no-repeat;
  background-position: right 0.5rem top 50%;
  background-size: auto 0.65em;
  outline: none;
  border: none;
  line-height: inherit;
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  anchor-name: --anchor-el;
}

#model-toggle:hover {
  background-color: #f1f1f1;
}

#model-popover {
  inset: auto;
  list-style: none;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  width: 115px;
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  position: absolute;
  position-anchor: --anchor-el;
  top: anchor(bottom);
  left: anchor(left);
}

#model-popover li {
  font-size: 14px;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
}

#model-popover li:hover {
  background-color: #f1f1f1;
}

.chat-head .model .tooltip {
  position: relative;
  cursor: pointer;
  line-height: 10px;
}

.chat-head .model .tooltip .tooltip-text {
  visibility: hidden;
  width: 280px;
  background-color: #fff;
  color: #222;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);

  position: absolute;
  z-index: 999;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.chat-head .model .tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.chat-head .model .tooltip:hover .tooltip-text {
  cursor: pointer;
  visibility: visible;
  opacity: 1;
minseok.park's avatar
minseok.park committed
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
}

.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;
283
  flex-grow: 1;
minseok.park's avatar
minseok.park committed
284 285 286 287 288 289 290 291 292 293
}

.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;
minseok.park's avatar
minseok.park committed
294 295
}

296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
#expand-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  cursor: pointer;
  border-radius: 6px;
  transition: 300ms ease;
}

#expand-btn:hover {
  cursor: pointer;
  background-color: #005bb5;
}

#expand-btn:active svg {
  transform: scale(0.9);
}

minseok.park's avatar
minseok.park committed
316 317 318 319 320
.chat .chat-body {
  padding: 1rem;
  height: 420px;
  border-bottom: 1px solid var(--color-bwg-main);
  overflow-y: auto;
박민석's avatar
박민석 committed
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
  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);
minseok.park's avatar
minseok.park committed
340
  color: #fff;
박민석's avatar
박민석 committed
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
}

.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;
minseok.park's avatar
minseok.park committed
357 358
}

박민석's avatar
박민석 committed
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
.chat .chat-body > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  max-width: 70%;
}

.chat .chat-body > ul li {
  cursor: pointer;
  background-color: var(--color-blue-50);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: 300ms ease;
}

.chat .chat-body > ul li:hover {
  transform: translateY(-5px);
}

minseok.park's avatar
minseok.park committed
382 383 384
.chat .chat-area {
  display: flex;
  justify-content: center;
385 386
  height: 100px;
  padding: 10px;
minseok.park's avatar
minseok.park committed
387
  padding-right: 1rem;
minseok.park's avatar
minseok.park committed
388
  gap: 10px;
minseok.park's avatar
minseok.park committed
389 390
}

minseok.park's avatar
minseok.park committed
391 392 393 394
.chat .chat-area textarea {
  border: none;
  outline: none;
  width: 100%;
395 396
  /* height: 55px; */
  height: 100%;
minseok.park's avatar
minseok.park committed
397 398 399
  resize: none; /* 사용자가 크기를 변경하지 못하게 설정 */
  font-size: 16px;
  line-height: 1.5;
minseok.park's avatar
minseok.park committed
400 401
}

minseok.park's avatar
minseok.park committed
402 403 404 405 406 407 408 409
.chat .chat-area textarea:focus {
  outline: none;
}

.chat .chat-area .chat-btn-area {
  display: flex;
  align-items: center;
  width: 40px;
410
  height: 100%;
minseok.park's avatar
minseok.park committed
411 412
}

박민석's avatar
박민석 committed
413
#send-btn {
minseok.park's avatar
minseok.park committed
414
  cursor: pointer;
박민석's avatar
박민석 committed
415
  display: none;
minseok.park's avatar
minseok.park committed
416 417 418 419 420 421 422 423
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bwg-main);
}

박민석's avatar
박민석 committed
424 425 426 427 428 429 430 431 432 433 434 435 436
#stop-btn {
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bwg-main);
}

#send-btn:active,
#stop-btn:active {
minseok.park's avatar
minseok.park committed
437
  background-color: #005bb5;
minseok.park's avatar
minseok.park committed
438 439 440
  transition: 0.3ms ease;
}

박민석's avatar
박민석 committed
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456
#send-btn.active {
  display: flex;
}

#stop-btn.active {
  display: flex;
}

#stop-btn.active #send-btn {
  display: none;
}

#send-btn.active #stop-btn {
  display: none;
}

minseok.park's avatar
minseok.park committed
457
.chat .chat-area .chat-btn-area .send-btn svg {
minseok.park's avatar
minseok.park committed
458
  margin-left: 2px;
minseok.park's avatar
minseok.park committed
459
}
박민석's avatar
박민석 committed
460 461 462

.loader {
  width: 10px;
minseok.park's avatar
minseok.park committed
463
  height: 10px;
박민석's avatar
박민석 committed
464 465 466 467 468
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
minseok.park's avatar
minseok.park committed
469
  0% {
minseok.park's avatar
minseok.park committed
470
    box-shadow: 15px 0 var(--color-bwg-main), -15px 0 var(--color-bwg-20);
minseok.park's avatar
minseok.park committed
471 472
    background: var(--color-bwg-main);
  }
minseok.park's avatar
minseok.park committed
473

minseok.park's avatar
minseok.park committed
474
  33% {
minseok.park's avatar
minseok.park committed
475 476
    box-shadow: 15px 0 var(--color-bwg-main), -15px 0 var(--color-bwg-20);
    background: var(--color-bwg-20);
minseok.park's avatar
minseok.park committed
477
  }
minseok.park's avatar
minseok.park committed
478

minseok.park's avatar
minseok.park committed
479
  66% {
minseok.park's avatar
minseok.park committed
480 481
    box-shadow: 15px 0 var(--color-bwg-20), -15px 0 var(--color-bwg-main);
    background: var(--color-bwg-20);
minseok.park's avatar
minseok.park committed
482
  }
minseok.park's avatar
minseok.park committed
483

minseok.park's avatar
minseok.park committed
484
  100% {
minseok.park's avatar
minseok.park committed
485
    box-shadow: 15px 0 var(--color-bwg-20), -15px 0 var(--color-bwg-main);
minseok.park's avatar
minseok.park committed
486 487
    background: var(--color-bwg-main);
  }
박민석's avatar
박민석 committed
488
}