2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-04-08 15:42:47 +00:00
|
|
|
.p-scrollpanel-content-container {
|
2024-02-19 22:53:42 +00:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-content {
|
|
|
|
height: calc(100% + 18px);
|
|
|
|
width: calc(100% + 18px);
|
|
|
|
padding: 0 18px 18px 0;
|
|
|
|
position: relative;
|
|
|
|
overflow: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
scrollbar-width: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-content::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-bar {
|
|
|
|
position: relative;
|
|
|
|
border-radius: 3px;
|
|
|
|
z-index: 2;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0;
|
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: outline-color ${dt('transition.duration')};
|
|
|
|
background: ${dt('scrollpanel.bar.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border: 0 none;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: outline-color ${dt('transition.duration')}, opacity ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-bar:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-bar-y {
|
|
|
|
width: 9px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-bar-x {
|
|
|
|
height: 9px;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-hidden {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel:hover .p-scrollpanel-bar,
|
|
|
|
.p-scrollpanel:active .p-scrollpanel-bar {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-scrollpanel-grabbed {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|