1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2025-10-17 17:01:01 +00:00

scss for syntax highlighting

This commit is contained in:
Holger Just 2015-12-05 23:52:10 +01:00
parent b3543eb211
commit bd12414163
2 changed files with 41 additions and 39 deletions

View File

@ -1,39 +0,0 @@
<%= Rouge::Themes::Base16.mode(:light).render %>
/* Overwrite some settings to be compatible with line-numbers: true */
.highlight table tbody tr td {
padding: 0;
border: 0 none;
background-color: transparent;
}
.highlight {
overflow-x: auto;
margin: 1.75em 0; /* default margin of table */
border: #E3EDF3 1px solid; /* default border of pre */
border-radius: 3px;
}
.highlight table {
margin: 0;
}
.highlight pre {
border: 0 none;
}
.highlight .gl {
border-color: #E3EDF3;
border-style: solid;
border-width: 0 1px 0 0;
}
td.gl {
/* Stop line numbers being visually selected */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@ -0,0 +1,41 @@
<%= Rouge::Themes::Github.render %>
// Overwrite some settings to be compatible with line-numbers: true
.highlight {
overflow-x: auto;
margin: 1.75em 0; /* default margin of table */
border: #E3EDF3 1px solid; /* default border of pre */
border-radius: 3px;
table {
margin: 0;
tbody tr td {
padding: 0;
border: 0 none;
background-color: transparent;
}
}
pre {
border: 0 none;
padding: 5px 10px;
}
.gl {
border-color: #E3EDF3;
border-style: solid;
border-width: 0 1px 0 0;
width: 1%;
min-width: 2em;
// Stop line numbers being visually selected
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
}