Template:BgColor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly>
<includeonly><onlyinclude>
<div style="position:fixed; z-index:-100; top:0; left:0; background-color:rgb({{{bg1}}}); width:100vw; height:100vh"></div>
<div style="width:100vw; height:100vh; background-color:rgb({{{bg1}}}); position:fixed; z-index:-100; top:0; left:0"></div>
<div style="position:fixed; z-index:-99; top:0; left:0; background-color:rgb({{{bg2}}}); width:100vw; height:68px"></div>
<div style="width: calc(100% + 224px); height:60px; background-color:rgb({{{bg2}}}); position:absolute; z-index:-99; top:calc(-173px - {{{up|{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|1}}|{{#titleparts:{{FULLPAGENAME}}|1|-1}}|0|9}}}}}px); left:-200px"></div>
<div style="position:static; top:0; left:0; width:100%; height:100%; padding:1em 2em; font-smooth:never; -webkit-font-smoothing:none; font-family:Arial; box-sizing:border-box; background-color:rgb({{{bg3}}}); color:white; {{{bg3style|}}}">{{#if:{{{disabletitle|}}}||<h1>{{{title|{{FULLPAGENAME}}}}}</h1>}}
<div style="width:calc(100% - 30%); border-top:1px solid #525252; position:absolute; top:-65px; left:-24px"></div>
</includeonly></onlyinclude>{{doc|nolang=1}}
<div style="width:100%; height:100%; background-color:rgb({{{bg3}}}); box-sizing:border-box; font-smooth:never; -webkit-font-smoothing:none; font-family:Arial; color:white; position:static; padding:1em 2em; top:0; left:0; {{{bg3style|}}}">{{#if:{{{disabletitle|}}}||<h1>{{{title|{{FULLPAGENAME}}}}}</h1>}}
</onlyinclude></includeonly>{{doc}}

Revision as of 02:37, 12 February 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Changes the page style.

Created by user Kpabik for use in his profile.

Parameters

  • {{{bodycolor}}} - body background color
  • {{{headercolor}}} - header background color
  • {{{sidebarcolor}}} - sidebar background color
  • {{{contentcolor}}} - content background color