diff --git a/stylesheets/text.less b/stylesheets/text.less index e4d53f0..895caf1 100644 --- a/stylesheets/text.less +++ b/stylesheets/text.less @@ -65,17 +65,17 @@ code { padding: 1px 3px; } -.highlight-color(@name, @color) { +.highlight-color(@name, @color, @text-color) { .highlight-@{name} { - color: @text-color-highlight; + color: lighten(saturate(@text-color, 0%), 30%); font-weight: bold; text-shadow: none; - background-color: @color; + background-color: fadeout(@color, 60%); border-radius: @component-border-radius; padding: 1px 3px; } } -.highlight-color(info, @background-color-info); -.highlight-color(warning, @background-color-warning); -.highlight-color(error, @background-color-error); -.highlight-color(success, @background-color-success); +.highlight-color(info, @background-color-info, @text-color-info); +.highlight-color(warning, @background-color-warning, @text-color-warning); +.highlight-color(error, @background-color-error, @text-color-error); +.highlight-color(success, @background-color-success, @text-color-success);