mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated some sizing
This commit is contained in:
@@ -1192,7 +1192,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
content: "\e686";/*"\e800";*/
|
content: "\e686";/*"\e800";*/
|
||||||
color:white;
|
color:white;
|
||||||
font-size:65px;
|
font-size: calc(100vh / 15);
|
||||||
position:absolute;
|
position:absolute;
|
||||||
width:100%; height:100%;
|
width:100%; height:100%;
|
||||||
top:0; left:0;
|
top:0; left:0;
|
||||||
|
|||||||
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
6
static/dist/main.min.js
vendored
6
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -79,6 +79,12 @@ var List = {
|
|||||||
if(!Helper.mobilecheck()){
|
if(!Helper.mobilecheck()){
|
||||||
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
||||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||||
|
var i = 2;
|
||||||
|
while(List.element_height < 50 || i < 10){
|
||||||
|
List.can_fit = Math.round(($("#wrapper").height()) / 71)+i;
|
||||||
|
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||||
|
i = i + 1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
List.can_fit = Math.round(($(window).height() - $(".tabs").height() - $("header").height() -66) / 71)+1;
|
List.can_fit = Math.round(($(window).height() - $(".tabs").height() - $("header").height() -66) / 71)+1;
|
||||||
List.element_height = (($(window).height() - $(".tabs").height() - $("header").height() -66) / List.can_fit)-6;
|
List.element_height = (($(window).height() - $(".tabs").height() - $("header").height() -66) / List.can_fit)-6;
|
||||||
|
|||||||
@@ -858,7 +858,14 @@ $(document).on("click", "#closeSettings", function(e)
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(window).resize(function(){
|
$(window).resize(function(){
|
||||||
|
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
||||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||||
|
var i = 2;
|
||||||
|
while(List.element_height < 50 || i > 10){
|
||||||
|
List.can_fit = Math.round(($("#wrapper").height()) / 71)+i;
|
||||||
|
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||||
|
i = i + 1;
|
||||||
|
}
|
||||||
$(".list-song").css("height", List.element_height + "px");
|
$(".list-song").css("height", List.element_height + "px");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user