/**
 * Tatoeba Project, free collaborative creation of multilingual corpuses project
 * Copyright (C) 2010  HO Ngoc Phuong Trang <tranglich@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http: //www.gnu.org/licenses/>.
 */


/*
 * Ruby support
 * NOTE: I don't remember where I got this from...
 */
ruby
 {
    display: inline-table;
    text-align: center;
    white-space: nowrap;
    text-indent: 0;
    margin: 0;    
    vertical-align: bottom;
}

/* ルビベース */
ruby > rb, ruby > rbc
 {
    display: table-row-group;
}

/* 前側ルビテキスト */
ruby > rt, ruby > rbc + rtc
 {
    display: table-header-group;
    font-size: 60%;
    letter-spacing: 0;
}

/* 後側ルビテキスト */
ruby > rbc + rtc + rtc
 {
    display: table-footer-group;
    font-size: 60%;
    letter-spacing: 0;
}

/* 複雑ルビテキスト */
rbc > rb, rtc > rt
 {
    display: table-cell;
    letter-spacing: 0;
}

/* rt[rbspan] should be transformed into td[colspan] but that requires xslt */
rtc > rt[rbspan] { display: table-caption; }

/* ルビ括弧 */
rp { display: none; }
