Skip to content

Bug: Layout issue on Programs page due to misplaced closing brace in CSS #2585

@bhavyamsharmaa

Description

@bhavyamsharmaa

Description

A misplaced closing brace in \css/program.css\ causes the .project-details\ and .community-details\ rules to fall outside of the media query for mobile devices (max-width: 640px). This results in these elements not taking up the full width on smaller screens as intended, or conversely, taking up full width on all screens depending on specificity, and leaves an orphaned closing brace that invalidates subsequent CSS.

To Reproduce

  1. Go to 'Programs' page or any page using \program.css.
  2. Inspect \css/program.css\ at line 465.
  3. Notice the media query closes early at line 465.
  4. Notice .project-details\ and .community-details\ styles at lines 466-468 are outside the media query.
  5. Notice the orphaned closing brace at line 469.

Expected Behavior

The .project-details\ and .community-details\ styles should be inside the @media screen and (max-width: 640px)\ block so that they only apply to mobile viewports.

Code Snippet of the Issue

\\css
/* From css/program.css /
@media screen and (max-width: 640px) {
/
... patterns ... /
} /
<--- ERROR: Media query closes here too early (lines 465) /
.project-details, .community-details {
width: 100%;
}
} /
<--- ERROR: Orphaned brace (line 469) */
\\

Environment

  • OS: All
  • Browser: All
  • Version: All

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions