Files
tubestation/browser/components/textrecognition/textrecognition.css
agoloman 63c83deb26 Revert "Bug 1606785 - Enable Prettier for CSS files r=desktop-theme-reviewers,Standard8,frontend-codestyle-reviewers,emilio" for causing multiple failures.
This reverts commit ec5fa1d4c0.

Revert "Bug 1606785 - Format Firefox CSS files with Prettier r=desktop-theme-reviewers,perftest-reviewers,places-reviewers,translations-reviewers,omc-reviewers,backup-reviewers,browser-installer-reviewers,sparky,dao,pdahiya,nrishel,kpatenio"

This reverts commit baa5d72bbd.

Revert "Bug 1606785 - Format browser/themes and toolkit/themes CSS files with Prettier r=desktop-theme-reviewers,pip-reviewers,tabbrowser-reviewers,places-reviewers,dao,mconley"

This reverts commit 9604b0a8ae.

Revert "Bug 1606785 - Format browser/themes/preferences CSS files with Prettier r=settings-reviewers,desktop-theme-reviewers,dao,mconley"

This reverts commit 686c1cf85f.

Revert "Bug 1606785 - Format urlbar CSS files with Prettier r=urlbar-reviewers,desktop-theme-reviewers,dao"

This reverts commit a7a4f31251.

Revert "Bug 1606785 - Format webcompat CSS files with Prettier r=webcompat-reviewers,denschub"

This reverts commit 41bc4d5237.

Revert "Bug 1606785 - Format search CSS files with Prettier r=search-reviewers,jteow"

This reverts commit 7bb7f82374.

Revert "Bug 1606785 - Format dom CSS files with Prettier r=emilio"

This reverts commit c22e910235.

Revert "Bug 1606785 - Format android CSS files with Prettier r=geckoview-reviewers,hiro"

This reverts commit c08e43fc3d.

Revert "Bug 1606785 - Format layout CSS files with Prettier r=layout-reviewers,dholbert"

This reverts commit 4f2a32d1a4.

Revert "Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers"

This reverts commit c05f675ddf.

Revert "Bug 1606785 - Format recomp CSS files with Prettier r=reusable-components-reviewers,desktop-theme-reviewers,dao,mkennedy"

This reverts commit b10c7de8d0.

Revert "Bug 1606785 - Format sidebar CSS files with Prettier r=sidebar-reviewers,desktop-theme-reviewers,dao,nsharpley"

This reverts commit d32c555e37.

Revert "Bug 1606785 - Format shopping CSS files with Prettier r=shopping-reviewers,desktop-theme-reviewers,dao,rking"

This reverts commit 965887a708.

Revert "Bug 1606785 - Format profiles CSS files with Prettier r=profiles-reviewers,desktop-theme-reviewers,dao,mossop"

This reverts commit 8338860f74.

Revert "Bug 1606785 - Format genai and ml CSS files with Prettier r=firefox-ai-ml-reviewers,Mardak"

This reverts commit d66681f553.

Revert "Bug 1606785 - Format firefoxview CSS files with Prettier r=fxview-reviewers,desktop-theme-reviewers,dao,jsudiaman"

This reverts commit 530b815cad.

Revert "Bug 1606785 - Format aboutlogins, megalist, and form autofill CSS files with Prettier r=credential-management-reviewers,mtigley,desktop-theme-reviewers,dao"

This reverts commit 813c864381.
2025-05-21 04:49:28 +00:00

144 lines
3.0 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/. */
.textRecognitionText {
overflow-y: auto;
max-height: 300px;
flex: 1;
display: none;
}
.textRecognitionText p:first-child {
margin-top: 0;
}
.textRecognitionText p:last-child {
margin-bottom: 0;
}
.textRecognition {
--gap: 16px;
display: flex;
flex-direction: column;
background-color: var(--in-content-page-background);
width: 412px;
gap: var(--gap) 0;
padding-block: var(--gap);
}
.textRecognition > * {
padding-inline: var(--gap);
}
.textRecognitionHeader {
font-weight: bold;
display: flex;
flex-direction: row;
align-items: center;
}
.textRecognitionFooter {
text-align: end;
}
.textRecognitionThrobber {
display: inline-block;
width: 16px;
height: 16px;
position: relative;
overflow: hidden;
margin-inline-end: 5.5px;
}
@media (prefers-reduced-motion: no-preference) {
.textRecognitionThrobber::before {
content: "";
position: absolute;
background-image: url("chrome://browser/skin/tabbrowser/loading.svg");
background-position: left center;
background-repeat: no-repeat;
width: 480px;
height: 100%;
animation: throbber-animation-ltr 1.05s steps(30) infinite;
-moz-context-properties: fill;
fill: currentColor;
opacity: 0.7;
}
.textRecognitionThrobber:dir(rtl)::before {
background-position-x: right;
animation: throbber-animation-rtl 1.05s steps(30) infinite;
}
}
@media (prefers-reduced-motion: reduce) {
.textRecognitionThrobber {
background-image: url("chrome://global/skin/icons/loading.svg");
background-position: center;
background-repeat: no-repeat;
-moz-context-properties: fill;
fill: currentColor;
}
}
.textRecognitionSuccessIcon {
display: inline-block;
background-color: #2AC3A2;
border: 3px solid #2AC3A2;
fill: var(--in-content-page-background);
-moz-context-properties: fill;
border-radius: 10px;
width: 12px;
height: 12px;
margin-inline-end: 6px;
}
@media (prefers-reduced-motion: no-preference) {
.textRecognitionSuccessIcon {
animation: success-animation 0.3s cubic-bezier(.3,2,.48,.94);
}
}
.textRecognitionNoResultIcon {
display: inline-block;
fill: #FFBF00;
-moz-context-properties: fill;
width: 18px;
height: 18px;
margin-inline-end: 8px;
}
@media (prefers-contrast) {
.textRecognitionSuccessIcon {
background-color: currentColor;
border-color: currentColor;
fill: var(--in-content-page-background);
}
.textRecognitionNoResultIcon {
fill: currentColor;
}
}
@keyframes throbber-animation-ltr {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
@keyframes throbber-animation-rtl {
0% { transform: translateX(0); }
100% { transform: translateX(100%); }
}
@keyframes success-animation {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}