-
Notifications
You must be signed in to change notification settings - Fork 1
fix: Revamp CSS for Login Screen #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,16 +33,18 @@ | |||||||||
| html { | ||||||||||
| font-size: 9px; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| body { | ||||||||||
| font-family: Arial, Helvetica, sans-serif; | ||||||||||
| font-size:1.2em; | ||||||||||
| margin:0 auto; | ||||||||||
| padding:.5em 1.5em 1.5em 1.5em; | ||||||||||
| min-width:730px; | ||||||||||
| background:#FFF; | ||||||||||
| behavior:url("csshover2.htc"); | ||||||||||
| } | ||||||||||
| body { | ||||||||||
| font-family: Arial, Helvetica, sans-serif; | ||||||||||
| font-size: 1.2em; | ||||||||||
| margin: 0; | ||||||||||
| padding: 0; | ||||||||||
| min-width: 320px; | ||||||||||
| background: linear-gradient(to bottom, #f0f4f8, #d9e8ef); | ||||||||||
| display: flex; | ||||||||||
| justify-content: center; | ||||||||||
| align-items: center; | ||||||||||
| height: 100vh; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| h1{ | ||||||||||
| font-size:16px; | ||||||||||
|
|
@@ -200,9 +202,16 @@ | |||||||||
|
|
||||||||||
| /* header */ | ||||||||||
|
|
||||||||||
| div#header { | ||||||||||
| min-height:65px; | ||||||||||
| } | ||||||||||
| div#header { | ||||||||||
| min-height: 65px; | ||||||||||
| background-color: #317082; | ||||||||||
| color: #fff; | ||||||||||
| font-size: 1.5em; | ||||||||||
| padding: 10px; | ||||||||||
| display: flex; | ||||||||||
| justify-content: space-between; | ||||||||||
| align-items: center; | ||||||||||
| } | ||||||||||
|
Comment on lines
+205
to
+214
|
||||||||||
|
|
||||||||||
| div#logo{ | ||||||||||
| float: left; | ||||||||||
|
|
@@ -223,9 +232,12 @@ | |||||||||
| } | ||||||||||
|
|
||||||||||
| div#header p, div#header form{ | ||||||||||
| margin:0 0 0 146px; | ||||||||||
| padding-bottom:2px; | ||||||||||
| } | ||||||||||
| div#header p, div#header form { | ||||||||||
| margin: 0; | ||||||||||
| padding: 0; | ||||||||||
| display: flex; | ||||||||||
| align-items: center; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| div#header form label{ | ||||||||||
| display:none; | ||||||||||
|
|
@@ -365,13 +377,14 @@ | |||||||||
|
|
||||||||||
| /* content - general */ | ||||||||||
|
|
||||||||||
| div#content{ | ||||||||||
| background-color: #fff; | ||||||||||
| width:982px; | ||||||||||
| padding:20px 20px; | ||||||||||
| border-left: 1px solid #485C5A; | ||||||||||
| border-right: 1px solid #485C5A; | ||||||||||
| } | ||||||||||
| div#content { | ||||||||||
| background-color: #fff; | ||||||||||
| width: 100%; | ||||||||||
| max-width: 500px; | ||||||||||
| padding: 40px; | ||||||||||
| border-radius: 8px; | ||||||||||
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||||||||||
|
Comment on lines
+383
to
+386
|
||||||||||
| max-width: 500px; | |
| padding: 40px; | |
| border-radius: 8px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
Copilot
AI
Apr 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The form#settings td padding/width changes apply to many unrelated forms because id="settings" is reused throughout the app (registration, admin edit forms, etc.). This means the PR will unintentionally change layouts beyond the login screen. Consider scoping this rule to the specific page/container being revamped (e.g., #content form#settings td for only the card, or a page-specific class) or introducing a dedicated form id/class for the login screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bodyis now a flex container withjustify-content/align-items:centerandheight:100vh. Sinceincludes/header.phprenders multiple top-level siblings in<body>(header, menu, nav, content, etc.), this will lay them out as flex items (defaultflex-direction: row) and will visibly break the layout across the entire site, not just the login screen. Please scope these styles to the login page (e.g., abody.loginclass or a wrapper onlogin.php) or keep the globalbodylayout non-flex.