Content deleted Content added
adjust top of photo-panel image |
try stri[ping out the if empty's for photo-panel height |
||
Line 16:
{{#ifeq:{{Str left |{{{label-line|0}}}| 1}}|3| <!-- draw photo-panel -->
<div style="display:inline-block; position: absolute;
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-
left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
width: {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}px;
height:
background-color: #E8E8D6;
outline: 2px solid {{{label-color|blue}}};"></div>{{#ifeq:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=2}}|0||<div style="display:inline-block; position: absolute; <!-- place image inside the photo-panel -->
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-(
{{#ifeq:{{{label-pos|left}}}|left
|left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
|left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}+{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2-(
background-color:transparent; border-radius: 2px;">[[file:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=3}}{{!}}x
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-
left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
width: {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}px;
height:
background-color: transparent; box-shadow: 4px 4px #16591644;
outline: 2px solid {{{label-color|blue}}};"></div> }}{{#ifeq:{{{mark-width|1}}}|0||<div style="display:inline-block; position: absolute;
Line 169:
{{#ifeq:{{{label-pos|}}}|right
| left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+3-( {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2 ) }}px;
| left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+3-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2+(
}} text-align: center;
}} }}
|