Fixed scrollpanel demo
parent
292424bc1f
commit
0e1d57319e
|
@ -10,7 +10,7 @@
|
||||||
<div class="content-section implementation">
|
<div class="content-section implementation">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="p-grid">
|
<div class="p-grid">
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px">
|
<ScrollPanel style="width: 100%; height: 200px">
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</p>
|
</p>
|
||||||
</ScrollPanel>
|
</ScrollPanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px" class="custombar1">
|
<ScrollPanel style="width: 100%; height: 200px" class="custombar1">
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
</p>
|
</p>
|
||||||
</ScrollPanel>
|
</ScrollPanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px" class="custombar2">
|
<ScrollPanel style="width: 100%; height: 200px" class="custombar2">
|
||||||
<p style="width: 600px">
|
<p style="width: 600px">
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -85,41 +85,35 @@ export default {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.custombar1 {
|
::v-deep(.custombar1) {
|
||||||
.p-scrollpanel-wrapper {
|
.p-scrollpanel-wrapper {
|
||||||
border-right: 9px solid var(--layer-1);
|
border-right: 9px solid var(--surface-b);
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrollpanel-bar {
|
|
||||||
background-color: var(--primary-color);
|
|
||||||
opacity: 1;
|
|
||||||
transition: background-color .2s;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #007ad9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.custombar2 {
|
.p-scrollpanel-bar {
|
||||||
.p-scrollpanel-wrapper {
|
background-color: var(--primary-color);
|
||||||
border-right: 9px solid var(--layer-1);
|
opacity: 1;
|
||||||
border-bottom: 9px solid var(--layer-1);
|
transition: background-color .2s;
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrollpanel-bar {
|
&:hover {
|
||||||
background-color: var(--layer-2);
|
background-color: #007ad9;
|
||||||
border-radius: 0;
|
|
||||||
opacity: 1;
|
|
||||||
transition: background-color .2s;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
<style scoped>
|
::v-deep(.custombar2) {
|
||||||
.p-col-12 {
|
.p-scrollpanel-wrapper {
|
||||||
padding: 2rem;
|
border-right: 9px solid var(--surface-b);
|
||||||
|
border-bottom: 9px solid var(--surface-b);
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-scrollpanel-bar {
|
||||||
|
background-color: var(--surface-d);
|
||||||
|
border-radius: 0;
|
||||||
|
opacity: 1;
|
||||||
|
transition: background-color .2s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -93,7 +93,7 @@ import ScrollPanel from 'primevue/scrollpanel';
|
||||||
<CodeHighlight>
|
<CodeHighlight>
|
||||||
<template v-pre>
|
<template v-pre>
|
||||||
<div class="p-grid">
|
<div class="p-grid">
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px">
|
<ScrollPanel style="width: 100%; height: 200px">
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -110,7 +110,7 @@ import ScrollPanel from 'primevue/scrollpanel';
|
||||||
</p>
|
</p>
|
||||||
</ScrollPanel>
|
</ScrollPanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px" class="custombar1">
|
<ScrollPanel style="width: 100%; height: 200px" class="custombar1">
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -127,7 +127,7 @@ import ScrollPanel from 'primevue/scrollpanel';
|
||||||
</p>
|
</p>
|
||||||
</ScrollPanel>
|
</ScrollPanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-col-12 p-md-4">
|
<div class="p-col-12 p-md-4 p-p-5">
|
||||||
<ScrollPanel style="width: 100%; height: 200px" class="custombar2">
|
<ScrollPanel style="width: 100%; height: 200px" class="custombar2">
|
||||||
<p style="width: 600px">
|
<p style="width: 600px">
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||||
|
@ -161,37 +161,37 @@ export default {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.custombar1 {
|
::v-deep(.custombar1) {
|
||||||
.p-scrollpanel-wrapper {
|
.p-scrollpanel-wrapper {
|
||||||
border-right: 9px solid var(--layer-1);
|
border-right: 9px solid var(--surface-b);
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrollpanel-bar {
|
|
||||||
background-color: var(--primary-color);
|
|
||||||
opacity: 1;
|
|
||||||
transition: background-color .2s;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #007ad9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.custombar2 {
|
.p-scrollpanel-bar {
|
||||||
.p-scrollpanel-wrapper {
|
background-color: var(--primary-color);
|
||||||
border-right: 9px solid var(--layer-1);
|
opacity: 1;
|
||||||
border-bottom: 9px solid var(--layer-1);
|
transition: background-color .2s;
|
||||||
}
|
|
||||||
|
|
||||||
.p-scrollpanel-bar {
|
&:hover {
|
||||||
background-color: var(--layer-2);
|
background-color: #007ad9;
|
||||||
border-radius: 0;
|
|
||||||
opacity: 1;
|
|
||||||
transition: background-color .2s;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep(.custombar2) {
|
||||||
|
.p-scrollpanel-wrapper {
|
||||||
|
border-right: 9px solid var(--surface-b);
|
||||||
|
border-bottom: 9px solid var(--surface-b);
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-scrollpanel-bar {
|
||||||
|
background-color: var(--surface-d);
|
||||||
|
border-radius: 0;
|
||||||
|
opacity: 1;
|
||||||
|
transition: background-color .2s;
|
||||||
|
}
|
||||||
|
}
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</TabView>
|
</TabView>
|
||||||
|
|
Loading…
Reference in New Issue