mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 03:07:15 +08:00
Brighten up avatar colors
This commit is contained in:
parent
edac830371
commit
cce21bb184
|
@ -50,6 +50,7 @@
|
|||
float: left;
|
||||
margin-left: -130px;
|
||||
border: 4px solid #fff;
|
||||
.box-shadow(0 2px 6px @fl-shadow-color);
|
||||
}
|
||||
& .badges {
|
||||
margin-left: 10px;
|
||||
|
|
|
@ -31,6 +31,6 @@ export default function(string) {
|
|||
num += string.charCodeAt(i);
|
||||
}
|
||||
var hue = num % 360;
|
||||
var rgb = hsvToRgb(hue / 360, 100 / 255, 200 / 255);
|
||||
var rgb = hsvToRgb(hue / 360, 0.4, 0.9);
|
||||
return ''+rgb.r.toString(16)+rgb.g.toString(16)+rgb.b.toString(16);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user