style.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
  3. *
  4. * Licensed under the GNU Affero General Public License, Version 3 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * https://www.gnu.org/licenses/agpl-3.0.html
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. .markdown-body {
  17. background-color: transparent;
  18. font-size: 14px;
  19. p {
  20. white-space: pre-wrap;
  21. }
  22. ol {
  23. list-style-type: decimal;
  24. }
  25. ul {
  26. list-style-type: disc;
  27. }
  28. pre code,
  29. pre tt {
  30. line-height: 1.65;
  31. }
  32. .highlight pre,
  33. pre {
  34. background-color: #fff;
  35. }
  36. code.hljs {
  37. padding: 0;
  38. }
  39. .code-block {
  40. &-wrapper {
  41. position: relative;
  42. padding-top: 24px;
  43. margin-top: 10px;
  44. }
  45. &-header {
  46. position: absolute;
  47. top: 5px;
  48. right: 0;
  49. width: 100%;
  50. padding: 0 1rem;
  51. display: flex;
  52. justify-content: flex-end;
  53. align-items: center;
  54. color: #b3b3b3;
  55. &__copy {
  56. cursor: pointer;
  57. margin-left: 0.5rem;
  58. user-select: none;
  59. &:hover {
  60. color: #65a665;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. html.dark {
  67. .message-reply {
  68. .whitespace-pre-wrap {
  69. white-space: pre-wrap;
  70. color: var(--n-text-color);
  71. }
  72. }
  73. .highlight pre,
  74. pre {
  75. background-color: #282c34;
  76. }
  77. }
  78. @keyframes blink {
  79. 0%, to {
  80. background-color: currentColor
  81. }
  82. 50% {
  83. background-color: transparent
  84. }
  85. }
  86. .animate-blink {
  87. animation: blink 1.2s infinite steps(1, start)
  88. }