Module:NavboxMobile: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 227: | Line 227: | ||
:cssText(args.basestyle) | :cssText(args.basestyle) | ||
:cssText(args.titlestyle) | :cssText(args.titlestyle) | ||
-- Remove position: relative | |||
-- Add the navbar, float it to the right | |||
-- Add the navbar, | |||
if has_navbar() then | if has_navbar() then | ||
titleCell | titleCell | ||
:tag('div') | :tag('div') | ||
:addClass('navboxMobile-navbar') | :addClass('navboxMobile-navbar') | ||
:css(' | :css('float', 'right') | ||
:css('margin-left', '0.5em') | |||
:css(' | |||
:wikitext(navbar{ | :wikitext(navbar{ | ||
args.name, | args.name, | ||
Line 250: | Line 242: | ||
}) | }) | ||
end | end | ||
-- Add the title content, centered | |||
titleCell | |||
:tag('div') | |||
:css('margin', '0') | |||
:css('text-align', 'center') | |||
:wikitext(addNewline(args.title)) | |||
end | end | ||