Module:Notice: Difference between revisions

Gorasuhl (talk | contribs)
No edit summary
remove align and update the margin to auto
 
Line 48: Line 48:
     local root = mw.html.create('div')
     local root = mw.html.create('div')
         :addClass('notice')
         :addClass('notice')
        :attr('align', align)
         :css('text-align', textAlign)
         :css('text-align', textAlign)
         :css('border-color', p.getStyleForColor(color))
         :css('border-color', p.getStyleForColor(color))
Line 57: Line 56:
         :css('display', "flex")
         :css('display', "flex")
         :css('flex-direction', "row")
         :css('flex-direction', "row")
         :css('margin', ".5em 0")
         :css('margin', "auto")
         :css('padding', ".5em")
         :css('padding', ".5em")