mirror of
https://github.com/NohamR/Code-to-PDF.git
synced 2026-05-25 04:07:17 +00:00
Fix issues with border radius
This commit is contained in:
3
index.js
3
index.js
@@ -30,13 +30,16 @@ printBtn.addEventListener('click', () => {
|
||||
updateCode();
|
||||
let optGroup = themeSelector.options[themeSelector.selectedIndex].parentNode;
|
||||
const lineNumbers = document.querySelectorAll('.line-number');
|
||||
const root = document.documentElement;
|
||||
|
||||
if (optGroup.label === 'Dark') {
|
||||
root.style.setProperty('--border-thickness', '0px');
|
||||
for (let i = 0; i < lineNumbers.length; i++) {
|
||||
lineNumbers[i].style.backgroundColor = '#353b48';
|
||||
lineNumbers[i].style.color = '#dfe6e9';
|
||||
}
|
||||
} else {
|
||||
root.style.setProperty('--border-thickness', '1px');
|
||||
for (let i = 0; i < lineNumbers.length; i++) {
|
||||
lineNumbers[i].style.backgroundColor = '#dcdde1';
|
||||
lineNumbers[i].style.color = '#2d3436';
|
||||
|
||||
Reference in New Issue
Block a user