add faded edges to swiper + shadows :3

This commit is contained in:
Freeplay 2023-06-17 00:51:38 -04:00
parent cbefe34e99
commit 1abf71f569
3 changed files with 25 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="jmgmzlwq _block"> <div class="caution _block">
{{ i18n.ts.remoteUserCaution {{ i18n.ts.remoteUserCaution
}}<a }}<a
class="link" class="link"
@ -20,7 +20,7 @@ defineProps<{
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.jmgmzlwq { .caution {
padding: 16px; padding: 16px;
font-size: 90%; font-size: 90%;
background: var(--infoWarnBg); background: var(--infoWarnBg);

View File

@ -354,7 +354,6 @@ onMounted(() => {
> .tl { > .tl {
background: none; background: none;
border-radius: var(--radius); border-radius: var(--radius);
overflow: clip;
} }
} }
</style> </style>

View File

@ -107,6 +107,12 @@ html, body {
padding: 0; padding: 0;
} }
.swiper {
margin-inline: -24px !important;
padding-inline: 24px !important;
mask: linear-gradient(to right, transparent, black 24px calc(100% - 24px), transparent);
-webkit-mask: linear-gradient(to right, transparent, black 24px calc(100% - 24px), transparent);
}
.swiper-slide { .swiper-slide {
min-height: 100vh; min-height: 100vh;
} }
@ -348,7 +354,9 @@ hr {
} }
._block { ._block {
@extend ._panel; background: var(--panel);
border-radius: var(--radius);
overflow: visible;
& + ._block { & + ._block {
margin-top: var(--margin); margin-top: var(--margin);
@ -625,6 +633,20 @@ hr {
outline: none; outline: none;
} }
:not(.noGap):not(._block) > {
.note-container, .cmuxhskf > section, ._gap > ._block, .noGap, .profile, .card {
&:not(.caution)
{
box-shadow: 0 4px 25px rgba(0,0,0,0.04);
border-radius: var(--radius);
overflow: clip;
}
}
}
.widgets ._panel {
box-shadow: none !important;
}
._zoom { ._zoom {
transition-duration: 0.5s, 0.5s; transition-duration: 0.5s, 0.5s;
transition-property: opacity, transform; transition-property: opacity, transform;