Profile+Everywhere: Tweak CSS on profile related components

This commit improves the centering of profile bubble initials
and tweaks other parts of profile related components.
This commit is contained in:
Svallinn 2021-06-15 03:08:57 +01:00
parent 29ca006142
commit 65df233e8a
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
6 changed files with 27 additions and 29 deletions

View File

@ -1,7 +1,7 @@
.bubblePadding { .bubblePadding {
width: 100px; width: 100px;
height: 115px; height: 115px;
padding: 10px; padding: 10px 10px 30px 10px;
cursor: pointer; cursor: pointer;
-webkit-transition: background 0.2s ease-out; -webkit-transition: background 0.2s ease-out;
-moz-transition: background 0.2s ease-out; -moz-transition: background 0.2s ease-out;
@ -17,25 +17,23 @@
} }
.bubble { .bubble {
width: 50px; width: 70px;
height: 50px; height: 70px;
margin-top: 20px; margin: 20px auto 5px auto;
margin-bottom: 5px; border-radius: 50%;
margin-left: 25px; -webkit-border-radius: 50%;
border-radius: 200px 200px 200px 200px;
-webkit-border-radius: 200px 200px 200px 200px;
} }
.initial { .initial {
font-size: 25px; font-size: 35px;
line-height: 1em;
text-align: center; text-align: center;
position: relative; padding: 17.5px 0;
top: 12px;
} }
.profileName { .profileName {
font-size: 13px; font-size: 14px;
height: 60px; line-height: 1.5em;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
} }

View File

@ -7,9 +7,9 @@
class="bubble" class="bubble"
:style="{ background: backgroundColor, color: textColor }" :style="{ background: backgroundColor, color: textColor }"
> >
<p class="initial"> <div class="initial">
{{ profileInitial }} {{ profileInitial }}
</p> </div>
</div> </div>
<div class="profileName"> <div class="profileName">
{{ profileName }} {{ profileName }}

View File

@ -27,15 +27,15 @@
height: 100px; height: 100px;
margin: 10px; margin: 10px;
cursor: pointer; cursor: pointer;
border-radius: 200px 200px 200px 200px; border-radius: 50%;
-webkit-border-radius: 200px 200px 200px 200px; -webkit-border-radius: 50%;
} }
.initial { .initial {
font-size: 50px; font-size: 50px;
line-height: 1em;
text-align: center; text-align: center;
position: relative; padding: 25px 0;
bottom: 27px;
} }
@media only screen and (max-width: 680px) { @media only screen and (max-width: 680px) {

View File

@ -53,11 +53,11 @@
:style="{ background: profileBgColor, color: profileTextColor }" :style="{ background: profileBgColor, color: profileTextColor }"
style="cursor: default" style="cursor: default"
> >
<p <div
class="initial" class="initial"
> >
{{ profileInitial }} {{ profileInitial }}
</p> </div>
</div> </div>
</ft-flex-box> </ft-flex-box>
<ft-flex-box> <ft-flex-box>

View File

@ -3,15 +3,15 @@
height: 40px; height: 40px;
margin: 10px; margin: 10px;
cursor: pointer; cursor: pointer;
border-radius: 200px 200px 200px 200px; border-radius: 50%;
-webkit-border-radius: 200px 200px 200px 200px; -webkit-border-radius: 50%;
} }
.initial { .initial {
font-size: 20px; font-size: 20px;
line-height: 1em;
text-align: center; text-align: center;
position: relative; padding: 10px 0;
bottom: 30px;
} }
#profileList { #profileList {

View File

@ -5,11 +5,11 @@
:style="{ background: profileList[activeProfile].bgColor, color: profileList[activeProfile].textColor }" :style="{ background: profileList[activeProfile].bgColor, color: profileList[activeProfile].textColor }"
@click="toggleProfileList" @click="toggleProfileList"
> >
<p <div
class="initial" class="initial"
> >
{{ profileInitials[activeProfile] }} {{ profileInitials[activeProfile] }}
</p> </div>
</div> </div>
<ft-card <ft-card
id="profileList" id="profileList"
@ -38,11 +38,11 @@
class="colorOption" class="colorOption"
:style="{ background: profile.bgColor, color: profile.textColor }" :style="{ background: profile.bgColor, color: profile.textColor }"
> >
<p <div
class="initial" class="initial"
> >
{{ profileInitials[index] }} {{ profileInitials[index] }}
</p> </div>
</div> </div>
<p <p
class="profileName" class="profileName"