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

View File

@ -333,7 +333,7 @@ a:hover, a:active {
}
.media > .name > a {
text-align:justify;
/*text-align:justify;*/
background:none;
color:#fff;
text-shadow: var(--shadow);
@ -347,15 +347,9 @@ a:hover, a:active {
.anime .name, .manga .name {
text-align:center;
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 .airing_status,
.anime .user_rating,

View File

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