mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-12-19 23:45:35 +01:00
Update 4 files
- /search.html - /assets/css/style.scss - /assets/js/main_new.js - /_layouts/post.html
This commit is contained in:
parent
953811453e
commit
fe5faeac16
4 changed files with 11 additions and 4 deletions
|
|
@ -58,6 +58,11 @@ a:hover {
|
|||
text-indent: -2px;
|
||||
}
|
||||
|
||||
.post-content p {
|
||||
text-indent: 2em;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
h1 .octicon,
|
||||
h2 .octicon,
|
||||
h3 .octicon,
|
||||
|
|
@ -94,8 +99,8 @@ div.highlight:hover button {
|
|||
div.highlight button {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 1rem;
|
||||
top: 0.5em;
|
||||
right: 1em;
|
||||
height: 2em;
|
||||
transition: all 0.2s ease-out
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,9 @@ $(function () {
|
|||
$('section').each(function () {
|
||||
highlightTextNodes(this);
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
var codeBlocks = document.querySelectorAll('div.highlight');
|
||||
|
||||
codeBlocks.forEach(function (codeBlock) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue