Skip to content

Commit

Permalink
Added CSS to better vertically align 'Edit this Page' emoji and text.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Jun 2, 2024
1 parent 19307d1 commit 1d47c20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,15 @@
line-height: 1.1rem;
}

.markdown-section .align-items-vertically {
display: inline-flex;
align-items: center;
}

.markdown-section .align-items-vertically .emoji {
margin-right: 2px;
}

body .app-nav {
margin-right: -10px;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
} else {
url = gitLinkRepoURL + '/blob/main/docs/' + vm.route.file
}
var editHtml = '[:memo:' + editThisPageLinkText + '](' + url + ')\n'
var editHtml = '[:memo:' + editThisPageLinkText + '](' + url + ' ":class=align-items-vertically")\n'

if ((!(getURLParameterByName('hidegitlink'))) && (!!gitLinkRepoURL)) {
return html + '<br />' + '\n\n' + editHtml
Expand Down

0 comments on commit 1d47c20

Please sign in to comment.