Difference between revisions of "Template:TermDescription"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
(Undo revision 62747 by Caledor92 (talk))
>Caledor92
(testing flex to solve the fragmented middle border issue part 2)
Line 1: Line 1:
 
<noinclude>[[Category:Templates]]</noinclude><includeonly><!--
 
<noinclude>[[Category:Templates]]</noinclude><includeonly><!--
--><div style="width:{{#if: {{{totalwidth|}}}|{{{totalwidth|}}}px|100%}}">
+
--><div style="display:flex;align-items:stretch;justify-content: center;width:{{#if: {{{totalwidth|}}}|{{{totalwidth|}}}px|100%}}">
<div class="dt-term" style="display:inline-block;width:{{#if: {{{leftwidth|}}}|{{{leftwidth|}}}|120px}};text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:middle">{{{1|-}}}</div>
+
<div class="dt-term" style="text-align:right;vertical-align:middle;width:{{#if: {{{leftwidth|}}}|{{{leftwidth|}}}|120px}};padding: 3px 6px 3px 0;border-right:3px #528e52 solid;font-weight:bold">{{{1|-}}}</div>
<div class="dd-description" style="display:inline-block;width:{{#if: {{{rightwidth|}}}|{{{rightwidth|}}}|150px}};text-align:left;padding: 3px 0 3px 6px;border-left:1px #528e52 solid;vertical-align:middle">{{{2|-}}}</div>
+
<div class="dt-description" style="text-align:left;vertical-align:middle;width:{{#if: {{{rightwidth|}}}|{{{rightwidth|}}}|150px}};padding: 3px 0 3px 12px;border-left:0px #528e52 solid">{{{2|-}}}</div>
</div><!--
+
</div></includeonly>
--></includeonly>
 

Revision as of 06:57, 8 November 2019