Template:Background: Difference between revisions
Jump to navigation
Jump to search
(!! BUG !! A pretty half-assed fix that will definitely cause other problems. Due to how high the gradient was before, it would cause the page title to appear darker than it was supposed to. This could be seen on basically any page using {{background}}.) |
m (Like I said it would, the last edit caused some bad stuff. This fixes a very major and obvious one problem. Like oh my god the pages looked so bad I don't know how I didn't immediately notice this) |
||
Line 1: | Line 1: | ||
{{Doc}} | {{Doc}} | ||
<includeonly><onlyinclude><div style="width:calc(100% + 48px); height:calc(100% + | <includeonly><onlyinclude><div style="width:calc(100% + 48px); height:calc(100% + 22px); background-color:{{{bgcolor|transparent}}}; opacity:{{{opacity|0.05}}}; overflow:hidden; pointer-events:none; user-select:none; position:absolute; z-index:-1; left:-24px; top:{{{top|2px}}}"> | ||
<div style="background:linear-gradient(180deg, rgb(38,38,38) 0%, rgba(38,38,38,0) 100%); width:100%; height:{{{gradient-height|150px}}}; position:absolute; z-index:1"></div> | <div style="background:linear-gradient(180deg, rgb(38,38,38) 0%, rgba(38,38,38,0) 100%); width:100%; height:{{{gradient-height|150px}}}; position:absolute; z-index:1"></div> | ||
<div style="width:100%; display:flex; justify-content:center; position:absolute; z-index:0"><!-- | <div style="width:100%; display:flex; justify-content:center; position:absolute; z-index:0"><!-- |
Revision as of 17:57, 1 January 2024
The above documentation is transcluded from Template:Background/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.