vdoc: minor css and js fixes (#7485)
parent
70c136441b
commit
edefc9e2e4
|
@ -267,6 +267,9 @@ body {
|
|||
padding: 1rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
.doc-content img {
|
||||
width: 100%;
|
||||
}
|
||||
.doc-content p {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ function setupMobileToggle() {
|
|||
}
|
||||
|
||||
function setupDarkMode() {
|
||||
var html = document.getElementsByTagName('html')[0];
|
||||
var darkModeToggle = document.getElementById('dark-mode-toggle');
|
||||
darkModeToggle.addEventListener('click', function() {
|
||||
html.classList.toggle('dark');
|
||||
|
|
Loading…
Reference in New Issue