Skip to content

Commit

Permalink
Remove backticks around inline code fragments (#625)
Browse files Browse the repository at this point in the history
* Remove backticks around inline code fragments

By default, TailwindCSS surrounds inline code with backticks. In
order to have a more GitHub-like experience, as suggested by
@MisterDA in #612 the
tailwind configuration needs to be changed as explained here:

tailwindlabs/tailwindcss-typography#18

Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
Co-authored-by: Thibaut Mattio <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2022
1 parent 10cba52 commit d66c8bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
13 changes: 0 additions & 13 deletions asset/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ div.odoc-include .spec {
margin-top: 1rem /* 16px */;
}

div.odoc div.spec code::before,
div.odoc div.spec code::after {
content: "";
}

div.odoc div.spec code {
white-space: pre-wrap;
}
Expand Down Expand Up @@ -135,14 +130,6 @@ div.odoc div.spec tbody tr {
border-width: 0px;
}

div.odoc code::before {
content: "";
}

div.odoc code::after {
content: "";
}

div.odoc td.def-doc .comment-delim {
height: 0;
display: block;
Expand Down
12 changes: 12 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ module.exports = {
darkMode: 'class',
theme: {
extend: {
typography: {
DEFAULT: {
css: {
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
}
}
},
maxWidth: {
'8xl': '90rem',
},
Expand Down

0 comments on commit d66c8bb

Please sign in to comment.