Place bottom of info box based on grid instead of absolute
Specify line-height for bottom big elements to avoid ugly overlapping
This commit is contained in:
@@ -200,6 +200,10 @@ article main {
|
|||||||
grid-area: info;
|
grid-area: info;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
display:grid;
|
||||||
|
grid-template-areas:"top"
|
||||||
|
"bottom";
|
||||||
|
grid-template-rows: auto min-content;
|
||||||
}
|
}
|
||||||
article main ol {
|
article main ol {
|
||||||
margin-top: 1mm;
|
margin-top: 1mm;
|
||||||
@@ -214,13 +218,11 @@ article.item main ul {
|
|||||||
}
|
}
|
||||||
article main big{
|
article main big{
|
||||||
font-size: 1.65em;
|
font-size: 1.65em;
|
||||||
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
article main .bottom {
|
article main .bottom {
|
||||||
width: 100%;
|
grid-area: bottom;
|
||||||
position: absolute;
|
|
||||||
line-height: 1.1em;
|
line-height: 1.1em;
|
||||||
bottom: 1mm;
|
|
||||||
left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
center.message {
|
center.message {
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ transform:rotate(${fig.rotate}deg)"
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
<div class="top">
|
||||||
$escape_html($card.description)
|
$escape_html($card.description)
|
||||||
#if($card.steps)
|
#if($card.steps)
|
||||||
<ol>
|
<ol>
|
||||||
@@ -155,6 +156,7 @@ transform:rotate(${fig.rotate}deg)"
|
|||||||
#if($card.effects && $card_is_item)
|
#if($card.effects && $card_is_item)
|
||||||
#effectList($card.effects)
|
#effectList($card.effects)
|
||||||
#end
|
#end
|
||||||
|
</div>
|
||||||
#if($card.flags)
|
#if($card.flags)
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<small>
|
<small>
|
||||||
|
|||||||
Reference in New Issue
Block a user