Make the declarations of colors for radio buttons and check boxes important, so they are unstylable (and styles in web pages don't cause them to disappear). b=58755 r=jkeiser sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@127253 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu 2002-08-14 12:42:03 +00:00
parent 6e54672f56
commit e02d3833a4
2 changed files with 24 additions and 26 deletions

View File

@ -291,8 +291,6 @@ input[type="radio"] {
cursor: default;
-moz-binding: none;
border-width: 2px !important;
border-style: inset !important;
-moz-border-radius: 100% !important;
}
@ -306,12 +304,19 @@ input[type="checkbox"] {
cursor: default;
-moz-binding: none;
border-width: 2px !important;
border-style: inset !important;
-moz-border-radius: 0 !important;
}
/* common features of radio buttons and check boxes */
input[type="radio"],
input[type="checkbox"] {
/* same colors as |input| rule, but |!important| this time. */
background-color: -moz-Field ! important;
color: -moz-FieldText ! important;
border: 2px inset ThreeDFace ! important;
}
input[type="radio"][disabled],
input[type="radio"][disabled]:active,
input[type="radio"][disabled]:hover,
@ -321,10 +326,7 @@ input[type="checkbox"][disabled]:active,
input[type="checkbox"][disabled]:hover,
input[type="checkbox"][disabled]:hover:active {
padding: 1px;
border-color: ThreeDShadow;
border-width: 1px !important;
border-style: inset !important;
border: 1px inset ThreeDShadow ! important;
}
input[type="checkbox"]:focus,
@ -334,17 +336,14 @@ input[type="radio"]:focus {
input[type="checkbox"]:hover:active,
input[type="radio"]:hover:active {
background-color: ThreeDFace;
background-color: ThreeDFace ! important;
border-style: inset !important;
}
*|*:-moz-radio {
width: 4px;
height: 4px;
left: 6px;
top: 6px;
background-color: -moz-FieldText;
background-color: -moz-FieldText ! important;
-moz-border-radius: 3px;
}

View File

@ -291,8 +291,6 @@ input[type="radio"] {
cursor: default;
-moz-binding: none;
border-width: 2px !important;
border-style: inset !important;
-moz-border-radius: 100% !important;
}
@ -306,12 +304,19 @@ input[type="checkbox"] {
cursor: default;
-moz-binding: none;
border-width: 2px !important;
border-style: inset !important;
-moz-border-radius: 0 !important;
}
/* common features of radio buttons and check boxes */
input[type="radio"],
input[type="checkbox"] {
/* same colors as |input| rule, but |!important| this time. */
background-color: -moz-Field ! important;
color: -moz-FieldText ! important;
border: 2px inset ThreeDFace ! important;
}
input[type="radio"][disabled],
input[type="radio"][disabled]:active,
input[type="radio"][disabled]:hover,
@ -321,10 +326,7 @@ input[type="checkbox"][disabled]:active,
input[type="checkbox"][disabled]:hover,
input[type="checkbox"][disabled]:hover:active {
padding: 1px;
border-color: ThreeDShadow;
border-width: 1px !important;
border-style: inset !important;
border: 1px inset ThreeDShadow ! important;
}
input[type="checkbox"]:focus,
@ -334,17 +336,14 @@ input[type="radio"]:focus {
input[type="checkbox"]:hover:active,
input[type="radio"]:hover:active {
background-color: ThreeDFace;
background-color: ThreeDFace ! important;
border-style: inset !important;
}
*|*:-moz-radio {
width: 4px;
height: 4px;
left: 6px;
top: 6px;
background-color: -moz-FieldText;
background-color: -moz-FieldText ! important;
-moz-border-radius: 3px;
}