pedemont%us.ibm.com 0df967901f Bug 275453 - Finish <upload> implementation. r=allan, r=aaronr. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@182788 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-23 04:24:23 +00:00

274 lines
6.9 KiB
CSS
Executable File

/*
% ***** BEGIN LICENSE BLOCK *****
% Version: MPL 1.1/GPL 2.0/LGPL 2.1
%
% The contents of this file are subject to the Mozilla 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/MPL/
%
% 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 XForms support.
%
% The Initial Developer of the Original Code is
% IBM Corporation.
% Portions created by the Initial Developer are Copyright (C) 2005
% the Initial Developer. All Rights Reserved.
%
% Contributor(s):
%
% Alternatively, the contents of this file may be used under the terms of
% either the GNU General Public License Version 2 or later (the "GPL"), or
% the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
% in which case the provisions of the GPL or the LGPL are applicable instead
% of those above. If you wish to allow use of your version of this file only
% under the terms of either the GPL or the LGPL, and not to allow others to
% use your version of this file under the terms of the MPL, indicate your
% decision by deleting the provisions above and replace them with the notice
% and other provisions required by the GPL or the LGPL. If you do not delete
% the provisions above, a recipient may use your version of this file under
% the terms of any one of the MPL, the GPL or the LGPL.
%
% ***** END LICENSE BLOCK *****
*/
@namespace url(http://www.w3.org/2002/xforms);
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace mozType url(http://www.mozilla.org/projects/xforms/2005/type);
repeat,
repeatitem,
contextcontainer,
group,
switch,
case,
select1 item,
select1 itemset,
select1 choices {
display: block;
}
contextcontainer-inline {
display: inline;
}
select item,
select itemset,
select choices {
display: none;
}
message[level="ephemeral"], hint {
background-color: InfoBackground;
color: InfoText;
padding: 2px 3px;
font: message-box;
border: 1px black solid;
visibility: hidden !important;
position: absolute !important;
}
alert {
display: none;
}
output {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-output');
}
input {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-input');
}
input[mozType|type="http://www.w3.org/2001/XMLSchema#boolean"] {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-input-boolean');
}
secret {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-secret');
}
textarea {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-textarea');
}
trigger, submit {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-trigger');
}
trigger[appearance="minimal"], submit[appearance="minimal"] {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-trigger-minimal');
}
trigger[appearance="minimal"]:hover, submit[appearance="minimal"]:hover {
cursor: pointer;
}
label {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-label');
}
select1 {
-moz-binding: url('chrome://xforms/content/select1.xml#xformswidget-select1');
}
select1 itemset,
select itemset {
-moz-binding: url('chrome://xforms/content/select1.xml#xformswidget-itemset');
}
/* Most of the select1 specific CSS is copied from forms.css */
select1 item {
-moz-binding: url('chrome://xforms/content/select1.xml#xformswidget-select1-item');
white-space : nowrap;
}
html|input.-moz-xforms-select1-dropdown {
width: 12px;
height: 1.3em;
white-space: nowrap;
position: static !important;
background-image: url("data:image/gif;base64,R0lGODlhBwAEAIAAAAAAAP%2F%2F%2FyH5BAEAAAEALAAAAAAHAAQAAAIIhA%2BBGWoNWSgAOw%3D%3D") !important;
background-repeat: no-repeat !important;
background-position: center !important;
-moz-appearance: menulist-button;
-moz-user-select: none !important;
-moz-user-focus: ignore !important;
-moz-binding: none;
vertical-align: text-top;
margin: 0px !important;
margin-top: -1px !important;
}
html|input.-moz-xforms-select1-dropdown::-moz-focus-inner {
border: 0 !important;
}
html|input.-moz-xforms-select1-dropdown:active:hover {
border-style: outset;
}
html|input.-moz-xforms-select1-input {
border: 1px dotted transparent;
margin-right: 0px;
padding: 0px;
font: -moz-list;
-moz-box-sizing: border-box;
height: 1.3em;
line-height: normal !important;
}
html|input.-moz-xforms-select1-input:focus {
border: 1px dotted black;
}
html|span.-moz-select1-container {
margin: 0px;
margin-bottom: 1px;
border-color: ThreeDFace;
background-color: -moz-Field;
color: -moz-FieldText;
font: -moz-list;
line-height: normal !important;
white-space: nowrap !important;
text-align: start;
cursor: default;
-moz-box-sizing: border-box;
-moz-appearance: menulist;
border-style: inset;
text-indent: 0;
padding-right: 0px;
overflow: hidden;
border-width: 2px;
padding-bottom: 0px;
padding-top: 1px;
}
html|div.-moz-xforms-select1-popup {
border-width: 1px;
top: 0px;
left: 0px;
border: 1px outset black !important;
background-color: -moz-Field;
font: -moz-list;
text-align: start;
visibility: hidden;
overflow-y: auto;
overflow-x: hidden;
position: absolute;
-moz-user-select: none;
z-index: 2147482647;
cursor: default;
}
item[_moz_active] {
color: HighlightText;
background: Highlight;
}
choices > label {
display: block;
font: -moz-list;
line-height: normal !important;
font-style: italic;
font-weight: bold;
font-size: inherit;
-moz-user-select: none;
text-indent: 0;
}
choices > item, choices > itemset, choices > choices{
padding-left: 20px;
font-style: normal;
font-weight: normal;
}
case {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-case');
}
case > html|div.-moz-xforms-case-container {
display: inherit;
}
/* select */
select {
-moz-binding: url('chrome://xforms/content/select.xml#xformswidget-select');
}
select[appearance="full"] {
-moz-binding: url('chrome://xforms/content/select.xml#xformswidget-select-full');
}
select html|div.select-choice-label {
font: -moz-list;
font-style: italic;
font-weight: bold;
}
select html|div.select-choice-content {
padding-left: 10px;
}
upload {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-upload-disabled');
}
upload[mozType|type="http://www.w3.org/2001/XMLSchema#anyURI"] {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-upload');
}
upload[mozType|type="http://www.w3.org/2001/XMLSchema#base64Binary"] {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-upload');
}
upload[mozType|type="http://www.w3.org/2001/XMLSchema#hexBinary"] {
-moz-binding: url('chrome://xforms/content/xforms.xml#xformswidget-upload');
}