123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /*
- * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
- *
- * Licensed under the GNU Affero General Public License, Version 3 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.gnu.org/licenses/agpl-3.0.html
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- .markdown-body {
- background-color: transparent;
- font-size: 14px;
- p {
- white-space: pre-wrap;
- }
- ol {
- list-style-type: decimal;
- }
- ul {
- list-style-type: disc;
- }
- pre code,
- pre tt {
- line-height: 1.65;
- }
- .highlight pre,
- pre {
- background-color: #fff;
- }
- code.hljs {
- padding: 0;
- }
- .code-block {
- &-wrapper {
- position: relative;
- padding-top: 24px;
- margin-top: 10px;
- }
- &-header {
- position: absolute;
- top: 5px;
- right: 0;
- width: 100%;
- padding: 0 1rem;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- color: #b3b3b3;
- &__copy {
- cursor: pointer;
- margin-left: 0.5rem;
- user-select: none;
- &:hover {
- color: #65a665;
- }
- }
- }
- }
- }
- html.dark {
- .message-reply {
- .whitespace-pre-wrap {
- white-space: pre-wrap;
- color: var(--n-text-color);
- }
- }
- .highlight pre,
- pre {
- background-color: #282c34;
- }
- }
- @keyframes blink {
- 0%, to {
- background-color: currentColor
- }
- 50% {
- background-color: transparent
- }
- }
- .animate-blink {
- animation: blink 1.2s infinite steps(1, start)
- }
|