Minor style fixes, and fix double message issue

This commit is contained in:
Timothy Warren 2016-02-10 17:50:07 -05:00
parent b2522acd08
commit eb8090b350
3 changed files with 9 additions and 22 deletions

View File

@ -452,7 +452,7 @@ h1 a {
} }
.media > .name > a { .media > .name > a {
text-align: justify; /*text-align:justify;*/
background: none; background: none;
color: #fff; color: #fff;
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85); text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85);
@ -466,13 +466,7 @@ h1 a {
.manga .name { .manga .name {
text-align: center; text-align: center;
width: 100%; width: 100%;
padding: 0.5em 0; padding: 0.5em 0.25em;
}
.anime .name > a {
text-align: center;
width: 100%;
padding: 0.5em 1em;
} }
.anime .media_type, .anime .media_type,

View File

@ -333,7 +333,7 @@ a:hover, a:active {
} }
.media > .name > a { .media > .name > a {
text-align:justify; /*text-align:justify;*/
background:none; background:none;
color:#fff; color:#fff;
text-shadow: var(--shadow); text-shadow: var(--shadow);
@ -347,13 +347,7 @@ a:hover, a:active {
.anime .name, .manga .name { .anime .name, .manga .name {
text-align:center; text-align:center;
width:100%; width:100%;
padding:0.5em 0; padding:0.5em 0.25em;
}
.anime .name > a {
text-align:center;
width:100%;
padding:0.5em 1em;
} }
.anime .media_type, .anime .media_type,

View File

@ -68,13 +68,12 @@ var AnimeClient = (function(w) {
<span class="close"></span> <span class="close"></span>
</div>`; </div>`;
let sel = AnimeClient.$('.message')[0]; let sel = AnimeClient.$('.message');
if (sel !== undefined) { if (sel[0] !== undefined) {
sel.innerHTML = template; sel[0].remove();
sel.removeAttribute('hidden');
} else {
_.$('header')[0].insertAdjacentHTML('beforeend', template);
} }
_.$('header')[0].insertAdjacentHTML('beforeend', template);
}, },
/** /**
* Finds the closest parent element matching the passed selector * Finds the closest parent element matching the passed selector