Mozilla/mozilla/editor/ui/dialogs/skin/EditorDialog.css

276 lines
5.9 KiB
CSS

/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Pete Collins, Ben Goodger
*/
/*
THIS FILE IS LOCKED DOWN. YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
CHANGES REVIEWED BY cmanske@netscape.com.
*/
table { cell-spacing: 0px; }
td, table { border: 0px;}
/* Use to center vertically in a table cell */
tr {
vertical-align: middle;
}
input.MinWidth200, text.MinWidth200, titledbutton.MinWidth200 {
min-width: 200px;
}
select.SpellCheckList, select.SpellCheckLanguage, input.SpellCheckWord {
width: 200px;
}
select.dialog {
font-size: smaller;
}
div.spacer [align~=horizontal] {
border: 1px inset white;
height: 2px;
}
div#message {
width: 20em;
margin-left: 10px;
}
div.middle-align {
vertical-align: middle;
}
.margin-left-right {
margin-left: 10px;
margin-right: 5px;
}
div.color-well {
width:20px;
border: 1px inset #CCCCCC;
/* Background color is set at runtime */
}
div.color-well[default="true"] {
border: 1px solid transparent;
background-color: inherit;
}
td#ColorPreview {
border: 1px inset #CCCCCC;
padding-left: 5px;
padding-right: 5px;
min-width: 100px;
min-height: 50px;
}
/* A line of text inside the preview cell */
td#ColorPreview div {
margin-top: 5px;
margin-bottom: 5px;
}
/* XUL ELEMENTS */
/* SHOULD GO IN GLOBAL.CSS */
text {
text-align: left;
}
text[hidden="true"], input[hidden="true"] {
display: none;
}
/* values = margin, padding. Padding doesn't work yet */
/* Should be in XUL.css? */
tab {
padding: 0px 3px;
}
select#alignTypeSelect,label#alignLabel {
margin-left: 5px;
}
/* For right-aligned buttons */
titledbutton#AdvancedEditButton,titledbutton#AdvancedEditExtraButton,titledbutton#SaveDefault {
min-width: 8em;
}
titledbutton#editImageMap,titledbutton#removeImageMap {
margin-left: 6px;
margin-right: 6px;
min-width: 8em;
}
titledbutton#MoreFewerButton[more="0"] {
margin-left: 6px;
list-style-image: url(chrome://global/skin/scroll-down.gif);
/* bug 9459 - changing button text doesn't resize width.
This covers that problem, but we want this size anyway */
width: 10em;
}
titledbutton#MoreFewerButton[more="1"] {
margin-left: 6px;
list-style-image: url(chrome://global/skin/scroll-up.gif);
width: 10em;
}
/* We use a borderless button to show misspelled word in dialog */
titledbutton#MisspelledWord {
font-weight: bold;
}
text#linkTextCaption {
font-weight: bold;
}
/* For a column of right-aligned text before
a column of input fields, e.g., InsertTable dialog
*/
text.right {
/* doesn't work yet! must use align="right" in <text> */
text-align: right;
margin-right: 5px;
/* Kludge: this needs to be wide enoungh for longest string */
min-width: 10em;
}
/* need rule for outset shape */
menu.colorpicker {
border: 1px outset #CCCCCC;
/* For a little extra space between buttons */
margin-bottom: 2px;
}
titledbutton.color-well {
list-style-image:url("chrome://editor/skin/images/color.gif");
border: 1px solid #CCCCCC;
padding: 0px;
margin: 0px;
background-color: #AA0000;
}
titledbutton.color-well:hover {
border: 1px solid white;
}
/* THIS SHOULD BE IN GLOBAL.CSS */
label.dialog[disabled],legend.dialog[disabled] {
color: gray;
}
titledbutton.SizeToParent {
width: 100%;
/* A hack to get buttons to be the same width */
min-width: 5em;
}
spring.spacer {
width: 5px;
height: 5px;
min-width: 5px;
min-height: 5px;
}
spring.bigspacer {
width: 10px;
height: 10px;
min-width: 10px;
min-height: 10px;
}
img.AlignIcon {
margin-right: 5px;
/* To make all align the same */
/*vertical-align: middle;*/
}
titledbutton#img-align-top {
list-style-image:url("chrome://editor/skin/images/img-align-top.gif");
}
titledbutton#img-align-middle {
list-style-image:url("chrome://editor/skin/images/img-align-middle.gif");
}
titledbutton#img-align-bottom {
list-style-image:url("chrome://editor/skin/images/img-align-bottom.gif");
}
titledbutton#img-align-left {
list-style-image:url("chrome://editor/skin/images/img-align-left.gif");
}
titledbutton#img-align-right {
list-style-image:url("chrome://editor/skin/images/img-align-right.gif");
}
/* Rest are from Ben Goodger for Advanced Edit dialog
These need reviewing and eliminate all but essential attributes */
/* Have made some mods and eliminated some unnecessary portions.
hope to merge most of the treecell formatting into global as some of
this "property list" style treecell formatting is used by cookie/signon
viewers. */
div.tagname {
font-weight: bold;
}
div#tagLabel {
font-weight: bold;
}
/* In Color Properties dialog */
div#SaveImageMsg {
max-width: 150px;
}
/* styles for an attribute tree-table */
tree.AttributesTree {
min-width : 200px;
min-height: 200px;
}
tree.AttributesTree > treechildren > treeitem > treerow > treecell.value {
padding-left : 0px;
padding-top : 0px;
padding-bottom : 0px;
padding-right : 0px;
margin-left : 0px;
}
input.AttributesCell {
border: none;
width: 100%;
background-color: #FFFFFF;
font-weight: normal;
border: none;
outline: none;
margin: 0px;
width: 100%;
}
treecell > input {
margin: 0px;
background-color: #E5E5E5 ! important;
}