mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-29 00:27:30 -05:00
Fix #11 - better syntax highlighting
This requires the following to be added to config.toml: [markup] [markup.highlight] noClasses = false lineNos = true
This commit is contained in:
@ -129,18 +129,25 @@ hr {
|
||||
|
||||
|
||||
/* Code blocks */
|
||||
pre {
|
||||
.highlight pre {
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code, pre {
|
||||
.highlight > pre {
|
||||
padding: 12px 8px;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
background-color: #282828;
|
||||
padding: 2px 4px;
|
||||
border-radius: 5px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
code {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Icons */
|
||||
|
Reference in New Issue
Block a user