Arreglo de estilos para hashover
This commit is contained in:
parent
c5ca52eeed
commit
abd64b4c06
|
@ -2,6 +2,9 @@
|
||||||
@media screen and (min-width: 641px) {body {margin: 50px;}}
|
@media screen and (min-width: 641px) {body {margin: 50px;}}
|
||||||
@media screen and (max-width: 640px) {body {margin: 25px;}}
|
@media screen and (max-width: 640px) {body {margin: 25px;}}
|
||||||
body {max-width: 512px;}
|
body {max-width: 512px;}
|
||||||
|
body.black {background-color: #2d2d2d;}
|
||||||
|
body.black a:not(.hashover-more-link) {color: rgb(229,87,44);}
|
||||||
|
body.black a > span {color: inherit !important;}
|
||||||
p, blockquote, li, figcaption, details, aside {text-align: left;}
|
p, blockquote, li, figcaption, details, aside {text-align: left;}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
|
|
|
@ -27,27 +27,23 @@ function mode (e) {
|
||||||
|
|
||||||
if (e.nodeName == 'H1' || e.nodeName == 'H2' || e.nodeName == 'H3' ||
|
if (e.nodeName == 'H1' || e.nodeName == 'H2' || e.nodeName == 'H3' ||
|
||||||
e.nodeName == 'H4' || e.nodeName == 'H5' || e.nodeName == 'H6' ||
|
e.nodeName == 'H4' || e.nodeName == 'H5' || e.nodeName == 'H6' ||
|
||||||
e.nodeName == 'P' || e.nodeName == 'FIGCAPTION') {
|
e.nodeName == 'P' || e.nodeName == 'SPAN' || e.nodeName == 'FIGCAPTION
|
||||||
|
|
||||||
e.style.color = color;
|
if (!e.parentNode.classList.contains('hashover-content')) {
|
||||||
} else if (e.nodeName == 'A') {
|
e.style.color = color;
|
||||||
if (color == 'white') {
|
|
||||||
e.style.color = 'rgb(229,87,44)';
|
|
||||||
} else {
|
|
||||||
e.removeAttribute('style');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (label == 'N') {
|
if (label == 'N') {
|
||||||
e.innerHTML = 'D';
|
e.innerHTML = 'D';
|
||||||
document.body.style.backgroundColor = '#2d2d2d';
|
document.body.classList.add('black');
|
||||||
change_color(el_section, 'white');
|
change_color(el_section, 'white');
|
||||||
change_color(el_footer, 'white');
|
change_color(el_footer, 'white');
|
||||||
} else {
|
} else {
|
||||||
e.innerHTML = 'N';
|
e.innerHTML = 'N';
|
||||||
document.body.style.backgroundColor = 'white';
|
document.body.classList.remove('black');
|
||||||
change_color(el_section, 'black');
|
change_color(el_section, 'black');
|
||||||
change_color(el_footer, 'black');
|
change_color(el_footer, 'black');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue