mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-19 12:08:57 +00:00
110 lines
1.6 KiB
CSS
110 lines
1.6 KiB
CSS
.compress {
|
|
width: 100%;
|
|
height: 100%;
|
|
contain: strict;
|
|
display: grid;
|
|
align-items: end;
|
|
align-content: end;
|
|
grid-template-rows: 1fr auto;
|
|
|
|
@media (min-width: 600px) {
|
|
grid-template-rows: max-content 1fr;
|
|
grid-template-columns: max-content 1fr max-content;
|
|
grid-template-areas:
|
|
'header header header'
|
|
'optsLeft viewportOpts optsRight';
|
|
}
|
|
}
|
|
|
|
.options {
|
|
color: #fff;
|
|
opacity: 0.9;
|
|
font-size: 1.2rem;
|
|
display: flex;
|
|
flex-flow: column;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
width: calc(100% - 60px);
|
|
max-height: calc(100% - 104px);
|
|
overflow: hidden;
|
|
|
|
@media (min-width: 600px) {
|
|
max-height: calc(100% - 75px);
|
|
width: 300px;
|
|
margin: 0;
|
|
}
|
|
|
|
@media (min-width: 860px) {
|
|
max-height: calc(100% - 40px);
|
|
}
|
|
}
|
|
|
|
.options-1 {
|
|
composes: options;
|
|
grid-area: optsLeft;
|
|
}
|
|
|
|
.options-2 {
|
|
composes: options;
|
|
grid-area: optsRight;
|
|
}
|
|
|
|
.multi-panel {
|
|
position: relative;
|
|
display: flex;
|
|
flex-flow: column;
|
|
overflow: hidden;
|
|
|
|
/* Reorder so headings appear after content: */
|
|
& > :nth-child(1) {
|
|
order: 2;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
& > :nth-child(2) {
|
|
order: 1;
|
|
}
|
|
|
|
& > :nth-child(3) {
|
|
order: 4;
|
|
}
|
|
|
|
& > :nth-child(4) {
|
|
order: 3;
|
|
}
|
|
}
|
|
|
|
.expand-icon {
|
|
transform: rotate(180deg);
|
|
margin-left: -12px;
|
|
}
|
|
|
|
[content-expanded] .expand-icon {
|
|
transform: none;
|
|
}
|
|
|
|
:focus .expand-icon {
|
|
fill: #34b9eb;
|
|
}
|
|
|
|
.back {
|
|
composes: unbutton from global;
|
|
position: relative;
|
|
grid-area: header;
|
|
margin: 14px;
|
|
justify-self: start;
|
|
|
|
& > svg {
|
|
width: 58px;
|
|
}
|
|
}
|
|
|
|
.back-blob {
|
|
fill: var(--hot-pink);
|
|
opacity: 0.77;
|
|
}
|
|
|
|
.back-x {
|
|
fill: var(--white);
|
|
}
|