Skip to content

Commit

Permalink
feat(styles): darker codeblock background
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 11, 2016
1 parent 3e264d3 commit 6da2f98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _app/assets/themes/curtana/_less/components/randomized.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* Randomized | © Tunghsiao Liu | MIT
*/

// variables for standalone version
// @link-color: #a212d1;
// @code-color: #00cc80;

// Calculate code background color based on the lightness of link color
.calc-bg (@v) when (lightness(@v) >= 80%) {
@calc-bg: mix(#fff, @v, 90%);
Expand All @@ -21,7 +25,7 @@
> pre,
.highlighter-rouge & {
.calc-bg(@highlighter-tint);
background: fade(@calc-bg, 1.5%);
background: fade(@calc-bg, 2%);
}

// Reset default `code`
Expand Down

0 comments on commit 6da2f98

Please sign in to comment.