Skip to content

Instantly share code, notes, and snippets.

@suzuki86
Last active July 3, 2016 12:05
Show Gist options
  • Save suzuki86/d0faee82a60ac6cc7ad35da9de13eb51 to your computer and use it in GitHub Desktop.
Save suzuki86/d0faee82a60ac6cc7ad35da9de13eb51 to your computer and use it in GitHub Desktop.
CSS template of middleman for syntax highlight.
<%= Rouge::Themes::Github.render(:scope => '.highlight') %>
.highlight {
padding: 10px;
}
.highlight {
line-height: 120%;
pre, code {
overflow-x: scroll;
white-space: pre;
word-wrap: normal;
}
pre, span {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
}
.contents {
table {
width: 100%;
table-layout: fixed;
word-break: break-word;
border-collapse: collapse;
}
th, td {
border: 1px solid #cccccc;
padding: 10px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment