Skip to content

Commit

Permalink
fix: remove table border for gist code. close #32
Browse files Browse the repository at this point in the history
  • Loading branch information
tomowang committed Mar 26, 2024
1 parent 99a9181 commit 469c789
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
12 changes: 8 additions & 4 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,10 @@ video {
margin-bottom: 0;
}

.prose-quoteless :where(.gist .highlight tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-width: 0;
}

.sr-only {
position: absolute;
width: 1px;
Expand Down Expand Up @@ -1352,14 +1356,14 @@ video {
flex-grow: 1;
}

.cursor-pointer {
cursor: pointer;
}

.cursor-default {
cursor: default;
}

.cursor-pointer {
cursor: pointer;
}

.flex-row {
flex-direction: row;
}
Expand Down
4 changes: 4 additions & 0 deletions exampleSite/content/post/rich-content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
<!--more-->
---

## Github gist Shortcode

{{< gist tomowang c29ef5bfc7eac018edc6307a43ffbf3d >}}

## YouTube Privacy Enhanced Shortcode

{{< youtube ms32oqonz04 >}}
Expand Down
4 changes: 4 additions & 0 deletions exampleSite/content/post/rich-content/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Hugo 附带了几个用于丰富内容的[Shortcodes](https://gohugo.io/content-
<!--more-->
---

## Github gist Shortcode

{{< gist tomowang c29ef5bfc7eac018edc6307a43ffbf3d >}}

## YouTube Privacy Enhanced Shortcode

{{< youtube ms32oqonz04 >}}
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = {
'> ol > li > input:last-child': {
marginBottom: 0,
},
'.gist .highlight tbody tr': {
borderWidth: 0,
},
},
},
},
Expand Down

0 comments on commit 469c789

Please sign in to comment.