Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for inline code via <code>

  • Loading branch information...
commit 4a33a4f404871e0c324aa40b3535b3ef518a64ef 1 parent 14d1f1a
@kuyan authored
Showing with 11 additions and 2 deletions.
  1. +9 −1 less/main.less
  2. +2 −1  static/css/main.css
View
10 less/main.less
@@ -68,7 +68,8 @@ blockquote{
padding-left: (@line / 4px);
}
-code, .codehilite{
+// pre is for blocks of code, code is for inline code
+.codehilite{
background: lighten(@black, 15%); // If you don't a dark scheme for code, we can't be friends
.box-shadow(inset 0 0 10px @black);
color: @white;
@@ -79,6 +80,13 @@ code, .codehilite{
.rounded();
}
+code {
+ background: lighten(@black, 15%);
+ color: @white;
+ display: inline;
+ .rounded();
+ padding: .17em;
+}
time{
.small;
text-transform: uppercase;
View
3  static/css/main.css
@@ -33,7 +33,8 @@ h3{color:#999999;margin:36px 0 24px;font-size:14px;text-transform:uppercase;line
h4,h5,h6{font-weight:400;margin:24px 0;font-size:14px;line-height:1;font-family:'Droid Sans',sans-serif;font-weight:700;}
b,strong{font-weight:700;}
blockquote{border-left:6px solid #1d73bb;margin-left:-12px;padding-left:6px;}
-code,.codehilite{background:#262626;-webkit-box-shadow:inset 0 0 10px #000000;-moz-box-shadow:inset 0 0 10px #000000;box-shadow:inset 0 0 10px #000000;color:#ffffff;display:block;margin-left:-24px;font-family:'Droid Sans Mono',monospace;padding:24px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;}
+.codehilite{background:#262626;-webkit-box-shadow:inset 0 0 10px #000000;-moz-box-shadow:inset 0 0 10px #000000;box-shadow:inset 0 0 10px #000000;color:#ffffff;display:block;margin-left:-24px;font-family:'Droid Sans Mono',monospace;padding:24px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;}
+code{background:#262626;color:#ffffff;display:inline;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;padding:.17em;}
time{font-size:12px;text-transform:uppercase;}
.post ul li{list-style-image:url('../images/bullet.png');}
.archive li{list-style:none;}
Please sign in to comment.
Something went wrong with that request. Please try again.