profile-mode: improvements

- update css logic
- rm redundant code
- reduce image size, it looks big imo
This commit is contained in:
Aditya Telange 2020-11-09 11:12:52 +05:30
parent b7169d2259
commit f9fbdc9963
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -1,39 +1,33 @@
.main {
.main .profile {
position: absolute;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
height: 80%;
text-align: center;
display: table;
}
.main>.profile {
display: table-cell;
vertical-align: middle;
}
.main>.profile>.profile_inner {
transform: translate(0, -10%);
}
.profile_inner h1 {
.profile .profile_inner h1 {
padding: 12px 0;
}
.profile_inner span {
.profile .profile_inner span {
padding: 10px 0;
font-size: 18px;
}
img {
.profile img {
display: inline-table;
width: 180px;
width: 150px;
border-radius: 50%;
pointer-events: none;
}
@media screen and (max-width: 600px) {
img {
width: 150px;
}
.main>.profile>.profile_inner {
transform: translate(0, 0);
.profile img {
width: 120px;
}
}
@ -59,4 +53,4 @@ img {
.button:active {
transform: scale(0.96);
}
}