From d1e59579ca19454369d56a8c7525e109a86841e2 Mon Sep 17 00:00:00 2001 From: fschildt Date: Fri, 17 Oct 2025 14:00:16 +0200 Subject: first commit --- static/css/base.css | 39 ++++++++++++++++++++ static/css/navbar.css | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 static/css/base.css create mode 100644 static/css/navbar.css (limited to 'static/css') diff --git a/static/css/base.css b/static/css/base.css new file mode 100644 index 0000000..659d3f0 --- /dev/null +++ b/static/css/base.css @@ -0,0 +1,39 @@ +:root { + --bg-default: #2e2e2e; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html { + font-size: 16px; +} + +body { + background-color: var(--bg-default); + font-family: 'Segoe UI', 'Roboto', sans-serif; + color: #e8e6e3; +} + +.container { + max-width: 1200px; + width: 100%; + margin: 0 auto; /* center the container horizontally */ + padding: 0 30px; /* add small padding on left & right for content */ +} + +a:link { + color: #64B5F6; +} +a:visited { + color: #9575CD; +} +a:hover { + color: #90CAF9; +} +a:active { + color: #FF8A80; +} diff --git a/static/css/navbar.css b/static/css/navbar.css new file mode 100644 index 0000000..ffce80f --- /dev/null +++ b/static/css/navbar.css @@ -0,0 +1,100 @@ +.navbar { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + background-color: #333; + padding: 10px 20px; + position: relative; + top: 0; + font-family: Arial, sans-serif; +} + +.navbar > .container { + display: flex; + justify-content: space-between; + padding: 0 0; +} + +.nav-left, .nav-right { + list-style-type: none; + margin: 0; + padding: 0; + display: flex; + align-items: center; +} + +.nav-left li, .nav-right li { + margin: 0 15px; + position: relative; +} + +.navbar a { + text-decoration: none; + color: white; + font-size: 16px; + padding: 10px 15px; + display: block; + transition: background-color 0.3s; +} + +.navbar a:hover { + background-color: #555; + border-radius: 5px; +} + +.dropdown-content { + display: none; + position: absolute; + background-color: #444; + min-width: 160px; + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); + z-index: 1; + border-radius: 5px; +} + +.dropdown-content a { + color: white; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.dropdown-content a:hover { + background-color: #666; +} + +.dropdown:hover .dropdown-content { + display: block; +} + +.nav-right .dropdown-content { + right: 0; +} + +.logout-form { + margin: 0; + padding: 0; + display: block; +} + +.logout-button { + background: none; + border: none; + color: white; + font-size: 16px; + padding: 12px 16px; + text-align: left; + width: 100%; + cursor: pointer; + text-decoration: none; + display: block; + font-family: Arial, sans-serif; + transition: background-color 0.3s; +} + +.logout-button:hover { + background-color: #666; + border-radius: 5px; +} + -- cgit v1.2.3