Fix Colour Contrast on the User Profile Header (#8406)
This commit is contained in:
parent
85f784a76c
commit
9ada1dda10
3 changed files with 4 additions and 10 deletions
|
|
@ -139,7 +139,6 @@
|
|||
h1 {
|
||||
margin: 5px auto 1vw;
|
||||
font-weight: bold;
|
||||
color: rgb(27, 27, 28);
|
||||
font-size: 25px;
|
||||
padding: 0;
|
||||
padding-right: 15px;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<style>
|
||||
<%# <style>
|
||||
.user-metadata-details-inner a {
|
||||
color: <%= HexComparer.new([user_colors(@user)[:bg], user_colors(@user)[:text]]).brightness(0.95) %>
|
||||
color: var(--body-color);
|
||||
}
|
||||
</style>
|
||||
</style> %>
|
||||
|
||||
<div class="user-metadata-details">
|
||||
<div class="user-metadata-details-inner">
|
||||
|
|
|
|||
|
|
@ -19,12 +19,7 @@
|
|||
.night-theme .widget header {
|
||||
color: #cedae2;
|
||||
}
|
||||
.user-profile-header .user-profile-header-container .profile-details h1{
|
||||
color: <%= HexComparer.new([user_colors(@user)[:bg], user_colors(@user)[:text]]).brightness(0.78) %> !important;
|
||||
}
|
||||
.night-theme .user-profile-header .user-profile-header-container .profile-details h1{
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
<% if user_colors(@user)[:bg].downcase.start_with?("#fff") %>
|
||||
.user-profile-follow-button {
|
||||
border: 1px solid <%= user_colors(@user)[:text] %> !important;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue