aotds-docks/src/routes/export/print/PrintShip/Identification.svelte

54 lines
883 B
Svelte
Raw Normal View History

2023-04-25 18:50:15 +00:00
<div class="details">
<h2>
{#if shipClass}
{shipClass}-class,
{/if}
{shipType}
</h2>
<div class="reqs">
2023-05-03 20:39:49 +00:00
{reqs.cost} <i>paid</i> &nbsp; {reqs.mass} <i>weight</i>
2023-04-25 18:50:15 +00:00
</div>
</div>
2023-05-08 19:20:17 +00:00
<h1>
ship name: <div class="fill" />
</h1>
2023-04-25 18:50:15 +00:00
<script>
export let shipClass;
export let shipType;
2023-05-03 20:39:49 +00:00
export let reqs = { cost: 0, mass: 0 };
2023-04-25 18:50:15 +00:00
</script>
<style>
h1 {
width: 100%;
display: flex;
font-size: var(--font-scale-8);
align-items: baseline;
2023-05-08 19:20:17 +00:00
margin-bottom: 2em;
2023-04-25 18:50:15 +00:00
}
h2 {
font-size: var(--font-scale-7);
flex: 1;
}
.fill {
margin-left: 0.5em;
display: inline-block;
flex: 1;
border-bottom: 1px solid black;
}
.details {
display: flex;
align-items: baseline;
}
.reqs {
display: flex;
align-items: center;
}
2023-05-08 19:20:17 +00:00
.details,
.details :global(*) {
font-size: var(--font-scale-9);
}
2023-04-25 18:50:15 +00:00
</style>