Difference between revisions of "Template:SBX"

From Dissent
Jump to navigation Jump to search
m (1 revision imported)
(Added documentation; Changed default border color to Cool Gray 11C and default background to 109C)
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 no-gradient rounded box with shadow.
 +
 
 +
__NOTOC__
 +
==Settings==
 +
*border: border color
 +
*background: background color
 +
*radius: radius of corners
 +
 
 +
 
 +
==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>

Revision as of 22:38, 8 August 2017


CSS styling template. Place inside a style attribute.

Draws a no-gradient rounded box with shadow.


Settings

  • border: border color
  • background: background color
  • radius: radius of corners


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>