From ebe2e886f4ea6059e71c69001422f491c9ba1081 Mon Sep 17 00:00:00 2001 From: Santtu Date: Tue, 4 Nov 2025 10:29:00 +0200 Subject: [PATCH] JOOOOOOOOOOOO --- css/style.css | 25 ++++++++++++++++++------- public/index.php | 1 - 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/css/style.css b/css/style.css index 023f3c0..1754c4b 100755 --- a/css/style.css +++ b/css/style.css @@ -1,10 +1,13 @@ + :root { --main-color: #01a4e4; --main-gray: #3d3d3d; + color-scheme: light dark; } * { font-family: sans-serif; + } @@ -15,8 +18,8 @@ a { button { border: none; - background-color: var(--main-color); - color: white; + background-color:light-grey(#c2c2c2,var(--main-color)); + color:light-grey (black,white); padding: 6px 8px; border-radius: 10%; cursor: pointer; @@ -64,10 +67,18 @@ table .muokkaus-column { footer{ text-align: center; + position: fixed; + left: 0; + bottom: 0; + width: 100%; + background-color:light-grey (white,black); + color: light-grey (white,black); + text-align: center; } + .navigaatio { - background-color: white; + background-color: light-grey (white,black);; position: sticky; top: 0; overflow: hidden; @@ -84,18 +95,18 @@ footer{ display: flex; flex-direction: row; gap: 4px; - color: var(--main-gray) !important; + color: light-grey( var(--main-gray),#c2c2c2); } .navigaatio-osio a { - color: var(--main-gray) + color: light-grey( var(--main-gray),#c2c2c2); } .navigaatio-osio a:hover { - color: var(--main-color) + color: light-grey( var(--main-gray),#c2c2c2); } footer { - color: var(--main-gray); + color: light-grey( var(--main-gray),#c2c2c2); } diff --git a/public/index.php b/public/index.php index 2f65d38..7041a97 100755 --- a/public/index.php +++ b/public/index.php @@ -97,7 +97,6 @@ if ($result->num_rows>0){ echo "" . date("d.m.y", strtotime($tyyppi["aloitus"])) . ""; echo "" . date("d.m.y", strtotime($tyyppi["lopetus"])) . ""; echo "" . $tyyppi["status"] . ""; - echo "" . $tyyppi["status"] . ""; echo "" . $tyyppi["ruokaraha"] . ""; echo "" . $tyyppi["muuta"] . ""; if ($op or ($logged_in and $tunnus === $tyyppi['nimi'])) { // Jos opettaja tai muokkaa omia tietoja -- 2.47.3