Skip to content

Commit

Permalink
fix(styles): make line numbers not selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Nov 12, 2015
1 parent f93d80a commit 8f28573
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions _app/_posts/note/2014-06-06-syntax-highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,19 @@ print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

{% highlight ruby linenos %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% highlight html linenos %}
<!doctype html>
<html>
<head>
<title>Title!</title>
</head>
<body>
<h1 id="title" class="heading">Example</h1>
<p id="foo">Hello, World!</p>
<script type="text/javascript">var a = 1;</script>
<style type="text/css">#foo { font-weight: bold; }</style>
</body>
</html>
{% endhighlight %}

```js
Expand Down
1 change: 1 addition & 0 deletions _app/assets/themes/curtana/_less/module-syntax.less
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
.lineno {
color: desaturate(@link-color, 95%);
opacity: .5;
user-select: none;
}

.code {
Expand Down

0 comments on commit 8f28573

Please sign in to comment.