Move release-status to top right and keep visible
This commit is contained in:
parent
c315237d64
commit
d138094a66
@ -207,10 +207,10 @@ function CreateManga(manga, connector){
|
|||||||
statusTooltip.innerText = 'Status Unavailable';
|
statusTooltip.innerText = 'Status Unavailable';
|
||||||
}
|
}
|
||||||
releaseStatus.appendChild(statusTooltip); //Append the tooltip to the indicator circle
|
releaseStatus.appendChild(statusTooltip); //Append the tooltip to the indicator circle
|
||||||
mangaName.appendChild(releaseStatus); //Append the release status indicator to the info block
|
|
||||||
|
|
||||||
info.appendChild(mangaName);
|
info.appendChild(mangaName);
|
||||||
mangaElement.appendChild(info);
|
mangaElement.appendChild(info);
|
||||||
|
mangaElement.appendChild(releaseStatus); //Append the release status indicator to the publication element
|
||||||
return mangaElement;
|
return mangaElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,13 +251,16 @@ publication-name{
|
|||||||
}
|
}
|
||||||
|
|
||||||
publication-status {
|
publication-status {
|
||||||
display: inline-block;
|
display:block;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
position: relative;
|
position: absolute;
|
||||||
vertical-align: middle;
|
top: 5px;
|
||||||
|
right: 5px;
|
||||||
|
z-index: 2;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 10px, rgb(51, 51, 51) 0px 0px 10px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
publication-status:hover > status-tooltip {
|
publication-status:hover > status-tooltip {
|
||||||
@ -269,8 +272,8 @@ status-tooltip {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
/*Position*/
|
/*Position*/
|
||||||
left: -50px ;
|
left: 150%;
|
||||||
bottom: 150%;
|
bottom: -75%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
||||||
/*Text Properties*/
|
/*Text Properties*/
|
||||||
@ -284,17 +287,20 @@ status-tooltip {
|
|||||||
width:100px;
|
width:100px;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: black;
|
||||||
|
border-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
status-tooltip::after {
|
status-tooltip::after {
|
||||||
content: " ";
|
content: " ";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%; /* At the bottom of the tooltip */
|
top: 50%;
|
||||||
left: 50%;
|
right: 100%; /* To the left of the tooltip */
|
||||||
margin-left: -5px;
|
margin-top: -5px;
|
||||||
border-width: 5px;
|
border-width: 5px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: black transparent transparent transparent;
|
border-color: transparent black transparent transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
publication img {
|
publication img {
|
||||||
|
@ -252,13 +252,16 @@ publication-name{
|
|||||||
}
|
}
|
||||||
|
|
||||||
publication-status {
|
publication-status {
|
||||||
display: inline-block;
|
display:block;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
position: relative;
|
position: absolute;
|
||||||
vertical-align: middle;
|
top: 5px;
|
||||||
|
right: 5px;
|
||||||
|
z-index: 2;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 10px, rgb(51, 51, 51) 0px 0px 10px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
publication-status:hover > status-tooltip {
|
publication-status:hover > status-tooltip {
|
||||||
@ -270,8 +273,8 @@ status-tooltip {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
/*Position*/
|
/*Position*/
|
||||||
left: -50px ;
|
left: 150%;
|
||||||
bottom: 150%;
|
bottom: -75%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
||||||
/*Text Properties*/
|
/*Text Properties*/
|
||||||
@ -285,17 +288,20 @@ status-tooltip {
|
|||||||
width:100px;
|
width:100px;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: black;
|
||||||
|
border-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
status-tooltip::after {
|
status-tooltip::after {
|
||||||
content: " ";
|
content: " ";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%; /* At the bottom of the tooltip */
|
top: 50%;
|
||||||
left: 50%;
|
right: 100%; /* To the left of the tooltip */
|
||||||
margin-left: -5px;
|
margin-top: -5px;
|
||||||
border-width: 5px;
|
border-width: 5px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: black transparent transparent transparent;
|
border-color: transparent black transparent transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user