Module:Keyboard: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
mNo edit summary
Line 184: Line 184:
s = s .. ' style="width: ' .. (width - 2) .. 'px; height: ' .. (height - 2) .. 'px; border: 1px solid #7f7f7f;'
s = s .. ' style="width: ' .. (width - 2) .. 'px; height: ' .. (height - 2) .. 'px; border: 1px solid #7f7f7f;'
if positions[i].kind == 'mid' then
if positions[i].kind == 'mid' then
s = s .. ' position: absolute; left: ' .. (positions[i].pos * key_width + key_width - width / 2) .. 'px;'
s = s .. ' position: absolute; z-index: 1; left: ' .. (positions[i].pos * key_width + key_width - width / 2) .. 'px;'
elseif positions[i].kind == 'left' then
elseif positions[i].kind == 'left' then
s = s .. ' position: absolute; left: ' .. (positions[i].pos * key_width) .. 'px;'
s = s .. ' position: absolute; z-index: 1; left: ' .. (positions[i].pos * key_width) .. 'px;'
elseif positions[i].kind == 'right' then
elseif positions[i].kind == 'right' then
s = s .. ' position: absolute; left: ' .. (positions[i].pos * key_width + key_width - width) .. 'px;'
s = s .. ' position: absolute; z-index: 1; left: ' .. (positions[i].pos * key_width + key_width - width) .. 'px;'
end
end
if seps[i] and (positions[i].kind == 'full' or positions[i].kind == 'left') then
if seps[i] and (positions[i].kind == 'full' or positions[i].kind == 'left') then