This commit is contained in:
Gerard Burns 2024-04-09 08:38:23 +01:00
parent b0bc5ff64b
commit c30f5f5781
2 changed files with 1 additions and 39 deletions

View File

@ -66,7 +66,7 @@
max-width: 450px;
background-color: var(--background-alt);
display: block;
padding: 20px 16px;
padding: 20px 16px 10px;
border-radius: 5px;
box-sizing: border-box;
}

View File

@ -1,38 +0,0 @@
<script>
export let name;
export let value;
export let pre;
</script>
<div class="property">
{#if pre}
<pre class="pre propertyValue">
{value}
</pre>
{:else}
<span class="propertyName">
{name}
</span>
<span class="propertyDivider">-</span>
<span class="propertyValue">
{value}
</span>
{/if}
</div>
<style>
.propertyDivider {
padding: 4px;
}
.propertyName {
font-style: italic;
}
.pre {
padding: 4px;
border-radius: 3px;
width: 250px;
background-color: black;
}
</style>