Skip to content

Commit

Permalink
Merge branch 'dev' into 593
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Mayer authored Apr 12, 2023
2 parents a7503e6 + a7dff94 commit 82caed4
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 3 deletions.
20 changes: 20 additions & 0 deletions src/client/lazy-app/Compress/Options/Checkbox/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
display: inline-block;
position: relative;
--size: 17px;

&::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 200%;
height: 200%;
background-color: var(--main-theme-color);
border-radius: 999px;
opacity: 0.25;

transform: translate(-50%, -50%) scale(0);
transition-property: transform;
transition-duration: 250ms;
}

&:focus-within::before {
transform: translate(-50%, -50%) scale(1);
}
}

.real-checkbox {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ range-input::before {
height: 12px;
}

range-input:focus-within .thumb {
outline: white solid 2px;
}

.thumb-wrapper {
position: absolute;
left: 6px;
Expand Down
4 changes: 4 additions & 0 deletions src/client/lazy-app/Compress/Options/Toggle/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
padding: 3px calc(var(--thumb-size) / 2 + 3px);
}

.checkbox:focus-within .track {
outline: white solid 2px;
}

.thumb {
position: relative;
width: var(--thumb-size);
Expand Down
6 changes: 6 additions & 0 deletions src/client/lazy-app/Compress/Options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ export default class Options extends Component<Props, State> {
}
title="Import saved side settings"
onClick={this.onImportSideSettingsClick}
disabled={
// Disabled if this side's settings haven't been saved
(!this.state.leftSideSettings &&
this.props.index === 0) ||
(!this.state.rightSideSettings && this.props.index === 1)
}
>
<ImportIcon />
</button>
Expand Down
26 changes: 23 additions & 3 deletions src/client/lazy-app/Compress/Options/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
composes: option-toggle;
grid-template-columns: auto 1fr;
gap: 1em;

border-top: 1px solid #fff4;

transition-property: background-color;
transition-duration: 250ms;
}

.option-reveal:focus-within,
.option-reveal:hover {
background-color: #fff2;
}

.option-one-cell {
Expand All @@ -73,11 +83,11 @@
}

.text-field {
background: var(--white);
color: var(--black);
background-color: var(--black);
color: var(--white);
font: inherit;
border: none;
padding: 6px 0 6px 10px;
padding: 6px 6px 6px 10px;
width: 100%;
box-sizing: border-box;
border-radius: 4px;
Expand Down Expand Up @@ -118,6 +128,11 @@
svg {
fill: var(--header-text-color);
}

&:focus {
outline: var(--header-text-color) solid 2px;
outline-offset: 0.25em;
}
}

.save-button,
Expand All @@ -127,6 +142,11 @@
svg {
stroke: var(--header-text-color);
}

&:focus {
outline: var(--header-text-color) solid 2px;
outline-offset: 0.25em;
}
}

.button-opacity {
Expand Down
16 changes: 16 additions & 0 deletions src/client/lazy-app/Compress/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@

& > svg {
width: 47px;
overflow: visible;
}

&:focus .back-blob {
stroke: var(--deep-blue);
stroke-width: 5px;
animation: strokePulse 500ms ease forwards;
}

@media (min-width: 600px) {
Expand All @@ -124,6 +131,15 @@
}
}

@keyframes strokePulse {
from {
stroke-width: 8px;
}
to {
stroke-width: 5px;
}
}

.back-blob {
fill: var(--hot-pink);
opacity: 0.77;
Expand Down

0 comments on commit 82caed4

Please sign in to comment.