@namespace url(http://www.w3.org/1999/xhtml);

/*
Name: HTML 2 BBcode
Version: 1.07 (26.09.2007)
Author: ELV1S & profiT
Description: http://usercss.ru/styles/html2bbcode/
*/

*:before, 
*:after {
	display: inline-block !important; 
	color:#060 !important; 
	background-color:#D9FFD9 !important; 
	font: normal normal normal 10px/10px Arial,sans-serif !important; 
	overflow: hidden !important;
	}

/*img[src]:before {content:'[img=' attr(src)']';}*/
img[src]:after {content:'[img]' attr(src) '[/img]'}

a[href]:before {content:'[url=' attr(href) ']'}
a[href]:after {content:'[/url]'}

b:before, 
strong:before, 
*[style="font-weight: 700"]:before, 
*[style="font-weight: bold"]:before {content:'[b]'}
*[style*="font-weight: 700"]:before, 
*[style*="font-weight: bold"]:before {content:'[b]'}
b:after, 
strong:after, 
*[style="font-weight: 700"]:after, 
*[style="font-weight: bold"]:after {content:'[/b]'}
*[style*="font-weight: 700"]:after, 
*[style*="font-weight: bold"]:after {content:'[/b]'}
i:before, 
em:before {content:'[i]'}
i:after, 
em:after {content:'[/i]'}

ul:before, ol:before {content:'[list]'}
ul:after, ol:before {content:'[/list]'}
li:before {content:'[*]'}
/* li:before {content:'[li]'}
li:after {content:'[/li]'}
*/

u:before, *[style="text-decoration: underline"]:before {content:'[u]'}
*[style*="text-decoration: underline"]:before {content:'[u]'}
u:after, *[style="text-decoration: underline"]:after {content:'[/u]'}
*[style*="text-decoration: underline"]:after {content:'[/u]'}

s:before {content:'[s]'}
s:after {content:'[/s]'}

code:before, pre:before, .code:before {content:'[code]'}
code:after, pre:after, .code:after {content:'[/code]'}

q:before, blockquote:before, .quote:before, #quote:before, .lgf:before {content:'[quote]'}
q:after, blockquote:after, .quote:after, #quote:after, .lgf:after {content:'[/quote]'}

sub:before {content:'[sub]'}
sub:after {content:'[/sub]'}

sup:before {content:'[sup]'}
sup:after {content:'[/sup]'}

.whisper:before {content:'[whisper]'}
.whisper:after {content:'[/whisper]'}

/*
.alignleft:before {content:'[align=left]'}
.aligncenter:before {content:'[align=center]'}
.alignright:before {content:'[align=right]'}
.alignjustify:before {content:'[align=justify]'}
.alignleft:after, .aligncenter:after, .alignright:after, .alignjustify:after {content:'[/align]'}

left:before, *[align='left']:before, *[style="text-align: left"]:before {content:'[left]'}
*[style*="text-align: left"]:before {content:'[left]'}
left:after, *[align='left']:after, *[style="text-align: left"]:after {content:'[/left]'}
*[style*="text-align: left"]:after {content:'[/left]'}
right:before, *[align='right']:before, *[style="text-align: right"]:before {content:'[right]'}
*[style*="text-align: right"]:before {content:'[right]'}
right:after, *[align='right']:after, *[style="text-align: right"]:after {content:'[/right]'}
*[style*="text-align: right"]:after {content:'[/right]'}
center:before, *[align='center']:before, *[style="text-align: center"]:before {content:'[center]'}
*[style*="text-align: center"]:before {content:'[center]'}
center:after, *[align='center']:after, *[style="text-align: center"]:after {content:'[/center]'}
*[style*="text-align: center"]:after {content:'[/center]'}
justify:before, *[align='justify']:before, *[style="text-align: justify"]:before {content:'[justify]'}
*[style*="text-align: justify"]:before {content:'[justify]'}
justify:after, *[align='justify']:after, *[style="text-align: justify"]:after {content:'[/justify]'}
*[style*="text-align: justify"]:after {content:'[/justify]'}

font[color]:before {content:'[color=' attr(color) ']'}
font[color]:after {content:'[/color]'}

*[style*='color: #ff0000']:before {content:'[color=red]'}
*[style*='color: #00ff00']:before {content:'[color=green]'}
*[style*='color: #0000ff']:before {content:'[color=blue]'}
*[style*='color: #888888']:before {content:'[color=gray]'}

*[style*='color: #ff0000']:after,*[style*='color: #00ff00']:after,*[style*='color: #0000ff']:after,*[style*='color: #888888']:after {content:'[/color]'}

*[style='color: #ff0000']:before {content:'[color=red]'}
*[style='color: #00ff00']:before {content:'[color=green]'}
*[style='color: #0000ff']:before {content:'[color=blue]'}
*[style='color: #888888']:before {content:'[color=gray]'}

*[style='color: #ff0000']:after,*[style='color: #00ff00']:after,*[style='color: #0000ff']:after,*[style='color: #888888']:after {content:'[/color]'}


*[style*='font-family: "Century Gothic"']:before {content:'[font=Century Gothic]'}
*[style*='font-family: Arial']:before {content:'[font=Arial]'}
*[style*='font-family: "Times New Roman"']:before {content:'[font=Times New Roman]'}
*[style*='font-family: "Courier New"']:before {content: '[font=Courier New]' }

*[style*='font-family: "Century Gothic"']:after, *[style*='font-family: Arial']:after,*[style*='font-family: "Times New Roman"']:after,*[style*='font-family: "Courier New"']:after {content:'[/font]'}


*[style='font-family: "Century Gothic"']:before {content:'[font=Century Gothic]'}
*[style='font-family: Arial']:before {content:'[font=Arial]'}
*[style='font-family: "Times New Roman"']:before {content:'[font=Times New Roman]'}
*[style='font-family: "Courier New"']:before {content: '[font=Courier New]' }

*[style='font-family: "Century Gothic"']:after, *[style='font-family: Arial']:after,*[style='font-family: "Times New Roman"']:after,*[style='font-family: "Courier New"']:after {content:'[/font]'}
*/
