Difference between revisions of "Template:SBX"

From Dissent
Jump to navigation Jump to search
(non-gradient rounded box with shadow)
 
(Listing defaults in documentation)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
border:1px {{{border|#3F3F3F}}} solid; background:{{{background|#FFF3BE}}}; background-color:{{{background|#FFF3BE}}}; -moz-border-radius: {{{radius|1em}}}; -khtml-border-radius:  {{{radius|1em}}}; -opera-border-radius:  {{{radius|1em}}}; border-radius: {{{radius|1em}}}; -webkit-border-radius: {{{webkit|1em}}}; -webkit-box-shadow: 0.5em 0.5em 1em #000000; -moz-box-shadow: 0.5em 0.5em 1em #000000; box-shadow: 0.5em 0.5em 1em #000000
+
<includeonly>border:1px {{{border|#53565A}}} solid; background-color:{{{background|#FFD100}}}; background:{{{background|#FFD100}}}; -moz-border-radius: {{{radius|1em}}}; -khtml-border-radius:  {{{radius|1em}}}; -opera-border-radius:  {{{radius|1em}}}; border-radius: {{{radius|1em}}}; -webkit-border-radius: {{{radius|1em}}}; -webkit-box-shadow: 0.5em 0.5em 1em #000000; -moz-box-shadow: 0.5em 0.5em 1em #000000; box-shadow: 0.5em 0.5em 1em #000000</includeonly><noinclude>
<noinclude>[[Category:Text Templates]]</noinclude>
+
 
 +
CSS styling template.  Place inside a style attribute.
 +
 
 +
Draws a solid-colored no-gradient rounded box with shadow.
 +
 
 +
__NOTOC__
 +
==Settings==
 +
*border: border color (Default: Cool Gray 11C)
 +
*background: solid background color (Default: 109C)
 +
*radius: radius of corners (Default: 1 em)
 +
 
 +
 
 +
==Examples==
 +
===Defaults===
 +
<DIV style="width: 25em; text-align:center; {{SBX}}">
 +
'''Taxation<BR/>is<BR/>Theft'''
 +
</DIV>
 +
 
 +
<TT><PRE><DIV style="width: 25em; text-align:center; {{SBX}}">
 +
'''Taxation<BR/>is<BR/>Theft'''
 +
</DIV></PRE></TT>
 +
 
 +
===Customized===
 +
<DIV style="width: 25em; text-align:center; {{SBX | border=#FF007F | background=#88DBDF | radius=2em}}">
 +
'''Taxation<BR/>is<BR/>Theft'''
 +
</DIV>
 +
 
 +
<TT><PRE><DIV style="width: 25em; text-align:center; {{SBX | border=#FF007F | background=#88DBDF | radius=2em}}">
 +
'''Taxation<BR/>is<BR/>Theft'''
 +
</DIV></PRE></TT>
 +
 
 +
[[Category:Text Templates]]</noinclude>

Latest revision as of 23:08, 8 August 2017


CSS styling template. Place inside a style attribute.

Draws a solid-colored no-gradient rounded box with shadow.


Settings

  • border: border color (Default: Cool Gray 11C)
  • background: solid background color (Default: 109C)
  • radius: radius of corners (Default: 1 em)


Examples

Defaults

Taxation
is
Theft

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

Customized

Taxation
is
Theft

<DIV style="width: 25em; text-align:center; {{SBX | border=#FF007F | background=#88DBDF | radius=2em}}">
'''Taxation<BR/>is<BR/>Theft'''
</DIV>