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 (max-width: 640px) {body {margin: 25px;}}
|
||||
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;}
|
||||
|
||||
/* Header */
|
||||
|
|
|
@ -27,14 +27,10 @@ function mode (e) {
|
|||
|
||||
if (e.nodeName == 'H1' || e.nodeName == 'H2' || e.nodeName == 'H3' ||
|
||||
e.nodeName == 'H4' || e.nodeName == 'H5' || e.nodeName == 'H6' ||
|
||||
e.nodeName == 'P' || e.nodeName == 'FIGCAPTION') {
|
||||
e.nodeName == 'P' || e.nodeName == 'SPAN' || e.nodeName == 'FIGCAPTION
|
||||
|
||||
if (!e.parentNode.classList.contains('hashover-content')) {
|
||||
e.style.color = color;
|
||||
} else if (e.nodeName == 'A') {
|
||||
if (color == 'white') {
|
||||
e.style.color = 'rgb(229,87,44)';
|
||||
} else {
|
||||
e.removeAttribute('style');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,12 +38,12 @@ function mode (e) {
|
|||
|
||||
if (label == 'N') {
|
||||
e.innerHTML = 'D';
|
||||
document.body.style.backgroundColor = '#2d2d2d';
|
||||
document.body.classList.add('black');
|
||||
change_color(el_section, 'white');
|
||||
change_color(el_footer, 'white');
|
||||
} else {
|
||||
e.innerHTML = 'N';
|
||||
document.body.style.backgroundColor = 'white';
|
||||
document.body.classList.remove('black');
|
||||
change_color(el_section, 'black');
|
||||
change_color(el_footer, 'black');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue