|
|
| 第1行: |
第1行: |
| <includeonly> | | <includeonly><div style="display:inline-block;margin-right:8px;vertical-align:middle;"><div style="width:16px;height:16px;background-color:{{{1|#000000}}};border:1px solid #ccc;display:inline-block;margin-right:5px;"></div><code>{{{1|#000000}}}</code></div></includeonly> |
| <div style=" | |
| display: inline-flex;
| |
| align-items: center;
| |
| margin: 2px 6px 2px 0;
| |
| padding: 3px 8px;
| |
| background-color: #f8f9fa;
| |
| border: 1px solid #eaecf0;
| |
| border-radius: 4px;
| |
| font-family: monospace;
| |
| font-size: 13px;
| |
| vertical-align: middle;
| |
| line-height: 1.4;
| |
| "> | |
| <!-- 颜色方块 - 固定16px大小 -->
| |
| <div style="
| |
| width: 16px;
| |
| height: 16px;
| |
| background-color: {{#if: {{{1|}}} | {{{1}}} | #ccc }};
| |
| border: 1px solid {{#ifexpr:
| |
| {{#ifeq: {{{1|}}} | #FFFFFF | true |
| |
| {{#ifeq: {{{1|}}} | #FFF | true |
| |
| {{#ifeq: {{{1|}}} | #ffffff | true |
| |
| {{#ifeq: {{{1|}}} | #fff | true | false }}}}}
| |
| | #999
| |
| | #ccc
| |
| }};
| |
| border-radius: 3px;
| |
| margin-right: 8px;
| |
| box-shadow: 0 1px 2px rgba(0,0,0,0.1);
| |
| flex-shrink: 0;
| |
| " title="颜色: {{#if: {{{1|}}} | {{{1}}} | 未指定 }}"></div>
| |
|
| |
| <!-- 颜色代码 -->
| |
| <code style="
| |
| color: #202122;
| |
| font-weight: 500;
| |
| white-space: nowrap;
| |
| ">{{#if: {{{1|}}} | {{{1}}} | <span style="color: #72777d;">未指定颜色</span> }}</code>
| |
| </div> | |
| </includeonly> | |