2025-05-06 19:00:26 +02:00
|
|
|
<script setup>
|
2025-01-19 12:00:22 +01:00
|
|
|
|
2025-05-06 19:00:26 +02:00
|
|
|
defineProps({
|
|
|
|
|
title: String,
|
|
|
|
|
padding: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: true,
|
|
|
|
|
},
|
2025-05-06 19:10:02 +02:00
|
|
|
disabled: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
2025-05-06 19:00:26 +02:00
|
|
|
});
|
2025-01-19 12:00:22 +01:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-01-17 12:24:48 +01:00
|
|
|
<template>
|
2025-05-06 19:10:02 +02:00
|
|
|
<div class="section" :class="{ 'section-extra-padding': padding }" :disabled="disabled || null">
|
2025-01-17 14:02:05 +01:00
|
|
|
<h2 class="section-header">
|
2025-02-20 10:54:43 +01:00
|
|
|
<slot name="header-title">{{ title }}</slot>
|
2025-01-28 13:55:05 +01:00
|
|
|
<div><slot name="header-buttons"></slot></div>
|
2025-01-17 14:02:05 +01:00
|
|
|
</h2>
|
2025-01-17 12:24:48 +01:00
|
|
|
<hr class="section-divider"/>
|
|
|
|
|
<div class="section-body">
|
2025-01-17 14:02:05 +01:00
|
|
|
<slot></slot>
|
2025-01-17 12:24:48 +01:00
|
|
|
</div>
|
2025-05-06 19:10:02 +02:00
|
|
|
<div class="section-overlay">
|
|
|
|
|
<slot name="overlay"></slot>
|
|
|
|
|
</div>
|
2025-01-17 12:24:48 +01:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-04-11 18:00:20 +02:00
|
|
|
<style>
|
2025-01-17 12:24:48 +01:00
|
|
|
|
2025-02-10 16:11:36 +01:00
|
|
|
.section {
|
2025-04-07 23:04:49 +02:00
|
|
|
margin-bottom: 30px;
|
2025-05-06 19:10:02 +02:00
|
|
|
position: relative;
|
2025-02-10 16:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
2025-01-17 12:24:48 +01:00
|
|
|
.section-header {
|
2025-01-17 15:12:26 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 5px;
|
2025-01-17 14:02:05 +01:00
|
|
|
padding-left: 15px;
|
|
|
|
|
padding-right: 15px;
|
2025-03-25 16:11:59 +01:00
|
|
|
padding-top: 25px;
|
2025-03-25 19:11:40 +01:00
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-header > div {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 6px;
|
2025-03-26 16:04:58 +01:00
|
|
|
flex-wrap: wrap;
|
2025-01-17 12:24:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-divider {
|
|
|
|
|
border-color: #d8dee4;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-17 14:02:05 +01:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
.section-divider {
|
|
|
|
|
border-color: #495057;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-17 12:24:48 +01:00
|
|
|
.section-body {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
padding: 10px 15px;
|
2025-03-25 16:11:59 +01:00
|
|
|
padding-bottom: 25px;
|
2025-01-17 12:24:48 +01:00
|
|
|
}
|
|
|
|
|
|
2025-03-17 22:17:30 +01:00
|
|
|
.section-extra-padding .section-body {
|
2025-03-25 16:11:59 +01:00
|
|
|
padding-left: 25px;
|
|
|
|
|
padding-right: 25px;
|
2025-03-17 22:17:30 +01:00
|
|
|
}
|
|
|
|
|
|
2025-05-06 19:10:02 +02:00
|
|
|
.section-overlay {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section[disabled] .section-overlay {
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2025-05-07 11:14:24 +02:00
|
|
|
transition: all 200ms;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section[disabled] .section-overlay:hover {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
backdrop-filter: blur(1.5px);
|
2025-05-06 19:10:02 +02:00
|
|
|
}
|
|
|
|
|
|
2025-01-17 12:24:48 +01:00
|
|
|
</style>
|