diff --git a/edit/edit.css b/edit/edit.css index 9f8b7f4f..6f6645e1 100644 --- a/edit/edit.css +++ b/edit/edit.css @@ -576,9 +576,6 @@ html:not(.usercss) .applies-to li:last-child .add-applies-to { top: 1em; margin: 1ex 0; } -.firefox .beautify-options > label input { - top: 1px; -} .beautify-options:after { clear: both; display: block; @@ -808,10 +805,4 @@ html:not(.usercss) .usercss-only, flex-wrap: wrap; white-space: normal; } -} - -@supports (-moz-appearance: none) { - #header button { - padding: 0 3px 2px; - } -} +} \ No newline at end of file diff --git a/global.css b/global.css index 577d2253..7bef2323 100644 --- a/global.css +++ b/global.css @@ -1,3 +1,39 @@ +button { + -webkit-appearance: none; + -moz-appearance: none; + user-select: none; + padding: 2px 7px; + border: 1px solid hsl(0, 0%, 62%); + font: 400 13.3333px Arial; + color: #000; + background-color: hsl(0, 0%, 100%); + background: url(../images/button.png)repeat-x; + background-size: 100% 100%; + transition: background-color .25s, border-color .25s; +} + +button:hover { + background-color: hsl(0, 0%, 95%); + border-color: hsl(0, 0%, 52%); +} + +/* For some odd reason these hovers appear lighter than all other button hovers in every browser */ +#message-box-buttons button:hover { + background-color: hsl(0, 0%, 90%); + border-color: hsl(0, 0%, 50%); +} + +input:not([type]) { + background: #fff; + color: #000; + height: 22px; + min-height: 22px!important; + line-height: 22px; + padding: 0 3px; + font: 400 13.3333px Arial; + border: 1px solid hsl(0, 0%, 66%); +} + .svg-icon.checked { position: absolute; height: 8px; @@ -13,12 +49,11 @@ input[type="checkbox"]:not(.slider):checked + .svg-icon.checked { } input[type="checkbox"]:not(.slider) { + -webkit-appearance: none; + -moz-appearance: none; position: absolute; left: 0; top: 0; - -moz-appearance: none; - -webkit-appearance: none; - pointer-events: none; border: 1px solid hsl(0, 0%, 46%); height: 12px; width: 12px; @@ -63,17 +98,14 @@ select { -moz-appearance: none; -webkit-appearance: none; height: 22px; - color: currentColor; + font: 400 13.3333px Arial; + color: #000; background-color: transparent; border: 1px solid hsl(0, 0%, 66%); padding: 0 20px 0 6px; transition: color .5s; } -.firefox select { - padding: 0 20px 0 2px; -} - .select-resizer { display: inline-flex!important; cursor: default; @@ -86,7 +118,7 @@ select { display: inline-flex; height: 14px; width: 14px; - fill: currentColor; + fill: #000; position: absolute; top: 4px; right: 4px; @@ -101,12 +133,38 @@ select { .moz-appearance-bug input[type="checkbox"] { -moz-appearance: checkbox !important; } - - ::-moz-focus-inner { - border: 0; + + .firefox select { + font-size: 13px; + padding: 0 20px 0 2px; + line-height: 22px!important; } svg { transform: scale(1); /* de-blur */ } + +/* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */ + .firefox.non-windows input[type=number] { + -moz-appearance: textfield; + background: #fff; + color: #000; + border: 1px solid hsl(0, 0%, 66%); + } + + .firefox.non-windows input[type="number"]:hover, + .firefox.non-windows input[type="number"]:focus { + -moz-appearance: number-input; + } + +/* Firefox cannot handle fractions in font-size */ + .firefox button:not(.install) { + font-size: 13px; + line-height: 13px; + padding: 3px 7px; + } + + .firefox.moz-appearance-bug button:not(.install) { + padding: 2px 4px; + } } diff --git a/images/button.png b/images/button.png new file mode 100644 index 00000000..19d23892 Binary files /dev/null and b/images/button.png differ diff --git a/manage.html b/manage.html index 0ef738a0..a6ce6452 100644 --- a/manage.html +++ b/manage.html @@ -259,7 +259,7 @@
-+