aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 09:05:01 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 09:05:01 +0800
commit053efe176ee241c87c9e31c4e2bbd999f9f77bf2 (patch)
tree3c068149ef1bd82ac4dd0b9d4d9c3a185635e2f0 /static
parenthandle_user: Stub (diff)
downloadforge-053efe176ee241c87c9e31c4e2bbd999f9f77bf2.tar.gz
forge-053efe176ee241c87c9e31c4e2bbd999f9f77bf2.tar.zst
forge-053efe176ee241c87c9e31c4e2bbd999f9f77bf2.zip
_header.html: Format the main header
Diffstat (limited to 'static')
-rw-r--r--static/style.css19
1 files changed, 19 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css
index 4ebcdfd..043da38 100644
--- a/static/style.css
+++ b/static/style.css
@@ -29,6 +29,9 @@ html {
--lighter-box-background-color: hsl(0, 0%, 15%);
}
}
+body {
+ margin: 0;
+}
html, code, pre {
font-size: 1rem; /* TODO: Not always correct */
}
@@ -235,3 +238,19 @@ input[type=file]::file-selector-button {
a.btn, a.btn-white, a.btn-danger, a.btn-normal, a.btn-primary {
text-decoration: none;
}
+header#main-header {
+ background-color: var(--lighter-box-background-color);
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px;
+}
+
+header#main-header > div#main-header-forge-title {
+ flex-grow: 1; /* Allows title to take up remaining space */
+}
+
+header#main-header > div#main-header-user {
+ display: flex;
+ align-items: center; /* Ensures user section is vertically aligned */
+}