/** Define CSS variables */ body { --line-number-gutter-width: 32px; --line-number-gutter-padding: 16px; --header-separator-width: 2px; --code-padding: 8px; --header-font-size: var(--code-size); --header-padding: 0px; --header-inner-vertical-padding: 0.3; --header-spacing: 15px; --language-border-color: var(--codeblock-customizer-codeblock-background-color); --language-border-width: 0px; --gradient-background-color: transparent; --border-radius: 10px; --language-icon-size: 28px; --gradient-highlights-color-stop: 100%; --duration-button: 240ms; --header-button-spacing: 14px; --copy-code-header-right-margin: calc(3 * var(--header-button-spacing)); --container-height: calc(var(--language-icon-size) + 2 * var(--header-inner-vertical-padding) * var(--header-font-size)); --container-min-height: calc((var(--header-font-size) + 2 * var(--header-inner-vertical-padding) * var(--header-font-size)) * var(--line-height-normal)); --codeblock-customizer-button-color: var(--text-muted); --codeblock-customizer-button-active-color: white; --polygon-in: polygon(0 0, 16px 0, 16px 36px, 0 36px); --polygon-out: polygon(0 0, 100% 0, 100% 100%, 0 100%); --dent-difference: 30px; } /** Codeblock background colours */ .codeblock-customizer .markdown-source-view .HyperMD-codeblock[class*='codeblock-customizer-line'] { background: linear-gradient(90deg, var(--gradient-background-color) var(--gradient-highlights-color-stop), transparent 100%), var(--codeblock-customizer-codeblock-background-color) !important; } .codeblock-customizer .markdown-source-view .HyperMD-codeblock[class*='codeblock-customizer-line'][class*='language-'] { background: linear-gradient(90deg, var(--language-border-color), var(--language-border-color) var(--language-border-width), var(--gradient-background-color) var(--language-border-width) var(--gradient-highlights-color-stop), transparent 100%), var(--codeblock-customizer-codeblock-background-color) !important; } .codeblock-customizer .markdown-source-view .HyperMD-codeblock[class*='codeblock-customizer-line'][class*='language-'] [class^='codeblock-customizer-line-number'] { margin-left: var(--language-border-width); } .codeblock-customizer pre.codeblock-customizer-pre { background: var(--codeblock-customizer-codeblock-background-color) !important; } .codeblock-customizer pre.codeblock-customizer-pre[class*='language-'] { background: linear-gradient(90deg, var(--language-border-color), var(--language-border-color) var(--language-border-width), transparent var(--language-border-width), transparent 100%), var(--codeblock-customizer-codeblock-background-color) !important; padding-left: var(--language-border-width); } /** Highlighting */ pre.codeblock-customizer-pre [class^='codeblock-customizer-line-highlighted'] { background-image: linear-gradient(90deg, var(--gradient-background-color) 0% var(--gradient-highlights-color-stop), transparent 100%); } .codeblock-customizer-line-highlighted { --gradient-background-color: var(--codeblock-customizer-default-highlight-color) !important; } .codeblock-customizer-active-line-highlight .cm-active, .codeblock-customizer-active-line-highlight-editor .cm-active { background: linear-gradient(to right, var(--codeblock-customizer-active-editor-line-color), var(--gradient-highlights-color-stop), transparent) !important; } .codeblock-customizer-active-line-highlight .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"].cm-active, .codeblock-customizer-active-line-highlight-codeblock .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"].cm-active { background: linear-gradient(to right, var(--codeblock-customizer-active-codeblock-line-color), var(--gradient-highlights-color-stop), transparent) !important; } /** Line number gutter styling */ .codeblock-customizer:not(.codeblock-customizer-show-line-numbers) .codeblock-customizer-line-number, .codeblock-customizer-line-number-hide { display: none; } pre.codeblock-customizer-pre > code > div:first-child > [class^='codeblock-customizer-line-number'] { /*? Maintain gutter color when padded */ box-shadow: 0px calc(-1 * var(--code-padding)) var(--codeblock-customizer-gutter-background-color); } pre.codeblock-customizer-pre > code > div:last-child > [class^='codeblock-customizer-line-number'] { /*? Maintain gutter color when padded */ box-shadow: 0px var(--code-padding) var(--codeblock-customizer-gutter-background-color); } pre.codeblock-customizer-pre > code > div:only-child > [class^='codeblock-customizer-line-number'] { /*? Maintain gutter color when padded */ box-shadow: 0px calc(-1 * var(--code-padding)) var(--codeblock-customizer-gutter-background-color),0px var(--code-padding) var(--codeblock-customizer-gutter-background-color); } [class^='codeblock-customizer-line-number'] { padding-top: 2px; padding-left: calc(4px + var(--language-border-width)); padding-right: 8px; text-align: right; min-width: var(--line-number-gutter-width); background-color: var(--codeblock-customizer-gutter-background-color); font-size: var(--code-size); font-family: var(--font-monospace); color: var(--codeblock-customizer-gutter-text-color); user-select: none; } .markdown-source-view .HyperMD-codeblock .codeblock-customizer-line-number, .markdown-source-view .HyperMD-codeblock .codeblock-customizer-line-number-specific { position: absolute; display: inline-block; height: 100%; width: var(--line-number-gutter-width); overflow-x: auto; direction: rtl; left: 0; } .markdown-source-view .HyperMD-codeblock[class^='codeblock-customizer-line-number']::-webkit-scrollbar { display: none; } pre.codeblock-customizer-pre [class^='codeblock-customizer-line-number'] { flex-shrink: 0; flex-grow: 1; } .codeblock-customizer-active-line-highlight.codeblock-customizer-gutter-highlight .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"].cm-active [class^='codeblock-customizer-line-number'], .codeblock-customizer-active-line-highlight-codeblock.codeblock-customizer-gutter-highlight .markdown-source-view .HyperMD-codeblock[class*="codeblock-customizer-line"].cm-active [class^='codeblock-customizer-line-number'], .codeblock-customizer-gutter-highlight [class*="codeblock-customizer-line-highlighted"] [class^='codeblock-customizer-line-number'] { background-color: rgba(0,0,0,0); } .codeblock-customizer-gutter-active-line .cm-active [class^='codeblock-customizer-line-number']{ color: var(--codeblock-customizer-gutter-active-text-color); } .codeblock-customizer.codeblock-customizer-show-line-numbers .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number), .codeblock-customizer.codeblock-customizer-show-line-numbers .markdown-source-view .HyperMD-codeblock:has(.codeblock-customizer-line-number-specific) { padding-left: calc(var(--line-number-gutter-width) + var(--line-number-gutter-padding)); } /** Header styling */ body:not([class*='codeblock-customizer-show-langicons']) .codeblock-customizer-header-container-specific div:has(> img.codeblock-customizer-icon), body:not(.codeblock-customizer-show-langicons-always) .codeblock-customizer-header-container div:has(> img.codeblock-customizer-icon) { display: none; } body:not([class*='codeblock-customizer-show-langnames']) .codeblock-customizer-header-container-specific [class^="codeblock-customizer-header-language-tag"], body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container [class^="codeblock-customizer-header-language-tag"] { display: none; } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container, body:not(.codeblock-customizer-show-langnames-always) .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) { display: none !important; } body .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not([class*='language-']), body pre.codeblock-customizer-pre:not(:has([class*='codeblock-customizer-header-language-tag-'])) .codeblock-customizer-header-container { display: none !important; } [class^='codeblock-customizer-header-container'] { font-size: var(--header-font-size); user-select: none; height: var(--container-height); min-height: var(--container-min-height); padding-top: var(--header-padding); border-bottom: var(--header-separator-width) solid var(--codeblock-customizer-header-separator-color); margin-top: 0px !important; display: flex !important; overflow: visible; } .markdown-source-view :not(pre.codeblock-customizer-pre) > [class^='codeblock-customizer-header-container'] { background: linear-gradient(var(--codeblock-customizer-header-background-color),var(--codeblock-customizer-header-background-color)) var(--language-border-width) bottom/100% border-box no-repeat,var(--language-border-color) !important; border-left: var(--language-border-width) solid transparent; border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } pre.codeblock-customizer-pre [class^='codeblock-customizer-header-container'] { background-color:var(--codeblock-customizer-header-background-color); border-left: none; } .markdown-source-view :not(pre.codeblock-customizer-pre) > [class^='codeblock-customizer-header-container']:not(:has(+ .HyperMD-codeblock-begin)) { padding-bottom: var(--header-padding); border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); border-bottom-color: transparent; } pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed [class^='codeblock-customizer-header-container'] { border-bottom-color: transparent; } .markdown-source-view.mod-cm6 .cm-content :not(pre.codeblock-customizer-pre) > [class^='codeblock-customizer-header-container'] { /*? Fix for incorrectly displaying header when using "minimal" theme */ /*! Breaks 'Things' theme */ /* max-width: calc(var(--max-width) - var(--folding-offset)); width: calc(var(--line-width-adaptive) - var(--folding-offset)); margin-left: max(calc(50% + var(--folding-offset) - var(--line-width-adaptive)/2), calc(50% + var(--folding-offset) - var(--max-width)/2)) !important; */ } [class^='codeblock-customizer-header-container'] [class^="codeblock-customizer-header-language-tag"] { display: flex; justify-content: center; align-content: center; flex-direction: column; height: 100%; padding-left: var(--header-spacing); padding-right: var(--header-spacing); margin-right: var(--header-spacing); padding-top: calc(1em * var(--header-inner-vertical-padding)); padding-bottom: calc(1em * var(--header-inner-vertical-padding)); font-size: inherit; border-radius: var(--border-radius) var(--border-radius) 0px 0px; background-color: var(--codeblock-customizer-header-language-tag-background-color); color: var(--codeblock-customizer-header-language-tag-text-color); font-weight: var(--codeblock-customizer-header-language-tag-text-bold, normal); font-style: var(--codeblock-customizer-header-language-tag-text-italic, normal); text-align: center; } .markdown-source-view :not(pre.codeblock-customizer-pre) > [class^='codeblock-customizer-header-container']:not(:has(+ .HyperMD-codeblock-begin)) [class^="codeblock-customizer-header-language-tag"], pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed [class^='codeblock-customizer-header-container'] [class^="codeblock-customizer-header-language-tag"] { border-radius: var(--border-radius); /*! Space under language tag when folded - cover with shadow */ /* box-shadow: 0px 2px var(--codeblock-customizer-header-language-tag-background-color); */ } .codeblock-customizer-header-text { display: flex; justify-content: center; align-content: center; flex-direction: column; padding-left: 0px; padding-top: calc(1em * var(--header-inner-vertical-padding)); padding-bottom: calc(1em * var(--header-inner-vertical-padding)); font-size: inherit; color: var(--codeblock-customizer-header-text-color); font-weight: var(--codeblock-customizer-header-title-text-bold, normal); font-style: var(--codeblock-customizer-header-title-text-italic, normal); } body:not([class*='codeblock-customizer-show-langicons']) .codeblock-customizer-header-container-specific [class^="codeblock-customizer-header-language-tag"], body:not(.codeblock-customizer-show-langicons-always) .codeblock-customizer-header-container [class^="codeblock-customizer-header-language-tag"], body .codeblock-customizer-header-container-specific:not(:has( div > img.codeblock-customizer-icon)) [class^="codeblock-customizer-header-language-tag"] { /*? Depending on header visibility */ border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; } body:not([class*='codeblock-customizer-show-langicons']):not([class*='codeblock-customizer-show-langnames']) .codeblock-customizer-header-container-specific .codeblock-customizer-header-text, body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames) .codeblock-customizer-header-container .codeblock-customizer-header-text, body .codeblock-customizer-header-container-specific:not(:has( [class^="codeblock-customizer-header-language-tag-"])) .codeblock-customizer-header-text { /*? Depending on header visibility */ padding-left: var(--header-spacing); } div:has(> img.codeblock-customizer-icon) { display: inline-flex; justify-content: center; align-content: center; flex-direction: column; padding-top: calc(1em * var(--header-inner-vertical-padding)); padding-bottom: calc(1em * var(--header-inner-vertical-padding)); padding-left: var(--header-spacing); padding-right: var(--header-spacing); } .codeblock-customizer-icon { border: 0px; width: var(--language-icon-size); height: var(--language-icon-size); } /** Pre element styling */ pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed code { display: none !important; } .codeblock-customizer-pre-parent{ margin-bottom: 16px; } pre.codeblock-customizer-pre { border-radius: var(--border-radius); min-height: unset; padding-top: 0px; /*? padding-top and bottom must be set at the pre code element*/ padding-bottom: 0px; padding-right: 0px; /*? originalVal: 16px, disable it, so the lines are fully highlighted */ padding-left: 0px; /*? originalVal: 16px, disable it, so the lines are fully highlighted */ } pre.codeblock-customizer-pre code { display: block; padding-top: var(--code-padding); padding-bottom: var(--code-padding); padding-left: 0px; padding-right: 0px; border-radius: 0px; } pre.codeblock-customizer-pre::after { content: none !important; } /** Source mode text styling */ .HyperMD-codeblock:has(> .cm-widgetBuffer) { /*? Prevent Line Wraps */ white-space: nowrap; } .HyperMD-codeblock:has(> .cm-widgetBuffer) > .cm-hmd-codeblock { /*? Prevent Line Wraps */ white-space: break-spaces; } /** Reading mode text styling */ pre.codeblock-customizer-pre div:has(> .codeblock-customizer-line-text) { display: flex; } pre.codeblock-customizer-pre .codeblock-customizer-line-text { flex-basis: 100%; padding-left: var(--line-number-gutter-padding); /*? originalVal:0px, add padding between the line numbers and the text */ } /** Border radius styling */ .codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin { border-top-left-radius: 0px; border-top-right-radius: 0px; } .codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); } .codeblock-customizer .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-end [class^='codeblock-customizer-line-number'] { border-bottom-left-radius: var(--border-radius); } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container + .HyperMD-codeblock-begin, body:not(.codeblock-customizer-show-langnames-always) .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin, body .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has([class*='codeblock-customizer-header-language-tag-'])) + .HyperMD-codeblock-begin, body .markdown-source-view :not([class^='codeblock-customizer-header-container']) + [class*="codeblock-customizer-line"].HyperMD-codeblock-begin, body .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin:nth-of-type(1) { /*? Depending on header visibility */ border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container + .HyperMD-codeblock-begin [class^='codeblock-customizer-line-number'], body:not(.codeblock-customizer-show-langnames-always) :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin [class^='codeblock-customizer-line-number'], body .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has([class*='codeblock-customizer-header-language-tag-'])) + .HyperMD-codeblock-begin [class^='codeblock-customizer-line-number'], body .markdown-source-view :not([class^='codeblock-customizer-header-container']) + [class*="codeblock-customizer-line"].HyperMD-codeblock-begin [class^='codeblock-customizer-line-number'], body .markdown-source-view [class*="codeblock-customizer-line"].HyperMD-codeblock-begin:nth-of-type(1) [class^='codeblock-customizer-line-number'] { /*? Depending on header visibility */ border-top-left-radius: var(--border-radius); } /** Button styling */ .markdown-rendered pre.codeblock-customizer-pre button { transition: visibility var(--duration-button), opacity var(--duration-button); visibility: visible; opacity: 1; display: unset !important; color: var(--codeblock-customizer-button-color); background: transparent; box-shadow: none; font-family: var(--font-interface); font-size: var(--font-ui-smaller); margin: 0; padding: 0; } pre.codeblock-customizer-pre:not(.codeblock-customizer-codeblock-collapsed):not(:hover) button, pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed button, pre.codeblock-customizer-pre:not(.codeblock-customizer-codeblock-collapsed):not(:hover) [class^='codeblock-customizer-header-container']::after { visibility: hidden; opacity: 0 } [class^='codeblock-customizer-header-container']::after { position: relative; top: 0; bottom: 0; left: 0; right: 0; margin: auto; margin-right: var(--header-button-spacing); content: "\200b"; width: 20px; height: 20px; background-color: var(--codeblock-customizer-button-color); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' xml:space='preserve'%3E%3Cpath d='M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); mask-repeat: no-repeat; visibility: visible; opacity: 1; scale: 0.8; transition: transform var(--duration-button) ease-out, visibility var(--duration-button), opacity var(--duration-button), scale var(--duration-button) cubic-bezier(0.4, 0.14, 0.3, 1); } pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed [class^='codeblock-customizer-header-container']::after, .markdown-source-view :not(pre.codeblock-customizer-pre) > [class^='codeblock-customizer-header-container']:not(:has(+ .HyperMD-codeblock-begin))::after { transform: rotate(-90deg); } [class^='codeblock-customizer-header-container']:hover::after { scale: 1; } @keyframes outdent { from { margin-right: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); clip-path: var(--polygon-in); } to { margin-right: var(--copy-code-header-right-margin); clip-path: var(--polygon-out); } } @keyframes indent { from { margin-right: var(--copy-code-header-right-margin); clip-path: var(--polygon-out); } to { margin-right: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); clip-path: var(--polygon-in); } } @keyframes reverse-outdent { from { /* margin-left: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); */ clip-path: var(--polygon-in); } to { /* margin-left: var(--copy-code-header-right-margin); */ clip-path: var(--polygon-out); } } @keyframes reverse-indent { from { /* margin-left: var(--copy-code-header-right-margin); */ clip-path: var(--polygon-out); } to { /* margin-left: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); */ clip-path: var(--polygon-in); } } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) pre.codeblock-customizer-pre:has( .codeblock-customizer-header-container) button.copy-code-button, body:not(.codeblock-customizer-show-langnames-always) pre.codeblock-customizer-pre:not(:has( .codeblock-customizer-header-container-specific)):not(:has( .codeblock-customizer-header-container img.codeblock-customizer-icon)) button.copy-code-button, body pre.codeblock-customizer-pre:not(:has([class*='codeblock-customizer-header-language-tag-'])) button.copy-code-button { /*? Depending on header visibility */ top: calc(0.5 * var(--font-text-size) * 0.875 * var(--line-height-normal)); --copy-code-header-right-margin: 12px; } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container + .HyperMD-codeblock-begin span.code-block-flair, body:not(.codeblock-customizer-show-langnames-always) .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has( img.codeblock-customizer-icon)) + .HyperMD-codeblock-begin span.code-block-flair, body .markdown-source-view :not(pre.codeblock-customizer-pre) > .codeblock-customizer-header-container:not(:has([class*='codeblock-customizer-header-language-tag-'])) + .HyperMD-codeblock-begin span.code-block-flair { /*? Depending on header visibility */ top: calc(0.5 * var(--font-text-size) * 0.875 * var(--line-height-normal)); --copy-code-header-right-margin: 12px; } pre.codeblock-customizer-pre button.copy-code-button { transform: translateY(-50%); top: max(calc(0.5 * var(--container-height) * 0.9),calc(0.5 * var(--container-min-height) * 0.9)); } pre.codeblock-customizer-pre button.copy-code-button, pre.codeblock-customizer-pre button.run-code-button, /*? Execute Code Plugin Compatibility */ .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair { margin-right: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); will-change: margin-right, clip-path; clip-path: var(--polygon-in); } pre.codeblock-customizer-pre button.copy-code-button:not(:active), pre.codeblock-customizer-pre button.run-code-button:not(:active), /*? Execute Code Plugin Compatibility */ .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair:not(:active) { animation: indent var(--duration-button); } pre.codeblock-customizer-pre button.copy-code-button:hover, pre.codeblock-customizer-pre button.run-code-button:hover, /*? Execute Code Plugin Compatibility */ .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair:hover{ background-color: transparent; animation: outdent var(--duration-button); margin-right: var(--copy-code-header-right-margin); clip-path: var(--polygon-out); } pre.codeblock-customizer-pre button.copy-code-button:active, pre.codeblock-customizer-pre button.run-code-button:active, /*? Execute Code Plugin Compatibility */ .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair:active { scale: 0.95; transition: scale var(--duration-button) cubic-bezier(0.4, 0.14, 0.3, 1); } pre.codeblock-customizer-pre button.copy-code-button::before, .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair::before { content: "\200b"; display: inline-block; width: 14px; height: 14px; padding-right: 4px; background-color: var(--codeblock-customizer-button-color); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z'/%3E%3Cpath d='M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z'/%3E%3Cpath d='M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); mask-repeat: no-repeat; vertical-align: 1px; } .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair { transform: translateY(-50%); font-size: 0; top: min(calc(-0.5 * var(--container-height) * 1.1),calc(-0.5 * var(--container-min-height) * 1.1)); right: 0; visibility: hidden; } .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair > * { width: 0px; } .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair::before { visibility: visible; vertical-align: -1px; font-size: var(--font-ui-smaller); } .markdown-source-view.mod-cm6 .HyperMD-codeblock.codeblock-customizer-line span.code-block-flair::after { visibility: visible; font-size: var(--font-ui-smaller); content: 'Copy'; color: var(--codeblock-customizer-button-color); } /** Settings */ .setting-item.codeblock-customizer-spaced .checkbox-container + .pickr { padding-left: 10px; } .codeblock-customizer-donation { width: 70%; margin: 0 auto; text-align: center; } /** Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */ .pickr {position: relative;overflow: visible;transform: translateY(0)} .pickr * {box-sizing: border-box;outline: none;border: none;appearance: none;-webkit-appearance: none} .pickr .pcr-button {position: relative;height: 2em;width: 2em;padding: 0.5em;cursor: pointer;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;border-radius: .15em;background: url('data:image/svg+xml;utf8, ') no-repeat center;background-size: 0;transition: all 0.3s} .pickr .pcr-button::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, ');background-size: .5em;border-radius: .15em;z-index: -1} .pickr .pcr-button::before {z-index: initial} .pickr .pcr-button::after {position: absolute;content: '';top: 0;left: 0;height: 100%;width: 100%;transition: background 0.3s;background: var(--pcr-color);border-radius: .15em} .pickr .pcr-button.clear {background-size: 70%} .pickr .pcr-button.clear::before {opacity: 0} .pickr .pcr-button.clear:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px var(--pcr-color)} .pickr .pcr-button.disabled {cursor: not-allowed} .pickr *, .pcr-app * {box-sizing: border-box;outline: none;border: none;appearance: none;-webkit-appearance: none} .pickr input:focus, .pickr input.pcr-active, .pickr button:focus, .pickr button.pcr-active, .pcr-app input:focus, .pcr-app input.pcr-active, .pcr-app button:focus, .pcr-app button.pcr-active {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px var(--pcr-color)} .pickr .pcr-palette, .pickr .pcr-slider, .pcr-app .pcr-palette, .pcr-app .pcr-slider {transition: box-shadow 0.3s} .pickr .pcr-palette:focus, .pickr .pcr-slider:focus, .pcr-app .pcr-palette:focus, .pcr-app .pcr-slider:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(0, 0, 0, 0.25)} .pcr-app {position: fixed;display: flex;flex-direction: column;z-index: 10000;border-radius: 0.1em;background: #fff;opacity: 0;visibility: hidden;transition: opacity 0.3s, visibility 0s 0.3s;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;box-shadow: 0 0.15em 1.5em 0 rgba(0, 0, 0, 0.1), 0 0 1em 0 rgba(0, 0, 0, 0.03);left: 0;top: 0} .pcr-app.visible {transition: opacity 0.3s;visibility: visible;opacity: 1} .pcr-app .pcr-swatches {display: flex;flex-wrap: wrap;margin-top: 0.75em} .pcr-app .pcr-swatches.pcr-last {margin: 0} @supports (display: grid) { .pcr-app .pcr-swatches {display: grid;align-items: center;grid-template-columns: repeat(auto-fit, 1.75em)} } .pcr-app .pcr-swatches > button {font-size: 1em;position: relative;width: calc(1.75em - 10px);height: calc(1.75em - 10px);border-radius: 0.15em;cursor: pointer;margin: 2.5px;flex-shrink: 0;justify-self: center;transition: all 0.15s;overflow: hidden;background: transparent;z-index: 1} .pcr-app .pcr-swatches > button::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, ');background-size: 6px;border-radius: .15em;z-index: -1} .pcr-app .pcr-swatches > button::after {content: '';position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: var(--pcr-color);border: 1px solid rgba(0, 0, 0, 0.05);border-radius: 0.15em;box-sizing: border-box} .pcr-app .pcr-swatches > button:hover {filter: brightness(1.05)} .pcr-app .pcr-swatches > button:not(.pcr-active) {box-shadow: none} .pcr-app .pcr-interaction {display: flex;flex-wrap: wrap;align-items: center;margin: 0 -0.2em 0 -0.2em} .pcr-app .pcr-interaction > * {margin: 0 0.2em} .pcr-app .pcr-interaction input {letter-spacing: 0.07em;font-size: 0.75em;text-align: center;cursor: pointer;color: #75797e;background: #f1f3f4;border-radius: .15em;transition: all 0.15s;padding: 0.45em 0.5em;margin-top: 0.75em} .pcr-app .pcr-interaction input:hover {filter: brightness(0.975)} .pcr-app .pcr-interaction input:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(66, 133, 244, 0.75)} .pcr-app .pcr-interaction .pcr-result {color: #75797e;text-align: left;flex: 1 1 8em;min-width: 8em;transition: all 0.2s;border-radius: .15em;background: #f1f3f4;cursor: text} .pcr-app .pcr-interaction .pcr-result::-moz-selection {background: #4285f4;color: #fff} .pcr-app .pcr-interaction .pcr-result::selection {background: #4285f4;color: #fff} .pcr-app .pcr-interaction .pcr-type.active {color: #fff;background: #4285f4} .pcr-app .pcr-interaction .pcr-save, .pcr-app .pcr-interaction .pcr-cancel, .pcr-app .pcr-interaction .pcr-clear {color: #fff;width: auto} .pcr-app .pcr-interaction .pcr-save, .pcr-app .pcr-interaction .pcr-cancel, .pcr-app .pcr-interaction .pcr-clear {color: #fff} .pcr-app .pcr-interaction .pcr-save:hover, .pcr-app .pcr-interaction .pcr-cancel:hover, .pcr-app .pcr-interaction .pcr-clear:hover {filter: brightness(0.925)} .pcr-app .pcr-interaction .pcr-save {background: #4285f4} .pcr-app .pcr-interaction .pcr-clear, .pcr-app .pcr-interaction .pcr-cancel {background: #f44250} .pcr-app .pcr-interaction .pcr-clear:focus, .pcr-app .pcr-interaction .pcr-cancel:focus {box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(244, 66, 80, 0.75)} .pcr-app .pcr-selection .pcr-picker {position: absolute;height: 18px;width: 18px;border: 2px solid #fff;border-radius: 100%;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none} .pcr-app .pcr-selection .pcr-color-palette, .pcr-app .pcr-selection .pcr-color-chooser, .pcr-app .pcr-selection .pcr-color-opacity {position: relative;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;display: flex;flex-direction: column;cursor: grab;cursor: -webkit-grab} .pcr-app .pcr-selection .pcr-color-palette:active, .pcr-app .pcr-selection .pcr-color-chooser:active, .pcr-app .pcr-selection .pcr-color-opacity:active {cursor: grabbing;cursor: -webkit-grabbing} .pcr-app[data-theme='nano'] {width: 14.25em;max-width: 95vw} .pcr-app[data-theme='nano'] .pcr-swatches {margin-top: .6em;padding: 0 .6em} .pcr-app[data-theme='nano'] .pcr-interaction {padding: 0 .6em .6em .6em} .pcr-app[data-theme='nano'] .pcr-selection {display: grid;grid-gap: .6em;grid-template-columns: 1fr 4fr;grid-template-rows: 5fr auto auto;align-items: center;height: 10.5em;width: 100%;align-self: flex-start} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview {grid-area: 2 / 1 / 4 / 1;height: 100%;width: 100%;display: flex;flex-direction: row;justify-content: center;margin-left: .6em} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-last-color {display: none} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color {position: relative;background: var(--pcr-color);width: 2em;height: 2em;border-radius: 50em;overflow: hidden} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, ');background-size: .5em;border-radius: .15em;z-index: -1} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette {grid-area: 1 / 1 / 2 / 3;width: 100%;height: 100%;z-index: 1} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette {border-radius: .15em;width: 100%;height: 100%} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette::before {position: absolute;content: '';top: 0;left: 0;width: 100%;height: 100%;background: url('data:image/svg+xml;utf8, ');background-size: .5em;border-radius: .15em;z-index: -1} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser {grid-area: 2 / 2 / 2 / 2} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity {grid-area: 3 / 2 / 3 / 2} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity {height: 0.5em;margin: 0 .6em} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-picker, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-picker {top: 50%;transform: translateY(-50%)} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider, .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider {flex-grow: 1;border-radius: 50em} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider {background: linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red)} .pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider {background: linear-gradient(to right, transparent, black), url('data:image/svg+xml;utf8, ');background-size: 100%, 0.25em} .pcr-app .pcr-swatches > button { padding: 0; } /*! Plugin Compatibility */ /** Execute Code Plugin */ pre.codeblock-customizer-pre code.language-output hr { border-color: var(--codeblock-customizer-header-separator-color); border-top-width: var(--header-separator-width); margin-bottom: var(--code-padding); } pre.codeblock-customizer-pre code.language-output { margin-bottom: 0; padding-top: 0; padding-bottom: calc(2.5 * var(--code-padding)); } pre.codeblock-customizer-pre:hover code.language-output { margin-bottom: 0; } pre.codeblock-customizer-pre code.language-output span.stdout, pre.codeblock-customizer-pre code.language-output span.stdin, pre.codeblock-customizer-pre code.language-output span.stderr, pre.codeblock-customizer-pre code.language-output input.interactive-stdin { position: relative; left: var(--line-number-gutter-padding); } pre.codeblock-customizer-pre code.language-output input.interactive-stdin { color: var(--text-normal); background-color: var(--codeblock-customizer-codeblock-background-color); padding: 2px 8px; border-color: var(--code-comment); /*todo*/ border-style: solid; border-radius: 5px; border-width: 1px; } pre.codeblock-customizer-pre button.run-code-button { --copy-code-header-right-margin: 12px; --dent-difference: 24px; height: 14px; margin-bottom: 6px; } pre.codeblock-customizer-pre.codeblock-customizer-codeblock-collapsed button.run-code-button { top: 500px; } pre.codeblock-customizer-pre button.run-code-button::before { content: "\200b"; display: inline-block; width: 14px; height: 14px; padding-right: 4px; background-color: var(--codeblock-customizer-button-color); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); mask-repeat: no-repeat; vertical-align: 0px; } pre.codeblock-customizer-pre button.clear-button-disabled, pre.codeblock-customizer-pre button.run-button-disabled { display: none !important; } pre.codeblock-customizer-pre button.clear-button { height: 14px; margin-bottom: 6px; margin-left: calc(var(--language-border-width) + 12px); /* margin-right: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); */ will-change: margin-right, clip-path; clip-path: var(--polygon-in); } pre.codeblock-customizer-pre button.clear-button::before { content: "\200b"; display: inline-block; width: 14px; height: 14px; padding-right: 4px; background-color: var(--codeblock-customizer-button-color); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4 6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14 16 4z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4 6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14 16 4z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='<Transparent Rectangle>'/%3E%3C/svg%3E"); mask-repeat: no-repeat; vertical-align: 0px; } pre.codeblock-customizer-pre button.clear-button:not(:active) { animation: reverse-indent var(--duration-button); } pre.codeblock-customizer-pre button.clear-button:hover{ background-color: transparent; animation: reverse-outdent var(--duration-button); margin-right: var(--copy-code-header-right-margin); clip-path: var(--polygon-out); } pre.codeblock-customizer-pre button.clear-button:active { scale: 0.95; transition: scale var(--duration-button) cubic-bezier(0.4, 0.14, 0.3, 1); } .codeblock-customizer-pre-parent.has-run-code-button .load-state-indicator { color: none; background: none; z-index: 10; } .codeblock-customizer-pre-parent.has-run-code-button .load-state-indicator::before { box-shadow: none; } .codeblock-customizer-pre-parent.has-run-code-button .load-state-indicator svg { color: var(--codeblock-customizer-button-color); } .codeblock-customizer-pre-parent.has-run-code-button .load-state-indicator svg:hover { color: var(--codeblock-customizer-button-active-color); } .codeblock-customizer-pre-parent.has-run-code-button .load-state-indicator.visible { transform: translateX(0); } /** Embed Code Plugin */ pre.codeblock-customizer-pre span.code-block-line_num-wrap, pre.codeblock-customizer-pre div span.code-block-highlight { display: none; } .markdown-source-view.mod-cm6 .cm-embed-block .codeblock-customizer-pre-parent + .edit-block-button::after { content: 'Edit Block'; font-size: var(--font-ui-smaller); padding-left: 4px; } .markdown-source-view.mod-cm6 .cm-embed-block:not(:hover) .codeblock-customizer-pre-parent + .edit-block-button { visibility: hidden; opacity: 0 } .markdown-source-view.mod-cm6 .cm-embed-block .codeblock-customizer-pre-parent + .edit-block-button { transition: visibility var(--duration-button), opacity var(--duration-button); visibility: visible; opacity: 1; --copy-code-header-right-margin: calc(2.2 * var(--header-button-spacing)); --dent-difference: 0px; --polygon-in: polygon(0 0, 18px 0, 18px 36px, 0 36px); z-index: 10; transform: translateY(-50%); top: max(calc(0.5 * var(--container-height) * 0.9),calc(0.5 * var(--container-min-height) * 0.9)); margin: 0; margin-right: calc(var(--copy-code-header-right-margin) - var(--dent-difference)); will-change: margin-right, clip-path; clip-path: var(--polygon-in); padding: 0; } body:not(.codeblock-customizer-show-langicons-always):not(.codeblock-customizer-show-langnames-always) .cm-embed-block .codeblock-customizer-pre-parent:has( pre.codeblock-customizer-pre .codeblock-customizer-header-container) + .edit-block-button, body:not(.codeblock-customizer-show-langnames-always) .cm-embed-block .codeblock-customizer-pre-parent:not(:has( pre.codeblock-customizer-pre .codeblock-customizer-header-container-specific)):not(:has( pre.codeblock-customizer-pre .codeblock-customizer-header-container img.codeblock-customizer-icon)) + .edit-block-button, body .cm-embed-block .codeblock-customizer-pre-parent:not(:has( pre.codeblock-customizer-pre [class*='codeblock-customizer-header-language-tag-'])) + .edit-block-button { /*? Depending on header visibility */ --copy-code-header-right-margin: 4px; top: calc(0.5 * var(--font-text-size) * 0.875 * var(--line-height-normal)); } .markdown-source-view.mod-cm6 .cm-embed-block:hover .codeblock-customizer-pre-parent + .edit-block-button:hover { background: transparent; animation: reverse-outdent var(--duration-button); margin-right: var(--copy-code-header-right-margin); clip-path: var(--polygon-out); } .markdown-source-view.mod-cm6 .cm-embed-block:hover .codeblock-customizer-pre-parent + .edit-block-button:active { scale: 0.95; transition: scale var(--duration-button) cubic-bezier(0.4, 0.14, 0.3, 1); }