模板:Cquote:修订间差异
外观
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
| 第3行: | 第3行: | ||
|right=float:right; margin:0.5em 0 0.5em 1em; | |right=float:right; margin:0.5em 0 0.5em 1em; | ||
|#default=margin:0.5em auto; | |#default=margin:0.5em auto; | ||
}} max-width:{{{width|40%}}}; background:#f8f9fa; border-left:2px solid #a2a9b1; border-right:2px solid #a2a9b1; padding: | }} max-width:{{{width|40%}}}; background:#f8f9fa; border-left:2px solid #a2a9b1; border-right:2px solid #a2a9b1; padding:6px 15px; display:flex; flex-direction:column; align-items:center; justify-content:center; {{{style|}}}"> | ||
<div style="font-size:3.5em; line-height: | <!-- 这一行是 Flex 行,保证左引号、正文区、右引号垂直居中 --> | ||
<div style="font-size:3.5em; line-height: | <div style="display:flex; align-items:center; justify-content:center; width:100%;"> | ||
<!-- 左引号(不再浮动,靠 Flex 对齐) --> | |||
<span style="font-size:3.5em; line-height:1; color:#a2a9b1; font-family:'Times New Roman', serif; flex-shrink:0; margin-right:6px;">“</span> | |||
<!-- 正文+作者 的容器(纵向排列) --> | |||
<div style="display:flex; flex-direction:column; align-items:center; justify-content:center; flex:1 1 auto;"> | |||
<!-- 正文(字号参数保留,纵向 padding 大幅缩减) --> | |||
<div style="font-style:italic; font-size:{{{size}}}; text-align:center; padding:2px 0;">{{{1|{{{text|{{{quote|}}}}}}}}}</div> | |||
<!-- 作者(只有填写时才会显示) --> | |||
{{#if:{{{2|{{{author|{{{cite|}}}}}}}}}|<div style="text-align:right; font-style:normal; font-weight:normal; width:100%; margin-top:1px;">— {{{2|{{{author|{{{cite|}}}}}}}}}</div>}} | |||
</div> | |||
<!-- 右引号 --> | |||
<span style="font-size:3.5em; line-height:1; color:#a2a9b1; font-family:'Times New Roman', serif; flex-shrink:0; margin-left:6px;">”</span> | |||
</div> | |||
</div></includeonly> | </div></includeonly> | ||
粤公网安备44030002015967号