Skip to content

Commit

Permalink
Remove fallback colours
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienimmink committed Oct 31, 2023
1 parent de4eacf commit 6566612
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 44 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
body {
margin: 0;
padding: 0;
background: var(--background, #f8f9fa);
color: var(--text-color, #212529);
background: var(--background);
color: var(--text-color);
font-family: firasans, system-ui, 'Segoe UI', Roboto, Helvetica, Arial,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-variant-ligatures: no-common-ligatures;
Expand All @@ -88,11 +88,11 @@
}

::-webkit-scrollbar-track {
background-color: var(--progress-background, #f3f4f5);
background-color: var(--progress-background);
}

::-webkit-scrollbar-thumb {
background-color: var(--progress, #00417A);
background-color: var(--progress);
}

::-moz-selection {
Expand Down Expand Up @@ -134,7 +134,7 @@
height: 4px;
border-radius: 50%;
animation: progress-bar-animation 3s infinite;
background-color: var(--primary, #00417A);
background-color: var(--primary);
}

.progress-circle:nth-child(2) {
Expand Down
6 changes: 3 additions & 3 deletions src/styles/album-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default css`
}
.jumbotron {
color: var(--text-color);
background: var(--background2, #f2f4f7);
background: var(--background2);
padding: 1rem;
overflow: hidden;
transition: all 0.1s ease-in-out;
Expand All @@ -20,8 +20,8 @@ export default css`
height: 125px;
max-height: 125px;
margin-right: 1rem;
border: 1px solid var(--background, #f3f4f5);
box-shadow: 0px 0px 1px var(--primary, #00417a);
border: 1px solid var(--background);
box-shadow: 0px 0px 1px var(--primary);
transition: all 0.1s ease-in-out;
view-transition-name: album-art;
}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export default css`
}
.controls .btn:hover,
.controls .btn:focus {
color: var(--primary, #00417a);
color: var(--primary);
outline: none;
}
.controls .btn:active,
.controls .btn.active {
border: 0;
background: var(--primary, #00417a);
background: var(--primary);
color: var(--letter-color);
}
.controls .btn svg {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default css`
padding-top: 8px;
}
app-link {
color: var(--primary, #00417a);
color: var(--primary);
transition: color 0.2s ease-in-out;
-webkit-app-region: no-drag;
app-region: no-drag;
Expand Down
6 changes: 3 additions & 3 deletions src/styles/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { css } from 'lit';
export default css`
.header {
backdrop-filter: blur(2px);
background: var(--background-seethrough, rgba(248, 249, 250, 0.85));
background: var(--background-seethrough);
box-sizing: border-box;
height: 60px;
border-top: 0;
border-bottom: 1px solid var(--primary, #00417a);
border-bottom: 1px solid var(--primary);
transition: all 0.5s ease-in-out;
padding: 1.85rem 1rem 0;
position: sticky;
Expand All @@ -19,7 +19,7 @@ export default css`
}
.virtual-scroll .header {
top: 0;
color: var(--primary, #00417a);
color: var(--primary);
transition: none;
cursor: pointer;
}
Expand Down
6 changes: 3 additions & 3 deletions src/styles/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default css`
aspect-ratio: 1 / 1;
height: 70px;
border: 1px solid var(--background2);
box-shadow: 0px 0px 1px var(--primary, #00417a);
box-shadow: 0px 0px 1px var(--primary);
background: rgba(255, 255, 255, 0.85);
}
ol .details {
Expand All @@ -55,7 +55,7 @@ export default css`
font-family: system-ui;
}
ol .playing {
color: var(--primary, #00417a);
color: var(--primary);
transition: color 0.2s ease-in-out;
}
li > div,
Expand All @@ -72,7 +72,7 @@ export default css`
height: 17px;
padding: 5px;
color: var(--letter-color, #fff);
background: var(--primary, #00417a);
background: var(--primary);
position: absolute;
top: -8px;
right: -1px;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/jumplist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { css } from 'lit';
export default css`
.jumplist {
backdrop-filter: blur(2px);
background: var(--background-seethrough, #f8f9fa);
background: var(--background-seethrough);
list-style: none;
margin: 0;
padding: 0;
Expand Down Expand Up @@ -33,7 +33,7 @@ export default css`
padding: 4vh;
font-size: 1.5rem;
font-weight: 400;
color: var(--primary, #00417a);
color: var(--primary);
transition: all 0.2s ease-in-out;
text-decoration: none;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/loading-indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const loadingIndicator = css`
height: 4px;
border-radius: 50%;
animation: progress-bar-animation 3s infinite;
background-color: var(--primary, #00417a);
background-color: var(--primary);
}
.progress-circle:nth-child(2) {
animation-delay: 200ms;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default css`
top: 50px;
}
.login {
background: var(--background, #f8f9fa);
background: var(--background);
position: fixed;
top: 0;
left: 0;
Expand Down
14 changes: 7 additions & 7 deletions src/styles/now-playing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { css } from 'lit';
export default css`
.wrapper {
color: var(--text-color);
background: var(--background, #f8f9fa);
background: var(--background);
position: fixed;
top: 50px;
left: 0;
Expand All @@ -29,7 +29,7 @@ export default css`
}
.top {
backdrop-filter: blur(5px);
background: var(--background-seethrough, #f8f9fa);
background: var(--background-seethrough);
z-index: 2;
display: flex;
flex-direction: column;
Expand All @@ -42,7 +42,7 @@ export default css`
}
.bottom {
backdrop-filter: blur(5px);
background: var(--background-seethrough, #f8f9fa);
background: var(--background-seethrough);
z-index: 1;
display: block;
position: absolute;
Expand Down Expand Up @@ -298,7 +298,7 @@ export default css`
padding: 0;
border: 1px solid var(--background2);
background: rgba(255, 255, 255, 0.85);
box-shadow: 0px 0px 1px var(--primary, #00417a);
box-shadow: 0px 0px 1px var(--primary);
}
.smallArt canvas {
height: calc(100vh - 50px);
Expand All @@ -321,7 +321,7 @@ export default css`
font-weight: 400;
}
app-link {
color: var(--primary, #00417a);
color: var(--primary);
transition: color 0.2s ease-in-out;
}
app-link .icon {
Expand All @@ -336,10 +336,10 @@ export default css`
height: 6px;
}
::-webkit-scrollbar-track {
background-color: var(--progress-background, #f3f4f5);
background-color: var(--progress-background);
}
::-webkit-scrollbar-thumb {
background-color: var(--progress, #00417a);
background-color: var(--progress);
}
@media (min-width: 576px) {
h3 {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default css`
cursor: pointer;
background-size: contain;
position: relative;
border: 1px solid var(--background2, #f3f4f5);
box-shadow: 0px 0px 1px var(--primary, #00417a);
border: 1px solid var(--background2);
box-shadow: 0px 0px 1px var(--primary);
box-sizing: border-box;
transition: transform 0.15s ease-in-out;
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default css`
transition: color 0.5s ease-in-out;
}
.details app-link {
color: var(--primary, #00417a);
color: var(--primary);
transition: color 0.2s ease-in-out;
}
.art {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/playlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default css`
}
.playlists li app-link {
display: flex;
color: var(--primary, #00417a);
color: var(--primary);
transition: all 0.2s ease-in-out;
text-decoration: none;
align-items: center;
Expand Down Expand Up @@ -96,7 +96,7 @@ export default css`
.playlist li.header:hover,
.playlist li.no-hover:hover {
backdrop-filter: blur(2px);
background: var(--background-seethrough, rgba(248, 249, 250, 0.85));
background: var(--background-seethrough);
}
.playlist .artist-selector {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/progress-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export default css`
height: 6px;
cursor: pointer;
position: relative;
background: var(--progress-background, #4dbbff);
background: var(--progress-background);
overflow: hidden;
}
.progress-bar {
background: var(--primary, #00417a);
background: var(--primary);
height: 6px;
position: absolute;
pointer-events: none;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/scrollbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export default css`
height: 6px;
}
::-webkit-scrollbar-track {
background-color: var(--progress-background, #f3f4f5);
background-color: var(--progress-background);
}
::-webkit-scrollbar-thumb {
background-color: var(--progress, #00417a);
background-color: var(--progress);
}
`;
4 changes: 2 additions & 2 deletions src/styles/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export default css`
height: 50px;
margin-right: 10px;
flex-grow: 0;
border: 1px solid var(--background2, #f3f4f5);
border: 1px solid var(--background2);
background: rgba(255, 255, 255, 0.85);
box-shadow: 0px 0px 1px var(--primary, #00417a);
box-shadow: 0px 0px 1px var(--primary);
}
.details {
flex-grow: 1;
Expand Down
8 changes: 4 additions & 4 deletions src/styles/side-nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export default css`
height: 6px;
}
::-webkit-scrollbar-track {
background-color: var(--progress-background, #f3f4f5);
background-color: var(--progress-background);
}
::-webkit-scrollbar-thumb {
background-color: var(--progress, #00417a);
background-color: var(--progress);
}
ul {
list-style: none;
Expand Down Expand Up @@ -127,15 +127,15 @@ export default css`
width: 25px;
}
input {
border: 1px solid var(--primary, #00417a);
border: 1px solid var(--primary);
padding: 8px 10px;
display: block;
width: 90%;
margin: 8px 13px;
}
input:focus {
border-radius: 0;
border: 1px solid var(--primary, #00417a);
border: 1px solid var(--primary);
}
@media (min-width: 576px) {
input {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/virtual-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default css`
flex-grow: 0;
border: 1px solid var(--background2);
background: rgba(255, 255, 255, 0.85);
box-shadow: 0px 0px 1px var(--primary, #00417a);
box-shadow: 0px 0px 1px var(--primary);
}
.details {
flex-grow: 1;
Expand Down

0 comments on commit 6566612

Please sign in to comment.