模板:Block
出自Meshal Lite
第1行: | 第1行: | ||
− | <includeonly>{{#vardefine: contentTextColor|{{#switch: {{{preset|rule}}} | + | <includeonly>{{#vardefine: indent|{{{indent|0}}}||0|{{{indent|0}}}}}{{#vardefine: contentTextColor|{{#switch: {{{preset|rule}}} |
|rule=inherit | |rule=inherit | ||
|info=inherit | |info=inherit | ||
第27行: | 第27行: | ||
|cmpgntip=rgb(82,83,136) | |cmpgntip=rgb(82,83,136) | ||
|op=rgb(146,116,112) | |op=rgb(146,116,112) | ||
− | |#default=rgb(116,125,130)}}}}<div class="block" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{headerBgColor |{{#var: headerBgColor}}}}};"><div class="blockTitle" style="background-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; color: {{{headerTextColor|{{#var: headerTextColor}}}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}</div> | + | |#default=rgb(116,125,130)}}}}<div class="block" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; width: calc(100% - {{#var:indent}}em); margin-left: {{#var:indent}}em;"><div class="blockTitle" style="background-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; color: {{{headerTextColor|{{#var: headerTextColor}}}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}</div> |
<div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> | <div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> | ||
{{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]] | {{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]] | ||
第71行: | 第71行: | ||
{{block|contentStyle| | {{block|contentStyle| | ||
正文区追加的css样式,可自定义 | 正文区追加的css样式,可自定义 | ||
+ | }} | ||
+ | |||
+ | {{block|indent| | ||
+ | 这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。 | ||
+ | *默认为0 | ||
}} | }} | ||