From: shizuki Date: Mon, 9 Mar 2009 10:22:29 +0000 (+0000) Subject: ブックマークレットのCSS調整(Win Fx3.0.6/IE6/IE7/Opera9.63/Safari3.2.1/Chrome1.0.154.48 on XP... X-Git-Tag: release-3-50~58 X-Git-Url: http://git.sourceforge.jp/view?p=nucleus-jp%2Fnucleus-jp-ancient.git;a=commitdiff_plain;h=fac97af073af726850a2297ae3cf136e571b2fe4 ブックマークレットのCSS調整(Win Fx3.0.6/IE6/IE7/Opera9.63/Safari3.2.1/Chrome1.0.154.48 on XP Pro.SP3にて確認) git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@968 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- diff --git a/utf8/nucleus/libs/include/bookmarklet-add.template b/utf8/nucleus/libs/include/bookmarklet-add.template index 9e8708e..adcea2c 100755 --- a/utf8/nucleus/libs/include/bookmarklet-add.template +++ b/utf8/nucleus/libs/include/bookmarklet-add.template @@ -34,15 +34,14 @@ google.load("jqueryui", "1"); google.setOnLoadCallback(function() { $(function(){ - $("#tabs").tabs(); + updAllPreviews(); $("table tr td:first-child").css("width", "14%"); - var contentBlock = $("textarea").parents(".contentblock"); - $("textarea").resizable({alsoResize: contentBlock}); - function preautoSaveDraft() { + $("textarea").resizable({ containment: 'parent' }); + $("#tabs").tabs(); + $("input[name=autosavenow]").click(function() { $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')'); autoSaveDraft(); - } - updAllPreviews(); + }); }); }); //]]> @@ -144,7 +143,7 @@
- <%ifautosave()%><%endif%> + <%ifautosave()%><%endif%> <%ifautosave()%>(<%text(_AUTOSAVEDRAFT)%> : <%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)<%endif%>
diff --git a/utf8/nucleus/libs/include/bookmarklet-edit.template b/utf8/nucleus/libs/include/bookmarklet-edit.template index 765f195..6405125 100755 --- a/utf8/nucleus/libs/include/bookmarklet-edit.template +++ b/utf8/nucleus/libs/include/bookmarklet-edit.template @@ -34,15 +34,14 @@ google.load("jqueryui", "1"); google.setOnLoadCallback(function() { $(function(){ - $("#tabs").tabs(); + updAllPreviews(); $("table tr td:first-child").css("width", "14%"); - var contentBlock = $("textarea").parents(".contentblock"); - $("textarea").resizable({alsoResize: contentBlock}); - function preautoSaveDraft() { + $("textarea").resizable({ containment: 'parent' }); + $("#tabs").tabs(); + $("input[name=autosavenow]").click(function() { $(".autosavestatus").text('(' + lastsavedtext + ' ' + formattedDate() + ')'); autoSaveDraft(); - } - updAllPreviews(); + }); }); }); //]]> @@ -144,7 +143,7 @@
- <%ifautosave()%><%endif%> + <%ifautosave()%><%endif%> <%ifautosave()%>(<%text(_AUTOSAVEDRAFT)%> : <%text(_AUTOSAVEDRAFT_NOTYETSAVED)%>)<%endif%>
diff --git a/utf8/nucleus/styles/bookmarklet.css b/utf8/nucleus/styles/bookmarklet.css index 728b9ce..950afb1 100755 --- a/utf8/nucleus/styles/bookmarklet.css +++ b/utf8/nucleus/styles/bookmarklet.css @@ -14,9 +14,9 @@ body { font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "MS Pゴシック", "MS PGothic", "IPA UIGothic", "IPA mona UIGothic", "VL PGothic", "Sazanami Gothic", "DynaLab-dfghsgothic w5-jisx0208.1990-0", "DynaLab-dfggothic w5-iso8859-1", "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif !important; } -textarea { -/* font-family: "Hiragino Kaku Gothic Pro W3", "MS P Gothic", "Osaka", sans-serif;*/ -} +/*textarea { + font-family: "Hiragino Kaku Gothic Pro W3", "MS P Gothic", "Osaka", sans-serif; +}*/ h1 { border-bottom: 1px dotted gray; @@ -54,10 +54,12 @@ h1 { font-weight: bold; } */ + .contentblock { /*background: #ddd;*/ /* height: 500px;*/ - height: 370px; +/* height: 370px;*/ + height: 410px;/*mod 090309*/ overflow: auto; /* temporary removed, to make the select box work in Mozilla */ padding: 1px !important; margin: 0px; @@ -65,7 +67,14 @@ h1 { } *:first-child+html .contentblock { - height: 330px; +/* height: 330px;*/ + height: 380px; /*mod 090309*/ +} +*html body .contentblock { /*add 090309*/ + height: 380px; +} +body:last-child .contentblock { /*add 090309*/ + height: 390px; } .shortcuts { @@ -118,10 +127,20 @@ table { margin: 10px auto; /* margin-bottom: 10px; margin-top: 10px;*/ + height: 95%; /* add 090309*/ } -*:first-child+html .table { +*:first-child+html table { + width: 93%; + height: 90%; /* add 090309*/ +} +*html body table { /* add 090309*/ + width: 93%; + height: 90%; +} +body:last-child table { /* add 090309*/ width: 93%; + height: 93%; } th { @@ -141,6 +160,7 @@ td { font-size: small; vertical-align: top; text-align: left; + white-space: nowrap; /*add 090309*/ } td a:link, td a:visited { @@ -167,7 +187,6 @@ ul.nobullets { margin: 0; } - .jsbuttonbar, #body input[type=text], #body textarea, @@ -177,16 +196,35 @@ ul.nobullets { #more select { margin: auto; display: block; - width: 90%; +/* width: 90%;*/ + width: 98% /*mod 090309*/ } *:first-child+html #body input[type=text], *:first-child+html #body textarea, *:first-child+html #body select, *:first-child+html #more input[type=text], -*:first-child+html #more textarea, -*:first-child+html #more select { +*:first-child+html #more select, +*html body #body input[type=text], /*add 090309*/ +*html body #body textarea, +*html body #body select, +*html body #more input[type=text], +*html body #more select { display: inline; + width: 98%; /*add 090309*/ +} + +*:first-child+html #more textarea { /*add 090309*/ + display: block; + width: 95%; +} +*html body #more textarea { /*add 090309*/ + display: block; + width: 95%; +} +body:last-child #more textarea { /*add 090309*/ + display: block; + width: 95%; } textarea {