Skip to content

Commit

Permalink
Adjust prism
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 6, 2016
1 parent 777288f commit 7e810cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
3 changes: 2 additions & 1 deletion assets/js/src/prism.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 1 addition & 37 deletions assets/scss/components/prism.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript&plugins=line-highlight+show-language */
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript&plugins=show-language */

/**
* prism.js default theme for JavaScript, CSS and HTML
Expand Down Expand Up @@ -141,42 +141,6 @@ pre[data-line] {
padding: 1em 0 1em 3em;
}

.line-highlight {
position: absolute;
right: 0;
left: 0;
padding: inherit 0;
margin-top: 1em; /* Same as .prism’s padding-top */
line-height: inherit;
white-space: pre;
pointer-events: none;
background: linear-gradient(left, hsla(24, 20%, 50%, .1) 70%, hsla(24, 20%, 50%, 0));
}

.line-highlight:before,
.line-highlight[data-end]:after {
position: absolute;
top: .4em;
left: .6em;
min-width: 1em;
padding: 0 .5em;
font: bold 65%/1.5 sans-serif;
content: attr(data-start);
text-align: center;
vertical-align: .3em;
color: hsl(24, 20%, 95%);
border-radius: 999px;
background-color: hsla(24, 20%, 50%, .4);
box-shadow: 0 1px white;
text-shadow: none;
}

.line-highlight[data-end]:after {
top: auto;
bottom: .4em;
content: attr(data-end);
}

div.prism-show-language {
position: relative;
}
Expand Down

0 comments on commit 7e810cc

Please sign in to comment.