/[suikacvs]/markup/slide/implementation/slide-style-winie.css
Suika

Contents of /markup/slide/implementation/slide-style-winie.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download) (as text)
Sat Oct 15 08:45:34 2005 UTC (19 years ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
File MIME type: text/css
Page number for WinIE implemented

1 @charset 'iso-2022-jp';
2
3 /* Slideset (root element) */
4 slides {
5 display: expression(function (element) {
6 element.style.display = 'block';
7 element.style.margin = '0';
8 element.style.borderStyle = 'none';
9 element.style.padding = '0';
10
11 runtimeStyle.display = 'block';
12 } (this));
13 }
14
15 title {
16 display: expression(function (element) {
17 window.document.title = element.innerText;
18 runtimeStyle.display = 'none';
19 } (this));
20 }
21
22 /* A slide */
23 slide {
24 display: expression(function (element) {
25
26 /* h|h */
27 var el = element.getElementsByTagName ('h');
28 for (var i = 0; i < el.length; i++) {
29 el[i].style.display = 'block';
30 el[i].style.fontWeight = 'bolder';
31 el[i].style.marginBottom = '0.5em';
32 el[i].style.fontFamily = '"MS P Gothic", "Arial", sans-serif';
33 el[i].style.lineHeight = '1.1';
34 }
35
36 /* h|ul */
37 var el = element.getElementsByTagName ('ul');
38 for (var i = 0; i < el.length; i++) {
39 el[i].style.display = 'block';
40 el[i].style.marginTop = '1em';
41 el[i].style.marginBottom = '1em';
42 }
43
44 /* h|ol */
45 var el = element.getElementsByTagName ('ol');
46 for (var i = 0; i < el.length; i++) {
47 el[i].style.display = 'block';
48 el[i].style.marginTop = '1em';
49 el[i].style.marginBottom = '1em';
50
51 var li = el[i].childNodes;
52 for (var i = 0; i < li.length; i++) {
53 if (li[i].tagName == 'li') {
54 li[i].style.display = 'block';
55 li[i].style.listStyle = 'none';
56 li[i].style.textAlign = 'center';
57
58 if (i > 0) {
59 var beforeNode = element.document.createElement ('div');
60 beforeNode.appendChild (element.document.createTextNode ('$B"-(B'));
61 beforeNode.style.display = 'block';
62 beforeNode.style.textAlign = 'center';
63
64 if (li[i].childNodes.length) {
65 li[i].insertBefore (beforeNode, li[i].childNodes[0]);
66 } else {
67 li[i].appendChild (beforeNode);
68 }
69 }
70 }
71 }
72 }
73
74 /* h|nl */
75 var el = element.getElementsByTagName ('nl');
76 for (var i = 0; i < el.length; i++) {
77 el[i].style.display = 'block';
78 el[i].style.marginTop = '1em';
79 el[i].style.marginBottom = '1em';
80 el[i].style.listStyleType = 'disc';
81 }
82
83 /* h|li */
84 var el = element.getElementsByTagName ('li');
85 for (var i = 0; i < el.length; i++) {
86 el[i].style.display = 'list-item';
87 el[i].style.marginLeft = '1em';
88 }
89
90 /* h|l */
91 var el = element.getElementsByTagName ('l');
92 for (var i = 0; i < el.length; i++) {
93 el[i].style.display = 'block';
94 }
95
96 /* h|table */
97 var el = element.getElementsByTagName ('table');
98 for (var i = 0; i < el.length; i++) {
99 el[i].style.display = 'block';
100 el[i].style.textAlign = 'center';
101 }
102
103 /* h|tbody */
104 var el = element.getElementsByTagName ('tbody');
105 for (var i = 0; i < el.length; i++) {
106 el[i].style.display = 'block';
107 }
108
109 /* h|tr */
110 var el = element.getElementsByTagName ('tr');
111 for (var i = 0; i < el.length; i++) {
112 el[i].style.display = 'block';
113 }
114
115 /* h|th */
116 var el = element.getElementsByTagName ('td');
117 for (var i = 0; i < el.length; i++) {
118 el[i].style.display = 'inline-block';
119 }
120
121 /* h|td */
122 var el = element.getElementsByTagName ('td');
123 for (var i = 0; i < el.length; i++) {
124 el[i].style.display = 'inline-block';
125 }
126
127 /* s|slide */
128 element.style.display = 'block';
129 element.style.padding = '1.5em';
130 element.style.overflow = 'auto';
131 element.style.lineHeight = '2.1';
132 element.style.fontFamily = 'sans-serif';
133
134 // s|slide h|h:first-child
135 var el = element.getElementsByTagName ('h')[0];
136 el.style.textAlign = 'center';
137 el.style.fontSize = '200%';
138
139 // s|slide[role~="cover"] h|h:first-child
140 if (getAttribute ('role') == 'cover') {
141 var title = element.getElementsByTagName ('h')[0];
142 title.style.textAlign = 'center';
143 title.style.marginTop = '25%';
144 // title.style.marginBottom = '25%';
145 title.style.fontSize = '270%';
146 }
147
148 runtimeStyle.display = 'block';
149 } (this));
150 }
151
152 /* s|seqNo */
153 seqNo {
154 behavior: expression(function (element) {
155 if (!element.document.__HSML_IMPLIE__)
156 element.document.__HSML_IMPLIE__ = new Array ();
157 if (!element.document.__HSML_IMPLIE__.seqNo)
158 element.document.__HSML_IMPLIE__.seqNo = new Array ();
159
160 element.appendChild (document.createTextNode (' (' +
161 incrementSeqNumber (element.getAttribute ('name')) +
162 ')'));
163
164 function incrementSeqNumber (name) {
165 if (isNaN (element.document.__HSML_IMPLIE__.seqNo[name]))
166 element.document.__HSML_IMPLIE__.seqNo[name] = 0;
167 return ++element.document.__HSML_IMPLIE__.seqNo[name];
168 }
169
170 runtimeStyle.behavior = 'none';
171 } (this));
172 }

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24