Bilibili-Evolved/registry/dist/components/feeds/fixed-sidebars.js
2021-12-08 05:14:15 +00:00

1 line
3.7 KiB
JavaScript

!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["feeds/fixed-sidebars"]=e():n["feeds/fixed-sidebars"]=e()}(self,(function(){return function(){"use strict";var n,e,t={380:function(n,e,t){t.r(e),e.default='// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require("../../../../../node_modules/css-loader/dist/runtime/api.js");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ".international-header {\\n position: sticky !important;\\n top: 0 !important;\\n}\\n\\n.van-popper-avatar,\\n.van-popper-vip,\\n.van-popper-favorite,\\n.van-popper-history,\\n.van-popper-upload,\\n.popover-channe,\\n.popover-game,\\n.popover-live,\\n.custom-navbar {\\n position: fixed !important;\\n}\\n\\n.sticky-bar {\\n display: none !important;\\n}\\n\\n.left-panel,\\n.right-panel {\\n position: fixed !important;\\n}\\n\\n.home-container {\\n --left-width: 244px;\\n --center-width: 632px;\\n}\\n@media screen and (min-width: 1921px) {\\n .home-container {\\n --left-width: 12.71vw;\\n --center-width: 32.92vw;\\n }\\n}\\n@media screen and (min-width: 2497px) {\\n .home-container {\\n --left-width: 317px;\\n --center-width: 822px;\\n }\\n}\\n\\n.center-panel {\\n margin-left: calc(var(--left-width) + 8px) !important;\\n}\\n\\n.right-panel {\\n margin-left: calc(var(--left-width) + 16px + var(--center-width)) !important;\\n}\\n\\n.live-panel .live-up-list {\\n max-height: calc(100vh - 380px);\\n overflow: auto;\\n overflow: auto;\\n scrollbar-width: none !important;\\n overscroll-behavior: contain;\\n}\\n.live-panel .live-up-list::-webkit-scrollbar {\\n height: 0 !important;\\n width: 0 !important;\\n}\\nbody.feeds-filter-side-block-profile .live-panel .live-up-list {\\n max-height: calc(100vh - 180px);\\n}\\n\\n.adaptive-scroll {\\n min-height: unset !important;\\n}\\n.adaptive-scroll .scroll-content {\\n position: static !important;\\n}", ""]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n'},30:function(n){n.exports=coreApis.componentApis.feeds.disableProfilePopup}},o={};function r(n){var e=o[n];if(void 0!==e)return e.exports;var i=o[n]={exports:{}};return t[n](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};n=n||[null,e({}),e([]),e(e)];for(var p=2&o&&t;"object"==typeof p&&!~n.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((function(n){a[n]=function(){return t[n]}}));return a.default=function(){return t},r.d(i,a),i},r.d=function(n,e){for(var t in e)r.o(e,t)&&!r.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},r.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return n}});const n={name:"fixedFeedsSidebars",instantStyles:[{name:"fixed-sidebars-style",style:()=>Promise.resolve().then(r.bind(r,380)),important:!0}],displayName:"强制固定动态侧栏",description:{"zh-CN":"强制固定动态主页的顶栏和所有侧栏."},tags:[componentsTags.feeds],entry:async()=>{const{disableProfilePopup:n}=await Promise.resolve().then(r.t.bind(r,30,23));n()},urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"0a2ab779aac2af6f58d15cee16533dd18200bb62"}}(),i=i.component}()}));