/*==========
author:	吴颖晖 Freddie
copyright:	Copyright (c) 1998-2010 Flying @ Flying's World
version:	5.4b
# Requires 1.css, YUI/reset-fonts-grids
==========*/

/*< ruby >
Based on:
	http://www.guidetojapanese.org/blog/2008/01/08/ruby-tags-considered-harmful/
	http://seba.ulyssis.org/thesis/howto-ruby.php
*/
ruby	{
	display:inline-table;
	text-align:center;
	border-collapse:collapse;	/*used to adjust vertical alignment*/
	vertical-align:middle;	/*if there are two ruby annotations, this roughly aligns baseline of base text with that of context*/
	border-bottom:solid 2ex transparent;	/*will be further adjusted if there are 2 ruby annotations*/
}
ruby > rb,
rbc	{
	display:table-row;
	line-height:1;
}
ruby > rt,
rtc	{
	display:table-header-group;
	font-size:69%;
	line-height:1;
}
ruby > rt.after,
rtc.after,
rtc + rtc	{
	display:table-footer-group;
	border-bottom:hidden;	/*if there are 2 ruby annotations, extra border is no longer necessary*/
}
rtc > rt,
rbc > rb	{
	display:table-cell;	/*match ruby annotations with the base text*/
}
rtc > rt[rbspan]	{
	column-span:attr(rbspan);	/*support rbspan attribute*/
}
rb,
rbc,
rt,
rtc	{
	text-align:justify;
	text-align:center;
	white-space:nowrap;
	margin:0;
}
rp	{
	display:none;
}
