Skip to content

Commit

Permalink
🎨 [Lint] Run auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Aug 18, 2024
1 parent 4fe23a5 commit 937db1d
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 57 deletions.
13 changes: 3 additions & 10 deletions app/website/src/components/SpeedSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,15 @@ const stripes = computed(() => {
<style scoped>
.SpeedSlider {
/* Webkit does not like `height > 100%` for inputs. */
--speed-slider-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--speed-slider-progress-height: calc(
var(--row-height) - var(--action-padding) * 2 - var(--app-border-width) * 4
);
--speed-slider-track-height: calc(var(--row-height) - var(--action-padding) * 2);
--speed-slider-progress-height: calc(var(--row-height) - var(--action-padding) * 2 - var(--app-border-width) * 4);

--speed-slider-track-stop-1: calc(50% - var(--app-border-width));
--speed-slider-track-stop-2: calc(50% + var(--app-border-width));

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

display: grid;
flex: 1 1 auto;
Expand Down Expand Up @@ -133,7 +127,6 @@ const stripes = computed(() => {

@mixin input-track {
height: var(--speed-slider-track-height);
/* prettier-ignore */
background: linear-gradient(
transparent 0% var(--speed-slider-track-stop-1),
currentColor var(--speed-slider-track-stop-1) var(--speed-slider-track-stop-2),
Expand Down
8 changes: 2 additions & 6 deletions app/website/src/components/VolumeManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ const progress = computed(() => {

<style scoped>
.VolumeManager {
--volume-manager-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--volume-manager-track-height: calc(var(--row-height) - var(--action-padding) * 2);

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

display: grid;
align-items: center;
Expand Down
9 changes: 2 additions & 7 deletions app/website/src/components/VolumeStack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ const progress = computed(() => {

<style scoped>
.VolumeStack {
--volume-stack-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--volume-stack-track-height: calc(var(--row-height) - var(--action-padding) * 2);

--volume-stack-track-stop-1: calc(50% - var(--app-border-width) / 2);
--volume-stack-track-stop-2: calc(50% + var(--app-border-width) / 2);

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

position: relative;
z-index: 1;
Expand All @@ -84,7 +80,6 @@ const progress = computed(() => {

@mixin input-track {
height: var(--volume-stack-track-height);
/* prettier-ignore */
background: linear-gradient(
transparent 0% var(--volume-stack-track-stop-1),
var(--color-primary) var(--volume-stack-track-stop-1) var(--volume-stack-track-stop-2),
Expand Down
14 changes: 2 additions & 12 deletions app/website/src/primitives/MotionSlideReveal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ defineProps<MotionSlideRevealProps>();
.slideReveal-enter-active,
.slideReveal-leave-active {
--clip-path-x: 100%;
clip-path: polygon(
0 0,
var(--clip-path-x) 0,
var(--clip-path-x) 100%,
0 100%
);
clip-path: polygon(0 0, var(--clip-path-x) 0, var(--clip-path-x) 100%, 0 100%);
transition: clip-path var(--duration-slow) var(--easing-cubic);
/* Nested <LabelAction />
Expand Down Expand Up @@ -61,12 +56,7 @@ defineProps<MotionSlideRevealProps>();
.slideReverse-enter-active,
.slideReverse-leave-active {
--clip-path-x: 0%;
clip-path: polygon(
var(--clip-path-x) 0,
100% 0,
100% 100%,
var(--clip-path-x) 100%
);
clip-path: polygon(var(--clip-path-x) 0, 100% 0, 100% 100%, var(--clip-path-x) 100%);
transition: clip-path var(--duration-slow) var(--easing-cubic);
/* Nested <LabelAction />
Expand Down
3 changes: 1 addition & 2 deletions app/website/src/primitives/ProgressBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const progress = computed(() => calcProgress(value, {min, max, round: true}));
.pattern-diagonal--animated {
/* Custom class for unique duration and easing. */
animation: anim-svg-diagonal calc(var(--progress-pattern-speed, 0) * 1ms)
infinite steps(4);
animation: anim-svg-diagonal calc(var(--progress-pattern-speed, 0) * 1ms) infinite steps(4);
}
.Progress {
Expand Down
4 changes: 1 addition & 3 deletions app/website/src/styles/design-system.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
--app-border-width: 0.2rem;

--app-max-width: 84rem;
--app-full-width-mobile: calc(
var(--breakpoint-mobile-begin) - var(--app-padding) * 2
);
--app-full-width-mobile: calc(var(--breakpoint-mobile-begin) - var(--app-padding) * 2);

/* Paired with inset border gives the appearance of 4px padding. */
--action-padding: 0.6rem;
Expand Down
6 changes: 2 additions & 4 deletions app/website/src/styles/keyframes.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
background-position: 0 0;
}
to {
background-position: var(--pattern-diagonal-size)
var(--pattern-diagonal-size);
background-position: var(--pattern-diagonal-size) var(--pattern-diagonal-size);
}
}

Expand All @@ -13,7 +12,6 @@
background-position: 0 0;
}
to {
background-position: var(--pattern-halftone-size)
var(--pattern-halftone-size);
background-position: var(--pattern-halftone-size) var(--pattern-halftone-size);
}
}
3 changes: 1 addition & 2 deletions app/website/src/styles/mixin.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,5 @@
@mixin pattern-halftone-dense {
background-image: var(--pattern-halftone-dense-url);
background-repeat: repeat;
background-size: var(--pattern-halftone-dense-size)
var(--pattern-halftone-dense-size);
background-size: var(--pattern-halftone-dense-size) var(--pattern-halftone-dense-size);
}
10 changes: 3 additions & 7 deletions app/website/src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* https://github.com/elad2412/the-new-css-reset
*/

*:where(
:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)
) {
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
all: unset;
display: revert;
}
Expand Down Expand Up @@ -85,8 +83,7 @@ meter {
/* --- Custom resets --- */

html {
font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic',
source-sans-pro, sans-serif;
font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
font-size: 10px;
font-display: swap;
line-height: 1;
Expand All @@ -105,8 +102,7 @@ body {
}

code {
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas,
'DejaVu Sans Mono', monospace;
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

svg:not(:root) {
Expand Down
5 changes: 1 addition & 4 deletions app/website/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ const entries = [column1, column2];
.Stacks {
display: grid;
gap: var(--app-spacing);
grid-template-columns: repeat(
auto-fit,
minmax(var(--app-full-width-mobile), 1fr)
);
grid-template-columns: repeat(auto-fit, minmax(var(--app-full-width-mobile), 1fr));
@media (min-width: 1440px) and (min-height: 1280px) {
gap: var(--row-height);
Expand Down

0 comments on commit 937db1d

Please sign in to comment.