mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
moved some css out from js
This commit is contained in:
@@ -183,6 +183,19 @@ margin: auto;
|
||||
width: 50% !important;
|
||||
}
|
||||
|
||||
.hide-playlist-button {
|
||||
position: absolute;
|
||||
top: 128px;
|
||||
background: inherit;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
z-index: 99;
|
||||
font-size: 1rem;
|
||||
padding: 10px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#pageNumber{
|
||||
cursor: default;
|
||||
color: white;
|
||||
@@ -191,7 +204,7 @@ margin: auto;
|
||||
}
|
||||
|
||||
#channel-share-modal {
|
||||
overflow:hidden;
|
||||
overflow:hidden;
|
||||
background: transparent !important;
|
||||
text-align: center !important;
|
||||
margin: auto;
|
||||
|
||||
@@ -24,7 +24,7 @@ var Channel = {
|
||||
Helper.addClass(".volume-container", "volume-container-cast");
|
||||
}
|
||||
if(!embed) {
|
||||
document.querySelector("#main-container").insertAdjacentHTML("beforeend", "<a id='hide-playlist' class='hide-on-small-only' href='#!' style=' position: absolute;top: 128px;background: inherit;display:flex;align:items:center;justify-content:center;z-index: 99;font-size: 1rem;padding: 10px;color: white;'><i class='material-icons'>keyboard_arrow_right</i></div>");
|
||||
document.querySelector("#main-container").insertAdjacentHTML("beforeend", "<a id='hide-playlist' class='hide-on-small-only hide-playlist-button' href='#!'><i class='material-icons'>keyboard_arrow_right</i></div>");
|
||||
document.querySelector("#hide-playlist").style.left = (document.querySelector("#video-container").offsetWidth - document.querySelector("#hide-playlist").offsetWidth) + "px";
|
||||
}
|
||||
//Player.soundcloud_player = document.querySelector("#soundcloud_player");
|
||||
@@ -630,7 +630,7 @@ var Channel = {
|
||||
url: "/",
|
||||
method: "GET",
|
||||
success: function(e){
|
||||
|
||||
|
||||
if(!client) {
|
||||
document.querySelector("#hide-playlist").remove();
|
||||
if(hiddenPlaylist) document.querySelector("main").style.maxWidth = "";
|
||||
|
||||
Reference in New Issue
Block a user