UNPKG

@discord-user-card/markdown

Version:

A markdown parser for Discord

199 lines (196 loc) 5 kB
.duc_markdown { font-size: 1rem; line-height: 1.375rem; white-space: pre-wrap; white-space: break-spaces; word-wrap: break-word; user-select: text; color: var(--text-normal); } .duc_markdown .duc_blockquote_container { display: flex; } .duc_markdown .duc_blockquote_container .duc_blockquote_divider { width: 4px; border-radius: 4px; background-color: var(--interactive-muted); } .duc_markdown .duc_blockquote_container blockquote { padding: 0 8px 0 12px; box-sizing: border-box; text-indent: 0; max-width: 90%; } .duc_markdown .duc_channel { transition: background-color 50ms ease-out, color 50ms ease-out; cursor: pointer; border-radius: 3px; padding: 0 2px; font-weight: 500; unicode-bidi: plaintext; color: var(--mention-foreground); background: var(--mention-background); } .duc_markdown .duc_channel:hover { color: var(--white-500); background-color: var(--brand-500); } .duc_markdown .duc_channel .duc_nowrap { white-space: nowrap; } .duc_markdown .duc_channel .duc_nowrap .duc_channel_icon { width: 1em; height: 1em; vertical-align: middle; margin-bottom: 0.2rem; margin-right: 4px; } .duc_markdown .duc_channel .duc_channel_name { text-overflow: ellipsis; overflow: hidden; } .duc_markdown .hljs { display: block; overflow-x: auto; padding: 0.5em; border-radius: 4px; text-size-adjust: none; color: var(--text-normal); background: var(--background-secondary); } .duc_markdown code { font-size: 0.875rem; line-height: 1.125rem; text-indent: 0; text-indent: 0; white-space: pre-wrap; background: var(--background-secondary); border: 1px solid var(--background-tertiary); } .duc_markdown pre { box-sizing: border-box; border-radius: 4px; padding: 0; font-family: var(--font-code); font-size: 0.75rem; line-height: 1rem; margin-top: 6px; max-width: 90%; white-space: pre-wrap; background-clip: border-box; } .duc_markdown em { font-style: italic; } .duc_markdown h1, .duc_markdown h2, .duc_markdown h3, .duc_markdown h4, .duc_markdown h5, .duc_markdown h6 { font-family: var(--font-display); margin: 0; font-weight: 600; font-size: inherit; white-space: normal; padding-right: 16px; line-height: 1.25em; color: inherit; } .duc_markdown .duc_inline_code { width: auto; height: auto; padding: 0 0.2em; margin: -0.2em 0; border-radius: 4px; font-size: 85%; font-family: var(--font-code); text-indent: 0; text-indent: 0; white-space: pre-wrap; } .duc_markdown a { color: var(--text-link); word-break: break-word; cursor: pointer; } .duc_markdown ul, .duc_markdown ol { margin: 4px 0 0 16px; list-style-position: outside; } .duc_markdown ul { list-style-type: disc; } .duc_markdown ol { list-style-type: decimal; margin-left: calc(0.4em + 0.6em * var(--totalCharacters)); } .duc_markdown li { white-space: break-spaces; margin-bottom: 4px; } .duc_markdown .duc_role_mention { border-radius: 3px; padding: 0 2px; font-weight: 500; unicode-bidi: plaintext; color: var(--mention-foreground); background: var(--mention-background); } .duc_markdown .duc_spoiler_container { --__current--spoiler-content-opacity: 1; --__current--spoiler-background-color: var(--__spoiler-background-color--revealed); border-radius: 4px; background-color: var(--__current--spoiler-background-color); -webkit-box-decoration-break: clone; box-decoration-break: clone; } .duc_markdown .duc_spoiler_container[aria-expanded=false] { cursor: pointer; --__current--spoiler-content-opacity: 0; --__current--spoiler-text-color: var(--__spoiler-text-color--hidden); --__current--spoiler-background-color: var(--__spoiler-background-color--hidden); } .duc_markdown .duc_spoiler_container[aria-expanded=false] .duc_spoiler_obscured { cursor: pointer; pointer-events: none; } .duc_markdown .duc_spoiler_container:hover { --__current--spoiler-background-color: var(--__spoiler-background-color--hidden--hover); } .duc_markdown .duc_spoiler_container .duc_spoiler_content { color: var(--__current--spoiler-text-color); } .duc_markdown .duc_spoiler_container .duc_spoiler_content span { opacity: var(--__current--spoiler-content-opacity); transition: opacity 0.1s ease; } .duc_markdown strong { font-weight: 700; } .duc_markdown .duc_timestamp { background-color: var(--background-modifier-accent); border-radius: 3px; padding: 0 2px; } .duc_markdown .duc_user_mention { transition: background-color 50ms ease-out, color 50ms ease-out; cursor: pointer; border-radius: 3px; padding: 0 2px; font-weight: 500; unicode-bidi: plaintext; color: var(--mention-foreground); background: var(--mention-background); } .duc_markdown .duc_user_mention:hover { text-decoration: underline; color: var(--white-500); background-color: var(--brand-500); } @media all and (-webkit-max-device-pixel-ratio: 1) { .theme-light .duc_markdown { font-weight: 500; } } /*# sourceMappingURL=style.css.map */