Files
Archive/bb-evolved/registry/dist/components/style/scrollbar.js
T
2026-04-02 21:09:45 +02:00

12 lines
5.2 KiB
JavaScript

!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["style/scrollbar"]=r():t["style/scrollbar"]=r()}(globalThis,(()=>(()=>{var t,r,n={21:(t,r,n)=>{var e=n(904),o=n(955)(e);o.push([t.id,"html ::-webkit-scrollbar {\n width: 5px !important;\n height: 5px !important;\n}\nhtml ::-webkit-scrollbar-corner,\nhtml ::-webkit-scrollbar-track {\n background: transparent !important;\n}\nhtml ::-webkit-resizer,\nhtml ::-webkit-scrollbar-thumb {\n background: #aaa;\n border-radius: 3px;\n}\nhtml ::-webkit-scrollbar-thumb:hover {\n background: #888;\n}\nhtml,\nhtml * {\n scrollbar-color: #aaa transparent;\n scrollbar-width: thin !important;\n}","",{version:3,sources:["webpack://./registry/lib/components/style/scrollbar/scrollbar.scss"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;AACA;;EAEE,kCAAkC;AACpC;AACA;;EAEE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,iCAAiC;EACjC,gCAAgC;AAClC",sourcesContent:["html ::-webkit-scrollbar {\n width: 5px !important;\n height: 5px !important;\n}\nhtml ::-webkit-scrollbar-corner,\nhtml ::-webkit-scrollbar-track {\n background: transparent !important;\n}\nhtml ::-webkit-resizer,\nhtml ::-webkit-scrollbar-thumb {\n background: #aaa;\n border-radius: 3px;\n}\nhtml ::-webkit-scrollbar-thumb:hover {\n background: #888;\n}\nhtml,\nhtml * {\n scrollbar-color: #aaa transparent;\n scrollbar-width: thin !important;\n}"],sourceRoot:""}]),t.exports=o},955:t=>{"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var r=[];return r.toString=function(){return this.map((function(r){var n=t(r);return r[2]?"@media ".concat(r[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
r.i=function(t,n,e){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var o={};if(e)for(var a=0;a<this.length;a++){
// eslint-disable-next-line prefer-destructuring
var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);e&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),r.push(l))}},r}},904:t=>{"use strict";function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var e,o,a=[],i=!0,c=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(a.push(e.value),!r||a.length!==r);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return n(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}t.exports=function(t){var n=r(t,4),e=n[1],o=n[3];if(!o)return e;if("function"==typeof btoa){
// eslint-disable-next-line no-undef
var a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),c="/*# ".concat(i," */"),l=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[e].concat(l).concat([c]).join("\n")}return[e].join("\n")}},871:(t,r,n)=>{var e=n(21);e&&e.__esModule&&(e=e.default),t.exports="string"==typeof e?e:e.toString()}},e={};function o(t){var r=e[t];if(void 0!==r)return r.exports;var a=e[t]={id:t,exports:{}};return n[t](a,a.exports,o),a.exports}r=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(n,e){if(1&e&&(n=this(n)),8&e)return n;if("object"==typeof n&&n){if(4&e&&n.__esModule)return n;if(16&e&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};t=t||[null,r({}),r([]),r(r)];for(var c=2&e&&n;"object"==typeof c&&!~t.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,o.d(a,i),a},o.d=(t,r)=>{for(var n in r)o.o(r,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.d(a,{component:()=>t});const t=(0,coreApis.componentApis.define.defineComponentMetadata)({name:"elegantScrollbar",entry:none,displayName:"使用细滚动条",description:"使用浏览器的滚动条风格替代系统的滚动条, 不过 macOS 系统滚动条比浏览器做得好一些, 因此不建议 macOS 使用此功能.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"elegant-scrollbar",style:()=>Promise.resolve().then(o.t.bind(o,871,23))}],commitHash:"67168e9c79449a0e28f1488f4bc7a8972097346a",coreVersion:"2.10.7"})})(),a=a.component})()));
//# sourceMappingURL=https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/style/scrollbar.js.map