436 lines
9.0 KiB
CSS
436 lines
9.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/. */
|
|
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
background-color: transparent;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
}
|
|
|
|
.button,
|
|
.highlight-button-cancel,
|
|
.highlight-button-download,
|
|
.highlight-button-copy {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 0;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
height: 40px;
|
|
min-width: 40px;
|
|
outline: none;
|
|
padding: 0 10px;
|
|
position: relative;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transition: background 150ms cubic-bezier(0.07, 0.95, 0, 1), border 150ms cubic-bezier(0.07, 0.95, 0, 1);
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.button.hidden,
|
|
.hidden.highlight-button-cancel,
|
|
.hidden.highlight-button-download,
|
|
.hidden.highlight-button-copy {
|
|
display: none;
|
|
}
|
|
|
|
.button.small,
|
|
.small.highlight-button-cancel,
|
|
.small.highlight-button-download,
|
|
.small.highlight-button-copy {
|
|
height: 32px;
|
|
line-height: 32px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.button.active,
|
|
.active.highlight-button-cancel,
|
|
.active.highlight-button-download,
|
|
.active.highlight-button-copy {
|
|
background-color: #dedede;
|
|
}
|
|
|
|
.button.tiny,
|
|
.tiny.highlight-button-cancel,
|
|
.tiny.highlight-button-download,
|
|
.tiny.highlight-button-copy {
|
|
font-size: 14px;
|
|
height: 26px;
|
|
border: 1px solid #c7c7c7;
|
|
}
|
|
|
|
.button.tiny:hover,
|
|
.tiny.highlight-button-cancel:hover,
|
|
.tiny.highlight-button-download:hover,
|
|
.tiny.highlight-button-copy:hover,
|
|
.button.tiny:focus,
|
|
.tiny.highlight-button-cancel:focus,
|
|
.tiny.highlight-button-download:focus,
|
|
.tiny.highlight-button-copy:focus {
|
|
background: #ededf0;
|
|
border-color: #989898;
|
|
}
|
|
|
|
.button.tiny:active,
|
|
.tiny.highlight-button-cancel:active,
|
|
.tiny.highlight-button-download:active,
|
|
.tiny.highlight-button-copy:active {
|
|
background: #dedede;
|
|
border-color: #989898;
|
|
}
|
|
|
|
.button.block-button,
|
|
.block-button.highlight-button-cancel,
|
|
.block-button.highlight-button-download,
|
|
.block-button.highlight-button-copy {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
border-inline-end: 1px solid #c7c7c7;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
flex-shrink: 0;
|
|
font-size: 20px;
|
|
height: 100px;
|
|
line-height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media (max-width: 719px) {
|
|
.button.block-button,
|
|
.block-button.highlight-button-cancel,
|
|
.block-button.highlight-button-download,
|
|
.block-button.highlight-button-copy {
|
|
justify-content: flex-start;
|
|
font-size: 16px;
|
|
height: 72px;
|
|
margin-inline-end: 10px;
|
|
padding: 0 5px;
|
|
}
|
|
}
|
|
|
|
.button.block-button:hover,
|
|
.block-button.highlight-button-cancel:hover,
|
|
.block-button.highlight-button-download:hover,
|
|
.block-button.highlight-button-copy:hover {
|
|
background: #ededf0;
|
|
}
|
|
|
|
.button.block-button:active,
|
|
.block-button.highlight-button-cancel:active,
|
|
.block-button.highlight-button-download:active,
|
|
.block-button.highlight-button-copy:active {
|
|
background: #dedede;
|
|
}
|
|
|
|
.button.download,
|
|
.download.highlight-button-cancel,
|
|
.download.highlight-button-download,
|
|
.download.highlight-button-copy,
|
|
.button.flag,
|
|
.flag.highlight-button-cancel,
|
|
.flag.highlight-button-download,
|
|
.flag.highlight-button-copy {
|
|
background-repeat: no-repeat;
|
|
background-size: 50%;
|
|
background-position: center;
|
|
margin-inline-end: 10px;
|
|
transition: background-color 150ms cubic-bezier(0.07, 0.95, 0, 1);
|
|
}
|
|
|
|
.button.download,
|
|
.download.highlight-button-cancel,
|
|
.download.highlight-button-download,
|
|
.download.highlight-button-copy {
|
|
background-image: url("chrome://browser/content/screenshots/download.svg");
|
|
}
|
|
|
|
.button.download:hover,
|
|
.download.highlight-button-cancel:hover,
|
|
.download.highlight-button-download:hover,
|
|
.download.highlight-button-copy:hover {
|
|
background-color: #ededf0;
|
|
}
|
|
|
|
.button.download:active,
|
|
.download.highlight-button-cancel:active,
|
|
.download.highlight-button-download:active,
|
|
.download.highlight-button-copy:active {
|
|
background-color: #dedede;
|
|
}
|
|
|
|
.button.primary,
|
|
.primary.highlight-button-cancel,
|
|
.highlight-button-download,
|
|
.primary.highlight-button-copy {
|
|
background-color: #0a84ff;
|
|
color: #fff;
|
|
}
|
|
|
|
.button.primary:hover,
|
|
.primary.highlight-button-cancel:hover,
|
|
.highlight-button-download:hover,
|
|
.primary.highlight-button-copy:hover,
|
|
.button.primary:focus,
|
|
.primary.highlight-button-cancel:focus,
|
|
.highlight-button-download:focus,
|
|
.primary.highlight-button-copy:focus {
|
|
background-color: #0072e5;
|
|
}
|
|
|
|
.button.primary:active,
|
|
.primary.highlight-button-cancel:active,
|
|
.highlight-button-download:active,
|
|
.primary.highlight-button-copy:active {
|
|
background-color: #0065cc;
|
|
}
|
|
|
|
.button.secondary,
|
|
.highlight-button-cancel,
|
|
.secondary.highlight-button-download,
|
|
.highlight-button-copy {
|
|
background-color: #f9f9fa;
|
|
color: #38383d;
|
|
}
|
|
|
|
.button.secondary:hover,
|
|
.highlight-button-cancel:hover,
|
|
.secondary.highlight-button-download:hover,
|
|
.highlight-button-copy:hover {
|
|
background-color: #ededf0;
|
|
}
|
|
|
|
.button.secondary:active,
|
|
.highlight-button-cancel:active,
|
|
.secondary.highlight-button-download:active,
|
|
.highlight-button-copy:active {
|
|
background-color: #dedede;
|
|
}
|
|
|
|
.button.transparent,
|
|
.transparent.highlight-button-cancel,
|
|
.transparent.highlight-button-download,
|
|
.transparent.highlight-button-copy {
|
|
background-color: transparent;
|
|
color: #38383d;
|
|
}
|
|
|
|
.button.transparent:hover,
|
|
.transparent.highlight-button-cancel:hover,
|
|
.transparent.highlight-button-download:hover,
|
|
.transparent.highlight-button-copy:hover {
|
|
background-color: #ededf0;
|
|
}
|
|
|
|
.button.transparent:focus,
|
|
.transparent.highlight-button-cancel:focus,
|
|
.transparent.highlight-button-download:focus,
|
|
.transparent.highlight-button-copy:focus,
|
|
.button.transparent:active,
|
|
.transparent.highlight-button-cancel:active, .transparent.highlight-button-download:active, .transparent.highlight-button-copy:active {
|
|
background-color: #dedede;
|
|
}
|
|
|
|
.button.warning,
|
|
.warning.highlight-button-cancel,
|
|
.warning.highlight-button-download,
|
|
.warning.highlight-button-copy {
|
|
color: #fff;
|
|
background: #d92215;
|
|
}
|
|
|
|
.button.warning:hover,
|
|
.warning.highlight-button-cancel:hover,
|
|
.warning.highlight-button-download:hover,
|
|
.warning.highlight-button-copy:hover,
|
|
.button.warning:focus,
|
|
.warning.highlight-button-cancel:focus,
|
|
.warning.highlight-button-download:focus,
|
|
.warning.highlight-button-copy:focus {
|
|
background: #b81d12;
|
|
}
|
|
|
|
.button.warning:active,
|
|
.warning.highlight-button-cancel:active,
|
|
.warning.highlight-button-download:active,
|
|
.warning.highlight-button-copy:active {
|
|
background: #a11910;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0% {
|
|
transform: translateX(-40px);
|
|
}
|
|
100% {
|
|
transform: translate(190px);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 0.3;
|
|
transform: scale(1);
|
|
}
|
|
70% {
|
|
opacity: 0.25;
|
|
transform: scale(1.04);
|
|
}
|
|
100% {
|
|
opacity: 0.3;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.highlight {
|
|
border-radius: 1px;
|
|
border: 2px dashed rgba(255, 255, 255, 0.8);
|
|
box-sizing: border-box;
|
|
cursor: move;
|
|
position: absolute;
|
|
z-index: 9999999999;
|
|
}
|
|
|
|
/* When prefers contrast is fully supported, we should change these quereies to cover both high and low prefers contrast cases */
|
|
@media (forced-colors: active) {
|
|
.highlight {
|
|
border: 2px dashed white;
|
|
opacity: 1.0;
|
|
}
|
|
}
|
|
|
|
.highlight-button-cancel {
|
|
margin: 5px;
|
|
width: 40px;
|
|
}
|
|
|
|
.highlight-button-download {
|
|
margin: 5px;
|
|
width: auto;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.highlight-button-download img {
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
.highlight-button-download:-moz-locale-dir(rtl) {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.highlight-button-download img:-moz-locale-dir(ltr) {
|
|
padding-inline-end: 8px;
|
|
}
|
|
|
|
.highlight-button-download img:-moz-locale-dir(rtl) {
|
|
padding-inline-start: 8px;
|
|
}
|
|
|
|
.highlight-button-copy {
|
|
margin: 5px;
|
|
width: auto;
|
|
}
|
|
|
|
.highlight-button-copy img {
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
.highlight-button-copy:-moz-locale-dir(rtl) {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.highlight-button-copy img:-moz-locale-dir(ltr) {
|
|
padding-inline-end: 8px;
|
|
}
|
|
|
|
.highlight-button-copy img:-moz-locale-dir(rtl) {
|
|
padding-inline-start: 8px;
|
|
}
|
|
|
|
.highlight-button-cancel *,
|
|
.highlight-button-download *,
|
|
.highlight-button-copy * {
|
|
pointer-events: none
|
|
}
|
|
|
|
.preview-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding-inline-end: 4px;
|
|
inset-inline-end: 0;
|
|
width: 100%;
|
|
height: 60px;
|
|
border-radius: 4px 4px 0 0;
|
|
background: rgba(249, 249, 250, 0.8);
|
|
top: 0;
|
|
border: 1px solid rgba(249, 249, 250, 0.2);
|
|
border-bottom: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.preview-image {
|
|
background-color: rgba(249, 249, 250, 0.8);
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.preview-image-area {
|
|
margin: 10%;
|
|
margin-top: 2%;
|
|
}
|
|
|
|
.image-view {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.left {
|
|
margin-inline-start: 0;
|
|
}
|
|
|
|
.right {
|
|
margin-inline-start: 20px;
|
|
}
|
|
|
|
#placeholder-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
transform: scale(1.06);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|