mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
This means scaling the the size of the images used for buttons and making sure that at large magnifications, the toolbar's text input properly moves into its own line instead of simply overlapping the preference immediately below. We also want to make sure that the text on any buttons remains vertically centred. MozReview-Commit-ID: 7rUf1tucAzL
346 lines
6.8 KiB
CSS
346 lines
6.8 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #ced7de;
|
|
-moz-user-select: none;
|
|
font-family: "Clear Sans",sans-serif;
|
|
-moz-text-size-adjust: none;
|
|
}
|
|
|
|
.toolbar {
|
|
width: 100%;
|
|
min-height: 3em;
|
|
display: flow-root;
|
|
position: sticky;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
box-shadow: 0 0 3px #444;
|
|
background-color: #ced7de;
|
|
color: #000000;
|
|
font-weight: bold;
|
|
border-bottom: 2px solid;
|
|
-moz-border-bottom-colors: #ff9100 #f27900;
|
|
}
|
|
|
|
.toolbar-container {
|
|
max-width: 40em;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#filter-container {
|
|
margin: 0.375em;
|
|
height: 2em;
|
|
border: 1px solid transparent;
|
|
border-image-source: url("chrome://browser/skin/images/textfield.png");
|
|
border-image-slice: 1 1 3 1;
|
|
border-image-width: 1px 1px 3px 1px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: row;
|
|
float: right;
|
|
}
|
|
|
|
#filter-container:dir(rtl) {
|
|
float: left;
|
|
}
|
|
|
|
#filter-input {
|
|
-moz-appearance: none;
|
|
border: none;
|
|
background-image: none;
|
|
background-color: transparent;
|
|
display: inline-block;
|
|
width: 12em;
|
|
min-width: 0;
|
|
color: #000000;
|
|
opacity: 1;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
#filter-input::placeholder {
|
|
color: #777777;
|
|
}
|
|
|
|
.toolbar input {
|
|
display: inline-block;
|
|
height: 100%;
|
|
min-width: 3em;
|
|
box-sizing: border-box;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
#new-pref-toggle-button {
|
|
background-position: center center;
|
|
background-image: url("chrome://browser/skin/images/config-plus.png");
|
|
background-size: 3em 3em;
|
|
height: 3em;
|
|
width: 3em;
|
|
display: inline-block;
|
|
outline-style: none;
|
|
float: left;
|
|
}
|
|
|
|
#new-pref-toggle-button:dir(rtl) {
|
|
float: right;
|
|
}
|
|
|
|
#filter-search-button {
|
|
background-image: url("chrome://browser/skin/images/search.png");
|
|
background-size: 2em 2em;
|
|
height: 2em;
|
|
width: 2em;
|
|
display: inline-block;
|
|
outline-style: none;
|
|
}
|
|
|
|
#filter-input-clear-button {
|
|
background-image: url("chrome://browser/skin/images/search-clear-30.png");
|
|
background-size: 2em 2em;
|
|
height: 2em;
|
|
width: 2em;
|
|
display: inline-block;
|
|
outline-style: none;
|
|
}
|
|
|
|
#filter-input[value=""] + #filter-input-clear-button {
|
|
display: none;
|
|
}
|
|
|
|
.toolbar-item {
|
|
display: inline-block;
|
|
height: 3em;
|
|
min-width: 3em;
|
|
float: right;
|
|
}
|
|
|
|
#content {
|
|
position: relative;
|
|
margin: 0;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
min-height: 100%;
|
|
max-width: 40em;
|
|
}
|
|
|
|
ul {
|
|
list-style-position: inside;
|
|
border: 1px solid #808080;
|
|
background-color: #ffffff;
|
|
min-height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 0 5px #000000;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
#new-pref-container {
|
|
width: 100%;
|
|
margin: 0;
|
|
background-color: #ffffff;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 0 5px #000000;
|
|
overflow-x: hidden;
|
|
max-width: 40em;
|
|
max-height: 100%;
|
|
position: fixed;
|
|
top: 3em;
|
|
left: auto;
|
|
display: none;
|
|
z-index: 5;
|
|
}
|
|
|
|
#new-pref-container input,
|
|
#new-pref-container select {
|
|
border: none;
|
|
background-image: none;
|
|
}
|
|
|
|
#new-pref-container.show {
|
|
display: block;
|
|
}
|
|
|
|
li {
|
|
list-style-type: none;
|
|
border-bottom: 1px solid #d3d3d3;
|
|
opacity: 1;
|
|
background-color: #ffffff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#new-pref-line-boolean,
|
|
#new-pref-value-string,
|
|
#new-pref-value-int {
|
|
display: none;
|
|
}
|
|
#new-pref-item[typestyle="boolean"] #new-pref-line-boolean,
|
|
#new-pref-item[typestyle="string"] #new-pref-value-string,
|
|
#new-pref-item[typestyle="int"] #new-pref-value-int {
|
|
display: block;
|
|
}
|
|
|
|
.pref-name,
|
|
.pref-value {
|
|
padding: 15px 10px;
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
background-image: none;
|
|
direction: ltr;
|
|
}
|
|
|
|
.pref-value {
|
|
color: rgba(0,0,0,0.5);
|
|
flex: 1 1 auto;
|
|
border: none;
|
|
-moz-appearance: none;
|
|
background-image: none;
|
|
background-color: transparent;
|
|
unicode-bidi: plaintext;
|
|
}
|
|
|
|
.pref-name[locked] {
|
|
padding-right: 20px;
|
|
background-image: url("chrome://browser/skin/images/lock.png");
|
|
background-repeat: no-repeat;
|
|
background-position: right 50%;
|
|
background-size: auto 60%;
|
|
}
|
|
|
|
#new-pref-name {
|
|
width: 30em;
|
|
}
|
|
|
|
#new-pref-type {
|
|
display: inline-block !important;
|
|
border-left: 1px solid #d3d3d3;
|
|
width: 10em;
|
|
text-align: right;
|
|
}
|
|
|
|
.pref-item-line {
|
|
border-top: 1px solid rgba(0,0,0,0.05);
|
|
color: rgba(0,0,0,0.5);
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#new-pref-value-boolean {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
#new-pref-container .pref-button.toggle {
|
|
display: inline-block;
|
|
opacity: 1;
|
|
flex: 0 1 auto;
|
|
float: right;
|
|
}
|
|
|
|
#new-pref-container .pref-button.cancel,
|
|
#new-pref-container .pref-button.create {
|
|
display: inline-block;
|
|
opacity: 1;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.pref-item-line {
|
|
pointer-events: none;
|
|
}
|
|
|
|
#new-pref-container .pref-item-line,
|
|
.pref-item.selected .pref-item-line,
|
|
.pref-item:not(.selected) .pref-button.reset {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
#new-pref-container .pref-button.create[disabled] {
|
|
color: #d3d3d3;
|
|
}
|
|
|
|
.pref-item.selected {
|
|
background-color: rgba(0,0,255,0.05);
|
|
}
|
|
|
|
.pref-button {
|
|
display: inline-flex;
|
|
box-sizing: border-box;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 10px 1em;
|
|
border-left: 1px solid rgba(0,0,0,0.1);
|
|
opacity: 0;
|
|
transition-property: opacity;
|
|
transition-duration: 500ms;
|
|
}
|
|
|
|
.pref-item.selected .pref-item-line .pref-button {
|
|
opacity: 1;
|
|
}
|
|
|
|
.pref-item:not(.selected) .pref-item-line .pref-button:not(.reset) {
|
|
display: none;
|
|
}
|
|
|
|
.pref-item:not(.selected) .pref-button.reset {
|
|
opacity: 1;
|
|
}
|
|
|
|
.pref-button:active {
|
|
background-color: rgba(0,0,255,0.2);
|
|
}
|
|
|
|
.pref-button[disabled] {
|
|
display: none;
|
|
}
|
|
|
|
.pref-button.up {
|
|
background-image: url("chrome://browser/skin/images/arrowup-16.png");
|
|
background-size: 1em 1em;
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.pref-button.down {
|
|
background-image: url("chrome://browser/skin/images/arrowdown-16.png");
|
|
background-size: 1em 1em;
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
#prefs-shield {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
transition-property: opacity;
|
|
transition-duration: 500ms;
|
|
display: none;
|
|
}
|
|
|
|
#prefs-shield[shown] {
|
|
display: block;
|
|
opacity: 1;
|
|
}
|
|
|
|
#loading-container > li {
|
|
background-image: url(chrome://browser/skin/images/throbber.png);
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
padding-left: 40px;
|
|
height: 3em;
|
|
width: 100%;
|
|
}
|