Module:NavboxMobile: Difference between revisions

No edit summary
No edit summary
Line 223: Line 223:
         :addClass(cfg.class.navbox_list)
         :addClass(cfg.class.navbox_list)
         :addClass(args[cfg.arg.titleclass])
         :addClass(args[cfg.arg.titleclass])
         :attr('data-level', 1) -- Level 1 for the main title
         :attr('data-level', 1)
         :attr('colspan', 2)
         :attr('colspan', 2)
         :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, floated right
     if has_navbar() then
     if has_navbar() then
         titleCell
         titleCell
Line 246: Line 245:
     titleCell
     titleCell
         :tag('div')
         :tag('div')
            :css('margin', '0')
             :css('text-align', 'center')
             :css('text-align', 'center')
             :wikitext(addNewline(args.title))
             :wikitext(addNewline(args.title))
end
end


--
--