Skip to content

Commit

Permalink
FE adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
viperehonchuk committed Jan 10, 2024
1 parent 890b01c commit 2d33f8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ document.addEventListener('DOMContentLoaded', () => {
});
});

const nolintCodeBlocks = document.querySelectorAll('code[class*="language-"][class*="-nolint"]');
nolintCodeBlocks.forEach((codeBlock) => {
codeBlock.classList.forEach((className) => {
if (className.endsWith('-nolint')) {
codeBlock.classList.remove(className);
codeBlock.classList.add(className.slice(0, -'-nolint'.length));
}
});
});
// const nolintCodeBlocks =
// document.querySelectorAll('code[class*="language-"][class*="-nolint"]');
// nolintCodeBlocks.forEach((codeBlock) => {
// codeBlock.classList.forEach((className) => {
// if (className.endsWith('-nolint')) {
// codeBlock.classList.remove(className);
// codeBlock.classList.add(className.slice(0, -'-nolint'.length));
// }
// });
// });

const leftButtons = document.querySelector('.left-buttons');
const searchBox = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,5 @@ screen and (min-width: 1008px) {
}

.example-bad {
background-color: color-mix(in srgb, red 15%, var(--bg));
background-color: color-mix(in oklab, red 15%, var(--bg))
}

0 comments on commit 2d33f8f

Please sign in to comment.