1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 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 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763
| .OwO .OwO-body min-width: 31.25rem color: var(--text-p2) !important .twikoo svg color: var(--text-p2)
.twikoo .tk-replies border-bottom-left-radius: $border-block border-bottom-right-radius: $border-block
.tk-comment .tk-expand-wrap, .tk-collapse-wrap position: relative
.tk-expand-wrap::after position: absolute z-index: 1 display: block overflow: hidden width: 100% content: " " bottom: 0 height: 80px background: linear-gradient(180deg, transparent, var(--blur-bg)) border-radius: $border-block // 如果截断图片的话会露出一部分没有遮住
.tk-collapse-wrap::before position: absolute z-index: 1 display: block overflow: hidden width: 100% content: " " bottom: 0 height: 100% background: linear-gradient(transparent calc(50% - 1px), var(--block-border) 1px, transparent calc(50%))
.tk-expand z-index: 2 position: absolute left: 50% bottom: 10px transform: translate(-50%) border: 1px solid var(--block-border) border-radius: 6px background: var(--block) padding: 1px 20px !important font-size: 15px !important color: var(--text-p3) -webkit-user-select: none -moz-user-select: none user-select: none width: fit-content !important line-height: 1.6 height: 28px transition: background 0.5s !important
.tk-expand._collapse bottom: 0 position: relative
.tk-comments-container >.tk-expand-wrap margin: auto .tk-expand border: 1px solid var(--block-border) border-radius: 6px background: var(--block) padding: 1px 20px !important font-size: 15px !important color: var(--text-p3) -webkit-user-select: none -moz-user-select: none user-select: none width: fit-content !important line-height: 1.6 height: 28px transition: background 0.5s !important
.twikoo .tk-comments > .tk-submit overflow: visible !important .tk-comments .tk-owo-emotion, .OwO-item img width: auto max-width: 300px height: auto
.OwO .OwO-body border-color: var(--block-border) !important border-radius: $border-block !important overflow: hidden background-color: var(--block) !important cursor: auto -webkit-transform: translateZ(0) -moz-transform: translateZ(0) -o-transform: translateZ(0) -ms-transform: translateZ(0) transform: translateZ(0) -webkit-animation: .3s ease .1s 1 normal both running slow_down_effcet -moz-animation: .3s ease .1s 1 normal both running slow_down_effcet -o-animation: .3s ease .1s 1 normal both running slow_down_effcet -ms-animation: .3s ease .1s 1 normal both running slow_down_effcet animation: .3s ease .1s 1 normal both running slow_down_effcet .OwO-bar color: var(--text-p2) button.el-button.tk-preview.el-button--default.el-button--small width: calc((100% - 1rem) / 2) flex: 1 border-radius: $border-block button.el-button.tk-cancel.el-button--default.el-button--small background: var(--block) border-radius: $border-block color: var(--text-p1) width: calc((100% - 1rem) / 2) flex: 1 &:hover background: var(--block-2) color: var(--text-p2) .tk-preview-container border: 1px solid var(--block-border) border-radius: $border-block min-height: 100px max-height: 200px overflow: auto a.tk-submit-action-icon.__markdown position: absolute top: -82px left: 5rem .el-button--primary.is-disabled, .el-button--primary.is-disabled:active, .el-button--primary.is-disabled:focus, .el-button--primary.is-disabled:hover background-color: var(--block) color: var(--text-p4) .el-button--primary border-color: var(--text-p1) color: var(--block) border-radius: $border-block transition: .3s width: 6.25rem position: absolute top: -40px right: 0 margin-left: 0.5rem!important height: 32px .el-loading-spinner .path stroke: $color-theme .tk-input .el-textarea__inner min-height: 130px !important border: none border-radius: $border-block display: block resize: none // vertical padding: 16px 16px 40px 16px line-height: 1.5 box-sizing: border-box width: 100% font-size: inherit color: var(--text-p2) background: var(--block) background-image: url(https://gcore.jsdelivr.net/gh/HcGys/DataSource/stellar/img/twikoo-textarea-placeholder.webp) background-position: right bottom background-repeat: no-repeat .el-textarea__inner::-webkit-input-placeholder color: var(--text-p4) .el-input__inner background: var(--block)!important border: none!important color: var(--text-p1)!important padding-left: 8px &::-webkit-input-placeholder color: var(--text-p4) .el-input__inner:focus border: none .el-input-group__append, .el-input-group__prepend background-color: var(--block-2) color: var(--text-p1) border: none .el-input-group--prepend .el-input__inner, .el-input-group__append border-radius: $border-block .el-input--small .el-input__inner padding: 8px padding-left: 16px .el-input-group--prepend .el-input__inner, .el-input-group__append border-left-width: 0 !important .tk-meta-input position: relative margin-top: 8px width: calc(100% - 6.875rem) .el-input.el-input--small.el-input-group.el-input-group--prepend border-radius: $border-block background: var(--block) .el-input .el-input-group__prepend user-select: none border-radius: $border-block 0 0 $border-block
.tk-action-link color: var(--text-p2) .tk-avatar border-radius: 50% .tk-row .tk-avatar display: block height: 2.5rem width: 2.5rem .tk-col flex-direction: column-reverse &.actions margin-bottom: .5rem margin-top: 0 justify-content: space-around .tk-admin backdrop-filter: blur(5px) .el-button background-color: var(--block) border: none color: var(--text-p2) trans1 all .3s &:hover background-color: var(--block-2) .tk-tag border-radius: 4px border: none .tk-tag-green background-color: var(--theme-color-opa) color: var(--theme-color) .tk-tag-red background-color: #f56c6c4d color: #f56c6c .tk-tag-yellow background-color: #e6a23c4d color: #e6a23c .tk-action-icon color: var(--theme-link-opa) cursor pointer .tk-icon.__comments color: var(--theme-link-opa) .tk-actions margin-left: 0 a background: var(--theme-link-opa) padding: 2px 4px border-radius: 4px trans1 color cursor pointer .tk-nick line-height: 40px color: var(--text-p1) .tk-extras margin-top: .5rem padding-bottom: .5rem .tk-expand &:hover background-color: var(--block-hover)
.tk-content p margin: 0 img margin: unset .tk-admin-config-input .el-input__inner background: transparent !important .tk-comment .tk-submit .tk-avatar, .tk-replies .tk-avatar height: 2rem width: 2rem margin-top: 4px .tk-avatar-img height: 2rem .tk-comment .tk-submit .tk-avatar margin-top: 0 .tk-comment pre background: var(--block) padding: 1em padding-top: 1.8em // mac 样式 配合 prism-toolbar 否则注释掉 overflow: auto border-radius: $border-block +maxWidth768() .tk-replies .tk-comment border: none
.twikoo .tk-comments &>.tk-submit .tk-preview-container, .tk-row.actions margin-left: 3rem &>.tk-comments-container .tk-preview-container, .tk-row.actions margin-left: 2.5rem
if hexo-config('comments.twikoo.extraSetting.placeholder.comments-count-suffix') span.tk-comments-count>span+span::before content: hexo-config('comments.twikoo.extraSetting.placeholder.comments-count-suffix') font-size: 1.25rem span.tk-comments-count>span+span font-size: 0 !important
if hexo-config('comments.twikoo.extraSetting.placeholder.no-comments') .tk-comments-no::before content: join('', '「' hexo-config('comments.twikoo.extraSetting.placeholder.no-comments') '」') font-size: $fs-h2 color: var(--text-meta) .tk-comments-no>span display: none
if hexo-config('comments.twikoo.extraSetting.placeholder.expand-button') .tk-expand-wrap>.tk-expand::before content: hexo-config('comments.twikoo.extraSetting.placeholder.expand-button') font-size: 15px .tk-expand-wrap>.tk-expand font-size: 0 !important
if hexo-config('comments.twikoo.extraSetting.placeholder.collapse-button') .tk-collapse-wrap>.tk-expand._collapse::before content: hexo-config('comments.twikoo.extraSetting.placeholder.collapse-button') font-size: 15px .tk-collapse-wrap>.tk-expand._collapse font-size: 0 !important
if hexo-config('comments.twikoo.extraSetting.placeholder.load-more-comments') .tk-comments-container>.tk-expand-wrap>.tk-expand::before content: hexo-config('comments.twikoo.extraSetting.placeholder.load-more-comments') font-size: 15px .tk-comments-container>.tk-expand-wrap>.tk-expand font-size: 0 !important
if hexo-config('comments.twikoo.extraSetting.placeholder.reply-at') .tk-replies .tk-content>span:first-child:not(.token) font-size: 0 !important if hexo-config('comments.twikoo.extraSetting.placeholder.reply-at.before') &::before content: join('', hexo-config('comments.twikoo.extraSetting.placeholder.reply-at.before') ' ') font-size: .75rem if hexo-config('comments.twikoo.extraSetting.placeholder.reply-at.after') &::after content: join('', ' ,' hexo-config('comments.twikoo.extraSetting.placeholder.reply-at.after') ':') font-size: .75rem .tk-content a.tk-ruser font-size: .75rem
if hexo-config('comments.twikoo.extraSetting.placeholder.master-avatar-frame') .tk-comment.tk-master position: relative .tk-replies>.tk-comment margin-left: 10.8px .tk-comments-container>.tk-comment.tk-master::before background-image: url(hexo-config('comments.twikoo.extraSetting.placeholder.master-avatar-frame')) background-position: center background-repeat: no-repeat background-size: cover content: '' width: 56px height: 56px position: absolute top: -8px left: -8px z-index: 1 .tk-replies>.tk-comment.tk-master::before background-image: url(hexo-config('comments.twikoo.extraSetting.placeholder.master-avatar-frame')) background-position: center background-repeat: no-repeat background-size: cover content: '' width: 46px height: 46px position: absolute top: -3px left: -6px z-index: 1 @media screen and (max-width: 768px) .tk-replies>.tk-comment margin-left: 8px .tk-comment.tk-master::before width: 34px !important height: 34px !important top: 3px !important left: -5px !important
.twikoo .tk-avatar margin-right: .5rem
.tk-replies .tk-comment border-radius: $border-block margin-top: 0 transition: all 0.3s ease 0s .tk-content margin-top: -6px !important >span:first-child:not(.token) display: block font-size: .75rem color: var(--text-p3)
// 表情包大小 small 不独占一行 .twikoo p img.tk-owo-emotion height: 2 * $fs-root !important
.twikoo .tk-extra background: var(--block) padding: 4px 8px border-radius: $border-block margin-right: 4px color: var(--text-p3) margin-top: 6px font-size: 0.8rem
.twikoo .tk-extra-text font-size: .75rem
// 原twikoo前端js的样式 1.6.35之前 start
// .twikoo .tk-content // margin-top: 0 // max-height: unset // overflow: unset
// 原twikoo前端js的样式 end
// 自定义twikoo前端js的样式 1.6.35开始支持 start
.twikoo .tk-content margin-top: 0 border-bottom-left-radius: $border-block border-bottom-right-radius: $border-block
// 自定义twikoo前端js的样式 end
.tk-content a.tk-ruser background: var(--text-p3-opa) color: var(--text-p3) padding: 2px 4px border-radius: 3px trans1 all .3s &:hover background: var(--theme-link-opa) color: var(--theme-link)
.tk-content span a:not([data-fancybox="gallery"]) // color: var(--text-p1) // padding: 0 0.2em // text-decoration: none .tk-content span a:not([data-fancybox="gallery"]):hover // color: $color-theme .tk-main .tk-content span > a border-bottom: none
.post-comment .comment-head font-size: 0.8em !important margin-bottom: 0.5rem
.body-wrap.page .el-input__inner background: var(--block) color: var(--text-p1)
.body-wrap.page .tk-admin-config .el-input__inner color: currentColor
.tk-comments-container > .tk-comment margin-top: 0 !important // margin-bottom: 1rem !important transition: 0.3s border-radius: $border-block padding: 0 // padding-top: 1rem border: none
.page .tk-comments-container > .tk-comment padding: 1rem padding-bottom: 1rem
.tk-content .tk-owo-emotion display: inline margin: 0 0.25em // max-height: 24px width: unset
.tk-preview-container .tk-owo-emotion display: inline margin: 0 0.25em // max-height: 24px width: unset
.tk-comments .tk-row-actions-start position: absolute top: -84px left: 1rem
.tk-comments-container .tk-submit margin-top: 0 !important
.tk-input.el-textarea::before content: 'Md' position: absolute font-size: 12px color: var(--text-p4) background: var(--code-tools) padding: 2px 4px line-height: 14px border-radius: 4px right: 2px top: 2px
.tk-comments span.el-input__count color: var(--text-p4) !important top: 2px right: 30px !important // 下面添加背景颜色 background: var(--code-tools) !important height: fit-content padding: 2px 4px line-height: 14px border-radius: 4px
.tk-admin-container z-index: 2
// .twikoo div.code-toolbar>.toolbar>.toolbar-item>button // border: none !important
@media screen and (max-width: 768px) .OwO .OwO-body // 自定义taikoo.js min-width: 260px // 原js // min-width: 300px .tk-comments .tk-owo-emotion, .OwO-item img width: auto height: auto
.tk-owo-emotion max-width: 200px !important .tk-comments .tk-row-actions-start top: -162px .tk-comments a.tk-submit-action-icon.__markdown top: -160px !important .twikoo .tk-comments .tk-submit .el-button--primary height: 112px top: -120px .twikoo .el-textarea__inner overflow: hidden resize: none!important .tk-comments .tk-main .tk-submit .tk-row.actions justify-content: center .tk-comments .tk-row-actions-start position: absolute // 缩小头像大小 .twikoo .tk-comments .tk-row .tk-avatar margin-top: 0 !important .twikoo .tk-avatar height: 1.5rem !important width: 1.5rem !important margin-right: .5rem margin-top: .5rem !important .twikoo .tk-avatar .tk-avatar-img height: 1.5rem !important .twikoo .tk-row.actions, .twikoo .tk-comments .tk-preview-container margin-left: 2rem !important
/* 设置文字内容 :nth-child(1)的作用是选择第几个 */ .el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(1):before { content: '输入QQ号会自动获取昵称和头像🐧'; }
.el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(2):before { content: '收到回复将会发送到您的邮箱📧'; }
.el-input.el-input--small.el-input-group.el-input-group--prepend:nth-child(3):before { content: '填写后可以点击昵称访问您的网站🔗'; }
.el-input.el-input--small.el-input-group.el-input-group--prepend:focus-within::before, .el-input.el-input--small.el-input-group.el-input-group--prepend:focus-within::after { display: block; }
.el-input.el-input--small.el-input-group.el-input-group--prepend::before { display: none; position: absolute; top: -52px; white-space: nowrap; border-radius: 10px; left: 50%; transform: translate(-50%); padding: 14px 18px; background: var(--card); color: var(--text-p3); -webkit-animation: commonTipsIn .3s; -moz-animation: commonTipsIn .3s; -o-animation: commonTipsIn .3s; -ms-animation: commonTipsIn .3s; animation: commonTipsIn .3s; }
.el-input.el-input--small.el-input-group.el-input-group--prepend::after { display: none; content: ''; position: absolute;
border: 12px solid transparent; border-top-color: var(--card); left: 50%; transform: translate(-50%, -46px); webkit-animation: commonTriangleIn .3s; -moz-animation: commonTriangleIn .3s; -o-animation: commonTriangleIn .3s; -ms-animation: commonTriangleIn .3s; animation: commonTriangleIn .3s; }
.el-input.el-input--small.el-input-group.el-input-group--prepend::before, .el-input.el-input--small.el-input-group.el-input-group--prepend::after { z-index: 9999; }
.tk-content .error-img-to-show display: none !important
#owo-big { position: fixed; align-items: center; background-color: var(--block); border: 1px var(--block-border) solid; border-radius: 10px; z-index: 9999; display: none; transform: translate(0, -105%); overflow: hidden; webkit-animation: owoIn 0.3s cubic-bezier(0.42, 0, 0.3, 1.11); -moz-animation: owoIn 0.3s cubic-bezier(0.42, 0, 0.3, 1.11); -o-animation: owoIn 0.3s cubic-bezier(0.42, 0, 0.3, 1.11); -ms-animation: owoIn 0.3s cubic-bezier(0.42, 0, 0.3, 1.11); animation: owoIn 0.3s cubic-bezier(0.42, 0, 0.3, 1.11); }
#owo-big img { width: 100%; display: block; }
#owo-big p { color: var(--text-p3); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align: center; font-size: 12px; margin: 0; padding: 0; }
#owo-big:has(img.error-img-to-show) { display: none!important }
|