moins noir

This commit is contained in:
Mstrdav 2021-02-05 22:58:50 +01:00
parent ce60781f91
commit a0f22d6a10
2 changed files with 33 additions and 27 deletions

View file

@ -91,6 +91,7 @@ function toggleYfold(id) {
window.onload = function() { window.onload = function() {
console.log("DOM loaded.") console.log("DOM loaded.")
var snippet = document.getElementsByTagName("code")[0]; var snippet = document.getElementsByTagName("code")[0];
if ((snippet.classList.value.includes("page")) || (snippet.classList.value.includes("block"))) {
console.log(snippet); console.log(snippet);
let img = document.createElement('div'); let img = document.createElement('div');
@ -123,4 +124,7 @@ window.onload = function() {
snippet.appendChild(img) snippet.appendChild(img)
snippet.appendChild(theme) snippet.appendChild(theme)
} else {
console.log(snippet.classList);
}
}; };

View file

@ -178,7 +178,7 @@ footer {
bottom: 0px; bottom: 0px;
width: 100%; width: 100%;
min-height: 150px; min-height: 150px;
background: rgba(0, 0, 0, 0.8); background: rgba(19,19,19,.8);
padding: 30px 50px; padding: 30px 50px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -240,6 +240,7 @@ code * {
} }
code div { code div {
overflow: hidden;
position: absolute; position: absolute;
top: 12px; top: 12px;
right: 12px; right: 12px;
@ -249,6 +250,7 @@ code div {
width: 42px; width: 42px;
background: #333; background: #333;
cursor: pointer; cursor: pointer;
overflow-x: hidden;
} }
code div.theme { code div.theme {