Mobile styling

This commit is contained in:
Nicolas A. Tonne
2015-04-27 16:10:59 +02:00
parent dba10e2aae
commit 47eda6beae
2 changed files with 15 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ body {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
flex-direction: column; flex-direction: column;
overflow-x: hidden;
} }
/* global colors */ /* global colors */
@@ -100,6 +101,15 @@ display: inline;
width: calc(90% - 256px - 130px); width: calc(90% - 256px - 130px);
left: initial; left: initial;
} }
.title-container li {
width: 84%;
}
#playlist{
padding:0px 15px;
overflow: hidden;
height: 90%;
height: calc(100% - 64px);
}
} }
.fullwidth{ .fullwidth{
@@ -158,6 +168,7 @@ display: inline;
.share, .shareface{ .share, .shareface{
padding-left: 10px !important; padding-left: 10px !important;
width: 17em;
} }
.shareface {background-color: rgb(42, 134, 200) !important;} .shareface {background-color: rgb(42, 134, 200) !important;}
@@ -226,9 +237,6 @@ hide mdi-action-visibility mdi-action-visibility-off
.video-container{ .video-container{
height: calc(100% - 64px); height: calc(100% - 64px);
} }
#playlist{
padding:0px 15px;
}
.control-list{ .control-list{
position: fixed; position: fixed;
@@ -246,7 +254,6 @@ hide mdi-action-visibility mdi-action-visibility-off
.title-container li{ .title-container li{
height: 64px; height: 64px;
height:100%; height:100%;
width: 84%;
padding: 0 15px; padding: 0 15px;
} }
@@ -272,6 +279,9 @@ hide mdi-action-visibility mdi-action-visibility-off
width: initial; width: initial;
padding-right: 3%; padding-right: 3%;
} }
#playlist{
padding:0px 15px;
}
#player{ #player{
height:95%; height:95%;

View File

@@ -84,8 +84,7 @@ function populate_list(msg, conf_only)
{ {
player_name = "#jplayer"; player_name = "#jplayer";
}else player_name = "#player"; }else player_name = "#player";
$("#playlist").css({height: $(".video-container").height()-5});
$("#playlist").css({overflow: "hidden"});
if(scroller === false) if(scroller === false)
{ {
myScroll = new IScroll('#playlist', { myScroll = new IScroll('#playlist', {