vdoc: minor css and js fixes (#7485)

pull/7489/head
Ned Palacios 2020-12-23 14:00:22 +08:00 committed by GitHub
parent 70c136441b
commit edefc9e2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,9 @@ body {
padding: 1rem;
overflow: hidden;
}
.doc-content img {
width: 100%;
}
.doc-content p {
line-height: 1.4;
}

View File

@ -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');