Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best styling codeblock #66

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Best styling codeblock
Recommandation of zola : https://www.getzola.org/documentation/content/syntax-highlighting/#styling-codeblocks
with none user select the line number cells
Pierre Galvez committed May 31, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit aa769564f2881cbb3e77f0af02f24fcb13277b32
17 changes: 15 additions & 2 deletions sass/deep-thought.sass
Original file line number Diff line number Diff line change
@@ -37,5 +37,18 @@ html[theme="auto"]
section
flex: 1;



.content pre
table
td, th
border: none;
padding-bottom: 0px;
td:nth-of-type(1)
text-align: center;
user-select: none;
mark
// If you want your highlights to take the full width.
display: block;

.content pre[data-linenos]
padding-left: 1em;
padding-right: 1em;