Skip to content

fix: Revamp CSS for Login Screen#55

Open
sergioceron wants to merge 1 commit intomasterfrom
coderops/fix-swarm-70-task-ad8
Open

fix: Revamp CSS for Login Screen#55
sergioceron wants to merge 1 commit intomasterfrom
coderops/fix-swarm-70-task-ad8

Conversation

@sergioceron
Copy link
Copy Markdown
Member

Automated fix by CoderOps.

Swarm: sw5
Task: Revamp CSS for Login Screen

Copilot AI review requested due to automatic review settings April 15, 2026 00:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Revamps styling intended for the login screen by updating shared layout rules in styles/global.css, which is included across the app via the common header.

Changes:

  • Restyles global body to a centered full-viewport flex layout with a gradient background.
  • Updates #header to a flex-based layout and adjusts header text/form spacing.
  • Converts #content into a narrow “card” container and modifies form#settings td spacing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread styles/global.css
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);
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

div#content is used by many pages (admin screens, register, evaluate, etc.) and historically sized for the app layout (e.g., other global elements are fixed ~1000px wide). Changing it to max-width: 500px with card-like styling will shrink/wrap all content site-wide and likely break tables/forms. If the intent is only to restyle the login screen, scope these #content changes to the login page (or a more specific selector) rather than the global div#content rule.

Suggested change
max-width: 500px;
padding: 40px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

Copilot uses AI. Check for mistakes.
Comment thread styles/global.css
Comment on lines +727 to +732
form#settings td {
padding: 10px 0;
margin: 0;
vertical-align: top;
width: 100%;
}
Copy link

Copilot AI Apr 15, 2026

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.

Copilot uses AI. Check for mistakes.
Comment thread styles/global.css
Comment on lines +205 to +214
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;
}
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

div#header is now display:flex with justify-content: space-between, but existing header styling/markup still relies on floats (#logo { float:left; }, div#header ul { float:right; }). Mixing flex layout with float-based layout is unreliable and makes it harder to reason about the header across browsers; flex items also ignore float. Consider updating the child rules to use flex positioning consistently (remove floats / set appropriate flex properties) or avoid switching #header to flex if the rest of the header remains float-based.

Copilot uses AI. Check for mistakes.
Comment thread styles/global.css
Comment on lines +43 to +46
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body is now a flex container with justify-content/align-items:center and height:100vh. Since includes/header.php renders multiple top-level siblings in <body> (header, menu, nav, content, etc.), this will lay them out as flex items (default flex-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., a body.login class or a wrapper on login.php) or keep the global body layout non-flex.

Suggested change
display: flex;
justify-content: center;
align-items: center;
height: 100vh;

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants