Skip to content

Commit c19f96c

Browse files
author
Garrett Downs
committed
refactor(player): improve styling
1 parent 70ed531 commit c19f96c

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

public/global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
--default-a: 1;
2828
--primary-text-a: 0.88;
2929
--secondary-text-a: 0.5;
30+
--tertiary-text-a: 0.3;
3031

3132
--app-bg-color: hsla(0, 0%, 0%, 1);
3233
--app-text-color: hsla(0, 0%, 100%, 0.88);
@@ -43,6 +44,12 @@
4344
var(--text-color-l),
4445
var(--secondary-text-a)
4546
);
47+
--tertiary-text-color: hsla(
48+
var(--text-color-h),
49+
var(--text-color-s),
50+
var(--text-color-l),
51+
var(--tertiary-text-a)
52+
);
4653
--divider-color: hsla(
4754
var(--text-color-h),
4855
var(--text-color-s),

src/components/Waveform.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<style>
1717
.root {
1818
position: relative;
19-
background-color: var(--focus-color);
19+
background-color: var(--tertiary-text-color);
20+
margin: 5px 0;
21+
overflow: hidden;
2022
}
2123
2224
.root > .progress {
@@ -39,5 +41,6 @@
3941
}
4042
.root > .image > img {
4143
width: 100%;
44+
filter: brightness(10);
4245
}
4346
</style>

src/routes/Player.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
justify-content: space-between;
129129
font-weight: 600;
130130
color: var(--accent-color);
131+
padding: 0 5px;
131132
}
132133
133134
.stats {

0 commit comments

Comments
 (0)