Fix Colour Contrast on the User Profile Header (#8406)

This commit is contained in:
Raphael Noriode 2020-06-16 18:36:27 +01:00 committed by GitHub
parent 85f784a76c
commit 9ada1dda10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View file

@ -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;

View file

@ -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">

View file

@ -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;