Files
squoosh/src/client/lazy-app/Compress/style.css
Jake Archibald fec826b106 (Almost the) rest of the redesign (#880)
* Load demo img

* two-up styles

* Back button

* Button size tweak

* Move back btn

* Move options and back button into a single grid

* Simpler max height

* Responsive grid

* Feed index into options

* Option heading themes

* More option styles

* Changing checkbox position

* Theme range input & use transforms

* Range input underline theme

* Checkbox color

* Add toggle

* Reorder

* Arrow revealer

* Round two-up thumb

* Don't bundle CSS urls starting #

* Results in progress

* Fix Safari bugs

* Download blobs

* Loading spinner

* Hook up download button

* Different style for original image

* Mobile design for results

* Remove demo auto-loader

* Remove redundant colors

* Sticky headings
2020-12-09 11:47:23 +00:00

131 lines
2.2 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;
max-width: 400px;
margin: 0 auto;
width: calc(100% - 60px);
max-height: 100%;
overflow: hidden;
grid-area: opts;
display: grid;
grid-template-rows: 1fr max-content;
align-content: end;
align-self: end;
@media (min-width: 600px) {
width: 300px;
margin: 0;
}
}
.options-1-theme {
--main-theme-color: var(--pink);
--hot-theme-color: var(--hot-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 {
--main-theme-color: var(--blue);
--hot-theme-color: var(--deep-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;
}
}
.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);
}