Template:GRX: Difference between revisions

From LPedia
Jump to navigation Jump to search
(adding a gratuitous item at the end; the only thing I can think of...)
(Applying Cool Gray 1; fixed CSS3 problem with Waterfox; tested at least most of the syntaces individually in the sandbox)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
background:{{{legacy|#EFEFEF}}}; background-color:{{{legacy|#EFEFEF}}}; background: -moz-linear-gradient(top, {{{topcolor|#DFDFDF}}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -webkit-gradient(linear, left top, left bottom, color-stop(6%,{{{topcolor|#DFDFDF}}}), color-stop(88%,{{{botcolor|#FFFFFF}}}));  background: -webkit-linear-gradient(top, {{{topcolor|#DFDFDF}}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -o-linear-gradient(top, {{{topcolor|#DFDFDF}}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -ms-linear-gradient(top, {{{topcolor|#DFDFDF}}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: linear-gradient(top, {{{topcolor|#DFDFDF}}} 6%, {{{botcolor|#FFFFFF}}} 88%); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='{{{topcolor|#FFFFFF}}}', endColorstr='{{{botcolor|#EFEFEF}}}'); zoom:1; *display: block; nop:1
<includeonly>background:{{{legacy|{{CG1C}} }}}; background-color:{{{legacy|#EFEFEF}}}; background: -moz-linear-gradient(top, {{{topcolor|{{CG1C}} }}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -webkit-gradient(linear, left top, left bottom, color-stop(6%,{{{topcolor|{{CG1C}}}}} ), color-stop(88%,{{{botcolor|#FFFFFF}}}));  background: -webkit-linear-gradient(top, {{{topcolor|{{CG1C}} }}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -o-linear-gradient(top, {{{topcolor|{{CG1C}} }}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: -ms-linear-gradient(top, {{{topcolor|{{CG1C}} }}} 6%, {{{botcolor|#FFFFFF}}} 88%); background: linear-gradient({{{topcolor|{{CG1C}} }}} 6%, {{{botcolor|#FFFFFF}}} 88%); *display: block;</includeonly><noinclude>
<noinclude>[[Category:Text Templates]]</noinclude>
 
CSS styling template. Place inside a style attribute.
__NOTOC__
==Settings==
*legacy: background color for non-CSS3 browsers
*topcolor: color at the top of the background gradient
*botcolor: color at the bottom of the background gradient
 
==Examples==
===Defaults===
<DIV style="width: 25em; text-align:center; {{GRX}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV>
 
<TT><PRE><DIV style="width: 25em; text-align:center; {{GRX}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV></PRE></TT>
 
===Customized===
<DIV style="width: 25em; text-align:center; {{GRX | legacy=#DFDFDF | topcolor=#BF7F17 | botcolor=#177FBF }}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV>
 
<TT><PRE><DIV style="width: 25em; text-align:center; {{GRX | legacy=#DFDFDF | topcolor=#BF7F17 | botcolor=#177FBF}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV></PRE></TT>
 
[[Category:Text Templates]]</noinclude>

Latest revision as of 22:33, 3 June 2019


CSS styling template. Place inside a style attribute.

Settings

  • legacy: background color for non-CSS3 browsers
  • topcolor: color at the top of the background gradient
  • botcolor: color at the bottom of the background gradient

Examples

Defaults

Taxation
is
Theft

<DIV style="width: 25em; text-align:center; {{GRX}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV>

Customized

Taxation
is
Theft

<DIV style="width: 25em; text-align:center; {{GRX | legacy=#DFDFDF | topcolor=#BF7F17 | botcolor=#177FBF}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV>