Commit 7b70d901 authored by Andreas Heimann's avatar Andreas Heimann

positioned covers in the center

parent 5b5d2650
...@@ -159,6 +159,7 @@ button:focus, ...@@ -159,6 +159,7 @@ button:focus,
width: 100%; width: 100%;
padding-top: 100%; padding-top: 100%;
position: relative; position: relative;
background-position: center;
} }
.song-row .song-list .song-item .song-cover .song-charter { .song-row .song-list .song-item .song-cover .song-charter {
position: absolute; position: absolute;
...@@ -276,6 +277,7 @@ button:focus, ...@@ -276,6 +277,7 @@ button:focus,
.user-item .user-avatar { .user-item .user-avatar {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
background-size: cover; background-size: cover;
background-position: center;
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 32px; border-radius: 32px;
......
...@@ -168,6 +168,7 @@ button, .button { ...@@ -168,6 +168,7 @@ button, .button {
width: 100%; width: 100%;
padding-top: 100%; padding-top: 100%;
position: relative; position: relative;
background-position: center;
& .song-charter { & .song-charter {
position: absolute; position: absolute;
...@@ -307,6 +308,7 @@ button, .button { ...@@ -307,6 +308,7 @@ button, .button {
& .user-avatar { & .user-avatar {
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
background-size: cover; background-size: cover;
background-position: center;
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 32px; border-radius: 32px;
......
...@@ -19,22 +19,27 @@ ...@@ -19,22 +19,27 @@
background: #eee; background: #eee;
border-radius: 6px; border-radius: 6px;
background-size: cover; background-size: cover;
background-position: center;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-title { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-title {
font-weight: bold; font-weight: bold;
font-size: 48px; font-size: 48px;
word-break: break-all;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-subtitle { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-subtitle {
font-size: 20px; font-size: 20px;
word-break: break-all;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-artist { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-artist {
margin-top: 5px; margin-top: 5px;
font-size: 18px; font-size: 18px;
word-break: break-all;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-charter { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-charter {
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
opacity: 0.6; opacity: 0.6;
word-break: break-all;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-tags { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-tags {
display: flex; display: flex;
...@@ -48,6 +53,7 @@ ...@@ -48,6 +53,7 @@
padding: 5px 20px; padding: 5px 20px;
border-radius: 50px; border-radius: 50px;
margin-right: 10px; margin-right: 10px;
word-break: break-all;
transition: 0.2s ease-in-out all; transition: 0.2s ease-in-out all;
} }
.section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-tags .tag:hover { .section-song-detail .song-detail-background .song-detail-dim .song-detail .song-meta-data .song-tags .tag:hover {
......
...@@ -20,23 +20,28 @@ ...@@ -20,23 +20,28 @@
background: #eee; background: #eee;
border-radius: 6px; border-radius: 6px;
background-size: cover; background-size: cover;
background-position: center;
} }
& .song-meta-data { & .song-meta-data {
& .song-title { & .song-title {
font-weight: bold; font-weight: bold;
font-size: 48px; font-size: 48px;
word-break: break-all;
} }
& .song-subtitle { & .song-subtitle {
font-size: 20px; font-size: 20px;
word-break: break-all;
} }
& .song-artist { & .song-artist {
margin-top: 5px; margin-top: 5px;
font-size: 18px; font-size: 18px;
word-break: break-all;
} }
& .song-charter { & .song-charter {
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
opacity: 0.6; opacity: 0.6;
word-break: break-all;
} }
& .song-tags { & .song-tags {
display: flex; display: flex;
...@@ -50,6 +55,7 @@ ...@@ -50,6 +55,7 @@
padding: 5px 20px; padding: 5px 20px;
border-radius: 50px; border-radius: 50px;
margin-right: 10px; margin-right: 10px;
word-break: break-all;
transition: 0.2s ease-in-out all; transition: 0.2s ease-in-out all;
&:hover { &:hover {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment