Now register.php is not shown too big on Desktop, and works as before on mobile
diff --git a/css/ranking.css b/css/ranking.css
index 456585b..e7263d9 100644
--- a/css/ranking.css
+++ b/css/ranking.css
@@ -1,51 +1,47 @@
body {
+ margin: 0;
background-image: url('https://images.unsplash.com/photo-1428196457394-f0c4aec5f574?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80');
background-size: cover;
}
header {
- margin-top: 25px;
- margin-bottom: 100px;
+ padding: 8px 0;
font-family: 'Open Sans';
display: block;
}
header a {
- font-size: 40px;
+ font-size: 17px;
text-decoration: none;
}
header #leftlinks {
- padding-left: 20px;
float: left;
}
header #rightlinks {
- margin-right: 20px;
float: right;
}
div#outter-container {
- width: 95%;
- margin: 32px auto;
+ width: Calc(100% - 26px);
+ margin: 13px;
}
#inner-container {
background-color: white;
- padding: 25px;
+ padding: 16px;
}
p {
font-size: 16px;
text-align: justify;
display: none;
- width: 95%;
- margin: auto;
margin-bottom: 25px;
}
#table-container {
- overflow: scroll;
+ overflow: auto;
}
div#table-container {
@@ -55,17 +51,17 @@
}
table#ranking {
- font-size: 48px;
+ font-size: 20px;
text-align: center;
font-family: 'Open Sans';
- margin: 25px auto;
+ margin: 8px auto;
width: 95%;
+ max-width: 512px;
}
table#ranking td {
- padding: 15px;
- height: 50px;
-
+ padding: 4px;
+
max-width: 400px;
text-overflow: ellipsis;
white-space: nowrap;
@@ -73,11 +69,11 @@
}
td div.username {
- font-size: 40px;
+ font-size: 17px;
}
td div.userinfo {
- font-size: 36px;
+ font-size: 14px;
color: rgb(100,100,100);
}
@@ -87,8 +83,7 @@
tr#header th {
text-align: center;
- padding-top: 10px;
- padding-bottom: 10px;
+ padding: 6px 0;
}
tr.gold {
@@ -109,9 +104,11 @@
tr.top3 td:first-child::before {
content: '';
- background-size: 48px 48px;
- width: 48px;
- height: 48px;
+ background-size: 20px 20px;
+ width: 20px;
+ height: 20px;
+ background-repeat: no-repeat;
+ padding-right: 8px;
float: left;
position: relative;
top: 0px;