Bug 1606785 - Format android CSS files with Prettier r=geckoview-reviewers,hiro
Differential Revision: https://phabricator.services.mozilla.com/D249176
This commit is contained in:
committed by
hjones@mozilla.com
parent
4f2a32d1a4
commit
c08e43fc3d
@@ -16,8 +16,8 @@ body {
|
|||||||
/* background-size: 64px 32px; */
|
/* background-size: 64px 32px; */
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
|
||||||
background-color: #363B40;
|
background-color: #363b40;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
@@ -65,15 +65,15 @@ button {
|
|||||||
border: none;
|
border: none;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
background-color: #00A4DC;
|
background-color: #00a4dc;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
margin: var(--moz-vertical-spacing) 0 0;
|
margin: var(--moz-vertical-spacing) 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonSecondary{
|
.buttonSecondary {
|
||||||
/* Force buttons to display: block here to try and enforce collapsing margins */
|
/* Force buttons to display: block here to try and enforce collapsing margins */
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -81,7 +81,7 @@ button {
|
|||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
background-color: rgba(249, 249, 250, 0.1);
|
background-color: rgba(249, 249, 250, 0.1);
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|||||||
@@ -5,6 +5,6 @@
|
|||||||
/* There is some code in just-the-docs that completely breaks styling for code
|
/* There is some code in just-the-docs that completely breaks styling for code
|
||||||
* blocks, this is an attempt to fix that. */
|
* blocks, this is an attempt to fix that. */
|
||||||
code {
|
code {
|
||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ button {
|
|||||||
|
|
||||||
button::after {
|
button::after {
|
||||||
background-color: var(--primary-button-color);
|
background-color: var(--primary-button-color);
|
||||||
content: '';
|
content: "";
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -156,7 +156,7 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#errorLongContent {
|
#errorLongContent {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#errorTryAgain {
|
#errorTryAgain {
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ body {
|
|||||||
/* background-size: 64px 32px; */
|
/* background-size: 64px 32px; */
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
|
||||||
background-color: #363B40;
|
background-color: #363b40;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
@@ -67,15 +67,15 @@ button {
|
|||||||
border: none;
|
border: none;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
background-color: #00A4DC;
|
background-color: #00a4dc;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
margin: var(--moz-vertical-spacing) 0 0;
|
margin: var(--moz-vertical-spacing) 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonSecondary{
|
.buttonSecondary {
|
||||||
/* Force buttons to display: block here to try and enforce collapsing margins */
|
/* Force buttons to display: block here to try and enforce collapsing margins */
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -83,7 +83,7 @@ button {
|
|||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
background-color: rgba(249, 249, 250, 0.1);
|
background-color: rgba(249, 249, 250, 0.1);
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|||||||
@@ -2,42 +2,43 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
body, html {
|
body,
|
||||||
background: #221F1F;
|
html {
|
||||||
color: #FFFFFF;
|
background: #221f1f;
|
||||||
font-family: sans-serif;
|
color: #ffffff;
|
||||||
line-height: 24px;
|
font-family: sans-serif;
|
||||||
font-size: 14px;
|
line-height: 24px;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body{
|
body {
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #0A9AF4;
|
color: #0a9af4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make only about page links ("learn more") white */
|
/* Make only about page links ("learn more") white */
|
||||||
.about a {
|
.about a {
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.subtitle {
|
p.subtitle {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: .7;
|
opacity: 0.7;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img#wordmark {
|
img#wordmark {
|
||||||
/* We need to set the dp size here, because by default webview assumes the image is not
|
/* We need to set the dp size here, because by default webview assumes the image is not
|
||||||
density specific (but since it's an android resource, we get a density specific version). */
|
density specific (but since it's an android resource, we get a density specific version). */
|
||||||
width: 180px;
|
width: 180px;
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,377 +3,381 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background-color: #fff;
|
--background-color: #fff;
|
||||||
--text-color: #0c0c0d;
|
--text-color: #0c0c0d;
|
||||||
--border-color: #e1e1e2;
|
--border-color: #e1e1e2;
|
||||||
|
|
||||||
--toolbar-background-color: #f9f9fa;
|
--toolbar-background-color: #f9f9fa;
|
||||||
--searchbar-background-color: #ededf0;
|
--searchbar-background-color: #ededf0;
|
||||||
--searchbar-focused-background-color: #fff;
|
--searchbar-focused-background-color: #fff;
|
||||||
|
|
||||||
--deemphasized-border-color: rgba(0,0,0,0.05);
|
--deemphasized-border-color: rgba(0, 0, 0, 0.05);
|
||||||
--deemphasized-text-color: rgba(0,0,0,0.5);
|
--deemphasized-text-color: rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--background-color: #292833;
|
--background-color: #292833;
|
||||||
--text-color: #f9f9fa;
|
--text-color: #f9f9fa;
|
||||||
--border-color: rgba(255,255,255,0.15);
|
--border-color: rgba(255, 255, 255, 0.15);
|
||||||
|
|
||||||
--toolbar-background-color: #1c1b22;
|
--toolbar-background-color: #1c1b22;
|
||||||
--searchbar-background-color: #3f3e46;
|
--searchbar-background-color: #3f3e46;
|
||||||
--searchbar-focused-background-color: #4c4a54;
|
--searchbar-focused-background-color: #4c4a54;
|
||||||
|
|
||||||
--deemphasized-border-color: rgba(249,249,250,0.05);
|
--deemphasized-border-color: rgba(249, 249, 250, 0.05);
|
||||||
--deemphasized-text-color: rgba(249,249,250,0.5);
|
--deemphasized-text-color: rgba(249, 249, 250, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
-moz-text-size-adjust: none;
|
-moz-text-size-adjust: none;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 3em;
|
min-height: 3em;
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
background-color: var(--toolbar-background-color);
|
background-color: var(--toolbar-background-color);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
box-shadow: 0 2px 7px rgba(0,0,0,0.25);
|
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-container {
|
.toolbar-container {
|
||||||
max-width: 40em;
|
max-width: 40em;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-container {
|
#filter-container {
|
||||||
margin: 0.375em;
|
margin: 0.375em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
background-color: var(--searchbar-background-color);
|
background-color: var(--searchbar-background-color);
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
float: inline-end;
|
float: inline-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-container:focus-within {
|
#filter-container:focus-within {
|
||||||
background-color: var(--searchbar-focused-background-color);
|
background-color: var(--searchbar-focused-background-color);
|
||||||
box-shadow: 0 1px 6px rgba(0,0,0,.1);
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-input {
|
#filter-input {
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-toggle-button {
|
#new-pref-toggle-button {
|
||||||
background-image: url("chrome://geckoview/skin/images/add.svg");
|
background-image: url("chrome://geckoview/skin/images/add.svg");
|
||||||
background-size: 1.25em;
|
background-size: 1.25em;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
height: 3em;
|
height: 3em;
|
||||||
width: 3em;
|
width: 3em;
|
||||||
outline: none;
|
outline: none;
|
||||||
float: inline-start;
|
float: inline-start;
|
||||||
-moz-context-properties: fill, fill-opacity;
|
-moz-context-properties: fill, fill-opacity;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
fill-opacity: 0.8;
|
fill-opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-search-button,
|
#filter-search-button,
|
||||||
#filter-input-clear-button {
|
#filter-input-clear-button {
|
||||||
background-size: 1em;
|
background-size: 1em;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
width: 2em;
|
width: 2em;
|
||||||
outline: none;
|
outline: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
-moz-context-properties: fill, fill-opacity;
|
-moz-context-properties: fill, fill-opacity;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
fill-opacity: 0.8;
|
fill-opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-search-button {
|
#filter-search-button {
|
||||||
background-image: url("chrome://geckoview/skin/images/search.svg");
|
background-image: url("chrome://geckoview/skin/images/search.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-search-button:dir(rtl) {
|
#filter-search-button:dir(rtl) {
|
||||||
scale: -1 1;
|
scale: -1 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-input-clear-button {
|
#filter-input-clear-button {
|
||||||
background-image: url("chrome://geckoview/skin/images/search-clear.svg");
|
background-image: url("chrome://geckoview/skin/images/search-clear.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
#filter-input:placeholder-shown + #filter-input-clear-button {
|
#filter-input:placeholder-shown + #filter-input-clear-button {
|
||||||
visibility: hidden; /* display: none; causes the input size to change */
|
visibility: hidden; /* display: none; causes the input size to change */
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-item {
|
.toolbar-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 3em;
|
height: 3em;
|
||||||
min-width: 3em;
|
min-width: 3em;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-inline: 0;
|
padding-inline: 0;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
max-width: 40em;
|
max-width: 40em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#prefs-container {
|
#prefs-container {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#prefs-container li {
|
#prefs-container li {
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container {
|
#new-pref-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
box-shadow: 0 5px 18px rgba(0,0,0,.2);
|
box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
max-width: 40em;
|
max-width: 40em;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 3em;
|
top: 3em;
|
||||||
left: auto;
|
left: auto;
|
||||||
display: none;
|
display: none;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container input,
|
#new-pref-container input,
|
||||||
#new-pref-container select {
|
#new-pref-container select {
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container.show {
|
#new-pref-container.show {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-line-boolean,
|
#new-pref-line-boolean,
|
||||||
#new-pref-value-string,
|
#new-pref-value-string,
|
||||||
#new-pref-value-int {
|
#new-pref-value-int {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#new-pref-item[typestyle="boolean"] #new-pref-line-boolean,
|
#new-pref-item[typestyle="boolean"] #new-pref-line-boolean,
|
||||||
#new-pref-item[typestyle="string"] #new-pref-value-string,
|
#new-pref-item[typestyle="string"] #new-pref-value-string,
|
||||||
#new-pref-item[typestyle="int"] #new-pref-value-int {
|
#new-pref-item[typestyle="int"] #new-pref-value-int {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
#new-pref-item[typestyle="boolean"] #new-pref-line-input {
|
#new-pref-item[typestyle="boolean"] #new-pref-line-input {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-name,
|
.pref-name,
|
||||||
.pref-value {
|
.pref-value {
|
||||||
padding: 15px 10px;
|
padding: 15px 10px;
|
||||||
text-align: match-parent;
|
text-align: match-parent;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: none;
|
background: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-value {
|
.pref-value {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
border: none;
|
border: none;
|
||||||
unicode-bidi: plaintext;
|
unicode-bidi: plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-name[locked] {
|
.pref-name[locked] {
|
||||||
-moz-context-properties: fill, fill-opacity;
|
-moz-context-properties: fill, fill-opacity;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
fill-opacity: 0.8;
|
fill-opacity: 0.8;
|
||||||
background-image: url("chrome://geckoview/skin/images/lock.svg");
|
background-image: url("chrome://geckoview/skin/images/lock.svg");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position-y: center;
|
background-position-y: center;
|
||||||
background-size: 1em;
|
background-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
:dir(ltr) > .pref-name[locked] {
|
:dir(ltr) > .pref-name[locked] {
|
||||||
background-position-x: right 10px;
|
background-position-x: right 10px;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:dir(rtl) > .pref-name[locked] {
|
:dir(rtl) > .pref-name[locked] {
|
||||||
background-position-x: 10px;
|
background-position-x: 10px;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-name {
|
#new-pref-name {
|
||||||
width: 30em;
|
width: 30em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-type {
|
#new-pref-type {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
border-inline-start: 1px solid var(--deemphasized-border-color) !important;
|
border-inline-start: 1px solid var(--deemphasized-border-color) !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 9em;
|
width: 9em;
|
||||||
padding-inline: 8px;
|
padding-inline: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item-line {
|
.pref-item-line {
|
||||||
border-top: 1px solid var(--deemphasized-border-color);
|
border-top: 1px solid var(--deemphasized-border-color);
|
||||||
color: var(--deemphasized-text-color);
|
color: var(--deemphasized-text-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-value-boolean {
|
#new-pref-value-boolean {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container .pref-button.toggle {
|
#new-pref-container .pref-button.toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container .pref-button.cancel,
|
#new-pref-container .pref-button.cancel,
|
||||||
#new-pref-container .pref-button.create {
|
#new-pref-container .pref-button.create {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item-line {
|
.pref-item-line {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container .pref-item-line,
|
#new-pref-container .pref-item-line,
|
||||||
.pref-item.selected .pref-item-line,
|
.pref-item.selected .pref-item-line,
|
||||||
.pref-item:not(.selected) .pref-button.reset {
|
.pref-item:not(.selected) .pref-button.reset {
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new-pref-container .pref-button.create[disabled] {
|
#new-pref-container .pref-button.create[disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item.selected {
|
.pref-item.selected {
|
||||||
background-color: hsla(0,0%,60%,.2);
|
background-color: hsla(0, 0%, 60%, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button {
|
.pref-button {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 10px 1em;
|
padding: 10px 1em;
|
||||||
border-inline-start: 1px solid var(--deemphasized-border-color);
|
border-inline-start: 1px solid var(--deemphasized-border-color);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition-property: opacity;
|
transition-property: opacity;
|
||||||
transition-duration: 500ms;
|
transition-duration: 500ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item.selected .pref-item-line .pref-button {
|
.pref-item.selected .pref-item-line .pref-button {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item:not(.selected) .pref-item-line .pref-button:not(.reset) {
|
.pref-item:not(.selected) .pref-item-line .pref-button:not(.reset) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-item:not(.selected) .pref-button.reset {
|
.pref-item:not(.selected) .pref-button.reset {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button:active,
|
.pref-button:active,
|
||||||
#new-pref-type:active {
|
#new-pref-type:active {
|
||||||
background-color: hsla(0,0%,60%,.4);
|
background-color: hsla(0, 0%, 60%, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button[disabled] {
|
.pref-button[disabled] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button.up,
|
.pref-button.up,
|
||||||
.pref-button.down {
|
.pref-button.down {
|
||||||
-moz-context-properties: fill, fill-opacity;
|
-moz-context-properties: fill, fill-opacity;
|
||||||
fill: var(--text-color);
|
fill: var(--text-color);
|
||||||
fill-opacity: 0.8;
|
fill-opacity: 0.8;
|
||||||
background-size: 1em;
|
background-size: 1em;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button.up {
|
.pref-button.up {
|
||||||
background-image: url("chrome://geckoview/skin/images/arrow-up.svg");
|
background-image: url("chrome://geckoview/skin/images/arrow-up.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.pref-button.down {
|
.pref-button.down {
|
||||||
background-image: url("chrome://geckoview/skin/images/arrow-down.svg");
|
background-image: url("chrome://geckoview/skin/images/arrow-down.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
#prefs-shield {
|
#prefs-shield {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(0,0,0,0.45);
|
background-color: rgba(0, 0, 0, 0.45);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition-property: opacity;
|
transition-property: opacity;
|
||||||
transition-duration: 500ms;
|
transition-duration: 500ms;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#prefs-shield[shown] {
|
#prefs-shield[shown] {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loading-container::before {
|
#loading-container::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
width: 1.25em;
|
width: 1.25em;
|
||||||
height: 1.25em;
|
height: 1.25em;
|
||||||
border: 0.15em solid currentColor;
|
border: 0.15em solid currentColor;
|
||||||
margin: 1em auto;
|
margin: 1em auto;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
animation: 1.1s linear infinite spin;
|
animation: 1.1s linear infinite spin;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
from { transform: none; }
|
from {
|
||||||
to { transform: rotate(360deg); }
|
transform: none;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user