Skip to content

Commit

Permalink
Adds h3 shortcode, summary element styles, test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bgdeutsch committed Mar 18, 2021
1 parent e28a09f commit dfc98e2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/shortcodes/h3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ $anchorized := anchorize .Inner }}

<h3 id="{{ $anchorized }}">
{{ .Inner }}
</h3>
14 changes: 14 additions & 0 deletions src/styles/pages/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ code + code.region-param {
border-bottom-left-radius: 0;
}

details {
margin-bottom: 1.5rem;

summary {
h3 {
display: inline-block;
}

&:focus {
outline: none;
}
}
}

.programming-lang-wrapper {
.code-snippet-wrapper {
display: none;
Expand Down

0 comments on commit dfc98e2

Please sign in to comment.