feat(ui): enhance UI elements and improve layout for game creation and rules pages

This commit is contained in:
2025-11-05 15:10:49 +01:00
parent a765ebd33f
commit 802b76ac1a
11 changed files with 247 additions and 95 deletions

View File

@@ -1,6 +1,13 @@
@media (prefers-color-scheme: dark) {
:root {
--background-image: url('/assets/images/background.png');
--color: white;
--color: #f8f9fa; /* Light text on dark bg */
/* Bootstrap variable overrides for dark mode */
--bs-body-color: var(--color);
--bs-link-color: #66b2ff;
--bs-link-hover-color: #99ccff;
--bs-border-color: rgba(255, 255, 255, 0.2);
--bs-heading-color: var(--color);
}
}

View File

@@ -2,6 +2,19 @@
@import "dark-mode.less";
@import "login.less";
/* Provide default (light) variables so the site works even if light-mode.less fails */
:root {
--background-image: url('/assets/images/img.png');
--color: #212529; /* Bootstrap body text default */
/* Bootstrap variable overrides for light mode */
--bs-body-color: var(--color) !important;
--bs-link-color: #0d6efd !important;
--bs-link-hover-color: #0a58ca !important;
--bs-border-color: rgba(0, 0, 0, 0.125) !important;
--bs-heading-color: var(--color) !important;
}
@background-image: var(--background-image);
@color: var(--color);
@keyframes slideIn {
@@ -10,8 +23,33 @@
}
.game-field-background {
background-image: @background-image;
background-size: 100vw 100vh;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
.navbar-header{
text-align:center;
}
.navbar-toggle {
float: none;
margin-right:0;
}
/* Ensure body text color follows theme variable and works with Bootstrap */
body {
color: @color;
}
.footer {
width: 100%;
text-align: center;
font-size: 12px;
color: @color;
padding: 0.5rem 0;
flex-grow: 1; /* fill remaining vertical space as visual footer background */
}
.game-field {
@@ -19,6 +57,7 @@
inset: 0;
overflow: auto;
}
#sessions {
display: flex;
flex-direction: column;