Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add nicer CSS
• Add more whitespace around everything.
• Change the fonts.
• Change the colours/colors.
• Add a shadow around the mods/flags/etc lists.
- Loading branch information
Showing
with
33 additions
and
9 deletions.
-
+0
−3
static/index.html
-
+33
−6
static/style.css
|
@@ -3,9 +3,6 @@ |
|
|
<head> |
|
|
<meta charset="utf-8"> |
|
|
<title>Minetest server list</title> |
|
|
<style> |
|
|
body { font-family: "Droid Sans", "Segoe UI", sans-serif; } |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<div id="server_list"></div> |
|
|
|
|
@@ -1,3 +1,7 @@ |
|
|
#server_list { |
|
|
font-family: Roboto, Ubuntu, "Segoe UI", sans; |
|
|
} |
|
|
|
|
|
#server_list .total { |
|
|
font-weight: bold; |
|
|
} |
|
@@ -12,25 +16,48 @@ |
|
|
} |
|
|
|
|
|
#server_list td, #server_list th { |
|
|
border: 1px solid gray; |
|
|
border: 1px solid #2A3132; |
|
|
padding: 5px; |
|
|
} |
|
|
|
|
|
#server_list thead { |
|
|
background-color: #FFA; |
|
|
background-color: #2A3132; |
|
|
border-bottom: 5px solid #336B87; |
|
|
color: white; |
|
|
font-size: 1.1em; |
|
|
} |
|
|
|
|
|
#server_list tbody tr:nth-child(even) { |
|
|
background-color: #F1F1F1; |
|
|
background-color: #F3F3F3; |
|
|
} |
|
|
|
|
|
#server_list a { |
|
|
color: #336B87; |
|
|
} |
|
|
|
|
|
#server_list a:visited { |
|
|
color: #336BA1; |
|
|
} |
|
|
|
|
|
#server_list .clients, #server_list .uptime, #server_list .ping { |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
.mts_hover_list { |
|
|
display: none; |
|
|
border: 1px solid #88F; |
|
|
border-radius: 4px; |
|
|
background-color: white; |
|
|
border: 1px solid #336B87; |
|
|
border-radius: 10px; |
|
|
background-color: #FAFAFA; |
|
|
position: absolute; |
|
|
z-index: 100; |
|
|
padding: 0.5em; |
|
|
box-shadow: 1px 1px 5px 3px rgba(0, 0, 0, 0.25); |
|
|
} |
|
|
|
|
|
.mts_hover_list b { |
|
|
display: inline-block; |
|
|
font-size: 1.1em; |
|
|
padding-bottom: 2px; |
|
|
} |
|
|
|
|
|
td:hover .mts_hover_list { |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.