--- webroot/s/default/xhtml2.css 2003/09/05 11:32:52 1.2
+++ webroot/s/default/xhtml2.css 2004/10/24 23:55:03 1.3
@@ -10,14 +10,12 @@
body {
display: block;
- margin-left: 1.5em;
- margin-right: 1.5em;
+ margin: 1em 1.5em;
}
section {
display: block;
- margin-left: 0.5em;
- margin-right: 0.5em;
+ margin: 1em 0.5em;
}
section + section {
@@ -26,16 +24,24 @@
h {
display: block;
- margin-left: -1em;
+ margin-left: -0.5em;
margin-bottom: 0.5em;
font-size: 120%;
font-weight: bolder;
line-height: 1.2;
}
+body > h { /* h1 */
+ margin-left: 2em;
+ margin-right: 2em;
+ text-align: center;
+ font-size: 140%;
+}
+
p {
display: block;
text-indent: 1em;
+ text-align: justify;
}
l {
@@ -46,12 +52,26 @@
display: block;
}
+code, samp, kbd {
+ font-family: "Courier New", "Courier", monospace;
+ letter-spacing: 0.1em;
+}
+
code.uri:before, code.mail:before {
content: "<";
}
code.uri:after, code.mail:after {
content: ">";
}
+code.math {
+ font-family: "Times New Roman", "Times", serif;
+}
+var {
+ font-style: italic;
+}
+dfn {
+ font-weight: bolder;
+}
/* List */
@@ -81,9 +101,44 @@
border: solid thin -moz-hyperlinktext;
}
+/*
+ * 言語情報で場合分けするのは正しくないが、現在の CSS
+ * には用字系の選択子がないから、近似的にこれを使う。
+ */
+
+[xml|lang|="ja"] cite {
+ quotes: "『" "』" "「" "」";
+ font-style: normal;
+}
+[xml|lang|="ja"] cite:before {
+ content: open-quote;
+}
+[xml|lang|="ja"] cite:after {
+ content: close-quote;
+}
+[xml|lang|="en"] cite {
+ quotes: none;
+ font-style: italic;
+}
+[xml|lang|="en"] cite cite {
+ quotes: none;
+ font-style: normal;
+}
+[xml|lang|="en"] cite:before,
+[xml|lang|="en"] cite:after {
+ content: none;
+}
+
+th[scope="row"] {
+ text-align: left;
+}
+th[scope="col"] {
+ text-align: center;
+}
+
/* License
-Copyright 2003 Wakaba .
+Copyright 2003-2004 Wakaba .
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -102,4 +157,4 @@
*/
-/* $Date: 2003/09/05 11:32:52 $ */
+/* $Date: 2004/10/24 23:55:03 $ */