2 lines
26 KiB
CSS
2 lines
26 KiB
CSS
:where(.lexxy-content){color:var(--lexxy-color-ink);h1,h2,h3,h4,h5,h6 {display: block; font-weight: bold; hyphens: auto; margin-block: 0 var(--lexxy-content-margin); overflow-wrap: break-word; text-wrap: balance;} h1 {font-size: 2rem;} h2 {font-size: 1.5rem;} h3 {font-size: 1.25rem;} h4 {font-size: 1rem;} h5 {font-size: .875rem;} h6 {font-size: .75rem;} p,ul,ol,dl,blockquote,figure,.attachment,.attachment-gallery {margin-block: 0 var(--lexxy-content-margin); position: relative; &:not(lexxy-editor &) {overflow-wrap: break-word; text-wrap: pretty;}} .lexxy-content__italic {font-style: italic;} .lexxy-content__bold {font-weight: bold;} .lexxy-content__strikethrough {text-decoration: line-through;} .lexxy-content__underline {text-decoration: underline;} mark,.lexxy-content__highlight {background-color: transparent; color: inherit;} blockquote {border-inline-start: .25em solid var(--lexxy-color-ink-lighter); font-style: italic; margin: var(--lexxy-content-margin) 0; padding: .5lh 2ch; p:last-child {margin-block-end: 0;}} p:empty {display: none;} a {color: var(--lexxy-color-link); text-decoration: underline;} img,video,embed,object {inline-size: auto; margin-inline: auto; min-block-size: 3em; max-block-size: 32rem; object-fit: contain; a:has(&) {display: inline-block;}} code,pre {background-color: var(--lexxy-color-ink-lightest); border-radius: var(--lexxy-radius); color: var(--lexxy-color-ink); font-family: var(--lexxy-font-mono); font-size: .9em; padding: .25ch .5ch; &:is(pre),&[data-language] {border-radius: var(--lexxy-radius); display: block; hyphens: none; margin-block: 0 var(--lexxy-content-margin); overflow-x: auto; padding: 1ch; tab-size: 2; text-wrap: nowrap; white-space: pre; word-break: break-word;}} ol,ul {margin-inline-start: calc(var(--lexxy-content-margin) * 1.5); padding: 0;} ul {list-style-type: disc;} ol {list-style-type: decimal;} li.lexxy-nested-listitem {list-style-type: none; ol,ul {margin-block-end: 0;}} hr {border: 0; border-block-end: 1px solid currentColor; inline-size: 20%; margin: calc(.5em + var(--lexxy-content-margin)) 0;} .horizontal-divider {margin: 0; padding: calc(.5em + var(--lexxy-content-margin)) 0; hr {margin: 0;}} *:has(+ .horizontal-divider) {margin-block-end: 0;} > :last-child {margin-block-end: 0;} .code-token__attr,.token.attr-name,.token.atrule,.token.attr,.token.keyword {color: var(--lexxy-color-code-token-att);} .code-token__property,.token.boolean,.token.constant,.token.number,.token.property,.token.symbol,.token.tag {color: var(--lexxy-color-code-token-property);} .code-token__selector,.token.attr-value,.token.builtin,.token.char,.token.inserted,.token.line,.token.selector,.token.string {color: var(--lexxy-color-code-token-selector);} .code-token__comment,.token.cdata,.token.comment,.token.doctype,.token.prolog {color: var(--lexxy-color-code-token-comment); font-style: italic;} .code-token__operator,.token.deleted,.token.entity,.token.operator,.token.url,code[data-language="diff"] .code-token__operator + .code-token__selector {color: var(--lexxy-color-code-token-operator);} .code-token__function,.token.class,.token.class-name,.token.function {color: var(--lexxy-color-code-token-function);} .code-token__variable,.token.important,.token.namespace,.token.regex,.token.variable {color: var(--lexxy-color-code-token-variable);} .code-token__punctuation,.token.punctuation {color: var(--lexxy-color-code-token-punctuation);} :where(.lexxy-content__table-wrapper) {margin: 0; margin-block: 1ch; overflow-x: auto;} table {border-collapse: collapse; border-spacing: 0; inline-size: calc(100% - .5ch); margin: .25ch; th,td {border: 1px solid var(--lexxy-color-ink-lighter); min-width: 5ch; max-width: 50ch; padding: 1ch; text-align: start; word-break: normal; *:last-child {margin-block-end: 0;} &.lexxy-content__table-cell--header {background-color: var(--lexxy-color-table-header-bg); font-weight: bold;} *:is(code,pre) {hyphens: auto; text-wrap: wrap; white-space: pre-wrap;}}} p:has(.attachment) {text-align: center;} .attachment { --lexxy-attachment-gap: .75ch; block-size: auto; box-sizing: border-
|