mirror of
https://github.com/Dangoware/dango-music-player.git
synced 2025-04-19 10:02:53 -05:00
Improved CSS
This commit is contained in:
parent
eb166bda21
commit
08a9ff7a0a
2 changed files with 55 additions and 17 deletions
70
src/App.css
70
src/App.css
|
@ -3,6 +3,23 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Customize these for themes? */
|
||||||
|
:root {
|
||||||
|
--baseColor: #101010;
|
||||||
|
--overlayColor: #1e1e1e;
|
||||||
|
--highlightColor: #1f1f1f;
|
||||||
|
--playBarColor: #5c4bb9;
|
||||||
|
--lightTextColor: #7a7a6f;
|
||||||
|
--mediumTextColor: #cacab8;
|
||||||
|
--highlightTextColor: #FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.elidedText {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
@ -31,7 +48,8 @@
|
||||||
|
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #c1bcd1;
|
background-color: var(--baseColor);
|
||||||
|
color: var(--highlightTextColor);
|
||||||
|
|
||||||
/* Change to resize width */
|
/* Change to resize width */
|
||||||
min-width: 380px;
|
min-width: 380px;
|
||||||
|
@ -42,11 +60,12 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #876765;
|
background-color: var(--overlayColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainView {
|
.mainView {
|
||||||
background-color: #f5eab2;
|
background-color: var(--baseColor);
|
||||||
|
color: var(--lightTextColor);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
@ -73,17 +92,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.song:hover {
|
.song:hover {
|
||||||
background-color: grey;
|
background-color: var(--highlightColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
#playBar {
|
#playBar {
|
||||||
position:relative;
|
position:relative;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: #4c4373;
|
background-color: var(--playBarColor);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 5%;
|
height: 58px;
|
||||||
padding: 1.5%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topHalf {
|
.topHalf {
|
||||||
|
@ -108,19 +126,28 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: var(--mediumTextColor);
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 5%;
|
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.artworkWrapper {
|
||||||
|
box-sizing: border-box;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
border: 1px solid #333;
|
||||||
|
margin: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
.Queue {
|
.Queue {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: burlywood;
|
background-color: var(--overlayColor);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
@ -154,11 +181,20 @@
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
|
|
||||||
p:first-child {
|
text-overflow: ellipsis;
|
||||||
font-weight: bold;
|
overflow: hidden;
|
||||||
}
|
white-space: nowrap;
|
||||||
|
}
|
||||||
p {
|
|
||||||
margin: 0;
|
.queueSongTags p:first-child {
|
||||||
}
|
font-weight: bold;
|
||||||
|
color: var(--highlightTextColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
.queueSongTags p {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin: 0;
|
||||||
|
color: var(--mediumTextColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,7 +319,9 @@ interface NowPlayingProps {
|
||||||
function NowPlaying({ title, artist, album, artwork }: NowPlayingProps) {
|
function NowPlaying({ title, artist, album, artwork }: NowPlayingProps) {
|
||||||
return (
|
return (
|
||||||
<section className="nowPlaying">
|
<section className="nowPlaying">
|
||||||
|
<div className="artworkWrapper">
|
||||||
{ artwork }
|
{ artwork }
|
||||||
|
</div>
|
||||||
<h3>{ title }</h3>
|
<h3>{ title }</h3>
|
||||||
<p>{ artist }</p>
|
<p>{ artist }</p>
|
||||||
<p>{ album }</p>
|
<p>{ album }</p>
|
||||||
|
|
Loading…
Reference in a new issue