Move vue views from Card to Sections

This commit is contained in:
Johannes Zellner
2025-01-17 14:02:05 +01:00
parent 7907d05847
commit 5feb5ee015
10 changed files with 84 additions and 112 deletions
+11 -3
View File
@@ -1,12 +1,12 @@
<template>
<div>
<h1 class="section-header">
<h2 class="section-header">
{{ title }}
<slot name="header-buttons"></slot>
</h1>
</h2>
<hr class="section-divider"/>
<div class="section-body">
<slot name="body"></slot>
<slot></slot>
</div>
</div>
</template>
@@ -25,6 +25,8 @@ export default {
<style scoped>
.section-header {
padding-left: 15px;
padding-right: 15px;
}
.section-divider {
@@ -34,6 +36,12 @@ export default {
margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) {
.section-divider {
border-color: #495057;
}
}
.section-body {
position: relative;
margin-bottom: 15px;