/**@license setplus: a lightweight HTML editor
 * @author  Levente Hunyadi
 * @version 0.2.0
 * @remarks Copyright (C) 2010-2011 Levente Hunyadi
 * @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
 * @see     http://hunyadi.info.hu/projects/setplus
 **/

.setplus {
position:relative;
/*width:728px;*/
}
.setplus-resize {
position:absolute;
width: 11px;
height: 11px;
bottom:0;
right:0;
background:url("controls/resize.png");
cursor:se-resize;
}

/* editor area */
.setplus-viewpane {
position:relative;
width:100%;
height:300px;
border:thin solid black;
}
.setplus-viewpane > * {
width:100%;
}
.setplus-editorpane {
position:absolute;
margin:0;
border:0 none transparent;
padding:0;
top:0;
bottom:18px;
}
.setplus-editorpane.setplus-hidden {
height:0;
}
.setplus-editorpane > * {
position:absolute;
margin:0;
border:0 none transparent;
padding:0;
width:100%;
}
.setplus-statusbar {
position:absolute;
height:18px;
bottom:0;
background:#eee;
font:13px sans-serif;
}

/* toolbar */
.setplus-toolbar {
margin:2px 0;
}
.setplus-toolbar > button {
display:inline-block;
position:relative;
float:none;
height:28px;
width:28px;
margin:1px;
padding:0;
background-color:#ddd;
}
.setplus-toolbar > button[disabled] {
background-color:#fff;
}
.setplus-toolbar > button.setplus-toggled {
background-color:#888;
}
.setplus-toolbar > button > span {
display:inline-block;
height:16px;
width:16px;
margin:0;
border:0 none transparent;
padding:0;
background:transparent none no-repeat scroll center center;
}
.setplus-toolbar > .setplus-hidden {
display:none;
}
.setplus-toolbar > .setplus-aligncenter > span { background-image:url("toolbar/align_center.png"); }
.setplus-toolbar > .setplus-alignjustify > span { background-image:url("toolbar/align_justify.png"); }
.setplus-toolbar > .setplus-alignleft > span { background-image:url("toolbar/align_left.png"); }
.setplus-toolbar > .setplus-alignright > span { background-image:url("toolbar/align_right.png"); }
.setplus-toolbar > .setplus-blocks > span { background-image:url("toolbar/blocks.png"); }
.setplus-toolbar > .setplus-bold > span { background-image:url("toolbar/bold.png"); }
.setplus-toolbar > .setplus-code > span { background-image:url("toolbar/code.png"); }
.setplus-toolbar > .setplus-colafter > span { background-image:url("toolbar/table_col_insert_after.png"); }
.setplus-toolbar > .setplus-colbefore > span { background-image:url("toolbar/table_col_insert_before.png"); }
.setplus-toolbar > .setplus-coldelete > span { background-image:url("toolbar/table_col_delete.png"); }
.setplus-toolbar > .setplus-color > span { background-image:url("toolbar/color.png"); }
.setplus-toolbar > .setplus-copy > span { background-image:url("toolbar/copy.png"); }
.setplus-toolbar > .setplus-cut > span { background-image:url("toolbar/cut.png"); }
.setplus-toolbar > .setplus-document > span { background-image:url("toolbar/document.png"); }
.setplus-toolbar > .setplus-find > span { background-image:url("toolbar/find.png"); }
.setplus-toolbar > .setplus-fullscreen > span { background-image:url("toolbar/fullscreen.png"); }
.setplus-toolbar > .setplus-h1 > span { background-image:url("toolbar/h1.png"); }
.setplus-toolbar > .setplus-h2 > span { background-image:url("toolbar/h2.png"); }
.setplus-toolbar > .setplus-h3 > span { background-image:url("toolbar/h3.png"); }
.setplus-toolbar > .setplus-h4 > span { background-image:url("toolbar/h4.png"); }
.setplus-toolbar > .setplus-h5 > span { background-image:url("toolbar/h5.png"); }
.setplus-toolbar > .setplus-h6 > span { background-image:url("toolbar/h6.png"); }
.setplus-toolbar > .setplus-image > span { background-image:url("toolbar/image.png"); }
.setplus-toolbar > .setplus-indent > span { background-image:url("toolbar/indent.png"); }
.setplus-toolbar > .setplus-italic > span { background-image:url("toolbar/italic.png"); }
.setplus-toolbar > .setplus-link > span { background-image:url("toolbar/link.png"); }
.setplus-toolbar > .setplus-orderedlist > span { background-image:url("toolbar/orderedlist.png"); }
.setplus-toolbar > .setplus-outdent > span { background-image:url("toolbar/outdent.png"); }
.setplus-toolbar > .setplus-p > span { background-image:url("toolbar/p.png"); }
.setplus-toolbar > .setplus-paste > span { background-image:url("toolbar/paste.png"); }
.setplus-toolbar > .setplus-pasteplain > span { background-image:url("toolbar/paste_plain.png"); }
.setplus-toolbar > .setplus-pasteword > span { background-image:url("toolbar/paste_word.png"); }
.setplus-toolbar > .setplus-pre > span { background-image:url("toolbar/pre.png"); }
.setplus-toolbar > .setplus-print > span { background-image:url("toolbar/print.png"); }
.setplus-toolbar > .setplus-redo > span { background-image:url("toolbar/redo.png"); }
.setplus-toolbar > .setplus-removeformat > span { background-image:url("toolbar/removeformat.png"); }
.setplus-toolbar > .setplus-rowafter > span { background-image:url("toolbar/table_row_insert_after.png"); }
.setplus-toolbar > .setplus-rowbefore > span { background-image:url("toolbar/table_row_insert_before.png"); }
.setplus-toolbar > .setplus-rowdelete > span { background-image:url("toolbar/table_row_delete.png"); }
.setplus-toolbar > .setplus-selectall > span { background-image:url("toolbar/selectall.png"); }
.setplus-toolbar > .setplus-source > span { background-image:url("toolbar/source.png"); }
.setplus-toolbar > .setplus-subscript > span { background-image:url("toolbar/subscript.png"); }
.setplus-toolbar > .setplus-superscript > span { background-image:url("toolbar/superscript.png"); }
.setplus-toolbar > .setplus-symbol > span { background-image:url("toolbar/symbol.png"); }
.setplus-toolbar > .setplus-table > span { background-image:url("toolbar/table.png"); }
.setplus-toolbar > .setplus-undo > span { background-image:url("toolbar/undo.png"); }
.setplus-toolbar > .setplus-unlink > span { background-image:url("toolbar/unlink.png"); }
.setplus-toolbar > .setplus-unorderedlist > span { background-image:url("toolbar/unorderedlist.png"); }
.setplus-toolbar > .setplus-zoomin > span { background-image:url("toolbar/zoomin.png"); }
.setplus-toolbar > .setplus-zoomout > span { background-image:url("toolbar/zoomout.png"); }

