@diplodoc/client 3.8.2 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/build/client/app.css +1 -1
- package/build/client/app.css.map +1 -1
- package/build/client/app.rtl.css +1 -1
- package/build/client/search.css +1 -1
- package/build/client/search.css.map +1 -1
- package/build/client/search.rtl.css +1 -1
- package/build/client/vendor.css +42 -5
- package/build/client/vendor.css.map +1 -1
- package/build/client/vendor.js +1 -1
- package/build/client/vendor.js.map +1 -1
- package/build/client/vendor.rtl.css +42 -5
- package/build/server/vendor.js +55 -10
- package/build/server/vendor.js.map +1 -1
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.dc-toc-label_offset{margin-right:10px}[dir=rtl] .dc-toc-label_offset{/* rtl:begin:ignore */margin-right:10px/* rtl:end:ignore */}
|
|
15
15
|
.g-label{--_--bg-color: none;--_--bg-color-hover: none;--_--text-color: none;display:inline-flex;align-items:center;position:relative;height:var(--_--height);border-radius:var(--_--border-radius);color:var(--_--text-color);background-color:var(--_--bg-color);transition-property:opacity,color,background-color;transition-duration:.15s;transition-timing-function:ease-in-out;box-sizing:border-box;isolation:isolate}.g-label__text{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);display:flex;align-items:baseline;margin:0 var(--_--margin-inline);width:100%;line-height:var(--_--height);text-align:center;white-space:nowrap;overflow:hidden}.g-label__content,.g-label__key{text-overflow:ellipsis;overflow:hidden}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{padding:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);color:inherit;background:none;border:none;outline:none;cursor:pointer;border-radius:inherit;z-index:1}.g-label__main-button:empty{position:absolute;inset:0}.g-label__addon{display:flex;align-items:center;justify-content:center;width:var(--_--height);height:var(--_--height);border-radius:var(--_--border-radius)}.g-label__addon_side_start,.g-label__addon_side_end{position:absolute;inset-block-start:0}.g-label__addon_side_start{inset-inline-start:2px;border-start-end-radius:0;border-end-end-radius:0}.g-label__addon_side_end{inset-inline-end:0;border-start-start-radius:0;border-end-start-radius:0}.g-label__addon_type_button{padding:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);color:inherit;background:none;border:none;outline:none;cursor:pointer;z-index:2;cursor:pointer;color:var(--_--text-color);background-color:transparent;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out}.g-label__addon_type_button:active{transform:scale(0.96)}.g-label_size_xs{--_--height: 20px;--_--border-radius: var(--g-border-radius-xs);--_--margin-inline: 8px;--_--margin-addon-start: 24px;--_--margin-addon-end: 22px}.g-label_size_s{--_--height: 24px;--_--border-radius: var(--g-border-radius-s);--_--margin-inline: 10px;--_--margin-addon-start: 28px;--_--margin-addon-end: 26px}.g-label_size_m{--_--height: 28px;--_--border-radius: var(--g-border-radius-m);--_--margin-inline: 12px;--_--margin-addon-start: 32px;--_--margin-addon-end: 32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color: var(--g-color-base-misc-light);--_--bg-color-hover: var(--g-color-base-misc-light-hover);--_--text-color: var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color: var(--g-color-base-positive-light);--_--bg-color-hover: var(--g-color-base-positive-light-hover);--_--text-color: var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color: var(--g-color-base-info-light);--_--bg-color-hover: var(--g-color-base-info-light-hover);--_--text-color: var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color: var(--g-color-base-warning-light);--_--bg-color-hover: var(--g-color-base-warning-light-hover);--_--text-color: var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color: var(--g-color-base-danger-light);--_--bg-color-hover: var(--g-color-base-danger-light-hover);--_--text-color: var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color: var(--g-color-base-utility-light);--_--bg-color-hover: var(--g-color-base-utility-light-hover);--_--text-color: var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color: var(--g-color-base-neutral-light);--_--bg-color-hover: var(--g-color-base-neutral-light-hover);--_--text-color: var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color: transparent;--_--bg-color-hover: var(--g-color-base-simple-hover);--_--text-color: var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)),.g-label__addon_type_button:hover{background-color:var(--_--bg-color-hover)}.g-label__main-button:focus-visible,.g-label__addon_type_button:focus-visible{outline:2px solid var(--g-color-line-focus)}
|
|
16
16
|
.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding: 16px;--_--close-offset: 8px;--_--close-size: 24px}.g-popover__tooltip-popup-content{box-sizing:border-box;min-height:40px;max-width:var(--g-popover-max-width, 300px);padding:var(--g-popover-padding, var(--_--padding));cursor:default}.g-popover__tooltip-title{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight);font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);display:inline-flex;margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1}.g-popover__tooltip-close{position:absolute;inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset)}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>*:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>*:first-child{margin-block-start:12px}.g-popover__tooltip-link{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);display:inline-block}.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){text-decoration:none;color:var(--g-color-text-link)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color: var(--g-color-base-simple-hover-solid);--g-popup-border-color: var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color: var(--g-color-base-brand);--g-popup-border-color: var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){font-weight:var(--g-text-accent-font-weight);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding: 24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight);font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-title,.g-popover__tooltip_with-close .g-popover__tooltip-content{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}
|
|
17
|
-
.dc-toc{display:flex;flex-direction:column;height:calc(100vh - 0px);height:calc(100vh - var(--dc-header-height, 0px));overflow:hidden;border-left:1px solid var(--g-color-line-generic)}@media(max-width: 768px){.dc-toc{padding:12px 16px 0px;border-left:none;overflow-y:auto}}.dc-toc__empty{padding:5px 24px 5px 15px}.dc-toc__top{flex-grow:0;flex-shrink:0;display:flex;align-items:flex-start;padding:10px 0 8px 10px;margin-bottom:12px}@media(max-width: 768px){.dc-toc__top{padding:10px 28px 10px 12px;margin-bottom:0}}.dc-toc__top_scrolled{border-bottom:1px solid var(--g-color-line-generic)}.dc-toc__top-header-icon{display:flex;margin-left:5px;flex-shrink:0}[dir=rtl] .dc-toc__top-header-icon{/* rtl:begin:ignore */margin-left:5px/* rtl:end:ignore */}.dc-toc__top-header{flex-grow:0;position:relative;font-weight:500;font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.dc-toc__top-header_link{color:inherit;-webkit-text-decoration:none;text-decoration:none;display:flex;align-items:center;border-radius:var(--g-focus-border-radius);color:var(--g-color-text-link);-webkit-text-decoration:none;text-decoration:none;cursor:pointer;border-radius:var(--g-focus-border-radius);outline:none}.utilityfocus .dc-toc__top-header_link:focus{outline:2px solid #ffdb4d}.dc-toc__top-header_link:focus{box-shadow:0 0 0 2px var(--g-color-line-focus);outline:0}.dc-toc__top-header_link:focus:not(:focus-visible){box-shadow:none}.dc-toc__top-header_link:hover,.dc-toc__top-header_link:active{color:var(--g-color-text-link-hover)}.dc-toc__top-header_link:hover{color:var(--g-color-text-primary)}.dc-toc__top-header_link:focus{outline:2px solid var(--g-color-line-focus);outline-offset:0}.dc-toc__top-header_link:focus:not(:focus-visible){outline:0}.dc-toc__bottom{flex-grow:0;flex-shrink:0;display:flex;align-items:center;padding:4px 0 20px 10px}.dc-toc__bottom_scrolled{border-top:1px solid var(--g-color-line-generic)}@media(max-width: 768px){.dc-toc__bottom_scrolled{border-top:0}}.dc-toc__content{--g-scrollbar-width: 6px;position:relative;flex-grow:1;overflow-y:auto;scrollbar-width:thin}@media(max-width: 768px){.dc-toc__content{overflow-y:visible;overflow-y:initial}}@media(min-width: 769px){.dc-toc__content_offset_top{padding-top:12px}}.dc-toc__list{margin:0;padding:0;list-style:none;display:block}.dc-toc__list-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dc-toc__list-item_labeled{margin-top:16px}.dc-toc__list-item_main>*:first-child{color:var(--g-color-text-primary)}.dc-toc__list-item:not(.dc-toc__list-item_opened)>.dc-toc__list{display:none}.dc-toc__list-item:not(.dc-toc__list-item_labeled)>.dc-toc__list{padding-right:20px}[dir=rtl] .dc-toc__list-item:not(.dc-toc__list-item_labeled)>.dc-toc__list{/* rtl:begin:ignore */padding-right:20px/* rtl:end:ignore */}.dc-toc__content>.dc-toc__list{padding-left:21px;padding-bottom:30px}@media(max-width: 768px){.dc-toc__content>.dc-toc__list{padding-left:0}}
|
|
17
|
+
.dc-toc{display:flex;flex-direction:column;height:calc(100vh - 0px);height:calc(100vh - var(--dc-header-height, 0px));overflow:hidden;border-left:1px solid var(--g-color-line-generic)}@media(max-width: 768px){.dc-toc{padding:12px 16px 0px;border-left:none;overflow-y:auto}}.dc-toc__empty{padding:5px 24px 5px 15px}.dc-toc__top{flex-grow:0;flex-shrink:0;display:flex;align-items:flex-start;padding:10px 0 8px 10px;margin-bottom:12px}@media(max-width: 768px){.dc-toc__top{padding:10px 28px 10px 12px;margin-bottom:0}}.dc-toc__top_scrolled{border-bottom:1px solid var(--g-color-line-generic)}.dc-toc__top_with-extra-header{flex-direction:column;margin-bottom:var(--g-spacing-1)}.dc-toc__top_with-extra-header .dc-toc__top-main{display:flex;align-items:flex-start;width:100%;box-sizing:border-box;padding:var(--g-spacing-2) var(--g-spacing-3);gap:var(--g-spacing-2)}.dc-toc__top_with-extra-header .dc-toc__top-main-link{display:flex;align-items:flex-start;width:100%;box-sizing:border-box;padding:var(--g-spacing-2) var(--g-spacing-3);gap:var(--g-spacing-2);cursor:pointer;color:inherit;-webkit-text-decoration:none;text-decoration:none;border-radius:3px}.dc-toc__top_with-extra-header .dc-toc__top-main-link:hover{background:var(--g-color-base-simple-hover)}.dc-toc__top_with-extra-header .dc-toc__top-main-link_active{background:var(--g-color-base-selection)}.dc-toc__top_with-extra-header .dc-toc__top-header-icon,.dc-toc__top_with-extra-header .dc-toc-label_offset{margin:0;flex-shrink:0}.dc-toc__top_with-extra-header .dc-toc__top-header{display:inline-flex;flex-grow:1;font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.dc-toc__top_with-extra-header .dc-toc__content>.dc-toc__list{padding-right:var(--g-spacing-4)}.dc-toc__top-header-icon{display:flex;margin-left:5px;flex-shrink:0}[dir=rtl] .dc-toc__top-header-icon{/* rtl:begin:ignore */margin-left:5px/* rtl:end:ignore */}.dc-toc__top-header{flex-grow:0;position:relative;font-weight:500;font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.dc-toc__top-header_link{color:inherit;-webkit-text-decoration:none;text-decoration:none;display:flex;align-items:center;border-radius:var(--g-focus-border-radius);color:var(--g-color-text-link);-webkit-text-decoration:none;text-decoration:none;cursor:pointer;border-radius:var(--g-focus-border-radius);outline:none}.utilityfocus .dc-toc__top-header_link:focus{outline:2px solid #ffdb4d}.dc-toc__top-header_link:focus{box-shadow:0 0 0 2px var(--g-color-line-focus);outline:0}.dc-toc__top-header_link:focus:not(:focus-visible){box-shadow:none}.dc-toc__top-header_link:hover,.dc-toc__top-header_link:active{color:var(--g-color-text-link-hover)}.dc-toc__top-header_link:hover{color:var(--g-color-text-primary)}.dc-toc__top-header_link:focus{outline:2px solid var(--g-color-line-focus);outline-offset:0}.dc-toc__top-header_link:focus:not(:focus-visible){outline:0}.dc-toc__bottom{flex-grow:0;flex-shrink:0;display:flex;align-items:center;padding:4px 0 20px 10px}.dc-toc__bottom_scrolled{border-top:1px solid var(--g-color-line-generic)}@media(max-width: 768px){.dc-toc__bottom_scrolled{border-top:0}}.dc-toc__content{--g-scrollbar-width: 6px;position:relative;flex-grow:1;overflow-y:auto;scrollbar-width:thin}@media(max-width: 768px){.dc-toc__content{overflow-y:visible;overflow-y:initial}}@media(min-width: 769px){.dc-toc__content_offset_top{padding-top:12px}}.dc-toc__list{margin:0;padding:0;list-style:none;display:block}.dc-toc__list-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dc-toc__list-item_labeled{margin-top:16px}.dc-toc__list-item_main>*:first-child{color:var(--g-color-text-primary)}.dc-toc__list-item:not(.dc-toc__list-item_opened)>.dc-toc__list{display:none}.dc-toc__list-item:not(.dc-toc__list-item_labeled)>.dc-toc__list{padding-right:20px}[dir=rtl] .dc-toc__list-item:not(.dc-toc__list-item_labeled)>.dc-toc__list{/* rtl:begin:ignore */padding-right:20px/* rtl:end:ignore */}.dc-toc__content>.dc-toc__list{padding-left:21px;padding-bottom:30px}@media(max-width: 768px){.dc-toc__content>.dc-toc__list{padding-left:0}}.dc-toc__content_with-extra-header>.dc-toc__list{padding-left:10px}
|
|
18
18
|
.dc-toc-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dc-toc-item__link{--g-focus-border-radius: 4px;display:block;-webkit-text-decoration:none;text-decoration:none;border-radius:4px;border-radius:var(--g-focus-border-radius)}.dc-toc-item__link:focus{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.dc-toc-item__link:focus:not(:focus-visible){outline:0}.dc-toc-item__wrapper{display:flex;align-items:center;padding:7px 0px 5px}.dc-toc-item__text-block{display:block;position:relative;padding:7px 20px 7px 12px;width:100%}@media(max-width: 768px){.dc-toc-item__text-block{padding:10px 40px 10px 12px}[dir=rtl] .dc-toc-item__text-block{padding:10px 12px 10px 40px}}[dir=rtl] .dc-toc-item__text-block{/* rtl:begin:ignore */padding:7px 20px 7px 12px/* rtl:end:ignore */}.dc-toc-item__text{--g-focus-border-radius: 4px;font-family:inherit;font-size:inherit;font-weight:inherit;box-sizing:border-box;word-break:break-word;background-color:transparent;border:0;text-align:right;text-align:initial;border-radius:4px;border-radius:var(--g-focus-border-radius);color:var(--g-color-text-primary)}@media(max-width: 768px){.dc-toc-item__text{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}}.dc-toc-item__text_active{border-radius:3px;background:var(--g-color-base-selection)}.dc-toc-item__text_labeled{font-weight:500;text-transform:uppercase;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.dc-toc-item__text_deprecated span{width:90%;display:block}.dc-toc-item__text_deprecated svg{position:absolute;top:50%;left:6px;transform:translateY(-50%);opacity:.6}.dc-toc-item__text_clicable{cursor:pointer}.dc-toc-item__text_clicable:hover{border-radius:3px;background:var(--g-color-base-simple-hover)}.dc-toc-item__text:focus{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.dc-toc-item__text:focus:not(:focus-visible){outline:0}.dc-toc-item__icon{position:absolute;right:0}[dir=rtl] .dc-toc-item__icon{/* rtl:begin:ignore */right:0/* rtl:end:ignore */}@media(max-width: 768px){.dc-toc-item__icon{right:12px}[dir=rtl] .dc-toc-item__icon{left:12px}}@media(max-width: 768px){.dc-toc-item__arrow{margin-left:20px}[dir=rtl] .dc-toc-item__arrow{margin-right:20px}}.dc-toc-item__arrow:hover:before{background:none}
|
|
19
19
|
.dc-toggle-arrow{transition:transform .15s;stroke-width:2px}.dc-toggle-arrow_type_horizontal{transform:rotate(0deg)}[dir=rtl] .dc-toggle-arrow_type_horizontal{/* rtl:begin:ignore */transform:rotate(180deg)/* rtl:end:ignore */}.dc-toggle-arrow_type_vertical{transform:rotate(-90deg)}.dc-toggle-arrow_open.dc-toggle-arrow_type_horizontal{transform:rotate(-90deg)}[dir=rtl] .dc-toggle-arrow_open.dc-toggle-arrow_type_horizontal{/* rtl:begin:ignore */transform:rotate(90deg)/* rtl:end:ignore */}.dc-toggle-arrow_open.dc-toggle-arrow_type_vertical{transform:rotate(90deg)}[dir=rtl] .dc-toggle-arrow_open.dc-toggle-arrow_type_vertical{/* rtl:begin:ignore */transform:rotate(90deg)/* rtl:end:ignore */}.dc-toggle-arrow_thin{stroke-width:1px}.dc-toggle-arrow_slow{transition-duration:.3s}
|
|
20
20
|
.dc-controls{display:flex;align-items:center;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.dc-controls__control:not(:last-child),.dc-controls__divider{margin-left:4px}.dc-controls__list{padding:4px 0}.dc-controls__list-icon{font-size:22px}.dc-controls__icon-rotated{transform:rotate(-90deg)}.dc-controls__popup-tooltip{padding:0}@media(min-width: 769px){.dc-controls_vertical{flex-direction:column}.dc-controls_vertical .dc-controls__divider{height:1px;width:16px}.dc-controls_vertical .dc-controls__control:not(:last-child),.dc-controls_vertical .dc-controls__divider{margin-left:0;margin-bottom:4px}}
|
|
@@ -451,10 +451,6 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
451
451
|
.yfm svg {
|
|
452
452
|
height: auto;
|
|
453
453
|
}
|
|
454
|
-
.yfm .katex svg {
|
|
455
|
-
height: auto;
|
|
456
|
-
height: initial;
|
|
457
|
-
}
|
|
458
454
|
.yfm img + small {
|
|
459
455
|
display: block;
|
|
460
456
|
}
|
|
@@ -966,6 +962,10 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
966
962
|
.yfm .yfm-note.yfm-accent-warning {
|
|
967
963
|
background: var(--yfm-color-note-warning-background);
|
|
968
964
|
}
|
|
965
|
+
.yfm .katex svg {
|
|
966
|
+
height: inherit;
|
|
967
|
+
max-height: inherit;
|
|
968
|
+
}
|
|
969
969
|
.yfm table td.cell-align-top-left,
|
|
970
970
|
.yfm table td.cell-align-bottom-left {
|
|
971
971
|
text-align: start;
|
|
@@ -997,11 +997,14 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
997
997
|
.yfm table[sticky-header] thead {
|
|
998
998
|
position: sticky;
|
|
999
999
|
top: 0;
|
|
1000
|
+
z-index: 2;
|
|
1000
1001
|
}
|
|
1002
|
+
.yfm table[sticky-header] thead td,
|
|
1001
1003
|
.yfm table[sticky-header] thead th {
|
|
1002
1004
|
position: relative;
|
|
1003
1005
|
z-index: 0;
|
|
1004
1006
|
}
|
|
1007
|
+
.yfm table[sticky-header] thead td::before,
|
|
1005
1008
|
.yfm table[sticky-header] thead th::before {
|
|
1006
1009
|
content: "";
|
|
1007
1010
|
background: var(--yfm-color-base);
|
|
@@ -1009,6 +1012,7 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
1009
1012
|
inset: 0;
|
|
1010
1013
|
z-index: -2;
|
|
1011
1014
|
}
|
|
1015
|
+
.yfm table[sticky-header] thead td::after,
|
|
1012
1016
|
.yfm table[sticky-header] thead th::after {
|
|
1013
1017
|
content: "";
|
|
1014
1018
|
background: var(--yfm-color-table-row-background);
|
|
@@ -1016,6 +1020,39 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
1016
1020
|
inset: 0;
|
|
1017
1021
|
z-index: -1;
|
|
1018
1022
|
}
|
|
1023
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child,
|
|
1024
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child {
|
|
1025
|
+
position: sticky;
|
|
1026
|
+
top: 0;
|
|
1027
|
+
z-index: 2;
|
|
1028
|
+
}
|
|
1029
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child td,
|
|
1030
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child th,
|
|
1031
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child td,
|
|
1032
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child th {
|
|
1033
|
+
position: relative;
|
|
1034
|
+
z-index: 0;
|
|
1035
|
+
}
|
|
1036
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child td::before,
|
|
1037
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child th::before,
|
|
1038
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child td::before,
|
|
1039
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child th::before {
|
|
1040
|
+
content: "";
|
|
1041
|
+
background: var(--yfm-color-base);
|
|
1042
|
+
position: absolute;
|
|
1043
|
+
inset: 0;
|
|
1044
|
+
z-index: -2;
|
|
1045
|
+
}
|
|
1046
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child td::after,
|
|
1047
|
+
.yfm table[sticky-header]:not(:has(thead)) tbody > tr:first-child th::after,
|
|
1048
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child td::after,
|
|
1049
|
+
.yfm table[sticky-header]:not(:has(thead)) > tr:first-child th::after {
|
|
1050
|
+
content: "";
|
|
1051
|
+
background: var(--yfm-color-table-row-background);
|
|
1052
|
+
position: absolute;
|
|
1053
|
+
inset: 0;
|
|
1054
|
+
z-index: -1;
|
|
1055
|
+
}
|
|
1019
1056
|
.yfm-term_title {
|
|
1020
1057
|
color: var(--yfm-color-term-title);
|
|
1021
1058
|
cursor: pointer;
|
package/build/server/vendor.js
CHANGED
|
@@ -140007,6 +140007,7 @@ var SubNavigation = (0,react.memo)(
|
|
|
140007
140007
|
hideMiniToc,
|
|
140008
140008
|
hideBurger,
|
|
140009
140009
|
hideTocHeader,
|
|
140010
|
+
tocTitleIcon,
|
|
140010
140011
|
onMiniTocItemClick
|
|
140011
140012
|
}) => {
|
|
140012
140013
|
var _a;
|
|
@@ -140044,6 +140045,7 @@ var SubNavigation = (0,react.memo)(
|
|
|
140044
140045
|
!isTocHidden && /* @__PURE__ */ react.createElement("div", { className: SubNavigation_b("toc") }, /* @__PURE__ */ react.createElement(
|
|
140045
140046
|
Toc/* default */.A,
|
|
140046
140047
|
SubNavigation_spreadProps(SubNavigation_spreadValues({}, toc), {
|
|
140048
|
+
tocTitleIcon,
|
|
140047
140049
|
router,
|
|
140048
140050
|
headerHeight,
|
|
140049
140051
|
hideTocHeader
|
|
@@ -141649,6 +141651,7 @@ var DocPage = class extends react.Component {
|
|
|
141649
141651
|
{
|
|
141650
141652
|
router,
|
|
141651
141653
|
toc,
|
|
141654
|
+
tocTitleIcon,
|
|
141652
141655
|
keyDOM: this.state.keyDOM,
|
|
141653
141656
|
pageTitle: title,
|
|
141654
141657
|
headings,
|
|
@@ -141823,10 +141826,17 @@ var DocPage = class extends react.Component {
|
|
|
141823
141826
|
);
|
|
141824
141827
|
}
|
|
141825
141828
|
renderFeedback() {
|
|
141826
|
-
const {
|
|
141829
|
+
const {
|
|
141830
|
+
singlePage,
|
|
141831
|
+
isLiked,
|
|
141832
|
+
isDisliked,
|
|
141833
|
+
onSendFeedback,
|
|
141834
|
+
hideFeedback,
|
|
141835
|
+
hideFeedbackControls
|
|
141836
|
+
} = this.props;
|
|
141827
141837
|
const { isHidden } = this.context;
|
|
141828
141838
|
const isFeedbackHidden = isHidden("feedback");
|
|
141829
|
-
if (isFeedbackHidden || singlePage || hideFeedbackControls || !onSendFeedback) {
|
|
141839
|
+
if (hideFeedback || isFeedbackHidden || singlePage || hideFeedbackControls || !onSendFeedback) {
|
|
141830
141840
|
return null;
|
|
141831
141841
|
}
|
|
141832
141842
|
return /* @__PURE__ */ react.createElement("div", { className: DocPage_b("feedback") }, /* @__PURE__ */ react.createElement(
|
|
@@ -168176,9 +168186,19 @@ var Toc = class extends react.Component {
|
|
|
168176
168186
|
}
|
|
168177
168187
|
}
|
|
168178
168188
|
render() {
|
|
168179
|
-
const { items, hideTocHeader } = this.props;
|
|
168189
|
+
const { items, hideTocHeader, extraHeader } = this.props;
|
|
168180
168190
|
const content = items ? this.renderList(items) : this.renderEmpty("");
|
|
168181
|
-
return /* @__PURE__ */ react.createElement("nav", { className: Toc_b(), ref: this.rootRef }, this.renderTop(), /* @__PURE__ */ react.createElement(
|
|
168191
|
+
return /* @__PURE__ */ react.createElement("nav", { className: Toc_b(), ref: this.rootRef }, this.renderTop(), /* @__PURE__ */ react.createElement(
|
|
168192
|
+
"div",
|
|
168193
|
+
{
|
|
168194
|
+
className: Toc_b("content", {
|
|
168195
|
+
offset_top: hideTocHeader,
|
|
168196
|
+
"with-extra-header": Boolean(extraHeader)
|
|
168197
|
+
}),
|
|
168198
|
+
ref: this.contentRef
|
|
168199
|
+
},
|
|
168200
|
+
content
|
|
168201
|
+
), this.renderBottom());
|
|
168182
168202
|
}
|
|
168183
168203
|
computeState(prevState) {
|
|
168184
168204
|
const { router } = this.props;
|
|
@@ -168198,13 +168218,31 @@ var Toc = class extends react.Component {
|
|
|
168198
168218
|
renderEmpty(text) {
|
|
168199
168219
|
return /* @__PURE__ */ react.createElement("div", { className: Toc_b("empty") }, text);
|
|
168200
168220
|
}
|
|
168201
|
-
|
|
168202
|
-
const {
|
|
168221
|
+
renderTopMainContent() {
|
|
168222
|
+
const { tocTitleIcon, title, label } = this.props;
|
|
168223
|
+
const topHeader = /* @__PURE__ */ react.createElement("div", { className: Toc_b("top-header") }, /* @__PURE__ */ react.createElement(HTML/* HTML */.g, null, title));
|
|
168224
|
+
return /* @__PURE__ */ react.createElement(react.Fragment, null, tocTitleIcon && /* @__PURE__ */ react.createElement("div", { className: Toc_b("top-header-icon"), "aria-hidden": "true" }, tocTitleIcon), topHeader, label && /* @__PURE__ */ react.createElement(TocLabel_default, { label }));
|
|
168225
|
+
}
|
|
168226
|
+
renderTopWithExtra() {
|
|
168227
|
+
const { router, href, singlePage, extraHeader } = this.props;
|
|
168228
|
+
const { contentScrolled } = this.state;
|
|
168229
|
+
const isActive = href ? (0,utils/* isActiveItem */.WC)(router, href, singlePage) : false;
|
|
168230
|
+
const TopMainComponent = href ? "a" : "div";
|
|
168231
|
+
const topMainProps = href ? { className: Toc_b("top-main-link", { active: isActive }) } : { className: Toc_b("top-main") };
|
|
168232
|
+
return /* @__PURE__ */ react.createElement(
|
|
168233
|
+
"div",
|
|
168234
|
+
{
|
|
168235
|
+
className: Toc_b("top", { scrolled: contentScrolled, "with-extra-header": true }),
|
|
168236
|
+
id: this.tocTopId
|
|
168237
|
+
},
|
|
168238
|
+
extraHeader,
|
|
168239
|
+
/* @__PURE__ */ react.createElement(TopMainComponent, Toc_spreadValues({}, topMainProps), this.renderTopMainContent())
|
|
168240
|
+
);
|
|
168241
|
+
}
|
|
168242
|
+
renderTopDefault() {
|
|
168243
|
+
const { router, title, href, tocTitleIcon, singlePage, label } = this.props;
|
|
168203
168244
|
const { contentScrolled } = this.state;
|
|
168204
168245
|
let topHeader;
|
|
168205
|
-
if (hideTocHeader) {
|
|
168206
|
-
return null;
|
|
168207
|
-
}
|
|
168208
168246
|
if (href) {
|
|
168209
168247
|
const active = (0,utils/* isActiveItem */.WC)(router, href, singlePage);
|
|
168210
168248
|
topHeader = /* @__PURE__ */ react.createElement(
|
|
@@ -168219,7 +168257,14 @@ var Toc = class extends react.Component {
|
|
|
168219
168257
|
} else {
|
|
168220
168258
|
topHeader = /* @__PURE__ */ react.createElement("div", { className: Toc_b("top-header") }, /* @__PURE__ */ react.createElement(HTML/* HTML */.g, null, title));
|
|
168221
168259
|
}
|
|
168222
|
-
return /* @__PURE__ */ react.createElement("div", { className: Toc_b("top", { scrolled: contentScrolled }), id: this.tocTopId }, tocTitleIcon
|
|
168260
|
+
return /* @__PURE__ */ react.createElement("div", { className: Toc_b("top", { scrolled: contentScrolled }), id: this.tocTopId }, tocTitleIcon && /* @__PURE__ */ react.createElement("div", { className: Toc_b("top-header-icon"), "aria-hidden": "true" }, tocTitleIcon), topHeader, label && /* @__PURE__ */ react.createElement(TocLabel_default, { label }));
|
|
168261
|
+
}
|
|
168262
|
+
renderTop() {
|
|
168263
|
+
const { hideTocHeader, extraHeader } = this.props;
|
|
168264
|
+
if (hideTocHeader) {
|
|
168265
|
+
return null;
|
|
168266
|
+
}
|
|
168267
|
+
return extraHeader ? this.renderTopWithExtra() : this.renderTopDefault();
|
|
168223
168268
|
}
|
|
168224
168269
|
renderBottom() {
|
|
168225
168270
|
const { singlePage, onChangeSinglePage, pdfLink } = this.props;
|