UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

2 lines (1 loc) 4.77 kB
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=e(require("primevue/base/style")).default.extend({name:"sidebar",css:"\n@layer primevue {\n .p-sidebar-mask {\n display: none;\n pointer-events: none;\n background-color: transparent;\n transition-property: background-color;\n }\n\n .p-sidebar-mask.p-component-overlay {\n pointer-events: auto;\n }\n\n .p-sidebar-visible {\n display: flex;\n }\n\n .p-sidebar {\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n transform: translate3d(0px, 0px, 0px);\n position: relative;\n transition: transform 0.3s;\n }\n\n .p-sidebar-content {\n overflow-y: auto;\n flex-grow: 1;\n }\n\n .p-sidebar-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n }\n\n .p-sidebar-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n\n .p-sidebar-full .p-sidebar {\n transition: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n max-height: 100%;\n top: 0px !important;\n left: 0px !important;\n }\n\n /* Animation */\n /* Center */\n .p-sidebar-left .p-sidebar-enter-from,\n .p-sidebar-left .p-sidebar-leave-to {\n transform: translateX(-100%);\n }\n .p-sidebar-right .p-sidebar-enter-from,\n .p-sidebar-right .p-sidebar-leave-to {\n transform: translateX(100%);\n }\n .p-sidebar-top .p-sidebar-enter-from,\n .p-sidebar-top .p-sidebar-leave-to {\n transform: translateY(-100%);\n }\n .p-sidebar-bottom .p-sidebar-enter-from,\n .p-sidebar-bottom .p-sidebar-leave-to {\n transform: translateY(100%);\n }\n .p-sidebar-full .p-sidebar-enter-from,\n .p-sidebar-full .p-sidebar-leave-to {\n opacity: 0;\n }\n .p-sidebar-full .p-sidebar-enter-active,\n .p-sidebar-full .p-sidebar-leave-active {\n transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);\n }\n\n /* Size */\n .p-sidebar-left .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n\n .p-sidebar-right .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n\n .p-sidebar-top .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n\n .p-sidebar-bottom .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n\n .p-sidebar-left .p-sidebar-sm,\n .p-sidebar-right .p-sidebar-sm {\n width: 20rem;\n }\n\n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-md {\n width: 40rem;\n }\n\n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-lg {\n width: 60rem;\n }\n\n .p-sidebar-top .p-sidebar-sm,\n .p-sidebar-bottom .p-sidebar-sm {\n height: 10rem;\n }\n\n .p-sidebar-top .p-sidebar-md,\n .p-sidebar-bottom .p-sidebar-md {\n height: 20rem;\n }\n\n .p-sidebar-top .p-sidebar-lg,\n .p-sidebar-bottom .p-sidebar-lg {\n height: 30rem;\n }\n\n .p-sidebar-left .p-sidebar-content,\n .p-sidebar-right .p-sidebar-content,\n .p-sidebar-top .p-sidebar-content,\n .p-sidebar-bottom .p-sidebar-content {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 64em) {\n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-md {\n width: 20rem;\n }\n }\n}\n",classes:{mask:function(e){var n=e.instance,r=e.props,i=["left","right","top","bottom"].find((function(e){return e===r.position}));return["p-sidebar-mask",{"p-component-overlay p-component-overlay-enter":r.modal,"p-sidebar-mask-scrollblocker":r.blockScroll,"p-sidebar-visible":n.containerVisible,"p-sidebar-full":n.fullScreen},i?"p-sidebar-".concat(i):""]},root:function(e){var n=e.instance;return["p-sidebar p-component",{"p-input-filled":"filled"===n.$primevue.config.inputStyle,"p-ripple-disabled":!1===n.$primevue.config.ripple,"p-sidebar-full":n.fullScreen}]},header:"p-sidebar-header",title:"p-sidebar-header-content",closeButton:"p-sidebar-close p-sidebar-icon p-link",closeIcon:"p-sidebar-close-icon",content:"p-sidebar-content"},inlineStyles:{mask:function(e){var n=e.position;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:"left"===n?"flex-start":"right"===n?"flex-end":"center",alignItems:"top"===n?"flex-start":"bottom"===n?"flex-end":"center"}}}});module.exports=n;