mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
167 lines
2.6 KiB
SCSS
167 lines
2.6 KiB
SCSS
$horizontalPadding: 15px;
|
|
|
|
.options {
|
|
color: #fff;
|
|
width: 300px;
|
|
opacity: 0.9;
|
|
font-size: 1.2rem;
|
|
max-height: 100%;
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
|
|
.options-title {
|
|
background: rgba(0, 0, 0, 0.9);
|
|
margin: 0;
|
|
padding: 10px $horizontalPadding;
|
|
font-weight: normal;
|
|
font-size: 1.4rem;
|
|
border-bottom: 1px solid #000;
|
|
}
|
|
|
|
.option-text-first {
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 87px 1fr;
|
|
grid-gap: 0.7em;
|
|
padding: 10px $horizontalPadding;
|
|
}
|
|
|
|
.option-one-cell {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
padding: 10px $horizontalPadding;
|
|
}
|
|
|
|
.option-input-first,
|
|
.section-enabler {
|
|
cursor: pointer;
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: auto 1fr;
|
|
grid-gap: 0.7em;
|
|
padding: 10px $horizontalPadding;
|
|
}
|
|
|
|
.section-enabler {
|
|
background: rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.options-section {
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.text-field {
|
|
background: #fff;
|
|
font: inherit;
|
|
border: none;
|
|
padding: 2px 0 2px 10px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.options-scroller {
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.results {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.result-data {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 $horizontalPadding;
|
|
}
|
|
|
|
.size-delta {
|
|
font-size: 1.1rem;
|
|
font-style: italic;
|
|
position: relative;
|
|
top: -1px;
|
|
margin-left: 0.3em;
|
|
}
|
|
|
|
.size-increase {
|
|
color: #e35050;
|
|
}
|
|
|
|
.size-decrease {
|
|
color: #50e3c2;
|
|
}
|
|
|
|
.options-copy {
|
|
display: grid;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
padding: 5px;
|
|
}
|
|
|
|
.copy-button {
|
|
composes: unbutton from '../../lib/util.scss';
|
|
background: #484848;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
text-align: left;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
@keyframes action-enter {
|
|
from {
|
|
transform: rotate(-90deg);
|
|
opacity: 0;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
}
|
|
|
|
@keyframes action-leave {
|
|
from {
|
|
transform: rotate(0deg);
|
|
opacity: 1;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
}
|
|
|
|
.download {
|
|
background: #34B9EB;
|
|
--size: 38px;
|
|
width: var(--size);
|
|
height: var(--size);
|
|
display: grid;
|
|
align-items: center;
|
|
justify-items: center;
|
|
}
|
|
|
|
.download-link {
|
|
animation: action-enter 0.2s;
|
|
grid-area: 1/1;
|
|
}
|
|
|
|
.download-link-disable {
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transform: rotate(90deg);
|
|
animation: action-leave 0.2s;
|
|
}
|
|
|
|
.download-icon {
|
|
color: #fff;
|
|
display: block;
|
|
--size: 24px;
|
|
width: var(--size);
|
|
height: var(--size);
|
|
padding: 7px;
|
|
filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7));
|
|
}
|
|
|
|
.spinner {
|
|
--color: #fff;
|
|
--delay: 0;
|
|
--size: 22px;
|
|
grid-area: 1/1;
|
|
}
|