diff --git a/index.html b/index.html index 95c7eee..9dc56fe 100644 --- a/index.html +++ b/index.html @@ -9,23 +9,18 @@ - + - + diff --git a/js/pages/serverInfo.js b/js/pages/serverInfo.js index a9617bc..5c43526 100644 --- a/js/pages/serverInfo.js +++ b/js/pages/serverInfo.js @@ -19,7 +19,7 @@ function ServerInfoPage(params, container) { '

Server Performance

' + '' + '
' + - '
' + + '
' + '
' + '' + '
' + @@ -28,7 +28,7 @@ function ServerInfoPage(params, container) { '

Server Networking

' + '
' + '
' + - '
' + + '
' + '
' + '' + '
' + @@ -37,7 +37,7 @@ function ServerInfoPage(params, container) { '

Players

' + '
' + '
' + - '
' + + '
' + '
' + '' + '' + @@ -121,7 +121,7 @@ function ServerInfoPage(params, container) { if (data.hasOwnProperty(key)) { var val = data[key]; if (typeof val === 'number') val = formatNumber(val); - fieldsHtml += '

' + key + ': ' + val + '

'; + fieldsHtml += '

' + key + ': ' + val + '

'; } } document.getElementById('si-fields').innerHTML = fieldsHtml; diff --git a/rcon.css b/rcon.css index 9690e01..9e7ea5a 100644 --- a/rcon.css +++ b/rcon.css @@ -5,6 +5,8 @@ --rcon-text: #cfd2da; --rcon-accent: #1ca8dd; --rcon-card-bg: #434857; + /* Override BS5 dark theme body background */ + --bs-body-bg: #252830; } body { @@ -79,7 +81,7 @@ a:hover { color: #fff; text-decoration: none; } box-shadow: 0 0 0 0.2rem rgba(28, 168, 221, 0.25); } -/* Card dark theme */ +/* Cards — override BS dark-theme bg to our darker shade */ .card { background-color: var(--rcon-card-bg); border-color: rgba(255, 255, 255, 0.1); @@ -104,7 +106,7 @@ a:hover { color: #fff; text-decoration: none; } border-color: rgba(255, 255, 255, 0.15); } -/* Navbar text color override for dark theme */ +/* Navbar text color override */ .navbar-dark .navbar-text { color: rgba(255, 255, 255, 0.85); } @@ -116,9 +118,9 @@ a:hover { color: #fff; text-decoration: none; } border-bottom: 1px solid rgba(255, 255, 255, 0.15); } -/* Chart panels */ +/* Chart SVGs */ #chart-performance, #chart-network, #chart-players { - min-height: 200px; + display: block; } \ No newline at end of file