MediaWiki:Gadget-DotsSyntaxHighlighter.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 591: Line 591:
         wpTextbox0.style.fontFamily      = wpTextbox1Style.fontFamily;
         wpTextbox0.style.fontFamily      = wpTextbox1Style.fontFamily;
         wpTextbox0.style.fontSize        = wpTextbox1Style.fontSize;
         wpTextbox0.style.fontSize        = wpTextbox1Style.fontSize;
         wpTextbox0.style.lineHeight      = "1.3em";
         wpTextbox0.style.lineHeight      = "normal";
         wpTextbox0.style.marginBottom    = "0";
         wpTextbox0.style.marginBottom    = "0";
         wpTextbox0.style.marginLeft      = "0";
         wpTextbox0.style.marginLeft      = "0";
Line 609: Line 609:
         wpTextbox1.style.color          = syntaxHighlighterConfig.foregroundColor;
         wpTextbox1.style.color          = syntaxHighlighterConfig.foregroundColor;
         wpTextbox1.style.fontSize        = wpTextbox1Style.fontSize; //resolves alignment problems on mobile chrome
         wpTextbox1.style.fontSize        = wpTextbox1Style.fontSize; //resolves alignment problems on mobile chrome
         wpTextbox1.style.lineHeight      = "1.3em";
         wpTextbox1.style.lineHeight      = "normal";
         wpTextbox1.style.marginBottom    = wpTextbox1Style.marginBottom; //lock to pixel value because the top margin was also locked to a pixel value when it was moved to wpTextbox0
         wpTextbox1.style.marginBottom    = wpTextbox1Style.marginBottom; //lock to pixel value because the top margin was also locked to a pixel value when it was moved to wpTextbox0
         wpTextbox1.style.marginLeft      = "0";
         wpTextbox1.style.marginLeft      = "0";