mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 15:11:35 +01:00
implement top bar more elegantly
Fixes a bug causing it to overlap with the leaderboard on some mobilephones
This commit is contained in:
@@ -9,7 +9,6 @@ body{
|
||||
}
|
||||
|
||||
.top-bar{
|
||||
position: fixed;
|
||||
background-color: orange;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
@@ -18,16 +17,14 @@ body{
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
.top-button{
|
||||
height: 80%;
|
||||
float: left;
|
||||
|
||||
margin-right: 10px;
|
||||
|
||||
background-color: red;
|
||||
|
||||
font-weight: bold;
|
||||
color: #583535;
|
||||
}
|
||||
@@ -58,7 +55,6 @@ body{
|
||||
@media(max-width: 800px){
|
||||
.top-bar{
|
||||
/* bar will be scrolled aways */
|
||||
position: absolute;
|
||||
min-width: 250px;
|
||||
padding-bottom: 4vw;
|
||||
padding-top: 2vw;
|
||||
@@ -118,7 +114,7 @@ body{
|
||||
|
||||
/* #################### LEADERBOARDS ##################### */
|
||||
.leaderboard-container{
|
||||
margin-top: 60px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 50px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
@@ -166,10 +162,6 @@ body{
|
||||
.leaderboard-container{
|
||||
font-size: 4.5vw;
|
||||
width: 100%;
|
||||
|
||||
/* deal with absolute nav-header */
|
||||
margin-top: 30vw;
|
||||
|
||||
}
|
||||
|
||||
.colum-names{
|
||||
|
||||
Reference in New Issue
Block a user