- Reduced TinyMCE to two rows

- Removed font-family, font-size, full justify
- Restored outdent and indent
- Some style improvements, including quotation marks around blockquotes
This commit is contained in:
Dan Stillman 2008-10-14 03:02:26 +00:00
parent 31ef0eab13
commit 5e1ca7172a
6 changed files with 38 additions and 18 deletions

View file

@ -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);

View file

@ -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

View file

@ -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;}

View file

@ -82,8 +82,8 @@
#zotero-item-pane
{
width: 330px;
min-width: 330px;
width: 335px;
min-width: 335px;
}
#zotero-pane toolbar

View file

@ -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: '“';
}
/* Preserve whitespace on notes */
ul.notes > li blockquote p:not(:empty):last-child:after,
li.note blockquote p:not(:empty):last-child:after {
content: '”';
}
/* Preserve whitespace on plaintext notes */
ul.notes li p.plaintext, li.note p.plaintext {
white-space: pre-wrap;
}

View file

@ -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: '”';
}
*/