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:
parent
b3543eb211
commit
bd12414163
@ -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;
|
||||
}
|
||||
41
source/stylesheets/_syntax.css.scss.erb
Normal file
41
source/stylesheets/_syntax.css.scss.erb
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user