fix: css tweaks
This commit is contained in:
1 parent
97512cbeac
commit
a2fd75326f
5 files changed
+33
-11
No files matched your search
@@ -18,6 +18,12 @@
|
||||
color: #fffd;
|
||||
}
|
||||
|
||||
.history-section.now > .track .track-artist {
|
||||
.history-section.now > .track .track-artist,
|
||||
.history-section.now > .track .track-timestamp {
|
||||
color: #fffa;
|
||||
}
|
||||
|
||||
.history-section.next > .track .track-timestamp,
|
||||
.history-section.now > .track .track-timestamp {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
@@ -35,10 +35,12 @@
|
||||
font-size: 0.75em;
|
||||
background-color: var(--light);
|
||||
margin: 1em 0;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.info-balance > div {
|
||||
display: inline-block;
|
||||
min-width: 2em;
|
||||
}
|
||||
|
||||
.info-balance > .up {
|
||||
@@ -85,3 +87,9 @@
|
||||
padding: 0.1em 0 0 0.5em;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
.info-meta {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 0.9em;
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
justify-content: flex-end;
|
||||
background-color: var(--light);
|
||||
font-family: 'Quicksand';
|
||||
overflow: hidden auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
@@ -13,4 +13,5 @@
|
||||
margin: auto;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 8em;
|
||||
overflow-y: auto;
|
||||
}
|
||||
@@ -29,6 +29,11 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.track-timestamp {
|
||||
font-size: 0.75em;
|
||||
margin-left: -0.4em;
|
||||
}
|
||||
|
||||
.track-section-b {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
@@ -37,11 +42,12 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.track-timestamp {
|
||||
font-size: 0.75em;
|
||||
margin-left: -0.4em;
|
||||
.track-section-a,
|
||||
.track-section-b {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.track-rank:before {
|
||||
@@ -84,7 +90,7 @@
|
||||
top: 0;
|
||||
border-radius: inherit;
|
||||
background: hsl(12deg, 4%, 20%);
|
||||
transition: 0.3s ease-in-out;
|
||||
transition: 0.3s cubic-bezier(0.7, 0, 0.3, 1);
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@@ -12,7 +12,10 @@ function Track({ track, timestamp, rank }) {
|
||||
|
||||
return (
|
||||
<div className={['track', open ? 'open' : ''].join(' ')} id={id}>
|
||||
<div className={'track-section-a ' + (timestamp || rank ? '' : 'empty')}>
|
||||
<div
|
||||
className={'track-section-a ' + (timestamp || rank ? '' : 'empty')}
|
||||
onClick={() => info()}
|
||||
>
|
||||
{timestamp && <span className="track-timestamp">{timestamp}</span>}
|
||||
{rank && <span className="track-rank">{rank}</span>}
|
||||
<img
|
||||
@@ -22,10 +25,8 @@ function Track({ track, timestamp, rank }) {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="track-section-b">
|
||||
<Link to={`/utwor/${id}`} className="track-title">
|
||||
{title}
|
||||
</Link>
|
||||
<div className="track-section-b" onClick={() => info()}>
|
||||
<span className="track-title">{title}</span>
|
||||
<span className="track-artist">{artists.join(', ')}</span>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user