Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/css/common/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ input[type='checkbox'].switch {
background-color: $off-color;
border-radius: 50%;
margin: 2px;

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;
}
Comment thread
rami-elementor marked this conversation as resolved.
}
}

Expand Down Expand Up @@ -98,5 +102,13 @@ a.snippet-condition-count {
border-color: theme.$accent;
transition: border-color 0.6s;
}

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;

&::before {
transition-duration: 0.01s;
}
}
}
}
4 changes: 4 additions & 0 deletions src/css/common/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ $bg-color: hsl(0deg 0% 20% / 90%);
transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
transform: translate3d(0, 0, 0);
pointer-events: none;

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;
}
}

.tooltip::before {
Expand Down
4 changes: 4 additions & 0 deletions src/css/edit/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ $sidebar-gap: 30px;
grid-template-areas: 'upper sidebar' 'lower sidebar';
transition: all 700ms;

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;
}

&.snippet-form-expanded {
grid-template-areas: 'upper upper' 'lower sidebar';
}
Expand Down
4 changes: 4 additions & 0 deletions src/css/import/_upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ $type-colors: (
transition: all 0.3s ease;
opacity: 1;

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;
}

&.drag-over {
border-color: #0073aa;
background-color: #f0f6fc;
Expand Down
4 changes: 4 additions & 0 deletions src/css/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
justify-content: center;
align-items: center;

@media (prefers-reduced-motion: reduce) {
transition-duration: 0.01s;
}

&:hover {
background-color: #08c5d1;
}
Expand Down
4 changes: 4 additions & 0 deletions src/css/welcome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ $breakpoint: 1060px;
position: absolute;
inset-inline-start: 47%;
inset-block-start: 45%;

@media (prefers-reduced-motion: reduce) {
animation: none;
}
}

.csp-welcome-header nav {
Expand Down
Loading