Update styles for buttons, menulistbuttons, and toggles. r=mfinkle

--HG--
rename : mobile/themes/core/images/urlbar-bg.png => mobile/themes/core/images/button-bg.png
This commit is contained in:
Wesley Johnston 2010-10-19 16:28:00 -04:00
parent 4d624d9b53
commit a8413059d2
30 changed files with 112 additions and 150 deletions

View File

@ -122,7 +122,7 @@ toolbarbutton.urlbar-button {
color: #000;
border-radius: 8px;
margin: 8px;
background-image: url("chrome://browser/skin/images/urlbar-bg.png");
background-image: url("chrome://browser/skin/images/button-bg.png");
}
#urlbar-container[mode="edit"] > #identity-box {
@ -1073,12 +1073,20 @@ pageaction:not([image]) > hbox >.pageaction-image {
}
/* Preferences window ---------------------------------------------------- */
.setting {
padding-left: 10px;
border-bottom: 1px solid #cacdd5;
}
.settings-title {
font-weight: bold;
color: black;
background-color: lightgray;
font-size: smaller;
background-color: transparent;
margin: 0;
padding: 2px;
padding: 5px 10px;
background-image: url("chrome://browser/skin/images/settings-header-bg.png");
background-repeat: repeat-x;
background-size: auto 100%;
}
/* XXX should be a richlistitem */
@ -1267,19 +1275,19 @@ pageaction:not([image]) > hbox >.pageaction-image {
}
#form-helper-autofill > .autorepeatbutton-down {
list-style-image: url(images/arrowright-16.png);
list-style-image: url("chrome://browser/skin/images/arrowright-16.png");
}
#form-helper-autofill > .autorepeatbutton-down:-moz-locale-dir(rtl) {
list-style-image: url(images/arrowleft-16.png);
list-style-image: url("chrome://browser/skin/images/arrowleft-16.png");
}
#form-helper-autofill > .autorepeatbutton-up {
list-style-image: url(images/arrowleft-16.png);
list-style-image: url("chrome://browser/skin/images/arrowleft-16.png");
}
#form-helper-autofill > .autorepeatbutton-up:-moz-locale-dir(rtl) {
list-style-image: url(images/arrowright-16.png);
list-style-image: url("chrome://browser/skin/images/arrowright-16.png");
}
/* force the autorepeat buttons to create a 'padding' when collapsed */
@ -1305,7 +1313,7 @@ pageaction:not([image]) > hbox >.pageaction-image {
-moz-border-end: none;
}
.form-helper-autofill-label::hover:active {
.form-helper-autofill-label:hover:active {
background-color: #8db8d8;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 B

View File

@ -15,7 +15,7 @@ chrome.jar:
% override chrome://global/skin/about.css chrome://browser/skin/about.css
skin/images/aboutBackground.jpg (images/aboutBackground.jpg)
skin/images/urlbar-bg.png (images/urlbar-bg.png)
skin/images/button-bg.png (images/button-bg.png)
skin/images/browseaddons-bg.jpg (images/browseaddons-bg.jpg)
skin/images/addons-32.png (images/addons-32.png)
skin/images/arrowleft-16.png (images/arrowleft-16.png)
@ -33,10 +33,7 @@ chrome.jar:
skin/images/arrowbox-horiz.png (images/arrowbox-horiz.png)
skin/images/check-selected-30.png (images/check-selected-30.png)
skin/images/check-unselected-30.png (images/check-unselected-30.png)
skin/images/dropmarker-30.png (images/dropmarker-30.png)
skin/images/dropmarker-rtl-30.png (images/dropmarker-rtl-30.png)
skin/images/dropmarker-disabled-30.png (images/dropmarker-disabled-30.png)
skin/images/dropmarker-disabled-rtl-30.png (images/dropmarker-disabled-rtl-30.png)
skin/images/dropmarker-hdpi.png (images/dropmarker-hdpi.png)
skin/images/ratings-18.png (images/ratings-18.png)
skin/images/favicon-default-30.png (images/favicon-default-30.png)
skin/images/star-40.png (images/star-40.png)
@ -61,6 +58,7 @@ chrome.jar:
skin/images/downloads-default-64.png (images/downloads-default-64.png)
skin/images/settings-default-64.png (images/settings-default-64.png)
skin/images/preferences-default-64.png (images/preferences-default-64.png)
skin/images/settings-header-bg.png (images/settings-header-bg.png)
skin/images/console-default-64.png (images/console-default-64.png)
skin/images/newtab-default-64.png (images/newtab-default-64.png)
skin/images/tab-active-hdpi.png (images/tab-active-hdpi.png)
@ -69,22 +67,8 @@ chrome.jar:
skin/images/tab-reopen-hdpi.png (images/tab-reopen-hdpi.png)
skin/images/remotetabs-48.png (images/remotetabs-48.png)
skin/images/mozilla-32.png (images/mozilla-32.png)
skin/images/toggleoff-active-64.png (images/toggleoff-active-64.png)
skin/images/toggleoff-active-rtl-64.png (images/toggleoff-active-rtl-64.png)
skin/images/toggleoff-inactive-64.png (images/toggleoff-inactive-64.png)
skin/images/toggleoff-inactive-rtl-64.png (images/toggleoff-inactive-rtl-64.png)
skin/images/toggleon-active-64.png (images/toggleon-active-64.png)
skin/images/toggleon-active-rtl-64.png (images/toggleon-active-rtl-64.png)
skin/images/toggleon-inactive-64.png (images/toggleon-inactive-64.png)
skin/images/toggleon-inactive-rtl-64.png (images/toggleon-inactive-rtl-64.png)
skin/images/toggleleft-active-64.png (images/toggleleft-active-64.png)
skin/images/toggleleft-inactive-64.png (images/toggleleft-inactive-64.png)
skin/images/togglemiddle-active-64.png (images/togglemiddle-active-64.png)
skin/images/togglemiddle-inactive-64.png (images/togglemiddle-inactive-64.png)
skin/images/toggleright-active-64.png (images/toggleright-active-64.png)
skin/images/toggleright-inactive-64.png (images/toggleright-inactive-64.png)
skin/images/toggleboth-active-64.png (images/toggleboth-active-64.png)
skin/images/toggleboth-inactive-64.png (images/toggleboth-inactive-64.png)
skin/images/toggle-on.png (images/toggle-on.png)
skin/images/toggle-off.png (images/toggle-off.png)
skin/images/toggledarkleft-active-64.png (images/toggledarkleft-active-64.png)
skin/images/toggledarkleft-inactive-64.png (images/toggledarkleft-inactive-64.png)
skin/images/toggledarkmiddle-active-64.png (images/toggledarkmiddle-active-64.png)
@ -93,8 +77,6 @@ chrome.jar:
skin/images/toggledarkright-inactive-64.png (images/toggledarkright-inactive-64.png)
skin/images/toggledarkboth-active-64.png (images/toggledarkboth-active-64.png)
skin/images/toggledarkboth-inactive-64.png (images/toggledarkboth-inactive-64.png)
skin/images/button-default-64.png (images/button-default-64.png)
skin/images/button-active-64.png (images/button-active-64.png)
skin/images/buttondark-default-64.png (images/buttondark-default-64.png)
skin/images/buttondark-active-64.png (images/buttondark-active-64.png)
skin/images/toolbarbutton-default-64.png (images/toolbarbutton-default-64.png)

View File

@ -71,7 +71,7 @@ textbox {
/* textboxes --------------------------------------------------------------- */
textbox:not([type="number"]) {
min-height: 48px;
border: 3px solid #262629;
border: 2px solid #cacdd5;
-moz-border-radius: 8px;
-moz-border-top-colors: -moz-initial;
-moz-border-right-colors: -moz-initial;
@ -162,23 +162,21 @@ dialog > .prompt-header > .button-checkbox {
}
button {
min-width: 48px !important; /* button size */
min-height: 48px !important; /* button size */
-moz-appearance: none;
min-width: 56px !important; /* button size */
min-height: 56px !important; /* button size */
color: #000;
padding: 2px 4px;
border-width: 8px !important;
-moz-border-image: url("chrome://browser/skin/images/button-default-64.png") 8 repeat repeat;
background-color: transparent;
-moz-appearance: none !important;
}
button[type="checkbox"][checked="true"],
button:not([disabled="true"]):hover:active {
-moz-border-image: url("chrome://browser/skin/images/button-active-64.png") 8 repeat repeat;
border-radius: 8px;
margin: 8px;
padding: 10px;
background-image: url("chrome://browser/skin/images/button-bg.png");
background-size: auto 100%;
border: 1px solid #cacdd5;
}
button[disabled="true"] {
color: #aaa !important;
border: 1px solid #cacdd5 !important;
}
button:focus > .button-box {
@ -201,6 +199,7 @@ notification button {
color: #fff !important;
background: transparent !important;
-moz-border-image: url("chrome://browser/skin/images/buttondark-default-64.png") 8 repeat repeat;
border-radius: 8px;
}
/* notification background is too light for a white caption */
@ -219,18 +218,28 @@ button.button-dark[disabled="true"] {
}
/* spinbuttons ------------------------------------------------------------- */
spinbuttons {
border: none !important;
}
.numberbox-input-box {
max-width: 128px;
border: 3px solid #262629;
border: 2px solid #cacdd5;
border-right: 0px solid transparent;
-moz-border-radius-topleft: 8px;
-moz-border-radius-bottomleft: 8px;
border-radius: 8px 0px 0px 8px;
-moz-border-top-colors: -moz-initial;
-moz-border-bottom-colors: -moz-initial;
-moz-border-left-colors: -moz-initial;
}
.numberbox-input-box:-moz-locale-dir(rtl) {
border-radius: 0px 8px 8px 0px;
border-right: 2px solid #cacdd5;
border-left: 0px solid transparent;
}
.spinbuttons-box {
border: none !important;
-moz-box-orient: horizontal !important;
-moz-box-direction: reverse !important;
}
@ -240,24 +249,33 @@ button.button-dark[disabled="true"] {
display: block;
}
.spinbuttons-up {
border-width: 8px;
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-64.png") 8 repeat repeat !important;
.spinbuttons-up,
.spinbuttons-down {
-moz-appearance: none !important;
min-width: 56px !important; /* button size */
min-height: 56px !important; /* button size */
color: #000;
margin: 8px;
padding: 10px;
border-radius: 0px;
background-image: url("chrome://browser/skin/images/button-bg.png");
background-size: auto 100%;
border: 1px solid #cacdd5;
list-style-image: url("chrome://browser/skin/images/arrowup-16.png");
}
.spinbuttons-up:hover:active:not([disabled=true]) {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-64.png") 8 repeat repeat !important;
.spinbuttons-up:hover:active:not([disabled=true]),
.spinbuttons-down:hover:active:not([disabled=true]) {
background-image: url("chrome://browser/skin/images/toggle-on.png");
}
.spinbuttons-down {
border-width: 8px;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-inactive-64.png") 8 repeat repeat !important;
.spinbuttons-up {
border-radius: 0px 8px 8px 0px;
list-style-image: url("chrome://browser/skin/images/arrowdown-16.png");
}
.spinbuttons-down:hover:active:not([disabled=true]) {
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-active-64.png") 8 repeat repeat !important;
.spinbuttons-up:-moz-locale-dir(rtl) {
border-radius: 8px 0px 0px 8px;
}
/* toolbar buttons --------------------------------------------------------- */
@ -345,15 +363,16 @@ radiogroup {
}
radio {
color: #767973;
min-width: 48px !important; /* button size */
min-height: 48px !important;
padding: 2px !important;
margin: 0;
border-width: 8px;
-moz-box-align: center;
-moz-appearance: none;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-inactive-64.png") 8 repeat repeat;
min-width: 56px !important; /* button size */
min-height: 56px !important; /* button size */
color: #000;
padding: 10px;
margin: 0px;
background-image: url("chrome://browser/skin/images/button-bg.png");
background-size: auto 100%;
border-top: 1px solid #cacdd5;
border-bottom: 1px solid #cacdd5;
}
radio .radio-icon, radio .radio-check {
@ -362,53 +381,30 @@ radio .radio-icon, radio .radio-check {
radio:not([disabled=true]):hover:active,
radio[selected] {
color: #000;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-active-64.png") 8 repeat repeat;
color: white;
background-image: url("chrome://browser/skin/images/toggle-on.png");
}
radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-inactive-64.png") 8 repeat repeat;
border-left: 1px solid #cacdd5;
border-radius: 8px 0px 0px 8px;
}
radio:first-child:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleright-inactive-64.png") 8 repeat repeat;
}
radio:not([disabled=true]):first-child:hover:active,
radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-active-64.png") 8 repeat repeat;
}
radio:not([disabled=true]):first-child:hover:active:-moz-locale-dir(rtl),
radio:first-child[selected]:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleright-active-64.png") 8 repeat repeat;
border-left: none;
border-right: 1px solid #cacdd5;
border-radius: 0px 8px 8px 0px;
}
radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggleright-inactive-64.png") 8 repeat repeat;
border-right: 1px solid #cacdd5;
border-radius: 0px 8px 8px 0px;
}
radio:last-child:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-inactive-64.png") 8 repeat repeat;
}
radio:not([disabled=true]):last-child:hover:active,
radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleright-active-64.png") 8 repeat repeat;
}
radio:not([disabled=true]):last-child:hover:active:-moz-locale-dir(rtl),
radio:last-child[selected]:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-active-64.png") 8 repeat repeat;
}
radio:first-child:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggleboth-inactive-64.png") 8 repeat repeat;
}
radio:not([disabled=true]):first-child:last-child:hover:active,
radio:first-child:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleboth-active-64.png") 8 repeat repeat;
border-right: none;
border-left: 1px solid #cacdd5;
border-radius: 8px 0px 0px 8px;
}
/* checkbox radios --------------------------------------------------------- */
@ -416,36 +412,20 @@ checkbox {
margin: 1px 5px 2px 5px; /* match platform style for buttons */
}
radio.checkbox-radio-on {
-moz-border-image: url("chrome://browser/skin/images/toggleon-inactive-64.png") 8 repeat repeat;
radio.checkbox-radio-on:not([selected]) {
border-right: 1px solid #cacdd5;
}
radio.checkbox-radio-on:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleon-inactive-rtl-64.png") 8 repeat repeat;
radio.checkbox-radio-on:not([selected]):-moz-locale-dir(rtl) {
border-left: none;
border-left: 1px solid #cacdd5;
}
radio.checkbox-radio-on[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleon-active-64.png") 8 repeat repeat;
}
radio.checkbox-radio-on[selected]:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleon-active-rtl-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-rtl-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off[selected]:-moz-locale-dir(rtl) {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-rtl-64.png") 8 repeat repeat;
radio.checkbox-radio-off[selected],
radio.checkbox-radio-off:hover:active {
background-image: url("chrome://browser/skin/images/toggle-off.png");
color: black;
background-repeat: repeat-x;
}
radio.checkbox-radio-on:not([selected]) .radio-label-box,
@ -553,7 +533,7 @@ richlistitem[selected="true"] {
background-color: white;
}
richlistitem::hover:active:not([selected="true"]):not([nohighlight="true"]) {
richlistitem:hover:active:not([selected="true"]):not([nohighlight="true"]) {
background-color: #8db8d8;
}
@ -612,21 +592,21 @@ colorpicker > vbox {
}
menulist {
min-width: 48px !important; /* button size */
min-height: 48px !important; /* button size */
color: #000;
padding: 2px;
border-width: 8px !important;
-moz-border-image: url("chrome://browser/skin/images/button-default-64.png") 8 repeat repeat;
-moz-appearance: none !important;
}
menulist:not([disabled="true"]):hover:active {
-moz-border-image: url("chrome://browser/skin/images/button-active-64.png") 8 repeat repeat;
min-width: 56px !important; /* button size */
min-height: 56px !important; /* button size */
color: #000;
border-radius: 8px;
margin: 8px;
padding: 10px;
background-image: url("chrome://browser/skin/images/button-bg.png");
background-size: auto 100%;
border: 1px solid #cacdd5;
}
menulist[disabled="true"] {
color: #aaa !important;
border: 1px solid #cacdd5 !important;
}
menulist.button-dark {
@ -644,28 +624,20 @@ menulist.button-dark[disabled="true"] {
}
menulist > dropmarker {
height: 30px;
width: 38px;
height: 42px;
width: 42px;
margin-left: 5px;
background-color: transparent; /* for windows */
border: none; /* for windows */
-moz-box-align: center;
-moz-box-pack: center;
list-style-image: url("chrome://browser/skin/images/dropmarker-30.png");
list-style-image: url("chrome://browser/skin/images/dropmarker-hdpi.png");
-moz-image-region: auto;
display: block;
}
menulist > dropmarker:-moz-locale-dir(rtl) {
list-style-image: url("chrome://browser/skin/images/dropmarker-rtl-30.png");
}
menulist[disabled="true"] > dropmarker {
list-style-image: url("chrome://browser/skin/images/dropmarker-disabled-30.png");
}
menulist[disabled="true"] > dropmarker:-moz-locale-dir(rtl) {
list-style-image: url("chrome://browser/skin/images/dropmarker-disabled-rtl-30.png");
opacity: 0.5;
}
/* progressmeter ----------------------------------------------------------- */