mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed positions of the scrollbuttons
This commit is contained in:
@@ -229,8 +229,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="playlist" class="col s12 m3">
|
<div id="playlist" class="col s12 m3">
|
||||||
<div id="top-button" title="Scroll to the top" class="hide hide-on-small-only">Top</div>
|
<div id="top-button" title="Scroll to the top" class="rounded-bottom hide hide-on-small-only">Top</div>
|
||||||
<div id="bottom-button" title="Scroll to the bottom" class="hide hide-on-small-only">Bottom</div>
|
<div id="bottom-button" title="Scroll to the bottom" class="rounded-top hide hide-on-small-only">Bottom</div>
|
||||||
<ul class="tabs playlist-tabs hide-on-small-only hide">
|
<ul class="tabs playlist-tabs hide-on-small-only hide">
|
||||||
<li class="tab col s3"><a class="playlist-tab-links" href="#wrapper">Playlist</a></li>
|
<li class="tab col s3"><a class="playlist-tab-links" href="#wrapper">Playlist</a></li>
|
||||||
<li class="tab col s3"><a class="playlist-tab-links" href="#suggestions">Suggested</a></li>
|
<li class="tab col s3"><a class="playlist-tab-links" href="#suggestions">Suggested</a></li>
|
||||||
|
|||||||
@@ -1113,6 +1113,16 @@ nav ul li:hover, nav ul li.active {
|
|||||||
width:15px;
|
width:15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rounded-bottom{
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rounded-top{
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
#top-button, #bottom-button{
|
#top-button, #bottom-button{
|
||||||
color: white;
|
color: white;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -1130,7 +1140,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-button-with-tabs{
|
.top-button-with-tabs{
|
||||||
top:53px !important;
|
top:48px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bottom-button{
|
#bottom-button{
|
||||||
|
|||||||
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -398,7 +398,8 @@ $(document).on("click", ".brand-logo-navigate", function(e){
|
|||||||
$(document).on("mousemove", "#playlist", function(e)
|
$(document).on("mousemove", "#playlist", function(e)
|
||||||
{
|
{
|
||||||
var y = e.pageY - this.offsetTop;
|
var y = e.pageY - this.offsetTop;
|
||||||
if(y <= 27){
|
console.log(y);
|
||||||
|
if((y <= 27 && adminpass == "") || (y <= 80 && y >= 48 && adminpass != "")){
|
||||||
$("#top-button").removeClass("hide");
|
$("#top-button").removeClass("hide");
|
||||||
Helper.addClass("#bottom-button", "hide");
|
Helper.addClass("#bottom-button", "hide");
|
||||||
}else if(y >= $("#playlist").height() - 18){
|
}else if(y >= $("#playlist").height() - 18){
|
||||||
|
|||||||
Reference in New Issue
Block a user