feat: reduces header lvl for mdsvex

This commit is contained in:
2025-09-23 15:25:26 +02:00
parent 6b2202d82d
commit 8fa6fff160
4 changed files with 20 additions and 15 deletions

View File

@@ -1,6 +1,9 @@
<script context="module"> <script context="module">
import img from './img.svelte'; import img from './img.svelte';
export { img }; import h1 from './h1.svelte';
import h2 from './h2.svelte';
import h3 from './h3.svelte';
export { img, h1, h2, h3 };
</script> </script>
<script> <script>
@@ -36,7 +39,7 @@
flex-wrap: row; flex-wrap: row;
#height: 5rem; #height: 5rem;
margin-bottom: -12px; margin-bottom: -12px;
#white-space: nowrap; #white-space: nowrap;
} }
.title h1 { .title h1 {
@@ -55,25 +58,24 @@
} }
@media only screen and (max-width: 700px) { @media only screen and (max-width: 700px) {
.title {
margin-bottom: -5.3px;
}
.title { .title h1 {
margin-bottom:-5.3px; display: block;
} width: 100%;
}
.title h1 { .title p {
display: block; width: 100%;
width:100%; }
} }
.title p{
width:100%;
}
}
.blog-text { .blog-text {
border-radius: var(--border-round); border-radius: var(--border-round);
background: var(--rp-moon-surface); background: var(--rp-moon-surface);
box-shadow: 0px 0px 1rem 0px hsl(from var(--rp-moon-base) h s calc(l * 0.85)); box-shadow: 0px 0px 0.5rem 0px hsl(from var(--rp-moon-pine) h calc(s * 0.5) calc(l * 0.25));
padding: var(--d2) var(--d3) var(--d4); padding: var(--d2) var(--d3) var(--d4);
} }
</style> </style>

View File

@@ -0,0 +1 @@
<h2><slot /></h2>

View File

@@ -0,0 +1 @@
<h3><slot /></h3>

View File

@@ -0,0 +1 @@
<h4><slot /></h4>