6,514
回編集
(ルビ関連CSSを削除(Firefoxのルビ対応に伴い、ルビ非対応環境が大幅に減少したため)) |
|||
16行目: | 16行目: | ||
} | } | ||
/* [[テンプレート:ルビ]] */ | |||
ruby { | |||
height: 1em; | |||
line-height: 1; | |||
display: inline-table; | |||
vertical-align: text-bottom; | |||
white-space: nowrap; | |||
} | |||
ruby rb { | |||
display: table-row-group; | |||
text-align: center; | |||
} | |||
ruby rp { | |||
display: table-caption; | |||
font-size: 0; | |||
line-height: 0; | |||
} | |||
ruby rt { | |||
display: table-header-group; | |||
line-height: 1.3; | |||
font-size: 0.7em; | |||
text-align: center; | |||
} | |||
/* 下ルビ用 */ | |||
ruby.ruby-bottom { | |||
vertical-align: text-top; | |||
} | |||
ruby.ruby-bottom rt { | |||
display: table-footer-group; | |||
} | |||
/* ルビ内での文字折り返しを許可 */ | /* ルビ内での文字折り返しを許可 */ | ||
ruby.ruby-wrap { | ruby.ruby-wrap { |
回編集