Skip to content

Commit fd55b85

Browse files
committed
add backdrop opacity for sidePanel
1 parent 1d75c39 commit fd55b85

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

contentcuration/contentcuration/frontend/administration/pages/Channels/ChannelDetailsSidePanel.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
:value="value"
77
:permanent="true"
88
:temporary="false"
9-
clipped
10-
app
119
v-bind="$attrs"
12-
style="z-index: 10; position: fixed;"
10+
style="z-index: 10; position: fixed; top: 0; right: 0; height: 100vh;"
1311
@input="$emit('input', $event)"
1412
@resize="$emit('resize', $event)"
1513
>

contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogList.vue

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@
9898
</VLayout>
9999
</BottomBar>
100100
</VContainer>
101+
<transition name="backdrop" appear>
102+
<div
103+
v-if="showSidePanel"
104+
class="backdrop"
105+
@click="handleCloseSidePanel"
106+
></div>
107+
</transition>
101108
<ChannelDetailsSidePanel
102109
v-if="showSidePanel"
103110
v-model="showSidePanel"
@@ -296,4 +303,41 @@
296303
margin: 0 auto;
297304
}
298305
306+
.backdrop {
307+
position: fixed;
308+
top: 0;
309+
right: 0;
310+
bottom: 0;
311+
left: 0;
312+
z-index: 9;
313+
width: 100%;
314+
height: 100%;
315+
background: rgba(0, 0, 0, 0.7);
316+
background-attachment: fixed;
317+
}
318+
319+
.backdrop-enter {
320+
opacity: 0;
321+
}
322+
323+
.backdrop-enter-to {
324+
opacity: 1;
325+
}
326+
327+
.backdrop-enter-active {
328+
transition: opacity 0.2s ease-in-out;
329+
}
330+
331+
.backdrop-leave {
332+
opacity: 1;
333+
}
334+
335+
.backdrop-leave-to {
336+
opacity: 0;
337+
}
338+
339+
.backdrop-leave-active {
340+
transition: opacity 0.2s ease-in-out;
341+
}
342+
299343
</style>

0 commit comments

Comments
 (0)