틀:반응형 화살표: 두 판 사이의 차이
편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
<includeonly><onlyinclude><div class="" style="display: | <includeonly><onlyinclude>{{#switch: {{{direction|}}} | ||
| | |right|left|#default = <div class="" style=" | ||
| | display: flex; | ||
{{# | align-items: {{#ifeq: {{{tip-direction|}}}|right | ||
|right| | |{{#ifeq: {{{direction|}}}|right|flex-start|flex-end}} | ||
|{{#ifeq: {{{direction|}}}|right|flex-end|flex-start}}}}; | |||
position: relative; | |||
width: {{{tip-length|48}}}px; height: {{#expr:{{{thick|5}}}*2}}px; | width: {{{length|200}}}px; | ||
min-height: {{#expr:{{{tip-length|48}}}*sin({{{tip-deg|30}}}*pi/180)+{{{thick|5}}}}}px; | |||
"><div style=" | |||
border-radius: 2em; | |||
background: black; | |||
width: 100%; height: {{#expr:{{{thick|5}}}*2}}px; | |||
" class="arrow-stick"></div><div style=" | |||
border-radius: 2em; | |||
width: {{{tip-length|48}}}px; | |||
height: {{#expr:{{{thick|5}}}*2}}px; | |||
background: #ff0000; | background: #ff0000; | ||
rotate: {{#expr: | rotate: {{#expr:{{#ifeq: {{{tip-direction|}}}|left|+|-}}{{{deg|30}}}}}deg; | ||
{{# | transform-origin: {{#expr: {{#ifeq: {{{direction|}}}|right|{{{tip-length|48}}} - {{{thick|5}}}|{{{thick|5}}}}}}}px 50%; | ||
}}deg; transform-origin: {{#expr: | {{{direction|}}}: 0; | ||
{{# | " class="arrow-tip"></div></div> | ||
| | |up|down = | ||
| | <div class="" style=" | ||
| | display: flex; | ||
| | justify-content: {{#ifeq: {{{tip-direction|}}}|left | ||
}} | |{{#ifeq: {{{direction|}}}|up|flex-end}} | ||
}}px 50%; {{#switch:{{{direction|}}} | |{{#ifeq: {{{direction|}}}|down|flex-end}}}}; | ||
position: relative; | |||
|up=top | height: {{{length|200}}}px; | ||
|down=bottom | min-width: {{#expr:{{{tip-length|48}}}*sin({{{tip-deg|30}}}*pi/180)+{{{thick|5}}}}}px; | ||
}}: 0;" class="arrow-tip"></div></div></onlyinclude></includeonly> | "><div style=" | ||
border-radius: 2em; | |||
background: black; | |||
width: {{#expr:{{{thick|5}}}*2}}px; height: 100%; | |||
" class="arrow-stick"></div><div style=" | |||
border-radius: 2em; | |||
width: {{{tip-length|48}}}px; | |||
height: {{#expr:{{{thick|5}}}*2}}px; | |||
background: #ff0000; | |||
rotate: {{#expr:{{#ifeq: {{{tip-direction|}}}|left|-|+}} 90 {{#ifeq: {{{tip-direction|}}}|left|+|-}} {{{deg|30}}}}}deg; | |||
transform-origin: {{#expr: {{#ifeq: {{{direction|}}}|up | |||
|{{#ifeq: {{{tip-direction|}}}|left|{{{tip-length|48}}} - {{{thick|5}}}|{{{thick|5}}}}} | |||
|{{#ifeq: {{{tip-direction|}}}|right|{{{tip-length|48}}} - {{{thick|5}}}|{{{thick|5}}}}} | |||
}}}}px 50%; | |||
{{#switch:{{{direction|}}}|up=top|down=bottom}}: 0; | |||
" class="arrow-tip"></div></div>}} | |||
</onlyinclude></includeonly> | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||