fix checkboxes and radios to not use the -with-spacing variant any more as the checkb... EarlyBlue-2.50 LCARStrek-2.50
authorRobert Kaiser <kairo@kairo.at>
Sun, 9 Apr 2017 18:17:56 +0000 (20:17 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sun, 9 Apr 2017 18:17:56 +0000 (20:17 +0200)
EarlyBlue/global/checkbox.css
EarlyBlue/global/global.css
EarlyBlue/global/globalBindings.xml
EarlyBlue/global/radio.css
LCARStrek/global/checkbox.css
LCARStrek/global/global.css
LCARStrek/global/globalBindings.xml
LCARStrek/global/radio.css

index b28cea22f88b7c180737e46c905d7ab0ec6d6782..1c7cb5abe982c6ea542d3d17e36a521c77f6f924 100644 (file)
 /* ::::: 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;
 }
 
@@ -40,19 +33,18 @@ checkbox {
 
 /* ..... 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 ::::: */
@@ -64,25 +56,19 @@ checkbox[disabled="true"] {
   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
 }
index 7e71c174c2f5e7fc469a4abfb2547ed98727b4d6..d69d9e939497b94e2617c63a50e5ec1823031b48 100644 (file)
 
 /* ::::: 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 {
index daaa92f00be5841ff860b813f49e45ee68c64873..fc53dc19d5ba981224e7a8cbb17ff65e18cdb5a8 100644 (file)
     </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>
@@ -49,4 +29,4 @@
     </content>
   </binding>
 
-</bindings>
\ No newline at end of file
+</bindings>
index dfab765ab90fd62283e83cdecb4ad97f9ff04b37..4c956b49b523258f0fdbf0e875e5e906a9de5fc6 100644 (file)
 /* ::::: 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;
 }
 
@@ -59,6 +55,7 @@ radio[disabled="true"] {
 /* ::::: checkmark image ::::: */
 
 .radio-check-box1 {
+  margin: 0 0;
   border: 2px outset #CCD0DD;
   border-radius: 50%;
   width: 12px;
@@ -75,20 +72,20 @@ radio[disabled="true"] {
   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
 }
index c750a880157116d357d518ea287520a01bfe7981..289fa5d44803b28f8759d32f836d8d030d9a04cc 100644 (file)
 /* ::::: 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;
 }
 
@@ -41,19 +34,18 @@ checkbox {
 
 /* ..... 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;
 }
 
@@ -66,43 +58,32 @@ checkbox[disabled="true"] > .checkbox-label-center-box > .checkbox-label-box {
   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;
 }
 
@@ -123,26 +104,20 @@ caption > checkbox:hover:active {
   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");
 }
index 6a661111a8c8e30ad8f86a2b24dae4081d0257dc..5d9ee7eaf2852e480d4458a08dca0911a62a91be 100644 (file)
 
 /* ::::: 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 {
index 15cfb5a837b3983585951849a81348643203f8cb..ca5703b542d22418c8b69fc27e77850b9d9f3225 100755 (executable)
     </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>
index 9bbd1cd56f214e32dc633eb3a75250745fce4c10..e46d2223aaa80ee689f86a5fd8fbcbc73337e393 100644 (file)
 /* ::::: 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;
 }
@@ -60,14 +56,12 @@ radio[disabled="true"] {
 /* ::::: 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 {
@@ -78,27 +72,27 @@ radio[disabled="true"] {
   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
 }