.markup { overflow: hidden; font-size: 16px; line-height: 1.5 !important; word-wrap: break-word; } .markup > *:first-child { margin-top: 0 !important; } .markup > *:last-child { margin-bottom: 0 !important; } .markup a:not([href]) { color: inherit; text-decoration: none; } .markup .absent { color: var(--color-red); } .markup .anchor { float: left; padding-right: 4px; margin-left: -20px; color: inherit; } .markup .anchor .svg { vertical-align: middle; } .markup .anchor:focus { outline: none; } .markup h1 .anchor { margin-top: -2px; /* re-align to center */ } .markup h1 .anchor .svg, .markup h2 .anchor .svg, .markup h3 .anchor .svg, .markup h4 .anchor .svg, .markup h5 .anchor .svg, .markup h6 .anchor .svg { visibility: hidden; } .markup h1:hover .anchor .svg, .markup h2:hover .anchor .svg, .markup h3:hover .anchor .svg, .markup h4:hover .anchor .svg, .markup h5:hover .anchor .svg, .markup h6:hover .anchor .svg { visibility: visible; } .markup h2 .anchor .svg, .markup h3 .anchor .svg, .markup h4 .anchor .svg { position: relative; top: -2px; } .markup h1, .markup h2, .markup h3, .markup h4, .markup h5, .markup h6 { margin-top: 24px; margin-bottom: 16px; font-weight: var(--font-weight-semibold); line-height: 1.25; } .markup h1 tt, .markup h1 code, .markup h2 tt, .markup h2 code, .markup h3 tt, .markup h3 code, .markup h4 tt, .markup h4 code, .markup h5 tt, .markup h5 code, .markup h6 tt, .markup h6 code { font-size: inherit; } .markup h1 { padding-bottom: 0.3em; font-size: 2em; border-bottom: 1px solid var(--color-secondary); } .markup h2 { padding-bottom: 0.3em; font-size: 1.5em; border-bottom: 1px solid var(--color-secondary); } .markup h3 { font-size: 1.25em; } .markup h4 { font-size: 1em; } .markup h5 { font-size: 0.875em; } .markup h6 { font-size: 0.85em; color: var(--color-text-light-2); } .markup p, .markup blockquote, .markup details, .markup ul, .markup ol, .markup dl, .markup table, .markup pre { margin-top: 0; margin-bottom: 16px; } .markup hr { height: 4px; padding: 0; margin: 16px 0; background-color: var(--color-secondary); border: 0; } .markup ul, .markup ol { padding-left: 2em; } .markup ul.no-list, .markup ol.no-list { padding: 0; list-style-type: none; } .markup .task-list-item { list-style-type: none; } .markup .task-list-item p + ul { margin-top: 16px; } .markup .task-list-item input[type="checkbox"] { margin: 0 .3em .25em -1.4em; vertical-align: middle; padding: 0; } .markup .task-list-item input[type="checkbox"] + p { margin-left: -0.2em; display: inline; } .markup .task-list-item > p { margin-inline: 16px; } .markup .task-list-item + .task-list-item { margin-top: 4px; } .markup input[type="checkbox"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; position: relative; border: 1px solid var(--color-secondary); border-radius: var(--border-radius); background: var(--color-input-background); height: 14px; width: 14px; opacity: 1 !important; /* override fomantic on edit preview */ pointer-events: auto !important; /* override fomantic on edit preview */ vertical-align: middle !important; /* override fomantic on edit preview */ -webkit-print-color-adjust: exact; color-adjust: exact; } .markup input[type="checkbox"]:not([disabled]):hover, .markup input[type="checkbox"]:not([disabled]):active { border-color: var(--color-primary); } .markup input[type="checkbox"]::after { position: absolute; left: 0; top: 0; bottom: 0; right: 0; pointer-events: none; background: var(--color-text); mask-size: cover; -webkit-mask-size: cover; } .markup input[type="checkbox"]:checked::after { content: ""; mask-image: var(--checkbox-mask-checked); -webkit-mask-image: var(--checkbox-mask-checked); -webkit-print-color-adjust: exact; color-adjust: exact; } .markup input[type="checkbox"]:indeterminate::after { content: ""; mask-image: var(--checkbox-mask-indeterminate); -webkit-mask-image: var(--checkbox-mask-indeterminate); } .markup ul ul, .markup ul ol, .markup ol ol, .markup ol ul { margin-top: 0; margin-bottom: 0; } .markup ol ol, .markup ul ol { list-style-type: lower-roman; } .markup li > p { margin-top: 16px; } .markup li + li { margin-top: 0.25em; } .markup dl { padding: 0; } .markup dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: var(--font-weight-semibold); } .markup dl dd { padding: 0 16px; margin-bottom: 16px; } .markup blockquote { margin-left: 0; padding: 0 15px; color: var(--color-text-light-2); border-left: 4px solid var(--color-secondary); } .markup blockquote > :first-child { margin-top: 0; } .markup blockquote > :last-child { margin-bottom: 0; } .markup table { display: block; width: 100%; width: max-content; max-width: 100%; overflow: auto; } .markup table th { font-weight: var(--font-weight-semibold); } .markup table th, .markup table td { padding: 6px 13px !important; border: 1px solid var(--color-secondary) !important; } .markup table tr { border-top: 1px solid var(--color-secondary); } .markup table tr:nth-child(2n) { background-color: var(--color-markup-table-row); } .markup img, .markup video { max-width: 100%; box-sizing: initial; } /* this background ensures images can break
because they are literally acting as paragraphs, * and thus having an ::before on the same line would force the paragraph to * move to the next line. This can be avoided by an inline-block display that * avoids that property while still having the other properties of the block * display. */ .file-view.markup.orgmode li.unchecked > p, .file-view.markup.orgmode li.checked > p, .file-view.markup.orgmode li.indeterminate > p { display: inline-block; }