/* ::::: checkbox ::::: */
checkbox {
- margin: 1px 2px;
- border-left: 1px transparent;
- border-right: 1px transparent;
-}
-
-.checkbox-spacer-box {
- -moz-box-align: center;
- border-right: 4px solid transparent;
-}
-
-.checkbox-label-center-box {
-moz-box-align: center;
+ margin: 1px 2px;
+ padding-top: 0;
+ padding-bottom: 0;
+ padding-inline-start: 2px;
+ padding-inline-end: 0;
}
.checkbox-label-box {
border: 1px solid transparent;
- -moz-box-align: center;
}
-.checkbox-icon[src] {
+.checkbox-icon {
margin-inline-end: 2px;
}
/* ..... focused state ..... */
-checkbox:-moz-focusring > .checkbox-label-center-box > .checkbox-label-box {
+checkbox:-moz-focusring > .checkbox-label-box {
border: 1px dotted #9999CC;
}
/* ..... disabled state ..... */
-checkbox[disabled="true"] > .checkbox-check,
-checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[disabled="true"] > .checkbox-check {
background-color: #CCD0DD;
}
-checkbox[disabled="true"] {
- color: #999999 !important;
+checkbox[disabled="true"] > .checkbox-label-box {
+ color: #999999;
}
/* ::::: checkmark image ::::: */
min-width: 12px;
min-height: 12px;
background: transparent 50% 50% no-repeat;
+ margin-inline-end: 3px;
}
-checkbox > .checkbox-check {
- margin-inline-end: 4px;
-}
-
-checkbox:hover:active > .checkbox-check,
-checkbox:hover:active > .checkbox-spacer-box > .checkbox-check {
+checkbox:hover:active > .checkbox-check {
background-color: #CCD0DD;
}
/* ..... checked state ..... */
-checkbox[checked="true"] > .checkbox-check,
-checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[checked="true"] > .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
}
-checkbox[checked="true"][disabled="true"] > .checkbox-check,
-checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[checked="true"][disabled="true"] > .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important
}
/* ::::: XBL bindings ::::: */
-checkbox {
- -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
-}
-
radio {
- -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
+ -moz-binding: url("chrome://global/skin/globalBindings.xml#radio");
}
menulist > menupopup {
</content>
</binding>
- <binding id="radio-with-spacing"
- extends="chrome://global/skin/globalBindings.xml#radio">
-
- <content>
- <xul:hbox class="radio-spacer-box">
- <xul:hbox class="radio-check-box1" xbl:inherits="selected,checked,disabled">
- <xul:hbox class="radio-check-box2" flex="1">
- <xul:image class="radio-check" xbl:inherits="selected,checked,disabled"/>
- </xul:hbox>
- </xul:hbox>
- </xul:hbox>
- <xul:hbox class="radio-label-center-box" flex="1">
- <xul:hbox class="radio-label-box" flex="1">
- <xul:image class="radio-icon" xbl:inherits="src"/>
- <xul:label class="radio-label" xbl:inherits="xbl:text=label,accesskey,crop" flex="1"/>
- </xul:hbox>
- </xul:hbox>
- </content>
- </binding>
-
<binding id="toolbarpaletteitem-spacer"
extends="chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem">
<content>
</content>
</binding>
-</bindings>
\ No newline at end of file
+</bindings>
/* ::::: radio ::::: */
radio {
- margin: 1px 2px;
- border-left: 1px transparent;
- border-right: 1px transparent;
-}
-
-.radio-spacer-box {
- -moz-box-align: center;
- border-right: 4px solid transparent;
- border-top: 1px;
- border-bottom: 1px;
-}
-
-.radio-label-center-box {
-moz-box-align: center;
+ margin: 1px 2px;
+ padding-top: 0;
+ padding-bottom: 0;
+ padding-inline-start: 2px;
+ padding-inline-end: 0;
}
.radio-label-box {
+ margin-inline-start: 2px;
border: 1px solid transparent;
- -moz-box-align: center;
+ padding-top: 0px;
+ padding-bottom: 0;
+ padding-inline-start: 1px;
+ padding-inline-end: 0px;
}
-.radio-icon[src] {
+.radio-icon {
margin-inline-end: 2px;
}
.radio-label {
- margin: 0px !important;
+ margin: 0 !important;
}
/* ..... focused state ..... */
-radio[focused="true"] > .radio-label-center-box > .radio-label-box {
+radio[focused="true"] > .radio-label-box {
border: 1px dotted #9999CC;
}
/* ..... disabled state ..... */
-radio[disabled="true"] > .radio-spacer-box > .radio-check-box1 {
+radio[disabled="true"] > .radio-check-box1 {
background-color: #CCD0DD;
}
/* ::::: checkmark image ::::: */
.radio-check-box1 {
+ margin: 0 0;
border: 2px outset #CCD0DD;
border-radius: 50%;
width: 12px;
list-style-image: none;
}
-radio:hover:active > .radio-spacer-box > .radio-check-box1 {
+radio:hover:active > .radio-check-box1 {
border: 2px inset #CCD0DD;
}
-radio[disabled="true"]:hover:active > .radio-spacer-box > .radio-check-box1 {
+radio[disabled="true"]:hover:active > .radio-check-box1 {
border: 2px outset #CCD0DD;
}
/* ..... selected state ..... */
-radio[selected="true"] > .radio-spacer-box > .radio-check-box1 > .radio-check-box2 {
+radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
}
-radio[selected="true"][disabled="true"] > .radio-spacer-box > .radio-check-box1 > .radio-check-box2 {
+radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
list-style-image: url("chrome://global/skin/radio/radio-check-disabled.gif") !important
}
/* ::::: checkbox ::::: */
checkbox {
- margin: 1px 2px;
- border-left: 1px transparent;
- border-right: 1px transparent;
-}
-
-.checkbox-spacer-box {
- -moz-box-align: center;
- border-right: 4px solid transparent;
-}
-
-.checkbox-label-center-box {
-moz-box-align: center;
+ margin: 1px 2px;
+ padding-top: 0;
+ padding-bottom: 0;
+ padding-inline-start: 2px;
+ padding-inline-end: 0;
}
.checkbox-label-box {
border: 1px solid transparent;
color: #FF9F00;
- -moz-box-align: center;
}
-.checkbox-icon[src] {
+.checkbox-icon {
margin-inline-end: 2px;
}
/* ..... focused state ..... */
-checkbox:-moz-focusring > .checkbox-label-center-box > .checkbox-label-box {
+checkbox:-moz-focusring > .checkbox-label-box {
border: 1px dotted #008484;
}
/* ..... disabled state ..... */
-checkbox[disabled="true"] > .checkbox-check,
-checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[disabled="true"] > .checkbox-check {
border: 1px solid #8050B0;
background-color: #000000;
}
-checkbox[disabled="true"] > .checkbox-label-center-box > .checkbox-label-box {
+checkbox[disabled="true"] > .checkbox-label-box {
color: #8050B0;
}
height: 1em;
min-width: 12px;
min-height: 12px;
- background: transparent 50% 50% no-repeat;
-}
-
-checkbox > .checkbox-check {
- margin-inline-end: 4px;
+ background: #000000 no-repeat 50% 50%;
+ margin-inline-end: 3px;
}
checkbox:not([disabled="true"]):hover > .checkbox-check,
-checkbox:not([disabled="true"]):hover:active > .checkbox-check,
-checkbox:not([disabled="true"]):hover > .checkbox-spacer-box > .checkbox-check,
-checkbox:not([disabled="true"]):hover:active > .checkbox-spacer-box > .checkbox-check {
+checkbox:not([disabled="true"]):hover:active > .checkbox-check {
border: 1px solid #FFCF00;
}
checkbox:not([disabled="true"]):hover > .checkbox-label-box,
-checkbox:not([disabled="true"]):hover:active > .checkbox-label-box,
-checkbox:not([disabled="true"]):hover > .checkbox-label-center-box > .checkbox-label-box,
-checkbox:not([disabled="true"]):hover:active > .checkbox-label-center-box > .checkbox-label-box {
+checkbox:not([disabled="true"]):hover:active > .checkbox-label-box {
color: #FFCF00;
}
/* ..... checked state ..... */
-checkbox[checked="true"] > .checkbox-check,
-checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[checked="true"] > .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
}
checkbox[checked="true"]:hover > .checkbox-check,
-checkbox[checked="true"]:hover:active > .checkbox-check,
-checkbox[checked="true"]:hover > .checkbox-spacer-box > .checkbox-check,
-checkbox[checked="true"]:hover:active > .checkbox-spacer-box > .checkbox-check {
+checkbox[checked="true"]:hover:active > .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check-hover.gif");
}
-checkbox[checked="true"][disabled="true"] .checkbox-check,
-checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
+checkbox[checked="true"][disabled="true"] .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important;
}
background-color: #FF9F00;
}
-caption > checkbox:not([disabled="true"]) > .checkbox-label-center-box > .checkbox-label-box,
-caption > checkbox:not([disabled="true"]):hover > .checkbox-label-center-box > .checkbox-label-box,
-caption > checkbox:not([disabled="true"]):hover:active > .checkbox-label-center-box > .checkbox-label-box {
+caption > checkbox:not([disabled="true"]) > .checkbox-label-box,
+caption > checkbox:not([disabled="true"]):hover > .checkbox-label-box,
+caption > checkbox:not([disabled="true"]):hover:active > .checkbox-label-box {
color: inherit;
}
caption > checkbox:not([disabled="true"]) > .checkbox-check,
caption > checkbox:not([disabled="true"]):hover > .checkbox-check,
-caption > checkbox:not([disabled="true"]):hover:active > .checkbox-check,
-caption > checkbox:not([disabled="true"]) > .checkbox-spacer-box > .checkbox-check,
-caption > checkbox:not([disabled="true"]):hover > .checkbox-spacer-box > .checkbox-check,
-caption > checkbox:not([disabled="true"]):hover:active > .checkbox-spacer-box > .checkbox-check {
+caption > checkbox:not([disabled="true"]):hover:active > .checkbox-check {
border-color: #000000;
}
caption > checkbox[checked="true"] > .checkbox-check,
caption > checkbox[checked="true"]:hover > .checkbox-check,
-caption > checkbox[checked="true"]:hover:active > .checkbox-check,
-caption > checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check,
-caption > checkbox[checked="true"]:hover > .checkbox-spacer-box > .checkbox-check,
-caption > checkbox[checked="true"]:hover:active > .checkbox-spacer-box > .checkbox-check {
+caption > checkbox[checked="true"]:hover:active > .checkbox-check {
background-image: url("chrome://global/skin/checkbox/cbox-check-inverted.gif");
}
/* ::::: XBL bindings ::::: */
-checkbox {
- -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
-}
-
radio {
- -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
+ -moz-binding: url("chrome://global/skin/globalBindings.xml#radio");
}
menulist > menupopup {
</content>
</binding>
- <binding id="radio-with-spacing"
- extends="chrome://global/skin/globalBindings.xml#radio">
-
- <content>
- <xul:hbox class="radio-spacer-box">
- <xul:hbox class="radio-check-box1" xbl:inherits="selected,checked,disabled">
- <xul:hbox class="radio-check-box2" flex="1">
- <xul:image class="radio-check" xbl:inherits="selected,checked,disabled"/>
- </xul:hbox>
- </xul:hbox>
- </xul:hbox>
- <xul:hbox class="radio-label-center-box" flex="1">
- <xul:hbox class="radio-label-box" flex="1">
- <xul:image class="radio-icon" xbl:inherits="src"/>
- <xul:label class="radio-label" xbl:inherits="xbl:text=label,accesskey,crop" flex="1"/>
- </xul:hbox>
- </xul:hbox>
- </content>
- </binding>
-
<binding id="toolbarpaletteitem-spacer"
extends="chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem">
<content>
</content>
</binding>
-</bindings>
\ No newline at end of file
+</bindings>
/* ::::: radio ::::: */
radio {
- margin: 1px 2px;
- border-left: 1px transparent;
- border-right: 1px transparent;
-}
-
-.radio-spacer-box {
- -moz-box-align: center;
- border-right: 4px solid transparent;
- border-top: 1px;
- border-bottom: 1px;
-}
-
-.radio-label-center-box {
-moz-box-align: center;
+ margin: 1px 2px;
+ padding-top: 0;
+ padding-bottom: 0;
+ padding-inline-start: 2px;
+ padding-inline-end: 0;
}
.radio-label-box {
+ margin-inline-start: 2px;
border: 1px solid transparent;
- -moz-box-align: center;
+ padding-top: 0px;
+ padding-bottom: 0;
+ padding-inline-start: 1px;
+ padding-inline-end: 0px;
}
-.radio-icon[src] {
+.radio-icon {
margin-inline-end: 2px;
}
.radio-label {
- margin: 0px !important;
+ margin: 0 !important;
}
/* ..... focused state ..... */
-radio[focused="true"] > .radio-label-center-box > .radio-label-box {
+radio[focused="true"] > .radio-label-box {
border: 1px dotted #008484;
}
/* ..... disabled state ..... */
-radio[disabled="true"] > .radio-spacer-box > .radio-check-box1 {
+radio[disabled="true"] > .radio-check-box1 {
background-color: #000000;
border: 1px solid #8050B0;
}
/* ::::: checkmark image ::::: */
.radio-check-box1 {
-/* -moz-box-align: center;
- -moz-box-pack: center; */
+ margin: 0 0;
border: 1px solid #FF9F00;
border-radius: 50%;
width: 10px;
height: 10px;
background-color: #000000;
- /* background-color: transparent; */
}
.radio-check-box2 {
list-style-image: none;
}
-radio:not([disabled="true"]):hover > .radio-spacer-box > .radio-check-box1,
-radio:not([disabled="true"]):hover:active > .radio-spacer-box > .radio-check-box1 {
+radio:not([disabled="true"]):hover > .radio-check-box1,
+radio:not([disabled="true"]):hover:active > .radio-check-box1 {
border: 1px solid #FFCF00;
}
-radio:not([disabled="true"]):hover > .radio-label-center-box > .radio-label-box,
-radio:not([disabled="true"]):hover:active > .radio-label-center-box > .radio-label-box {
+radio:not([disabled="true"]):hover > .radio-label-box,
+radio:not([disabled="true"]):hover:active > .radio-label-box {
color: #FFCF00;
}
/* ..... selected state ..... */
-radio[selected="true"] > .radio-spacer-box > .radio-check-box1 > .radio-check-box2 {
+radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
}
-radio[selected="true"]:hover > .radio-spacer-box > .radio-check-box1 > .radio-check-box2,
-radio[selected="true"]:hover:active > .radio-spacer-box > .radio-check-box1 > .radio-check-box2{
+radio[selected="true"]:hover > .radio-check-box1 > .radio-check-box2,
+radio[selected="true"]:hover:active > .radio-check-box1 > .radio-check-box2{
list-style-image: url("chrome://global/skin/radio/radio-check-hover.gif");
}
-radio[selected="true"][disabled="true"] > .radio-spacer-box > .radio-check-box1 > .radio-check-box2 {
+radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
list-style-image: url("chrome://global/skin/radio/radio-check-disabled.gif") !important
}