-
Notifications
You must be signed in to change notification settings - Fork 769
Description
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
- Go to 'Programs' page or any page using \program.css.
- Inspect \css/program.css\ at line 465.
- Notice the media query closes early at line 465.
- Notice .project-details\ and .community-details\ styles at lines 466-468 are outside the media query.
- 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