• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki: Commit


Commit MetaInfo

Revision30e5d9a83726d2c9061957906547ed3eaa27ee9f (tree)
Time2020-01-22 00:06:15
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2494 Simplify CSS: 0px to 0

Change Summary

Incremental Difference

--- a/lib/html.php
+++ b/lib/html.php
@@ -2,7 +2,7 @@
22 // PukiWiki - Yet another WikiWikiWeb clone.
33 // html.php
44 // Copyright
5-// 2002-2019 PukiWiki Development Team
5+// 2002-2020 PukiWiki Development Team
66 // 2001-2002 Originally written by yu-ji
77 // License: GPL v2 or (at your option) any later version
88 //
@@ -413,7 +413,7 @@ EOD;
413413 $h_msg_edit_unloadbefore_message = htmlsc($_msg_edit_unloadbefore_message);
414414 $body = <<<EOD
415415 <div class="edit_form">
416- <form action="$script" method="post" class="_plugin_edit_edit_form" style="margin-bottom:0px;">
416+ <form action="$script" method="post" class="_plugin_edit_edit_form" style="margin-bottom:0;">
417417 $template
418418 $addtag
419419 <input type="hidden" name="cmd" value="edit" />
@@ -431,7 +431,7 @@ $template
431431 </div>
432432 <textarea name="original" rows="1" cols="1" style="display:none">$s_original</textarea>
433433 </form>
434- <form action="$script" method="post" class="_plugin_edit_cancel" style="margin-top:0px;">
434+ <form action="$script" method="post" class="_plugin_edit_cancel" style="margin-top:0;">
435435 <input type="hidden" name="cmd" value="edit" />
436436 <input type="hidden" name="page" value="$s_page" />
437437 <input type="submit" name="cancel" value="$_btn_cancel" accesskey="c" />
--- a/plugin/attach.inc.php
+++ b/plugin/attach.inc.php
@@ -2,7 +2,7 @@
22 // PukiWiki - Yet another WikiWikiWeb clone
33 // attach.inc.php
44 // Copyright
5-// 2003-2017 PukiWiki Development Team
5+// 2003-2020 PukiWiki Development Team
66 // 2002-2003 PANDA <panda@arino.jp> http://home.arino.jp/
77 // 2002 Y.MASUI <masui@hisec.co.jp> http://masui.net/pukiwiki/
88 // 2001-2002 Originally written by yu-ji
@@ -42,7 +42,7 @@ define('PLUGIN_ATTACH_FILE_MODE', 0644);
4242 // File icon image
4343 define('PLUGIN_ATTACH_FILE_ICON', '<img src="' . IMAGE_DIR . 'file.png"' .
4444 ' width="20" height="20" alt="file"' .
45- ' style="border-width:0px" />');
45+ ' style="border-width:0" />');
4646
4747 // mime-typeを記述したページ
4848 define('PLUGIN_ATTACH_CONFIG_PAGE_MIME', 'plugin/attach/mime-type');
--- a/plugin/ref.inc.php
+++ b/plugin/ref.inc.php
@@ -2,7 +2,7 @@
22 // PukiWiki - Yet another WikiWikiWeb clone
33 // ref.inc.php
44 // Copyright
5-// 2002-2017 PukiWiki Development Team
5+// 2002-2020 PukiWiki Development Team
66 // 2001-2002 Originally written by yu-ji
77 // License: GPL v2 or (at your option) any later version
88 //
@@ -13,7 +13,7 @@
1313 if (! defined('FILE_ICON'))
1414 define('FILE_ICON',
1515 '<img src="' . IMAGE_DIR . 'file.png" width="20" height="20"' .
16- ' alt="file" style="border-width:0px" />');
16+ ' alt="file" style="border-width:0" />');
1717
1818 /////////////////////////////////////////////////
1919 // Default settings
@@ -79,13 +79,13 @@ function plugin_ref_convert()
7979 // Opera 6 = o
8080 // Netscape 6 = x (wrap,aroundが効かない)
8181 // IE 6 = x (wrap,aroundが効かない)
82- // margin:0px
82+ // margin:0
8383 // Mozilla 1.x = x (wrapで寄せが効かない)
8484 // Opera 6 = x (wrapで寄せが効かない)
8585 // Netscape 6 = x (wrapで寄せが効かない)
8686 // IE6 = o
87- $margin = ($params['around'] ? '0px' : 'auto');
88- $margin_align = ($params['_align'] == 'center') ? '' : ";margin-{$params['_align']}:0px";
87+ $margin = ($params['around'] ? '0' : 'auto');
88+ $margin_align = ($params['_align'] == 'center') ? '' : ";margin-{$params['_align']}:0";
8989 $params['_body'] = <<<EOD
9090 <table class="style_table" style="margin:$margin$margin_align">
9191 <tr>
--- a/plugin/size.inc.php
+++ b/plugin/size.inc.php
@@ -1,6 +1,8 @@
11 <?php
2-// PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: size.inc.php,v 1.10 2005/06/16 15:04:08 henoheno Exp $
2+// PukiWiki - Yet another WikiWikiWeb clone
3+// size.inc.php
4+// Copyright 2002-2020 PukiWiki Development Team
5+// License: GPL v2 or (at your option) any later version
46 //
57 // Text-size changing via CSS plugin
68
@@ -18,13 +20,11 @@ function plugin_size_inline()
1820
1921 // strip_autolink() is not needed for size plugin
2022 //$body = strip_htmltag($body);
21-
2223 if ($size == '' || $body == '' || ! preg_match('/^\d+$/', $size))
2324 return PLUGIN_SIZE_USAGE;
2425
2526 $size = max(PLUGIN_SIZE_MIN, min(PLUGIN_SIZE_MAX, $size));
2627 return '<span style="font-size:' . $size .
27- 'px;display:inline-block;line-height:130%;text-indent:0px">' .
28+ 'px;display:inline-block;line-height:130%;text-indent:0">' .
2829 $body . '</span>';
2930 }
30-?>
--- a/skin/pukiwiki.css
+++ b/skin/pukiwiki.css
@@ -3,7 +3,7 @@
33 /*!
44 * PukiWiki - Yet another WikiWikiWeb clone.
55 * Copyright
6- * 2002-2017 PukiWiki Development Team
6+ * 2002-2020 PukiWiki Development Team
77 * 2001-2002 Originally written by yu-ji
88 * License: GPL v2 or (at your option) any later version
99 *
@@ -55,8 +55,8 @@ h1, h2 {
5555 color:inherit;
5656 background-color:#DDEEFF;
5757 padding:.3em;
58- border:0px;
59- margin:0px 0px .5em 0px;
58+ border:0;
59+ margin:0 0 .5em 0;
6060 }
6161 h3 {
6262 font-family:verdana, arial, helvetica, Sans-Serif;
@@ -68,7 +68,7 @@ h3 {
6868 color:inherit;
6969 background-color:#FFFFFF;
7070 padding:.3em;
71- margin:0px 0px .5em 0px;
71+ margin:0 0 .5em 0;
7272 }
7373 h4 {
7474 font-family:verdana, arial, helvetica, Sans-Serif;
@@ -77,23 +77,23 @@ h4 {
7777 color:inherit;
7878 background-color:#FFFFFF;
7979 padding:.3em;
80- margin:0px 0px .5em 0px;
80+ margin:0 0 .5em 0;
8181 }
8282 h5, h6 {
8383 font-family:verdana, arial, helvetica, Sans-Serif;
8484 color:inherit;
8585 background-color:#DDEEFF;
8686 padding:.3em;
87- border:0px;
88- margin:0px 0px .5em 0px;
87+ border:0;
88+ margin:0 0 .5em 0;
8989 }
9090 h1.title {
9191 font-size:30px;
9292 font-weight:bold;
9393 background-color:transparent;
94- padding:12px 0px 0px 0px;
95- border:0px;
96- margin:12px 0px 0px 0px;
94+ padding:12px 0 0 0;
95+ border:0;
96+ margin:12px 0 0 0;
9797 }
9898
9999 dt {
@@ -146,8 +146,8 @@ tfoot th.style_th {
146146 background-color:#E0E8F0;
147147 }
148148 .style_table {
149- padding:0px;
150- border:0px;
149+ padding:0;
150+ border:0;
151151 margin:auto;
152152 text-align:left;
153153 color:inherit;
@@ -240,13 +240,13 @@ div.jumpmenu {
240240 hr.full_hr {
241241 border-style:ridge;
242242 border-color:#333333;
243- border-width:1px 0px;
243+ border-width:1px 0;
244244 }
245245 hr.note_hr {
246246 width:90%;
247247 border-style:ridge;
248248 border-color:#333333;
249- border-width:1px 0px;
249+ border-width:1px 0;
250250 text-align:center;
251251 margin:1em auto 0em auto;
252252 }
@@ -254,43 +254,43 @@ hr.note_hr {
254254 span.size1 {
255255 font-size:xx-small;
256256 line-height:130%;
257- text-indent:0px;
257+ text-indent:0;
258258 display:inline;
259259 }
260260 span.size2 {
261261 font-size:x-small;
262262 line-height:130%;
263- text-indent:0px;
263+ text-indent:0;
264264 display:inline;
265265 }
266266 span.size3 {
267267 font-size:small;
268268 line-height:130%;
269- text-indent:0px;
269+ text-indent:0;
270270 display:inline;
271271 }
272272 span.size4 {
273273 font-size:medium;
274274 line-height:130%;
275- text-indent:0px;
275+ text-indent:0;
276276 display:inline;
277277 }
278278 span.size5 {
279279 font-size:large;
280280 line-height:130%;
281- text-indent:0px;
281+ text-indent:0;
282282 display:inline;
283283 }
284284 span.size6 {
285285 font-size:x-large;
286286 line-height:130%;
287- text-indent:0px;
287+ text-indent:0;
288288 display:inline;
289289 }
290290 span.size7 {
291291 font-size:xx-large;
292292 line-height:130%;
293- text-indent:0px;
293+ text-indent:0;
294294 display:inline;
295295 }
296296
@@ -343,14 +343,14 @@ strong.word9 {
343343
344344 /* pukiwiki.skin.php */
345345 div#header {
346- padding:0px;
347- margin:0px;
346+ padding:0;
347+ margin:0;
348348 }
349349
350350 div#navigator {
351351 clear:both;
352- padding:4px 0px 0px 0px;
353- margin:0px;
352+ padding:4px 0 0 0;
353+ margin:0;
354354 }
355355
356356 td.menubar {
@@ -360,15 +360,15 @@ td.menubar {
360360
361361 div#menubar {
362362 width:9em;
363- padding:0px;
363+ padding:0;
364364 margin:4px;
365365 word-break:break-all;
366366 font-size:90%;
367367 overflow:hidden;
368368 }
369369 div#menubar ul {
370- margin:0px 0px 0px .5em;
371- padding:0px 0px 0px .5em;
370+ margin:0 0 0 .5em;
371+ padding:0 0 0 .5em;
372372 }
373373 div#menubar ul li {
374374 line-height:110%;
@@ -378,42 +378,42 @@ div#menubar h4 {
378378 }
379379
380380 div#body {
381- padding:0px;
382- margin:0px 0px 0px .5em;
381+ padding:0;
382+ margin:0 0 0 .5em;
383383 }
384384 div#note {
385385 clear:both;
386- padding:0px;
387- margin:0px;
386+ padding:0;
387+ margin:0;
388388 }
389389 div#attach {
390390 clear:both;
391- padding:0px;
392- margin:0px;
391+ padding:0;
392+ margin:0;
393393 }
394394 div#toolbar {
395395 clear:both;
396- padding:0px;
397- margin:0px;
396+ padding:0;
397+ margin:0;
398398 text-align:right;
399399 }
400400 div#lastmodified {
401401 font-size:80%;
402- padding:0px;
403- margin:0px;
402+ padding:0;
403+ margin:0;
404404 }
405405 div#related {
406406 font-size:80%;
407- padding:0px;
408- margin:16px 0px 0px 0px;
407+ padding:0;
408+ margin:16px 0 0 0;
409409 }
410410 div#related .page_passage {
411411 font-size:60%;
412412 }
413413 div#footer {
414414 font-size:70%;
415- padding:0px;
416- margin:16px 0px 0px 0px;
415+ padding:0;
416+ margin:16px 0 0 0;
417417 }
418418 div#banner {
419419 float:right;
@@ -441,8 +441,8 @@ img#logo {
441441
442442 /* calendar*.inc.php */
443443 .style_calendar {
444- padding:0px;
445- border:0px;
444+ padding:0;
445+ border:0;
446446 margin:3px;
447447 color:inherit;
448448 background-color:#CCD5DD;
@@ -522,7 +522,7 @@ span.calendar_viewer_right {
522522
523523 /* clear.inc.php */
524524 .clear {
525- margin:0px;
525+ margin:0;
526526 clear:both;
527527 }
528528
@@ -547,7 +547,7 @@ hr.short_line {
547547 width:80%;
548548 border-style:solid;
549549 border-color:#333333;
550- border-width:1px 0px;
550+ border-width:1px 0;
551551 }
552552
553553 /* include.inc.php */
@@ -557,8 +557,8 @@ h5.side_label {
557557
558558 /* navi.inc.php */
559559 ul.navi {
560- margin:0px;
561- padding:0px;
560+ margin:0;
561+ padding:0;
562562 text-align:center;
563563 }
564564 li.navi_none {
--- a/skin/tdiary.css
+++ b/skin/tdiary.css
@@ -3,7 +3,7 @@
33 /*!
44 * PukiWiki - Yet another WikiWikiWeb clone.
55 * Copyright
6- * 2002-2017 PukiWiki Development Team
6+ * 2002-2020 PukiWiki Development Team
77 * 2001-2002 Originally written by yu-ji
88 * License: GPL v2 or (at your option) any later version
99 *
@@ -55,8 +55,8 @@ tfoot th.style_th {
5555 background-color:#E0E8F0;
5656 }
5757 .style_table {
58- padding:0px;
59- border:0px;
58+ padding:0;
59+ border:0;
6060 margin:auto;
6161 text-align:left;
6262 color:inherit;
@@ -140,43 +140,43 @@ hr.note_hr {
140140 span.size1 {
141141 font-size:xx-small;
142142 line-height:130%;
143- text-indent:0px;
143+ text-indent:0;
144144 display:inline;
145145 }
146146 span.size2 {
147147 font-size:x-small;
148148 line-height:130%;
149- text-indent:0px;
149+ text-indent:0;
150150 display:inline;
151151 }
152152 span.size3 {
153153 font-size:small;
154154 line-height:130%;
155- text-indent:0px;
155+ text-indent:0;
156156 display:inline;
157157 }
158158 span.size4 {
159159 font-size:medium;
160160 line-height:130%;
161- text-indent:0px;
161+ text-indent:0;
162162 display:inline;
163163 }
164164 span.size5 {
165165 font-size:large;
166166 line-height:130%;
167- text-indent:0px;
167+ text-indent:0;
168168 display:inline;
169169 }
170170 span.size6 {
171171 font-size:x-large;
172172 line-height:130%;
173- text-indent:0px;
173+ text-indent:0;
174174 display:inline;
175175 }
176176 span.size7 {
177177 font-size:xx-large;
178178 line-height:130%;
179- text-indent:0px;
179+ text-indent:0;
180180 display:inline;
181181 }
182182
@@ -229,13 +229,13 @@ strong.word9 {
229229
230230 /* pukiwiki.skin.php */
231231 div#header {
232- padding:0px;
233- margin:0px;
232+ padding:0;
233+ margin:0;
234234 }
235235 div#navigator {
236236 clear:both;
237- padding:4px 0px 0px 0px;
238- margin:0px;
237+ padding:4px 0 0 0;
238+ margin:0;
239239 }
240240 td.menubar {
241241 width:9em;
@@ -243,15 +243,15 @@ td.menubar {
243243 }
244244 div#menubar {
245245 width:9em;
246- padding:0px;
246+ padding:0;
247247 margin:4px;
248248 word-break:break-all;
249249 font-size:90%;
250250 overflow:hidden;
251251 }
252252 div#menubar ul {
253- margin:0px 0px 0px .5em;
254- padding:0px 0px 0px .5em;
253+ margin:0 0 0 .5em;
254+ padding:0 0 0 .5em;
255255 }
256256 div#menubar ul li {
257257 line-height:110%;
@@ -262,43 +262,43 @@ div#menubar h4 {
262262
263263 /* for tDiary themes */
264264 div.pkwk_body {
265- padding:0px;
265+ padding:0;
266266 }
267267 div#note {
268268 clear:both;
269- padding:0px;
270- margin:0px;
269+ padding:0;
270+ margin:0;
271271 }
272272 div#attach {
273273 clear:both;
274- padding:0px;
275- margin:0px;
274+ padding:0;
275+ margin:0;
276276 }
277277 div#toolbar {
278278 clear:both;
279- padding:0px;
280- margin:0px;
279+ padding:0;
280+ margin:0;
281281 text-align:right;
282282 }
283283 div#lastmodified {
284284 font-size:80%;
285- padding:0px;
286- margin:0px;
285+ padding:0;
286+ margin:0;
287287 }
288288
289289 /* for tDiary theme */
290290 div#related {
291291 font-size:80%;
292- padding:0px;
293- margin:0px 0px 0px 0px;
292+ padding:0;
293+ margin:0 0 0 0;
294294 }
295295 div#related .page_passage {
296296 font-size:60%;
297297 }
298298 div#footer {
299299 font-size:70%;
300- padding:0px;
301- margin:16px 0px 0px 0px;
300+ padding:0;
301+ margin:16px 0 0 0;
302302 }
303303 div#banner {
304304 float:right;
@@ -326,8 +326,8 @@ img#logo {
326326
327327 /* calendar*.inc.php */
328328 .style_calendar {
329- padding:0px;
330- border:0px;
329+ padding:0;
330+ border:0;
331331 margin:3px;
332332 color:inherit;
333333 background-color:#CCD5DD;
@@ -407,7 +407,7 @@ span.calendar_viewer_right {
407407
408408 /* clear.inc.php */
409409 .clear {
410- margin:0px;
410+ margin:0;
411411 clear:both;
412412 }
413413
@@ -432,7 +432,7 @@ hr.short_line {
432432 width:80%;
433433 border-style:solid;
434434 border-color:#CCD5DD;
435- border-width:1px 0px;
435+ border-width:1px 0;
436436 }
437437
438438 /* include.inc.php */
@@ -442,8 +442,8 @@ h5.side_label {
442442
443443 /* navi.inc.php */
444444 ul.navi {
445- margin:0px;
446- padding:0px;
445+ margin:0;
446+ padding:0;
447447 text-align:center;
448448 }
449449 li.navi_none {
Show on old repository browser