1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

fix: groupmentions have poor contrast on some backgrounds (#3672)

* fix: poor text contrast on some backgrounds
* use hexdec()
* fix render test
* appears to be working now
This commit is contained in:
Ian Morland
2022-11-07 15:49:47 +00:00
committed by GitHub
parent eeb00cc56b
commit c98e6ba5a7
4 changed files with 66 additions and 8 deletions

View File

@@ -98,16 +98,40 @@
.Button--color(@tooltip-color, @tooltip-bg);
}
.GroupMention {
color: @body-bg;
& when (@config-dark-mode = false) {
&,
&:hover,
&:active {
color: @text-on-light;
}
}
& when (@config-dark-mode = true) {
&,
&:hover,
&:active {
color: @text-on-dark;
}
}
&--light {
&,
&:hover,
&:active {
color: @text-on-light;
}
}
&--dark {
&,
&:hover,
&:active {
color: @text-on-dark;
}
}
.icon {
margin-left: 5px;
}
&:hover,
&:active {
color: @body-bg;
}
}
.MentionsDropdown .Badge {
box-shadow: none;