From 0e1d57319e96402cfc2106aca11d568822c2edc9 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 21 Sep 2020 16:19:06 +0300 Subject: [PATCH] Fixed scrollpanel demo --- src/views/scrollpanel/ScrollPanelDemo.vue | 56 ++++++++++------------- src/views/scrollpanel/ScrollPanelDoc.vue | 54 +++++++++++----------- 2 files changed, 52 insertions(+), 58 deletions(-) diff --git a/src/views/scrollpanel/ScrollPanelDemo.vue b/src/views/scrollpanel/ScrollPanelDemo.vue index 60a7079fd..eea622a72 100644 --- a/src/views/scrollpanel/ScrollPanelDemo.vue +++ b/src/views/scrollpanel/ScrollPanelDemo.vue @@ -10,7 +10,7 @@
-
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. @@ -27,7 +27,7 @@

-
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. @@ -44,7 +44,7 @@

-
+

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; margin: 0; } +} - &.custombar1 { - .p-scrollpanel-wrapper { - border-right: 9px solid var(--layer-1); - } - - .p-scrollpanel-bar { - background-color: var(--primary-color); - opacity: 1; - transition: background-color .2s; - - &:hover { - background-color: #007ad9; - } - } +::v-deep(.custombar1) { + .p-scrollpanel-wrapper { + border-right: 9px solid var(--surface-b); } - &.custombar2 { - .p-scrollpanel-wrapper { - border-right: 9px solid var(--layer-1); - border-bottom: 9px solid var(--layer-1); - } + .p-scrollpanel-bar { + background-color: var(--primary-color); + opacity: 1; + transition: background-color .2s; - .p-scrollpanel-bar { - background-color: var(--layer-2); - border-radius: 0; - opacity: 1; - transition: background-color .2s; + &:hover { + background-color: #007ad9; } } } - - \ No newline at end of file diff --git a/src/views/scrollpanel/ScrollPanelDoc.vue b/src/views/scrollpanel/ScrollPanelDoc.vue index 2ae48264b..c93857204 100644 --- a/src/views/scrollpanel/ScrollPanelDoc.vue +++ b/src/views/scrollpanel/ScrollPanelDoc.vue @@ -93,7 +93,7 @@ import ScrollPanel from 'primevue/scrollpanel';