UNPKG

@diplodoc/transform

Version:

A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML

1,235 lines (1,233 loc) 35.2 kB
@charset "UTF-8"; /* src/scss/yfm.scss */ .yfm ol { --hier-list-start: 0; counter-reset: hier-list-item 0; counter-reset: hier-list-item var(--hier-list-start); } .yfm ol > li { counter-increment: hier-list-item; } .yfm ol > li::marker { content: counter(hier-list-item) ". "; } .yfm ol > li > ol { --hier-list-start: 0; counter-reset: sub-hier-list-item 0; counter-reset: sub-hier-list-item var(--hier-list-start); } .yfm ol > li > ol > li { counter-increment: sub-hier-list-item; } .yfm ol > li > ol > li::marker { content: counter(hier-list-item) "." counter(sub-hier-list-item) ". "; } .yfm ol > li > ol > li > ol { --hier-list-start: 0; counter-reset: sub-sub-hier-list-item 0; counter-reset: sub-sub-hier-list-item var(--hier-list-start); } .yfm ol > li > ol > li > ol > li { counter-increment: sub-sub-hier-list-item; } .yfm ol > li > ol > li > ol > li::marker { content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) ". "; } .yfm ol > li > ol > li > ol > li > ol { --hier-list-start: 0; counter-reset: sub-sub-sub-hier-list-item 0; counter-reset: sub-sub-sub-hier-list-item var(--hier-list-start); } .yfm ol > li > ol > li > ol > li > ol > li { counter-increment: sub-sub-sub-hier-list-item; } .yfm ol > li > ol > li > ol > li > ol > li::marker { content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) ". "; } .yfm ol > li > ol > li > ol > li > ol > li > ol { --hier-list-start: 0; counter-reset: sub-sub-sub-sub-hier-list-item 0; counter-reset: sub-sub-sub-sub-hier-list-item var(--hier-list-start); } .yfm ol > li > ol > li > ol > li > ol > li > ol > li { counter-increment: sub-sub-sub-sub-hier-list-item; } .yfm ol > li > ol > li > ol > li > ol > li > ol > li::marker { content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-hier-list-item) ". "; } .yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol { --hier-list-start: 0; counter-reset: sub-sub-sub-sub-sub-hier-list-item 0; counter-reset: sub-sub-sub-sub-sub-hier-list-item var(--hier-list-start); } .yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol > li { counter-increment: sub-sub-sub-sub-sub-hier-list-item; } .yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol > li::marker { content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-sub-hier-list-item) ". "; } .yfm.yfm_no-list-reset ol, .yfm ol.yfm_no-list-reset, .yfm .yfm_no-list-reset ol { counter-reset: list-item; } .yfm.yfm_no-list-reset ol li, .yfm ol.yfm_no-list-reset li, .yfm .yfm_no-list-reset ol li { counter-increment: none; counter-increment: initial; } .yfm.yfm_no-list-reset ol li::marker, .yfm ol.yfm_no-list-reset li::marker, .yfm .yfm_no-list-reset ol li::marker { content: normal; content: initial; } .yfm { --yfm-color-text-private: rgba(0, 0, 0, 0.7); --yfm-color-link-private: #027bf3; --yfm-color-link-hover-private: #004080; --yfm-color-base-private: #ffffff; --yfm-color-table-private: #333; --yfm-color-border-private: rgba(0, 0, 0, 0.07); --yfm-color-table-row-background-private: rgba(0, 0, 0, 0.02); --yfm-color-accent-private: #027bf3; --yfm-color-inline-code-private: rgba(59, 96, 128, 1); --yfm-color-inline-code-background-private: rgba(107, 132, 153, 0.12); --yfm-color-code-background-private: rgba(107, 132, 153, 0.12); --yfm-color-hljs-background-private: rgba(107, 132, 153, 0.12); --yfm-color-hljs-subst-private: #444; --yfm-color-hljs-comment-private: #888888; --yfm-color-hljs-deletion-private: #880000; --yfm-color-hljs-section-private: #880000; --yfm-color-hljs-pseudo-private: #bc6060; --yfm-color-hljs-literal-private: #78a960; --yfm-color-hljs-addition-private: #397300; --yfm-color-hljs-meta-private: #1f7199; --yfm-color-hljs-meta-string-private: #4d99bf; --yfm-color-note-tip-private: #56bd67; --yfm-color-note-tip-background-private: rgba(63, 201, 46, 0.1); --yfm-color-note-warning-private: #f19518; --yfm-color-note-warning-background-private: rgba(255, 136, 0, 0.15); --yfm-color-note-important-private: #ff4645; --yfm-color-note-important-background-private: rgba(235, 50, 38, 0.08); --yfm-color-note-info-private: #027bf3; --yfm-color-note-info-background-private: rgba(2, 123, 243, 0.08); --yfm-color-term-title-private: #027bf3; --yfm-color-term-title-hover-private: #004080; --yfm-color-term-dfn-background-private: rgb(255, 255, 255); --yfm-color-term-dfn-shadow-private: rgba(0, 0, 0, 0.15); --yfm-color-term-dfn-presudo-shadow-private: rgb(229, 229, 229); --yfm-color-modal-content-private: rgb(255, 255, 255); --yfm-color-modal-actions-hover-private: rgba(0, 0, 0, 0.05); --yfm-color-modal-wide-content-private: rgba(0, 0, 0, 0.85); --yfm-color-modal-wide-content-overlay-private: rgb(0, 0, 0); --yfm-color-base: var(--yfm-color-base-private); --yfm-color-text: var(--yfm-color-text-private); --yfm-color-link: var(--yfm-color-link-private); --yfm-color-link-hover: var(--yfm-color-link-hover-private); --yfm-color-table: var(--yfm-color-table-private); --yfm-color-table-row-background: var(--yfm-color-table-row-background-private); --yfm-color-border: var(--yfm-color-border-private); --yfm-color-accent: var(--yfm-color-accent-private); --yfm-color-inline-code: var(--yfm-color-inline-code-private); --yfm-color-inline-code-background: var(--yfm-color-inline-code-background-private); --yfm-color-code-background: var(--yfm-color-code-background-private); --yfm-color-hljs-background: var(--yfm-color-hljs-background-private); --yfm-color-hljs-subst: var(--yfm-color-hljs-subst-private); --yfm-color-hljs-comment: var(--yfm-color-hljs-comment-private); --yfm-color-hljs-deletion: var(--yfm-color-hljs-deletion-private); --yfm-color-hljs-section: var(--yfm-color-hljs-section-private); --yfm-color-hljs-pseudo: var(--yfm-color-hljs-pseudo-private); --yfm-color-hljs-literal: var(--yfm-color-hljs-literal-private); --yfm-color-hljs-addition: var(--yfm-color-hljs-addition-private); --yfm-color-hljs-meta: var(--yfm-color-hljs-meta-private); --yfm-color-hljs-meta-string: var(--yfm-color-hljs-meta-string-private); --yfm-color-note-tip: var(--yfm-color-note-tip-private); --yfm-color-note-tip-background: var(--yfm-color-note-tip-background-private); --yfm-color-note-warning: var(--yfm-color-note-warning-private); --yfm-color-note-warning-background: var(--yfm-color-note-warning-background-private); --yfm-color-note-important: var(--yfm-color-note-important-private); --yfm-color-note-important-background: var(--yfm-color-note-important-background-private); --yfm-color-note-info: var(--yfm-color-note-info-private); --yfm-color-note-info-background: var(--yfm-color-note-info-background-private); --yfm-color-term-title: var(--yfm-color-term-title-private); --yfm-color-term-title-hover: var(--yfm-color-term-title-hover-private); --yfm-color-term-dfn-background: var(--yfm-color-term-dfn-background-private); --yfm-color-term-dfn-shadow: var(--yfm-color-term-dfn-shadow-private); --yfm-color-term-dfn-pseudo-shadow: var(--yfm-color-term-dfn-presudo-shadow-private); --yfm-color-modal-content: var(--yfm-color-modal-content-private); --yfm-color-modal-actions-hover: var(--yfm-color-modal-actions-hover-private); --yfm-color-modal-wide-content: var(--yfm-color-modal-wide-content-private); --yfm-color-modal-wide-content-overlay: var(--yfm-color-modal-wide-content-overlay-private); font-family: "Segoe UI", arial, helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-family: var(--yfm-font-family-sans); font-size: 15px; line-height: 20px; word-wrap: break-word; color: rgba(0, 0, 0, 0.7); color: var(--yfm-color-text); -moz-tab-size: inherit; -o-tab-size: inherit; tab-size: inherit; -moz-tab-size: var(--yfm-tab-size, inherit); -o-tab-size: var(--yfm-tab-size, inherit); tab-size: var(--yfm-tab-size, inherit); --yfm-font-family-monospace: "Menlo", "Monaco", "Consolas", "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", "Courier", monospace; --yfm-font-family-sans: "Segoe UI", arial, helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .yfm * { box-sizing: border-box; } .yfm > *:not(h2):not(h3):not(h4):not(h5):not(h6):first-child { margin-top: 0 !important; } .yfm > *:last-child { margin-bottom: 0 !important; } .yfm h1, .yfm h2, .yfm h3, .yfm h4, .yfm h5, .yfm h6 { margin-bottom: 15px; font-weight: 500; } .yfm h1 { font-size: 32px; line-height: 40px; } .yfm h2 { font-size: 24px; line-height: 28px; } .yfm h3 { font-size: 20px; line-height: 24px; } .yfm h4 { font-size: 17px; line-height: 24px; } .yfm h5 { font-size: 15px; line-height: 20px; } .yfm h6 { font-size: 13px; line-height: 18px; } .yfm a { background-color: transparent; color: var(--yfm-color-link); -webkit-text-decoration: none; text-decoration: none; } .yfm a:hover, .yfm a:active { color: var(--yfm-color-link-hover); } .yfm a:not([href]) { color: inherit; } .yfm strong { font-weight: 700; } .yfm img, .yfm svg { box-sizing: content-box; max-width: 100%; max-height: -moz-fit-content; max-height: fit-content; border: none; vertical-align: middle; } .yfm img[align=right], .yfm svg[align=right] { padding-left: 20px; } .yfm img[align=left], .yfm svg[align=left] { padding-right: 20px; } .yfm img { -o-object-fit: contain; object-fit: contain; background-color: var(--yfm-color-base); } .yfm svg { height: auto; } .yfm .katex svg { height: auto; height: initial; } .yfm img + small { display: block; } .yfm p, .yfm blockquote, .yfm ul, .yfm ol, .yfm dl, .yfm table, .yfm pre { margin-block: 0 15px; margin-block: var(--yfm-text-block-margin-block, 0 15px); margin-inline: 0; margin-inline: var(--yfm-text-block-margin-inline, 0); } .yfm ul pre, .yfm ol pre, .yfm dl pre { margin-top: 15px; } .yfm code, .yfm kbd, .yfm pre { font-family: var(--yfm-font-family-monospace); font-size: 1em; font-feature-settings: normal; } .yfm input { margin: 0; overflow: visible; font-family: inherit; font-size: inherit; line-height: inherit; } .yfm input[type=checkbox] { position: relative; top: 1px; box-sizing: border-box; padding: 0; } .yfm table { color: var(--yfm-color-table); display: inline-block; max-width: 100%; width: auto; overflow: auto; position: relative; z-index: 1; box-sizing: border-box; border: 1px solid var(--yfm-color-border); border-radius: 8px; border-collapse: collapse; border-spacing: 0; background: var(--yfm-color-base); } .yfm table thead, .yfm table tr:nth-child(2n) { background-color: var(--yfm-color-table-row-background); } .yfm table tr:first-child td, .yfm table tr:first-child th { border-top: none; } .yfm table tr:last-child td, .yfm table tr:last-child th { border-bottom: none; } .yfm table th, .yfm table td { padding: 10px 20px; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--yfm-color-border); } .yfm table th > *:first-child, .yfm table td > *:first-child { margin-top: 0; } .yfm table th > *:last-child, .yfm table td > *:last-child { margin-bottom: 0; } .yfm table td { vertical-align: top; white-space: normal; } .yfm table th { font-weight: 500; text-align: left; } .yfm table tr td:first-child, .yfm table tr th:first-child { border-left: none; } .yfm table tr td:last-child, .yfm table tr th:last-child { border-right: none; } .yfm hr { box-sizing: content-box; height: 0.25em; padding: 0; margin: 1.5em 0; overflow: hidden; background-color: var(--yfm-color-border); border: none; } .yfm hr::before { content: ""; display: table; } .yfm hr::after { content: ""; display: table; clear: both; } .yfm blockquote { position: relative; padding-left: 12px; border-left: 3px solid var(--yfm-color-accent); } .yfm blockquote > *:first-child { margin-top: 0; } .yfm blockquote > *:last-child { margin-bottom: 0; } .yfm dl { padding: 0; } .yfm dl > *:first-child { margin-top: 0; } .yfm dl > *:last-child { margin-bottom: 0; } .yfm dl dt { margin-bottom: 5px; font-size: 1em; font-weight: 500; font-style: italic; } .yfm dl dd { margin-bottom: 15px; padding: 0 15px; } .yfm dd { margin-left: 0; } .yfm ul, .yfm ol { padding-left: 2.2em; } .yfm ul ul, .yfm ul ol, .yfm ol ol, .yfm ol ul { margin-top: 0; margin-bottom: 0; } .yfm li { word-wrap: break-word; } .yfm li + li { margin-block: 0.33em 0; margin-block: var(--yfm-list-item-margin-block, 0.33em 0); } .yfm li p, .yfm li blockquote { margin-block: 0 15px; margin-block: var(--yfm-list-text-margin-block, 0 15px); } .yfm li > p:only-child, .yfm li > blockquote:only-child { margin-block: 0; margin-block: var(--yfm-list-text-only-margin-block, 0); } @supports selector(:has(br)) { .yfm li > p:only-child:has(br), .yfm li > blockquote:only-child:has(br) { margin-block: 0 15px; margin-block: var(--yfm-list-text-margin-block, 0 15px); } } .yfm code { padding: 0.1em 0.4em 0.15em; background-color: var(--yfm-color-inline-code-background); border-radius: 4px; font-size: 0.875em; white-space: pre-wrap; color: var(--yfm-color-inline-code); -moz-tab-size: inherit; -o-tab-size: inherit; tab-size: inherit; -moz-tab-size: var(--yfm-tab-size-code, inherit); -o-tab-size: var(--yfm-tab-size-code, inherit); tab-size: var(--yfm-tab-size-code, inherit); } .yfm pre { word-wrap: normal; } .yfm table code { white-space: nowrap; } .yfm pre * code { display: inline; padding: 0; margin: 0; overflow: visible; word-wrap: normal; background-color: transparent; border: 0; color: var(--yfm-color-text); } .yfm pre > code { display: block; padding: 16px; overflow: auto; background-color: var(--yfm-color-code-background); color: var(--yfm-color-text); white-space: pre; } .yfm sup, .yfm sub { line-height: 0; } .yfm .visually-hidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); width: 1px; height: 1px; margin: -1px; padding: 0; white-space: nowrap; border: 0; clip-path: inset(100%); -webkit-user-select: none; -moz-user-select: none; user-select: none; } .yfm h1 .yfm-anchor, .yfm h2 .yfm-anchor, .yfm h3 .yfm-anchor, .yfm h4 .yfm-anchor, .yfm h5 .yfm-anchor, .yfm h6 .yfm-anchor { display: inline-block; width: 24px; padding-right: 4px; margin-left: -24px; float: left; text-align: center; font-size: 18px; } .yfm h1 .yfm-anchor:focus::before, .yfm h2 .yfm-anchor:focus::before, .yfm h3 .yfm-anchor:focus::before, .yfm h4 .yfm-anchor:focus::before, .yfm h5 .yfm-anchor:focus::before, .yfm h6 .yfm-anchor:focus::before { opacity: 1; } .yfm h1 .yfm-anchor::before, .yfm h2 .yfm-anchor::before, .yfm h3 .yfm-anchor::before, .yfm h4 .yfm-anchor::before, .yfm h5 .yfm-anchor::before, .yfm h6 .yfm-anchor::before { content: "#"; opacity: 0; } .yfm h1:hover .yfm-anchor::before, .yfm h2:hover .yfm-anchor::before, .yfm h3:hover .yfm-anchor::before, .yfm h4:hover .yfm-anchor::before, .yfm h5:hover .yfm-anchor::before, .yfm h6:hover .yfm-anchor::before { opacity: 1; } .yfm table h1 .yfm-anchor, .yfm table h2 .yfm-anchor, .yfm table h3 .yfm-anchor, .yfm table h4 .yfm-anchor, .yfm table h5 .yfm-anchor, .yfm table h6 .yfm-anchor { width: 1em; margin-left: -1em; padding-right: 0; } .yfm .yfm-tabs .yfm-anchor::before { position: absolute; padding-right: 2px; } .yfm .hljs { display: block; overflow-x: auto; padding: 16px; background: var(--yfm-color-hljs-background); } .yfm .hljs, .yfm .hljs-subst { color: var(--yfm-color-hljs-subst); } .yfm .hljs-comment { color: var(--yfm-color-hljs-comment); } .yfm .hljs-keyword, .yfm .hljs-attribute, .yfm .hljs-selector-tag, .yfm .hljs-meta-keyword, .yfm .hljs-doctag, .yfm .hljs-name { font-weight: bold; } .yfm .hljs-type, .yfm .hljs-string, .yfm .hljs-number, .yfm .hljs-selector-id, .yfm .hljs-selector-class, .yfm .hljs-quote, .yfm .hljs-template-tag, .yfm .hljs-deletion { color: var(--yfm-color-hljs-deletion); } .yfm .hljs-title, .yfm .hljs-section { color: var(--yfm-color-hljs-section); font-weight: bold; } .yfm .hljs-regexp, .yfm .hljs-symbol, .yfm .hljs-variable, .yfm .hljs-template-variable, .yfm .hljs-link, .yfm .hljs-selector-attr, .yfm .hljs-selector-pseudo { color: var(--yfm-color-hljs-pseudo); } .yfm .hljs-literal { color: var(--yfm-color-hljs-literal); } .yfm .hljs-built_in, .yfm .hljs-bullet, .yfm .hljs-code, .yfm .hljs-addition { color: var(--yfm-color-hljs-addition); } .yfm .hljs-meta { color: var(--yfm-color-hljs-meta); } .yfm .hljs-meta-string { color: var(--yfm-color-hljs-meta-string); } .yfm .hljs-emphasis { font-style: italic; } .yfm .hljs-strong { font-weight: bold; } .yfm-clipboard { position: relative; } .yfm-clipboard:hover .yfm-clipboard-button { opacity: 1; min-height: 20px; min-width: 20px; } .yfm-clipboard > pre { border-radius: 10px; overflow: hidden; } .yfm-clipboard-button { position: absolute; top: 16px; right: 16px; z-index: 1; opacity: 0; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; } .yfm-clipboard-button:focus { opacity: 1; } .yfm-clipboard-icon { pointer-events: none; } .yfm .yfm-note { max-width: 1296px; margin: 20px 0; padding: 20px 20px 20px 64px; border-radius: 10px; } .yfm .yfm-note .yfm-note-title { font-weight: 700; } .yfm .yfm-note > * { margin: 0 0 10px; } .yfm .yfm-note > *:first-child::before { box-sizing: content-box; display: block; width: 24px; height: 24px; margin-top: -2px; margin-left: -44px; padding-right: 20px; float: left; } .yfm .yfm-note > *:last-child { margin-bottom: 0; } .yfm .yfm-note.yfm-accent-info > :first-child::before { content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"%3E%3Ccircle cx="8" cy="8" r="8" fill="rgb(2,123,243)"/%3E%3Crect width="1" height="5" x="7.5" y="6.5" stroke="%23fff" rx=".5"/%3E%3Ccircle cx="8" cy="4" r="1" fill="%23fff"/%3E%3C/svg%3E'); } .yfm .yfm-note.yfm-accent-tip > :first-child::before { content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"%3E%3Ccircle cx="8" cy="8" r="8" fill="rgb(86,189,103)"/%3E%3Crect width="1" height="5" x="7.5" y="6.5" stroke="%23fff" rx=".5"/%3E%3Ccircle cx="8" cy="4" r="1" fill="%23fff"/%3E%3C/svg%3E'); } .yfm .yfm-note.yfm-accent-warning > :first-child::before { content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"%3E%3Ccircle cx="8" cy="8" r="8" fill="rgb(241,149,24)"/%3E%3Crect width="1" height="5" x="7.5" y="6.5" stroke="%23fff" rx=".5"/%3E%3Ccircle cx="8" cy="4" r="1" fill="%23fff"/%3E%3C/svg%3E'); } .yfm .yfm-note.yfm-accent-alert > :first-child::before { content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"%3E%3Ccircle cx="8" cy="8" r="8" fill="rgb(255,70,69)"/%3E%3Crect width="1" height="5" x="7.5" y="6.5" stroke="%23fff" rx=".5"/%3E%3Ccircle cx="8" cy="4" r="1" fill="%23fff"/%3E%3C/svg%3E'); } .yfm .yfm-note.yfm-accent-info { background: var(--yfm-color-note-info-background); } .yfm .yfm-note.yfm-accent-tip { background: var(--yfm-color-note-tip-background); } .yfm .yfm-note.yfm-accent-alert { background: var(--yfm-color-note-important-background); } .yfm .yfm-note.yfm-accent-warning { background: var(--yfm-color-note-warning-background); } .yfm table td.cell-align-top-left, .yfm table td.cell-align-bottom-left { text-align: start; } .yfm table td.cell-align-top-center, .yfm table td.cell-align-center { text-align: center; } .yfm table td.cell-align-top-right, .yfm table td.cell-align-bottom-right { text-align: end; } .yfm table td.cell-align-top-left, .yfm table td.cell-align-top-center, .yfm table td.cell-align-top-right { vertical-align: top; } .yfm table td.cell-align-center { vertical-align: middle; } .yfm table td.cell-align-bottom-left, .yfm table td.cell-align-bottom-right { vertical-align: bottom; } .yfm-term_title { color: var(--yfm-color-term-title); cursor: pointer; border-bottom: 1px dotted; font-size: inherit; line-height: inherit; font-style: normal; } .yfm-term_title:hover { color: var(--yfm-color-term-title-hover); } .yfm-term_dfn { position: absolute; z-index: 100; width: -moz-fit-content; width: fit-content; max-width: 450px; visibility: hidden; opacity: 0; padding: 10px; background-color: var(--yfm-color-term-dfn-background); font-size: inherit; line-height: inherit; font-style: normal; border-radius: 4px; box-shadow: 0 8px 20px var(--yfm-color-term-dfn-shadow); outline: none; } @media screen and (max-width: 600px) { .yfm-term_dfn { max-width: 80%; } } .yfm-term_dfn::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--yfm-color-term-dfn-pseudo-shadow); } .yfm-term_dfn.open { visibility: visible; animation-name: popup; animation-duration: 0.1s; animation-timing-function: ease-out; animation-fill-mode: forwards; } @keyframes popup { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } } .wide-container { position: fixed; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; top: 0px; left: 0px; z-index: 200; } .wide-container.dc-doc-page { max-width: 100% !important; } .wide-container .wide-content-viewer { visibility: hidden; } .wide-container .wide-content-wrapper { z-index: 200; background-color: var(--yfm-color-modal-content); height: 90vh; width: 70vw; border-radius: 10px; display: flex; flex-direction: column; } .wide-container .wide-content-wrapper .wide-content { height: 95%; width: 100%; } .wide-container .wide-content-wrapper .wide-content .wide-inner-element { max-width: 100%; width: 100%; height: 100%; } .wide-container .wide-content-wrapper .wide-content table { border-radius: 0px; } .wide-container .wide-content-wrapper .wide-content .wide-thead-content { display: table; width: 100%; } .wide-container .wide-content-wrapper .wide-toolbar { display: flex; flex-direction: row; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; } .wide-container .wide-content-wrapper .wide-entity-name { margin: 0; font-size: 18px; } .wide-container .wide-content-wrapper .wide-actions { align-self: flex-end; } .wide-container .wide-content-wrapper .wide-actions .close-action { cursor: pointer; border-radius: 3px; transition: background 300ms; } .wide-container .wide-content-wrapper .wide-actions .close-action:hover { background: var(--yfm-color-modal-actions-hover); } .wide-element-wrapper { display: flex; gap: 30px; position: relative; } .wide-element-wrapper:hover > .wide-content-viewer { visibility: visible; } .wide-element-wrapper .wide-inner-element { max-width: 700px; } .wide-content-viewer { visibility: hidden; width: 30px; height: 30px; z-index: 100; padding: 6px; box-sizing: content-box; color: var(--yfm-color-modal-wide-content); cursor: pointer; } .wide-content-viewer > svg { width: 20px; height: 20px; } .wide-content-overlay { z-index: 100; width: 100vw; height: 100vh; position: fixed; top: 0; left: 0; background-color: var(--yfm-color-modal-wide-content-overlay); opacity: 0.6; } details.yfm-cut > .yfm-cut-content { display: block; } .yfm-cut { transition: all 0.15s; margin-bottom: 15px; } .yfm-cut.cut-highlight { background-clip: content-box; box-shadow: 0 3px 0 7px var(--g-color-base-simple-hover); background-color: var(--g-color-base-simple-hover); border-radius: 3px; } .yfm-cut-title { list-style: none; cursor: pointer; position: relative; -webkit-user-select: none; -moz-user-select: none; user-select: none; padding: 5px 0 5px 30px; } .yfm-cut-title::-webkit-details-marker { display: none; } .yfm-cut-title:before { content: ""; z-index: 1; left: 0; top: 50%; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgICA8cGF0aCBzdHJva2U9ImN1cnJlbnRDb2xvciIgZmlsbD0ibm9uZSIgZD0iTTMgNmw1IDUgNS01Ii8+Cjwvc3ZnPgo=); transform: translateY(-50%) rotate(-90deg); transition: transform 0.3s ease; height: 20px; width: 20px; position: absolute; } .yfm-cut-content { padding: 5px 0 15px 30px; } .yfm-cut[open] > .yfm-cut-title:before { transform: translateY(-50%); } .yfm-file__icon { ---yfm-file-icon-img: var(--yfm-file-icon, url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0zNjkuOSA5Ny45TDI4NiAxNEMyNzcgNSAyNjQuOC0uMSAyNTIuMS0uMUg0OEMyMS41IDAgMCAyMS41IDAgNDh2NDE2YzAgMjYuNSAyMS41IDQ4IDQ4IDQ4aDI4OGMyNi41IDAgNDgtMjEuNSA0OC00OFYxMzEuOWMwLTEyLjctNS4xLTI1LTE0LjEtMzR6bS0yMi42IDIyLjdjMi4xIDIuMSAzLjUgNC42IDQuMiA3LjRIMjU2VjMyLjVjMi44LjcgNS4zIDIuMSA3LjQgNC4ybDgzLjkgODMuOXpNMzM2IDQ4MEg0OGMtOC44IDAtMTYtNy4yLTE2LTE2VjQ4YzAtOC44IDcuMi0xNiAxNi0xNmgxNzZ2MTA0YzAgMTMuMyAxMC43IDI0IDI0IDI0aDEwNHYzMDRjMCA4LjgtNy4yIDE2LTE2IDE2em0tNDgtMjQ0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyeiIvPjwvc3ZnPg==)); display: inline-block; -webkit-user-select: none; -moz-user-select: none; user-select: none; width: 16px; margin: 0 2px; color: --yfm-color-text; color: var(--yfm-file-icon-color, --yfm-color-text); background-color: currentColor; background-repeat: no-repeat; background-position: 50%; background-size: 100%; -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0zNjkuOSA5Ny45TDI4NiAxNEMyNzcgNSAyNjQuOC0uMSAyNTIuMS0uMUg0OEMyMS41IDAgMCAyMS41IDAgNDh2NDE2YzAgMjYuNSAyMS41IDQ4IDQ4IDQ4aDI4OGMyNi41IDAgNDgtMjEuNSA0OC00OFYxMzEuOWMwLTEyLjctNS4xLTI1LTE0LjEtMzR6bS0yMi42IDIyLjdjMi4xIDIuMSAzLjUgNC42IDQuMiA3LjRIMjU2VjMyLjVjMi44LjcgNS4zIDIuMSA3LjQgNC4ybDgzLjkgODMuOXpNMzM2IDQ4MEg0OGMtOC44IDAtMTYtNy4yLTE2LTE2VjQ4YzAtOC44IDcuMi0xNiAxNi0xNmgxNzZ2MTA0YzAgMTMuMyAxMC43IDI0IDI0IDI0aDEwNHYzMDRjMCA4LjgtNy4yIDE2LTE2IDE2em0tNDgtMjQ0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyeiIvPjwvc3ZnPg==); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0zNjkuOSA5Ny45TDI4NiAxNEMyNzcgNSAyNjQuOC0uMSAyNTIuMS0uMUg0OEMyMS41IDAgMCAyMS41IDAgNDh2NDE2YzAgMjYuNSAyMS41IDQ4IDQ4IDQ4aDI4OGMyNi41IDAgNDgtMjEuNSA0OC00OFYxMzEuOWMwLTEyLjctNS4xLTI1LTE0LjEtMzR6bS0yMi42IDIyLjdjMi4xIDIuMSAzLjUgNC42IDQuMiA3LjRIMjU2VjMyLjVjMi44LjcgNS4zIDIuMSA3LjQgNC4ybDgzLjkgODMuOXpNMzM2IDQ4MEg0OGMtOC44IDAtMTYtNy4yLTE2LTE2VjQ4YzAtOC44IDcuMi0xNiAxNi0xNmgxNzZ2MTA0YzAgMTMuMyAxMC43IDI0IDI0IDI0aDEwNHYzMDRjMCA4LjgtNy4yIDE2LTE2IDE2em0tNDgtMjQ0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyem0wIDY0djhjMCA2LjYtNS40IDEyLTEyIDEySDEwOGMtNi42IDAtMTItNS40LTEyLTEydi04YzAtNi42IDUuNC0xMiAxMi0xMmgxNjhjNi42IDAgMTIgNS40IDEyIDEyeiIvPjwvc3ZnPg==); -webkit-mask-image: var(---yfm-file-icon-img); mask-image: var(---yfm-file-icon-img); -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; } .yfm-file__icon:before { content: "\a0"; } .yfm-tabs { margin-bottom: 15px; } .yfm-tab-list { display: flex; flex-wrap: wrap; margin-bottom: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); } .yfm-tab { margin-bottom: -1px; margin-right: 20px; border-bottom: 2px solid transparent; padding: 6px 0 7px; font-weight: 700; outline: none; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; white-space: break-spaces; } .yfm-tab:last-child { margin-right: 0; } .yfm-tab:hover, .yfm-tab:active { color: #004080; } .yfm-tab.active { border-bottom-color: #027bf3; } .yfm-tab:focus { outline: 2px solid #4d90fe; border-radius: 2px; } .yfm-tab:focus:not(:focus-visible) { outline: 0; } .yfm-tab-panel { position: relative; visibility: hidden; overflow: hidden; height: 0; } .yfm-tab-panel:first-child { margin-top: 0 !important; } .yfm-tab-panel:last-child { margin-bottom: 0 !important; } .yfm-tab-panel.active { visibility: visible; overflow: visible; height: auto; } .yfm-tabs-dropdown { position: relative; width: 90%; margin-bottom: 0; --yfm-tabs-dropdown-color: #F2F2F2; --yfm-tabs-dropdown-text-color: #A8A8A8; --yfm-tabs-dropdown-color-border: #CCC; } .yfm-tabs-dropdown .yfm-tabs-dropdown-select { padding: 10px 30px 10px 10px; background: var(--g-color-base-background); border: 1px solid var(--yfm-tabs-dropdown-color-border); color: var(--yfm-tabs-dropdown-text-color); border-radius: 5px; position: relative; -webkit-user-select: none; -moz-user-select: none; user-select: none; margin-bottom: 10px; max-width: 500px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; z-index: 10; } .yfm-tabs-dropdown .yfm-tabs-dropdown-select.filled { color: inherit; } .yfm-tabs-dropdown .yfm-tabs-dropdown-select:after { content: ""; position: absolute; display: block; right: 10px; top: 25%; transform: rotate(90deg); transition: transform 0.2s; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Im0zIDYgNSA1IDUtNSIvPjwvc3ZnPg==); width: 20px; height: 20px; } .yfm-tabs-dropdown .yfm-tabs-dropdown-select.active + .yfm-tabs-dropdown-menu { transform: scaleY(1); } .yfm-tabs-dropdown .yfm-tabs-dropdown-select.active:after { transform: rotate(0); } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu { width: 100%; max-width: 500px; max-height: 500px; overflow-y: scroll; padding: 10px 0; position: absolute; z-index: 10; display: flex; flex-direction: column; border: 1px solid var(--yfm-tabs-dropdown-color-border); border-radius: 5px; background-color: var(--g-color-base-background); transform: scaleY(0); list-style: none; z-index: 100; transition: transform 125ms; transform-origin: top center; } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li { -webkit-user-select: none; -moz-user-select: none; user-select: none; cursor: pointer; background-color: var(--g-color-base-background); } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li:hover { background-color: var(--g-color-base-simple-hover); color: inherit; } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab { padding: 5px 0 5px 10px; border-radius: 0; border-bottom: 0; border-bottom: initial; margin: 0; font-weight: 500; } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab.active { background-color: var(--g-color-base-selection); } .yfm-tabs-dropdown > .yfm-tabs-dropdown-menu > li.yfm-tab:hover { color: inherit; } .yfm-tabs-dropdown > .yfm-tab-panel.active { border: 1px solid #F2F2F2; transform: translateY(-30px); border-radius: 12px; padding: 40px 12px 16px; } .yfm-tabs-dropdown > .yfm-tabs { width: 100%; } .yfm-tabs-accordion { max-width: 80%; } .yfm-tabs-accordion > .yfm-tab:first-of-type { border-top-color: transparent; } .yfm-tabs-accordion .yfm-tab { padding: 8px 0 12px 6px; position: relative; border-top: 1px solid #E5E5E5; font-weight: 500; scroll-margin-top: 20px; } .yfm-tabs-accordion .yfm-tab:after { content: ""; position: absolute; display: block; right: 10px; top: 25%; transform: rotate(-180deg); transition: transform 0.3s, background-color 0.2s; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Im0zIDYgNSA1IDUtNSIvPjwvc3ZnPg==); width: 20px; height: 20px; border-radius: 6px; padding: 6px; } .yfm-tabs-accordion .yfm-tab.active { border-bottom-color: transparent !important; font-weight: 700; } .yfm-tabs-accordion .yfm-tab.active:after { transform: rotate(0); } .yfm-tabs-accordion .yfm-tab:hover { color: #3f5799; } .yfm-tabs-accordion .yfm-tab-panel.active { margin: 10px 0 25px 6px; } .yfm-tabs-vertical > .yfm-tab-list { flex-direction: column; border-bottom: 0; border-bottom: initial; } .yfm-tabs-vertical > .yfm-tab-panel { margin-left: 30px; } .yfm-tabs-vertical > .yfm-tab-group { display: flex; flex-direction: row; margin-bottom: 5px; } .yfm-tabs-vertical .yfm-vertical-tab > input[type=radio] { visibility: hidden; width: 0; height: 0; } .yfm-tabs-vertical .yfm-vertical-tab > label { display: inline-block; cursor: pointer; position: relative; padding-left: 25px; margin-right: 0; line-height: 18px; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .yfm-tabs-vertical .yfm-vertical-tab > label:before { font-family: serif !important; font-family: initial !important; content: ""; position: absolute; left: 0; bottom: 1px; border-radius: 50%; width: 18px; height: 18px; border: #dfdfdf 1px solid; background-color: #fff; } .yfm-tabs-vertical .yfm-vertical-tab input[type=radio]:checked + label:before { content: "\2022"; background-color: #5282ff; text-align: center; vertical-align: middle; font-size: 20px; white-space: pre; display: inline-flex; justify-content: center; align-items: center; color: #fff; } .yfm-tabs-vertical .yfm-vertical-tab { border-bottom: 0 !important; border-bottom: initial !important; } /*# sourceMappingURL=yfm.css.map */