/* drop-down list control */
div.setplus-list {
display:inline-block;
position:relative;
margin:0;
border:1px solid #888;
border-radius:3px;
padding:0 10px 0 0;
height:20px;
width:190px;
}
div.setplus-list > span {
display:inline-block;
position:absolute;
padding:2px 15px 4px 2px;
height:18px;
width:182px;
font:13px Arial,Helvetica,sans-serif;
}
div.setplus-list > span.setplus-list {
margin:-1px -1px 0 0;
border:1px solid transparent;
border-radius:3px;
right:0;
padding:1px;
width:15px;
background:transparent url("controls/dropdown.png") no-repeat scroll center center;
}
div.setplus-list:hover > span.setplus-list {
background-color:rgb(169,219,246);
border:1px solid #888;
}
div.setplus-list.setplus-disabled > span.setplus-list {
background-color:transparent !important;
}
ul.setplus-list {
display:none;
position:absolute;
border:1px solid #888;
margin:0;
padding:1px;
width:196px;
height:100px;
top:22px;
overflow:auto;
z-index:999999;
background:#fff;
}
div.setplus-open > ul.setplus-list {
display:block;
}

ul.setplus-list > li {
display:block;
list-style:none;
margin:0;
padding:6px 0;
}
div.setplus-open > ul.setplus-list > li:hover {
background:#9e0000;
color:#fff;
}
ul.setplus-list > li > * {
margin:0;
padding:0;
}

/* full-screen mode */
html.setplus-fullscreen {
height:100%;
width:100%;
overflow:hidden;
}

div.setplus-fullscreen {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
background-color:#fff;
z-index:99999;
overflow:auto;
}

div.setplus-fullscreen > .setplus-viewpane {
border:0 none transparent;
position:absolute;
height:auto;
top:28px;  /* toolbar height */
bottom:0;
}

/* rich-text editor */
.setplus-editorpane > iframe {
height:100%;
}

/* plain text editor area */
.setplus-editorpane > div.setplus-preset {
display:none;
width:100%;
height:100% !important;
overflow:hidden;
}
.setplus-editorpane > div.setplus-preset > pre {
margin:0;
border:0 none transparent;
padding:0;
-moz-padding-start:1px;
-moz-padding-end:1px;
font-size:100%;
white-space:pre-wrap;
white-space:-moz-pre-wrap !important; /* Mozilla since 1999 */
word-wrap:break-word; /* Internet Explorer 5.5+ */
overflow:scroll;
overflow-x:auto;
}
.setplus-editorpane > textarea {
background:transparent none no-repeat scroll center center !important;
width:100% !important;
height:100% !important;
resize:none;
overflow:scroll;
overflow-x:auto;
}
.setplus-editorpane > textarea.setplus-sizing {
width:auto !important;
}
.setplus-editorpane > div.setplus-preset.setplus-highlight {
display:block;
}
.setplus-editorpane > textarea.setplus-highlight {
color:black;
color:transparent !important;
filter:progid:DXImageTransform.Microsoft.Chroma(color='black');
}
.setplus-caret {
position:absolute;
border-left:1px solid black !important;
white-space:pre;
height:auto !important;
width:auto !important;
}

span.setplus-element {
color:blue;
}
span.setplus-attribute {
color:red;
}
span.setplus-entity {
color:green;
}

/* dialogs */
.setplus-dialog {
position:fixed;
border:1px solid black;
background:#fff;
width:400px;
height:300px;
min-width:200px;
min-height:100px;
max-height:400px;
font:13px Arial,Helvetica,sans-serif;
}
.setplus-dialog > .setplus-titlebar {
position:absolute;
border-bottom:1px solid black;
background:#6b7b95;
width:100%;
height:16px;
cursor:move;
}
.setplus-dialog > .setplus-titlebar > .setplus-title {
position:absolute;
left:0;
right:18px;
height:18px;
font:13px;
color:#fff;
}
.setplus-dialog > .setplus-titlebar > .setplus-close {
position:absolute;
border-left:1px solid black;
background:#fff url("controls/close.png") no-repeat center center;
cursor:default;
width:16px;
height:16px;
right:0;
}
.setplus-dialog > .setplus-container {
position:absolute;
top:17px;
bottom:11px;
width:100%;
overflow:auto;
overflow-x:hidden;
}

/* miscellaneous */
.setplus-hidden {
visibility:hidden !important;
}