From aca497e7be618ff10dbea22ac1b99d15a544676b Mon Sep 17 00:00:00 2001 From: Franz Liedke <franz@develophp.org> Date: Thu, 12 May 2016 23:56:12 +0900 Subject: [PATCH] Final tweaks to inline code styling Refs #814. --- less/forum/Post.less | 14 +++++++------- less/lib/variables.less | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/less/forum/Post.less b/less/forum/Post.less index 0b01529c3..6fa80c3b0 100644 --- a/less/forum/Post.less +++ b/less/forum/Post.less @@ -116,30 +116,30 @@ border-bottom: 2px dotted @body-bg; margin: 1em 0; } + // Inline code code { font-family: source-code-pro, Monaco, Consolas, "Courier New", monospace; - padding: 2px 6px; + padding: 5px; background: @code-bg; color: @code-color; + line-height: 1.3; font-size: 90%; border-radius: 4px } + // Code blocks pre { border: 0; padding: 15px; - background: darken(@body-bg, 3%); + background: @code-bg; color: #666; font-size: 90%; border-radius: @border-radius; - .hljs { - padding: 0; - background: none; - } code { padding: 0; - background: transparent; + background: none; color: inherit; + line-height: inherit; font-size: 100%; border-radius: 0; } diff --git a/less/lib/variables.less b/less/lib/variables.less index 38d3987aa..4c3941849 100755 --- a/less/lib/variables.less +++ b/less/lib/variables.less @@ -38,8 +38,8 @@ @overlay-bg: fade(@secondary-color, 90%); - @code-bg: #F2F7F9; - @code-color: #60646D; + @code-bg: darken(@body-bg, 3%); + @code-color: lighten(@text-color, 30%); } .define-colors(true) { @primary-color: @config-primary-color; @@ -60,8 +60,8 @@ @overlay-bg: fade(darken(@body-bg, 5%), 90%); - @code-bg: darken(#F2F7F9, 90%); - @code-color: lighten(#60646D, 90%); + @code-bg: darken(@body-bg, 3%); + @code-color: #fff; } @hero-bg: @control-bg;