forked from external-repos/squoosh
141 lines
2.3 KiB
CSS
141 lines
2.3 KiB
CSS
.compress {
|
|
width: 100%;
|
|
height: 100%;
|
|
contain: strict;
|
|
display: grid;
|
|
grid-template-rows: max-content 1fr;
|
|
grid-template-areas:
|
|
'header'
|
|
'opts';
|
|
|
|
--options-radius: 7px;
|
|
|
|
@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 {
|
|
position: relative;
|
|
color: #fff;
|
|
font-size: 1.2rem;
|
|
display: flex;
|
|
flex-flow: column;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
width: calc(100% - 60px);
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
align-self: end;
|
|
grid-area: opts;
|
|
|
|
@media (min-width: 600px) {
|
|
width: 300px;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.options-1-theme {
|
|
--header-color: var(--pink);
|
|
--header-text-color: var(--white);
|
|
--scroller-radius: var(--options-radius) var(--options-radius) 0 0;
|
|
|
|
@media (min-width: 600px) {
|
|
--scroller-radius: 0 var(--options-radius) var(--options-radius) 0;
|
|
}
|
|
}
|
|
|
|
.options-2-theme {
|
|
--header-color: var(--blue);
|
|
--header-text-color: var(--dark-text);
|
|
--scroller-radius: var(--options-radius) var(--options-radius) 0 0;
|
|
|
|
@media (min-width: 600px) {
|
|
--scroller-radius: var(--options-radius) 0 0 var(--options-radius);
|
|
}
|
|
}
|
|
|
|
.options-1 {
|
|
composes: options;
|
|
composes: options-1-theme;
|
|
grid-area: optsLeft;
|
|
}
|
|
|
|
.options-2 {
|
|
composes: options;
|
|
composes: options-2-theme;
|
|
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: 9px;
|
|
justify-self: start;
|
|
align-self: start;
|
|
|
|
& > svg {
|
|
width: 47px;
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
margin: 14px;
|
|
|
|
& > svg {
|
|
width: 58px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.back-blob {
|
|
fill: var(--hot-pink);
|
|
opacity: 0.77;
|
|
}
|
|
|
|
.back-x {
|
|
fill: var(--white);
|
|
}
|