commit 5e1ca7172a2d42c5f100edf013477cc4da52d2c3
parent 31ef0eab13be3e0396ac0abaeb50152686933e9d
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 14 Oct 2008 03:02:26 +0000
- Reduced TinyMCE to two rows
- Removed font-family, font-size, full justify
- Restored outdent and indent
- Some style improvements, including quotation marks around blockquotes
Diffstat:
6 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml
@@ -79,7 +79,7 @@
var ios = Components.classes["@mozilla.org/network/io-service;1"].
getService(Components.interfaces.nsIIOService);
- var uri = ios.newURI("chrome://zotero/content/tiny_mce/" + this.mode + ".html", null, null);
+ var uri = ios.newURI("chrome://zotero/content/tinymce/" + this.mode + ".html", null, null);
var chromeReg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].
getService(Components.interfaces.nsIChromeRegistry);
var fileURI = chromeReg.convertChromeURL(uri);
diff --git a/chrome/content/zotero/tinymce/note.html b/chrome/content/zotero/tinymce/note.html
@@ -19,7 +19,7 @@ html, body {
table.mceLayout > tbody > tr.mceLast {
position: absolute;
display: block;
- top: 82px;
+ top: 54px;
bottom: 2px;
left: 1px;
right: 1px;
@@ -65,9 +65,10 @@ td.mceIframeContainer {
/*plugins : "xhtmlxtras",*/
// Theme options
- theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,sub,sup,|,forecolor,backcolor,|,removeformat,code",
- theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,blockquote,|,link,unlink",
- theme_advanced_buttons3 : "formatselect,fontselect,fontsizeselect",
+ theme_advanced_layout_manager : "SimpleLayout",
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,sub,sup,|,forecolor,backcolor,|,blockquote,|,link,unlink",
+ theme_advanced_buttons2 : "formatselect,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,outdent,indent,|,removeformat,code",
+ theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/ui.css b/chrome/content/zotero/tinymce/themes/advanced/skins/default/ui.css
@@ -49,8 +49,10 @@
/* ListBox */
.defaultSkin .mceListBox {direction:ltr}
.defaultSkin .mceListBox, .defaultSkin .mceListBox a {display:block}
-.defaultSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden}
-.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;}
+/* width changed to 65px by Dan S./Zotero */
+.defaultSkin .mceListBox .mceText {padding-left:4px; width:65px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden}
+/* margin-right changed to 1px by Dan S./Zotero */
+.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:1px; border:1px solid #CCC;}
.defaultSkin table.mceListBoxEnabled:hover .mceText, .defaultSkin .mceListBoxHover .mceText, .defaultSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF}
.defaultSkin table.mceListBoxEnabled:hover .mceOpen, .defaultSkin .mceListBoxHover .mceOpen, .defaultSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0}
.defaultSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;}
diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css
@@ -82,8 +82,8 @@
#zotero-item-pane
{
- width: 330px;
- min-width: 330px;
+ width: 335px;
+ min-width: 335px;
}
#zotero-pane toolbar
diff --git a/chrome/skin/default/zotero/report/detail.css b/chrome/skin/default/zotero/report/detail.css
@@ -56,7 +56,7 @@ td {
}
-ul {
+ul.report, ul.notes, ul.tags {
list-style: none;
margin-left: 0;
padding-left: 0;
@@ -111,8 +111,18 @@ ul.notes > li p:last-child {
margin-bottom: 0;
}
+/* Add quotation marks around blockquote */
+ul.notes > li blockquote p:not(:empty):before,
+li.note blockquote p:not(:empty):before {
+ content: '“';
+}
+
+ul.notes > li blockquote p:not(:empty):last-child:after,
+li.note blockquote p:not(:empty):last-child:after {
+ content: '”';
+}
-/* Preserve whitespace on notes */
+/* Preserve whitespace on plaintext notes */
ul.notes li p.plaintext, li.note p.plaintext {
white-space: pre-wrap;
}
diff --git a/chrome/skin/default/zotero/tinymce/note-content.css b/chrome/skin/default/zotero/tinymce/note-content.css
@@ -1,14 +1,21 @@
-body {
+body, td, pre {
font-size: 11px;
font-family: Lucida Grande, Tahoma, Verdana, Helvetica, sans-serif;
}
-/*
-blockquote p:not(:empty):before {
- content: '“'
+pre {
+ font-family: -moz-fixed;
}
-blockquote p:not(:empty):after {
- content: '”'
+blockquote {
+ margin-left: 2em;
+}
+
+/* Add quotation marks around blockquote */
+blockquote p:not(:empty):before {
+ content: '“';
+}
+
+blockquote p:not(:empty):last-child:after {
+ content: '”';
}
-*/