| 1 |
<template> |
| 2 |
<div class="ivyforms-page-section ivyforms-flex ivyforms-flex-1 ivyforms-gap-24"> |
| 3 |
<div |
| 4 |
class="ivyforms-page-section__content" |
| 5 |
:class="{ 'ivyforms-page-section__content__fullscreen': globalState.isFullScreenMode }" |
| 6 |
> |
| 7 |
<slot></slot> |
| 8 |
</div> |
| 9 |
</div> |
| 10 |
</template> |
| 11 |
|
| 12 |
<script setup lang="ts"> |
| 13 |
import { useGlobalState } from '@/stores/useGlobalState.ts' |
| 14 |
const globalState = useGlobalState() |
| 15 |
</script> |
| 16 |
|
| 17 |
<style scoped lang="scss"> |
| 18 |
.ivyforms-page-section { |
| 19 |
border-radius: 12px; |
| 20 |
background: var(--map-ground-level-1-foreground); |
| 21 |
flex-direction: column; |
| 22 |
overflow: hidden; |
| 23 |
position: relative; |
| 24 |
height: 100%; |
| 25 |
/* Shadow/Sheet */ |
| 26 |
box-shadow: |
| 27 |
0 10px 10px -2px rgba(18, 26, 38, 0.05), |
| 28 |
0 4px 3px 0px rgba(18, 26, 38, 0.03); |
| 29 |
|
| 30 |
&__content { |
| 31 |
padding: 20px 0 20px 20px; /* Standard padding */ |
| 32 |
height: calc(100% - 30px); |
| 33 |
|
| 34 |
&__fullscreen { |
| 35 |
height: calc(100% - 30px); |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
</style> |
| 40 |
|